Package io.voucherify.client.model
Class RedeemableLoyaltyCard
java.lang.Object
io.voucherify.client.model.RedeemableLoyaltyCard
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedeemableLoyaltyCard
extends Object
Redeemable loyalty card object response
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTransfersItem(LoyaltiesTransferPoints transfersItem) booleanexchangeRatio(BigDecimal exchangeRatio) static RedeemableLoyaltyCardCreate an instance of RedeemableLoyaltyCard given an JSON stringPoints available for reward redemption.The cash equivalent of the points defined in the points_ratio property.Total points incurred over the lifespan of the loyalty card.The number of loyalty points that will map to the predefined cash amount defined by the exchange_ratio property.Get transfersinthashCode()pointsRatio(Integer pointsRatio) voidsetBalance(Integer balance) voidsetExchangeRatio(BigDecimal exchangeRatio) voidvoidsetPointsRatio(Integer pointsRatio) voidsetTransfers(List<LoyaltiesTransferPoints> transfers) toJson()Convert an instance of RedeemableLoyaltyCard to an JSON stringtoString()transfers(List<LoyaltiesTransferPoints> transfers)
-
Field Details
-
SERIALIZED_NAME_POINTS
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_EXCHANGE_RATIO
- See Also:
-
SERIALIZED_NAME_POINTS_RATIO
- See Also:
-
SERIALIZED_NAME_TRANSFERS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedeemableLoyaltyCard
public RedeemableLoyaltyCard()
-
-
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
-
exchangeRatio
-
getExchangeRatio
The cash equivalent of the points defined in the points_ratio property.- Returns:
- exchangeRatio
-
setExchangeRatio
-
pointsRatio
-
getPointsRatio
The number of loyalty points that will map to the predefined cash amount defined by the exchange_ratio property.- Returns:
- pointsRatio
-
setPointsRatio
-
transfers
-
addTransfersItem
-
getTransfers
Get transfers- Returns:
- transfers
-
setTransfers
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedeemableLoyaltyCard given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedeemableLoyaltyCard
- Throws:
IOException- if the JSON string is invalid with respect to RedeemableLoyaltyCard
-
toJson
Convert an instance of RedeemableLoyaltyCard to an JSON string- Returns:
- JSON string
-