Package io.voucherify.client.model
Class LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard
java.lang.Object
io.voucherify.client.model.LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard
extends Object
Object representing loyalty card parameters. Child attributes are present only if `type` is `LOYALTY_CARD`. Defaults to `null`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard given an JSON stringPoints available for reward redemption.The next closest date when the next set of points are due to expire.The amount of points that are set to expire next.Total points incurred over the lifespan of the loyalty card.inthashCode()nextExpirationDate(LocalDate nextExpirationDate) nextExpirationPoints(Integer nextExpirationPoints) voidsetBalance(Integer balance) voidsetNextExpirationDate(LocalDate nextExpirationDate) voidsetNextExpirationPoints(Integer nextExpirationPoints) voidtoJson()Convert an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_NEXT_EXPIRATION_DATE
- See Also:
-
SERIALIZED_NAME_NEXT_EXPIRATION_POINTS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard
public LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard()
-
-
Method Details
-
points
-
getPoints
Total points incurred over the lifespan of the loyalty card.- Returns:
- points
-
setPoints
-
balance
-
getBalance
Points available for reward redemption.- Returns:
- balance
-
setBalance
-
nextExpirationDate
public LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard nextExpirationDate(LocalDate nextExpirationDate) -
getNextExpirationDate
The next closest date when the next set of points are due to expire.- Returns:
- nextExpirationDate
-
setNextExpirationDate
-
nextExpirationPoints
public LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard nextExpirationPoints(Integer nextExpirationPoints) -
getNextExpirationPoints
The amount of points that are set to expire next.- Returns:
- nextExpirationPoints
-
setNextExpirationPoints
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard fromJson(String jsonString) throws IOException Create an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard
-
toJson
Convert an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherLoyaltyCard to an JSON string- Returns:
- JSON string
-