Package io.voucherify.client.model
Class VouchersImportCreateItemRequestBodyRedemption
java.lang.Object
io.voucherify.client.model.VouchersImportCreateItemRequestBodyRedemption
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class VouchersImportCreateItemRequestBodyRedemption
extends Object
VouchersImportCreateItemRequestBodyRedemption
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanCreate an instance of VouchersImportCreateItemRequestBodyRedemption given an JSON stringHow many times a voucher can be redeemed.inthashCode()voidsetQuantity(Integer quantity) toJson()Convert an instance of VouchersImportCreateItemRequestBodyRedemption to an JSON stringtoString()
-
Field Details
-
SERIALIZED_NAME_QUANTITY
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
VouchersImportCreateItemRequestBodyRedemption
public VouchersImportCreateItemRequestBodyRedemption()
-
-
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 VouchersImportCreateItemRequestBodyRedemption fromJson(String jsonString) throws IOException Create an instance of VouchersImportCreateItemRequestBodyRedemption given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of VouchersImportCreateItemRequestBodyRedemption
- Throws:
IOException- if the JSON string is invalid with respect to VouchersImportCreateItemRequestBodyRedemption
-
toJson
Convert an instance of VouchersImportCreateItemRequestBodyRedemption to an JSON string- Returns:
- JSON string
-