Package io.voucherify.client.model
Class RedemptionRewardResult
java.lang.Object
io.voucherify.client.model.RedemptionRewardResult
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionRewardResult
extends Object
RedemptionRewardResult
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumThe type of the object represented by the JSONstatic enumReward type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription_object(RedemptionRewardResult.ObjectEnum _object) assignmentId(String assignmentId) createdAt(OffsetDateTime createdAt) customer(SimpleCustomer customer) booleanstatic RedemptionRewardResultCreate an instance of RedemptionRewardResult given an JSON stringUnique reward assignment ID assigned by Voucherify.Timestamp representing the date and time when the redemption was created.Get customergetId()Unique reward ID.Unique loyalty tier ID assigned by Voucherify.A set of custom key/value pairs that you can attach to a reward.getName()Name of the reward.The type of the object represented by the JSONGet parametersGet productgetSku()Get skugetType()Reward type.Timestamp in ISO 8601 format indicating when the reward was updated.Get voucherinthashCode()loyaltyTierId(String loyaltyTierId) parameters(RedemptionRewardResultParameters parameters) voidsetAssignmentId(String assignmentId) voidsetCreatedAt(OffsetDateTime createdAt) voidsetCustomer(SimpleCustomer customer) voidvoidsetLoyaltyTierId(String loyaltyTierId) voidsetMetadata(Object metadata) voidvoidvoidsetParameters(RedemptionRewardResultParameters parameters) voidsetProduct(Product product) voidvoidvoidsetUpdatedAt(OffsetDateTime updatedAt) voidsetVoucher(Voucher voucher) toJson()Convert an instance of RedemptionRewardResult to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt)
-
Field Details
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_ASSIGNMENT_ID
- See Also:
-
SERIALIZED_NAME_VOUCHER
- See Also:
-
SERIALIZED_NAME_PRODUCT
- See Also:
-
SERIALIZED_NAME_SKU
- See Also:
-
SERIALIZED_NAME_LOYALTY_TIER_ID
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_PARAMETERS
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionRewardResult
public RedemptionRewardResult()
-
-
Method Details
-
customer
-
getCustomer
Get customer- Returns:
- customer
-
setCustomer
-
assignmentId
-
getAssignmentId
Unique reward assignment ID assigned by Voucherify.- Returns:
- assignmentId
-
setAssignmentId
-
voucher
-
getVoucher
Get voucher- Returns:
- voucher
-
setVoucher
-
product
-
getProduct
Get product- Returns:
- product
-
setProduct
-
sku
-
getSku
Get sku- Returns:
- sku
-
setSku
-
loyaltyTierId
-
getLoyaltyTierId
Unique loyalty tier ID assigned by Voucherify.- Returns:
- loyaltyTierId
-
setLoyaltyTierId
-
id
-
getId
Unique reward ID.- Returns:
- id
-
setId
-
name
-
getName
Name of the reward.- Returns:
- name
-
setName
-
_object
-
getObject
The type of the object represented by the JSON- Returns:
- _object
-
setObject
-
createdAt
-
getCreatedAt
Timestamp representing the date and time when the redemption was created. The value is shown in the ISO 8601 format.- Returns:
- createdAt
-
setCreatedAt
-
updatedAt
-
getUpdatedAt
Timestamp in ISO 8601 format indicating when the reward was updated.- Returns:
- updatedAt
-
setUpdatedAt
-
parameters
-
getParameters
Get parameters- Returns:
- parameters
-
setParameters
-
metadata
-
getMetadata
A set of custom key/value pairs that you can attach to a reward. The metadata object stores all custom attributes assigned to the reward.- Returns:
- metadata
-
setMetadata
-
type
-
getType
Reward type.- Returns:
- type
-
setType
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedemptionRewardResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionRewardResult
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionRewardResult
-
toJson
Convert an instance of RedemptionRewardResult to an JSON string- Returns:
- JSON string
-