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