Package io.voucherify.client.model
Class ClientRedemptionsRedeemRequestBodyRedeemablesItemGift
java.lang.Object
io.voucherify.client.model.ClientRedemptionsRedeemRequestBodyRedeemablesItemGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientRedemptionsRedeemRequestBodyRedeemablesItemGift
extends Object
Contains information on the number of gift card credits that the customer wants to apply to the order.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemGift given an JSON stringThe number of credits that the user wants to use from the gift card to fulfill the order.inthashCode()voidsetCredits(Integer credits) toJson()Convert an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CREDITS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClientRedemptionsRedeemRequestBodyRedeemablesItemGift
public ClientRedemptionsRedeemRequestBodyRedeemablesItemGift()
-
-
Method Details
-
credits
-
getCredits
The number of credits that the user wants to use from the gift card to fulfill the order. The value of credits cannot be higher than the current balance on the gift card. 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
public static ClientRedemptionsRedeemRequestBodyRedeemablesItemGift fromJson(String jsonString) throws IOException Create an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemGift
- Throws:
IOException- if the JSON string is invalid with respect to ClientRedemptionsRedeemRequestBodyRedeemablesItemGift
-
toJson
Convert an instance of ClientRedemptionsRedeemRequestBodyRedeemablesItemGift to an JSON string- Returns:
- JSON string
-