Package io.voucherify.client.model
Class VouchersDisableResponseBodyRedemption
java.lang.Object
io.voucherify.client.model.VouchersDisableResponseBodyRedemption
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VouchersDisableResponseBodyRedemption
extends Object
Stores a summary of redemptions that have been applied to the voucher.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of VouchersDisableResponseBodyRedemption given an JSON stringThe type of the object represented is by default `list`.How many times a voucher can be redeemed.Total loyalty points redeemed.How many times a voucher has already been redeemed.getUrl()The endpoint where this list of redemptions can be accessed using a **GET** method.inthashCode()redeemedPoints(Integer redeemedPoints) redeemedQuantity(Integer redeemedQuantity) voidvoidsetQuantity(Integer quantity) voidsetRedeemedPoints(Integer redeemedPoints) voidsetRedeemedQuantity(Integer redeemedQuantity) voidtoJson()Convert an instance of VouchersDisableResponseBodyRedemption to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_QUANTITY
- See Also:
-
SERIALIZED_NAME_REDEEMED_QUANTITY
- See Also:
-
SERIALIZED_NAME_REDEEMED_POINTS
- See Also:
-
SERIALIZED_NAME_OBJECT
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VouchersDisableResponseBodyRedemption
public VouchersDisableResponseBodyRedemption()
-
-
Method Details
-
quantity
-
getQuantity
How many times a voucher can be redeemed. A `null` value means unlimited.- Returns:
- quantity
-
setQuantity
-
redeemedQuantity
-
getRedeemedQuantity
How many times a voucher has already been redeemed.- Returns:
- redeemedQuantity
-
setRedeemedQuantity
-
redeemedPoints
-
getRedeemedPoints
Total loyalty points redeemed.- Returns:
- redeemedPoints
-
setRedeemedPoints
-
_object
-
getObject
The type of the object represented is by default `list`. To get this list, you need to make a call to the endpoint returned in the url attribute.- Returns:
- _object
-
setObject
-
url
-
getUrl
The endpoint where this list of redemptions can be accessed using a **GET** method. `/v1/vouchers/{voucher_code}/redemptions`- Returns:
- url
-
setUrl
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
Create an instance of VouchersDisableResponseBodyRedemption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VouchersDisableResponseBodyRedemption
- Throws:
IOException- if the JSON string is invalid with respect to VouchersDisableResponseBodyRedemption
-
toJson
Convert an instance of VouchersDisableResponseBodyRedemption to an JSON string- Returns:
- JSON string
-