Package io.voucherify.client.model
Class LoyaltiesRewardsGetResponseBody
java.lang.Object
io.voucherify.client.model.LoyaltiesRewardsGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesRewardsGetResponseBody
extends Object
Response body schema for **GET** `v1/loyalties/{campaignId}/rewards/{assignmentId}`
-
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 LoyaltiesRewardsGetResponseBody 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()parameters(LoyaltiesRewardsGetResponseBodyParameters parameters) relatedObjectId(String relatedObjectId) relatedObjectType(LoyaltiesRewardsGetResponseBody.RelatedObjectTypeEnum relatedObjectType) voidsetCreatedAt(OffsetDateTime createdAt) voidvoidvoidvoidsetRelatedObjectId(String relatedObjectId) voidsetRelatedObjectType(LoyaltiesRewardsGetResponseBody.RelatedObjectTypeEnum relatedObjectType) voidsetRewardId(String rewardId) voidsetUpdatedAt(OffsetDateTime updatedAt) toJson()Convert an instance of LoyaltiesRewardsGetResponseBody 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
-
LoyaltiesRewardsGetResponseBody
public LoyaltiesRewardsGetResponseBody()
-
-
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
-
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
Related object type to which the reward was assigned.- Returns:
- relatedObjectType
-
setRelatedObjectType
public void setRelatedObjectType(LoyaltiesRewardsGetResponseBody.RelatedObjectTypeEnum relatedObjectType) -
parameters
public LoyaltiesRewardsGetResponseBody parameters(LoyaltiesRewardsGetResponseBodyParameters parameters) -
getParameters
Get parameters- Returns:
- parameters
-
setParameters
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of LoyaltiesRewardsGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesRewardsGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesRewardsGetResponseBody
-
toJson
Convert an instance of LoyaltiesRewardsGetResponseBody to an JSON string- Returns:
- JSON string
-