Package io.voucherify.client.model
Class RedemptionsListResponseBodyRedemptionsItemGift
java.lang.Object
io.voucherify.client.model.RedemptionsListResponseBodyRedemptionsItemGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsListResponseBodyRedemptionsItemGift
extends Object
RedemptionsListResponseBodyRedemptionsItemGift
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RedemptionsListResponseBodyRedemptionsItemGift given an JSON stringAmount subtracted from the gift card as a result of the redemption.inthashCode()voidtoJson()Convert an instance of RedemptionsListResponseBodyRedemptionsItemGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsListResponseBodyRedemptionsItemGift
public RedemptionsListResponseBodyRedemptionsItemGift()
-
-
Method Details
-
amount
-
getAmount
Amount subtracted from the gift card as a result of the redemption. The amount is expressed as the smallest currency unit (e.g. 100 cents for $1.00). and Amount returned to the gift card as a result of the redemption rollback and expressed as a negative integer. The amount is expressed as the smallest currency unit (e.g. -100 cents for $1.00 returned).- Returns:
- amount
-
setAmount
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static RedemptionsListResponseBodyRedemptionsItemGift fromJson(String jsonString) throws IOException Create an instance of RedemptionsListResponseBodyRedemptionsItemGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsListResponseBodyRedemptionsItemGift
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsListResponseBodyRedemptionsItemGift
-
toJson
Convert an instance of RedemptionsListResponseBodyRedemptionsItemGift to an JSON string- Returns:
- JSON string
-