Package io.voucherify.client.model
Class RedemptionRollbackGift
java.lang.Object
io.voucherify.client.model.RedemptionRollbackGift
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedemptionRollbackGift
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 Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RedemptionRollbackGiftCreate an instance of RedemptionRollbackGift 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 RedemptionRollbackGift to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_AMOUNT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedemptionRollbackGift
public RedemptionRollbackGift()
-
-
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
Create an instance of RedemptionRollbackGift given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedemptionRollbackGift
- Throws:
IOException- if the JSON string is invalid with respect to RedemptionRollbackGift
-
toJson
Convert an instance of RedemptionRollbackGift to an JSON string- Returns:
- JSON string
-