Package io.voucherify.client.model
Class RedeemableResult
java.lang.Object
io.voucherify.client.model.RedeemableResult
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class RedeemableResult
extends Object
Information about redeemable result.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic RedeemableResultCreate an instance of RedeemableResult given an JSON stringGet discountgetError()Get errorgetGift()Get giftGet loyaltyCardgift(RedeemableGift gift) inthashCode()loyaltyCard(RedeemableLoyaltyCard loyaltyCard) voidsetDiscount(Discount discount) voidvoidsetGift(RedeemableGift gift) voidsetLoyaltyCard(RedeemableLoyaltyCard loyaltyCard) toJson()Convert an instance of RedeemableResult to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_DISCOUNT
- See Also:
-
SERIALIZED_NAME_GIFT
- See Also:
-
SERIALIZED_NAME_LOYALTY_CARD
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
RedeemableResult
public RedeemableResult()
-
-
Method Details
-
discount
-
getDiscount
Get discount- Returns:
- discount
-
setDiscount
-
gift
-
getGift
Get gift- Returns:
- gift
-
setGift
-
loyaltyCard
-
getLoyaltyCard
Get loyaltyCard- Returns:
- loyaltyCard
-
setLoyaltyCard
-
error
-
getError
Get error- Returns:
- error
-
setError
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of RedeemableResult given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of RedeemableResult
- Throws:
IOException- if the JSON string is invalid with respect to RedeemableResult
-
toJson
Convert an instance of RedeemableResult to an JSON string- Returns:
- JSON string
-