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