Package io.voucherify.client.model
Class RedeemableGift
java.lang.Object
io.voucherify.client.model.RedeemableGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedeemableGift
extends Object
Contains current gift card balance information.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbalance(BigDecimal balance) credits(BigDecimal credits) booleanstatic RedeemableGiftCreate an instance of RedeemableGift given an JSON stringAvailable funds.The number of credits that the user wants to use from the gift card to fulfil the order.inthashCode()voidsetBalance(BigDecimal balance) voidsetCredits(BigDecimal credits) toJson()Convert an instance of RedeemableGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_BALANCE
- See Also:
-
SERIALIZED_NAME_CREDITS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedeemableGift
public RedeemableGift()
-
-
Method Details
-
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
-
credits
-
getCredits
The number of credits that the user wants to use from the gift card to fulfil the order. The value of credits cannot be higher than the current balance on the gift card. If the user gives more points than he has on the gift card, the application will return an error code in response. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.- Returns:
- credits
-
setCredits
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedeemableGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedeemableGift
- Throws:
IOException- if the JSON string is invalid with respect to RedeemableGift
-
toJson
Convert an instance of RedeemableGift to an JSON string- Returns:
- JSON string
-