Package io.voucherify.client.model
Class RedemptionsRollbackCreateResponseBodyGift
java.lang.Object
io.voucherify.client.model.RedemptionsRollbackCreateResponseBodyGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionsRollbackCreateResponseBodyGift
extends Object
Contains the amount returned to the gift card in the redemption rollback. It is expressed as a negative integer.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of RedemptionsRollbackCreateResponseBodyGift given an JSON stringAmount returned to the gift card as a result of the redemption rollback and expressed as a negative integer.inthashCode()voidtoJson()Convert an instance of RedemptionsRollbackCreateResponseBodyGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionsRollbackCreateResponseBodyGift
public RedemptionsRollbackCreateResponseBodyGift()
-
-
Method Details
-
amount
-
getAmount
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 RedemptionsRollbackCreateResponseBodyGift fromJson(String jsonString) throws IOException Create an instance of RedemptionsRollbackCreateResponseBodyGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionsRollbackCreateResponseBodyGift
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionsRollbackCreateResponseBodyGift
-
toJson
Convert an instance of RedemptionsRollbackCreateResponseBodyGift to an JSON string- Returns:
- JSON string
-