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