Package io.voucherify.client.model
Class RedemptionsGetResponseBody
java.lang.Object
io.voucherify.client.model.RedemptionsGetResponseBody
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsGetResponseBody
extends Object
RedemptionsGetResponseBody
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumGets or Sets _objectstatic enumDefines the related object.static enumRedemption result.static enumGets or Sets status -
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 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 TypeMethodDescriptionchannel(RedemptionsGetResponseBodyChannel channel) customer(RedemptionsGetResponseBodyCustomer customer) customerId(String customerId) date(OffsetDateTime date) booleanfailureCode(String failureCode) failureMessage(String failureMessage) static RedemptionsGetResponseBodyCreate an instance of RedemptionsGetResponseBody given an JSON stringFor gift cards, this is a positive integer in the smallest currency unit (e.g.Get channelGet customerUnique customer ID of the redeeming customer.getDate()Timestamp representing the date and time when the object was created.If the result is `FAILURE`, this parameter will provide a generic reason as to why the redemption failed.If the result is `FAILURE`, this parameter will provide a more expanded reason as to why the redemption failed.getGift()Get giftgetId()Get idGet loyaltyCardGet metadataGet _objectgetOrder()Get orderGet promotionTierSystem generated cause for the redemption being invalid in the context of the provided parameters.Unique redemption ID of the parent redemption.Get relatedObjectIdDefines the related object.Get relatedRedemptionsRedemption result.Get rewardGet statusHashed customer source ID.Get voucherinthashCode()loyaltyCard(RedemptionsGetResponseBodyLoyaltyCard loyaltyCard) promotionTier(RedemptionsGetResponseBodyPromotionTier promotionTier) redemption(String redemption) relatedObjectId(String relatedObjectId) relatedObjectType(RedemptionsGetResponseBody.RelatedObjectTypeEnum relatedObjectType) relatedRedemptions(RedemptionsGetResponseBodyRelatedRedemptions relatedRedemptions) reward(RedemptionRewardResult reward) voidvoidvoidvoidsetCustomerId(String customerId) voidsetDate(OffsetDateTime date) voidsetFailureCode(String failureCode) voidsetFailureMessage(String failureMessage) voidvoidvoidsetLoyaltyCard(RedemptionsGetResponseBodyLoyaltyCard loyaltyCard) voidsetMetadata(Object metadata) voidvoidvoidsetPromotionTier(RedemptionsGetResponseBodyPromotionTier promotionTier) voidvoidsetRedemption(String redemption) voidsetRelatedObjectId(String relatedObjectId) voidsetRelatedObjectType(RedemptionsGetResponseBody.RelatedObjectTypeEnum relatedObjectType) voidsetRelatedRedemptions(RedemptionsGetResponseBodyRelatedRedemptions relatedRedemptions) voidvoidsetReward(RedemptionRewardResult reward) voidvoidsetTrackingId(String trackingId) voidtoJson()Convert an instance of RedemptionsGetResponseBody to an JSON stringtoString()trackingId(String trackingId) voucher(RedemptionsGetResponseBodyVoucher voucher)
-
Field Details
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_DATE
- See Also:
-
SERIALIZED_NAME_CUSTOMER_ID
- See Also:
-
SERIALIZED_NAME_TRACKING_ID
- See Also:
-
SERIALIZED_NAME_METADATA
- See Also:
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_REDEMPTION
- See Also:
-
SERIALIZED_NAME_RESULT
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
SERIALIZED_NAME_RELATED_REDEMPTIONS
- See Also:
-
SERIALIZED_NAME_FAILURE_CODE
- See Also:
-
SERIALIZED_NAME_FAILURE_MESSAGE
- See Also:
-
SERIALIZED_NAME_ORDER
- See Also:
-
SERIALIZED_NAME_CHANNEL
- See Also:
-
SERIALIZED_NAME_CUSTOMER
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT_TYPE
- See Also:
-
SERIALIZED_NAME_RELATED_OBJECT_ID
- See Also:
-
SERIALIZED_NAME_PROMOTION_TIER
- See Also:
-
SERIALIZED_NAME_REWARD
- See Also:
-
SERIALIZED_NAME_GIFT
- See Also:
-
SERIALIZED_NAME_LOYALTY_CARD
- See Also:
-
SERIALIZED_NAME_VOUCHER
- See Also:
-
SERIALIZED_NAME_REASON
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsGetResponseBody
public RedemptionsGetResponseBody()
-
-
Method Details
-
id
-
getId
-
setId
-
_object
-
getObject
-
setObject
-
date
-
getDate
Timestamp representing the date and time when the object was created. The value is shown in the ISO 8601 format.- Returns:
- date
-
setDate
-
customerId
-
getCustomerId
Unique customer ID of the redeeming customer.- Returns:
- customerId
-
setCustomerId
-
trackingId
-
getTrackingId
-
setTrackingId
-
metadata
-
getMetadata
-
setMetadata
-
amount
-
getAmount
For gift cards, this is a positive integer in the smallest currency unit (e.g. 100 cents for $1.00) representing the number of redeemed credits. For loyalty cards, this is the number of loyalty points used in the transaction. and For gift cards, this represents the number of the credits restored to the card in the rolledback redemption. The number is a negative integer in the smallest currency unit, e.g. -100 cents for $1.00 added back to the card. For loyalty cards, this represents the number of loyalty points restored to the card in the rolledback redemption. The number is a negative integer.- Returns:
- amount
-
setAmount
-
redemption
-
getRedemption
Unique redemption ID of the parent redemption.- Returns:
- redemption
-
setRedemption
-
result
-
getResult
Redemption result.- Returns:
- result
-
setResult
-
status
-
getStatus
-
setStatus
-
getRelatedRedemptions
Get relatedRedemptions- Returns:
- relatedRedemptions
-
setRelatedRedemptions
-
failureCode
-
getFailureCode
If the result is `FAILURE`, this parameter will provide a generic reason as to why the redemption failed.- Returns:
- failureCode
-
setFailureCode
-
failureMessage
-
getFailureMessage
If the result is `FAILURE`, this parameter will provide a more expanded reason as to why the redemption failed.- Returns:
- failureMessage
-
setFailureMessage
-
order
-
getOrder
-
setOrder
-
channel
-
getChannel
-
setChannel
-
customer
-
getCustomer
-
setCustomer
-
getRelatedObjectType
Defines the related object.- Returns:
- relatedObjectType
-
setRelatedObjectType
public void setRelatedObjectType(RedemptionsGetResponseBody.RelatedObjectTypeEnum relatedObjectType) -
getRelatedObjectId
-
setRelatedObjectId
-
promotionTier
public RedemptionsGetResponseBody promotionTier(RedemptionsGetResponseBodyPromotionTier promotionTier) -
getPromotionTier
Get promotionTier- Returns:
- promotionTier
-
setPromotionTier
-
reward
-
getReward
-
setReward
-
gift
-
getGift
-
setGift
-
loyaltyCard
-
getLoyaltyCard
Get loyaltyCard- Returns:
- loyaltyCard
-
setLoyaltyCard
-
voucher
-
getVoucher
-
setVoucher
-
reason
-
getReason
System generated cause for the redemption being invalid in the context of the provided parameters.- Returns:
- reason
-
setReason
-
equals
-
hashCode
-
toString
-
fromJson
Create an instance of RedemptionsGetResponseBody given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsGetResponseBody
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsGetResponseBody
-
toJson
Convert an instance of RedemptionsGetResponseBody to an JSON string- Returns:
- JSON string
-