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