Package io.voucherify.client.model
Class LoyaltiesRewardsCreateAssignmentResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesRewardsCreateAssignmentResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesRewardsCreateAssignmentResponseBody
extends Object
Response body schema for **POST** `v1/v1/loyalties/{campaignId}/rewards`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSON.static enumRelated object type to which the reward was assigned. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanCreate an instance of LoyaltiesRewardsCreateAssignmentResponseBody given an JSON stringTimestamp representing the date and time when the reward assignment was created.getId()Unique reward assignment ID, assigned by Voucherify.The type of the object represented by the JSON.Get parametersRelated object ID to which the reward was assigned.Related object type to which the reward was assigned.Associated reward ID.Timestamp representing the date and time when the reward assignment was updated.inthashCode()relatedObjectId(String relatedObjectId) relatedObjectType(LoyaltiesRewardsCreateAssignmentResponseBody.RelatedObjectTypeEnum relatedObjectType) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidsetRelatedObjectId(String relatedObjectId) voidsetRelatedObjectType(LoyaltiesRewardsCreateAssignmentResponseBody.RelatedObjectTypeEnum relatedObjectType) voidsetRewardId(String rewardId) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of LoyaltiesRewardsCreateAssignmentResponseBody to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_REWARD_ID
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT_ID
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT_TYPE
- See Also:
-
SERIALIZED_NAME_PARAMETERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesRewardsCreateAssignmentResponseBody
public LoyaltiesRewardsCreateAssignmentResponseBody()
-
-
Method Details
-
id
-
getId
Unique reward assignment ID, assigned by Voucherify.- Returns:
- id
-
setId
-
rewardId
-
getRewardId
Associated reward ID.- Returns:
- rewardId
-
setRewardId
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the reward assignment was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp representing the date and time when the reward assignment was updated. The value is shown in the ISO 8601 format.- Returns:
- updatedAt
-
setUpdatedAt
-
_object
public LoyaltiesRewardsCreateAssignmentResponseBody _object(LoyaltiesRewardsCreateAssignmentResponseBody.ObjectEnum _object) -
getObject
The type of the object represented by the JSON. This object stores information about the reward assignment.- Returns:
- _object
-
setObject
-
getRelatedObjectId
Related object ID to which the reward was assigned.- Returns:
- relatedObjectId
-
setRelatedObjectId
-
getRelatedObjectType
@Nullable public LoyaltiesRewardsCreateAssignmentResponseBody.RelatedObjectTypeEnum getRelatedObjectType()Related object type to which the reward was assigned.- Returns:
- relatedObjectType
-
setRelatedObjectType
public void setRelatedObjectType(LoyaltiesRewardsCreateAssignmentResponseBody.RelatedObjectTypeEnum relatedObjectType) -
parameters
public LoyaltiesRewardsCreateAssignmentResponseBody parameters(LoyaltiesRewardsCreateAssignmentResponseBodyParameters parameters) -
getParameters
Get parameters- Returns:
- parameters
-
setParameters
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesRewardsCreateAssignmentResponseBody fromJson(String jsonString) throws IOException Create an instance of LoyaltiesRewardsCreateAssignmentResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesRewardsCreateAssignmentResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesRewardsCreateAssignmentResponseBody
-
toJson
Convert an instance of LoyaltiesRewardsCreateAssignmentResponseBody to an JSON string- Returns:
- JSON string
-