Package io.voucherify.client.model
Class ClientValidationsValidateResponseBodyRedeemablesItemResultGift
java.lang.Object
io.voucherify.client.model.ClientValidationsValidateResponseBodyRedeemablesItemResultGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ClientValidationsValidateResponseBodyRedeemablesItemResultGift
extends Object
Stores the amount of gift card credits to be applied in the redemption.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of ClientValidationsValidateResponseBodyRedeemablesItemResultGift given an JSON stringTotal number of gift card credits to be applied in the redemption expressed as the smallest currency unit (e.g.inthashCode()voidsetCredits(Integer credits) toJson()Convert an instance of ClientValidationsValidateResponseBodyRedeemablesItemResultGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_CREDITS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ClientValidationsValidateResponseBodyRedeemablesItemResultGift
public ClientValidationsValidateResponseBodyRedeemablesItemResultGift()
-
-
Method Details
-
credits
-
getCredits
Total number of gift card credits to be applied in the redemption expressed as the smallest currency unit (e.g. 100 cents for $1.00).- Returns:
- credits
-
setCredits
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static ClientValidationsValidateResponseBodyRedeemablesItemResultGift fromJson(String jsonString) throws IOException Create an instance of ClientValidationsValidateResponseBodyRedeemablesItemResultGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ClientValidationsValidateResponseBodyRedeemablesItemResultGift
- Throws:
IOException- if the JSON string is invalid with respect to ClientValidationsValidateResponseBodyRedeemablesItemResultGift
-
toJson
Convert an instance of ClientValidationsValidateResponseBodyRedeemablesItemResultGift to an JSON string- Returns:
- JSON string
-