Class CampaignsVouchersCreateRequestBodyRedemption

java.lang.Object
io.voucherify.client.model.CampaignsVouchersCreateRequestBodyRedemption

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignsVouchersCreateRequestBodyRedemption extends Object
Stores the quantity of redemptions that can be applied to the voucher.
  • Field Details

  • Constructor Details

    • CampaignsVouchersCreateRequestBodyRedemption

      public CampaignsVouchersCreateRequestBodyRedemption()
  • Method Details

    • quantity

    • getQuantity

      @Nullable public Integer getQuantity()
      How many times a voucher can be redeemed. A `null` value means unlimited.
      Returns:
      quantity
    • setQuantity

      public void setQuantity(Integer quantity)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • fromJson

      public static CampaignsVouchersCreateRequestBodyRedemption fromJson(String jsonString) throws IOException
      Create an instance of CampaignsVouchersCreateRequestBodyRedemption given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CampaignsVouchersCreateRequestBodyRedemption
      Throws:
      IOException - if the JSON string is invalid with respect to CampaignsVouchersCreateRequestBodyRedemption
    • toJson

      public String toJson()
      Convert an instance of CampaignsVouchersCreateRequestBodyRedemption to an JSON string
      Returns:
      JSON string