Package io.voucherify.client.model
Class LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift
java.lang.Object
io.voucherify.client.model.LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift
extends Object
Object representing gift parameters. Child attributes are present only if `type` is `GIFT_VOUCHER`. Defaults to `null`.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumDefines how the credits are applied to the customer's order. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift given an JSON stringTotal gift card income over the lifetime of the card.Available funds.Defines how the credits are applied to the customer's order.inthashCode()voidvoidsetBalance(Integer balance) voidtoJson()Convert an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_EFFECT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift
public LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift()
-
-
Method Details
-
amount
-
getAmount
Total gift card income over the lifetime of the card. Value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.- Returns:
- amount
-
setAmount
-
balance
-
getBalance
Available funds. Value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.- Returns:
- balance
-
setBalance
-
effect
-
getEffect
Defines how the credits are applied to the customer's order.- Returns:
- effect
-
setEffect
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift fromJson(String jsonString) throws IOException Create an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift
- Throws:
IOException- if the JSON string is invalid with respect to LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift
-
toJson
Convert an instance of LoyaltiesMembersRedemptionRedeemResponseBodyVoucherGift to an JSON string- Returns:
- JSON string
-