Class VouchersCreateWithSpecificCodeRequestBodyRedemption

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VouchersCreateWithSpecificCodeRequestBodyRedemption extends Object
VouchersCreateWithSpecificCodeRequestBodyRedemption
  • Field Details

  • Constructor Details

    • VouchersCreateWithSpecificCodeRequestBodyRedemption

      public VouchersCreateWithSpecificCodeRequestBodyRedemption()
  • 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 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

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