Package io.voucherify.client.model
Class VouchersCreateWithSpecificCodeRequestBodyRedemption
java.lang.Object
io.voucherify.client.model.VouchersCreateWithSpecificCodeRequestBodyRedemption
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VouchersCreateWithSpecificCodeRequestBodyRedemption
extends Object
VouchersCreateWithSpecificCodeRequestBodyRedemption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of VouchersCreateWithSpecificCodeRequestBodyRedemption given an JSON stringHow many times a voucher can be redeemed.inthashCode()voidsetQuantity(Integer quantity) toJson()Convert an instance of VouchersCreateWithSpecificCodeRequestBodyRedemption to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_QUANTITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VouchersCreateWithSpecificCodeRequestBodyRedemption
public VouchersCreateWithSpecificCodeRequestBodyRedemption()
-
-
Method Details
-
quantity
-
getQuantity
How many times a voucher can be redeemed. A `null` value means unlimited.- Returns:
- quantity
-
setQuantity
-
equals
-
hashCode
public int hashCode() -
toString
-
fromJson
public static VouchersCreateWithSpecificCodeRequestBodyRedemption fromJson(String jsonString) throws IOException Create an instance of VouchersCreateWithSpecificCodeRequestBodyRedemption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VouchersCreateWithSpecificCodeRequestBodyRedemption
- Throws:
IOException- if the JSON string is invalid with respect to VouchersCreateWithSpecificCodeRequestBodyRedemption
-
toJson
Convert an instance of VouchersCreateWithSpecificCodeRequestBodyRedemption to an JSON string- Returns:
- JSON string
-