Class VouchersImportCreateItemRequestBodyRedemption

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

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

  • Constructor Details

    • VouchersImportCreateItemRequestBodyRedemption

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

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