Class CampaignLoyaltyVoucherRedemption

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CampaignLoyaltyVoucherRedemption extends Object
Defines the redemption limits on vouchers.
  • Field Details

  • Constructor Details

    • CampaignLoyaltyVoucherRedemption

      public CampaignLoyaltyVoucherRedemption()
  • Method Details

    • quantity

      public CampaignLoyaltyVoucherRedemption quantity(Integer 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 CampaignLoyaltyVoucherRedemption fromJson(String jsonString) throws IOException
      Create an instance of CampaignLoyaltyVoucherRedemption given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of CampaignLoyaltyVoucherRedemption
      Throws:
      IOException - if the JSON string is invalid with respect to CampaignLoyaltyVoucherRedemption
    • toJson

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