Class VouchersGetResponseBodyRedemption

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class VouchersGetResponseBodyRedemption extends Object
Stores a summary of redemptions that have been applied to the voucher.
  • Field Details

  • Constructor Details

    • VouchersGetResponseBodyRedemption

      public VouchersGetResponseBodyRedemption()
  • Method Details

    • quantity

      public VouchersGetResponseBodyRedemption 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)
    • redeemedQuantity

      public VouchersGetResponseBodyRedemption redeemedQuantity(Integer redeemedQuantity)
    • getRedeemedQuantity

      @Nullable public Integer getRedeemedQuantity()
      How many times a voucher has already been redeemed.
      Returns:
      redeemedQuantity
    • setRedeemedQuantity

      public void setRedeemedQuantity(Integer redeemedQuantity)
    • redeemedPoints

      public VouchersGetResponseBodyRedemption redeemedPoints(Integer redeemedPoints)
    • getRedeemedPoints

      @Nullable public Integer getRedeemedPoints()
      Total loyalty points redeemed.
      Returns:
      redeemedPoints
    • setRedeemedPoints

      public void setRedeemedPoints(Integer redeemedPoints)
    • _object

      public VouchersGetResponseBodyRedemption _object(String _object)
    • getObject

      @Nullable public String getObject()
      The type of the object represented is by default `list`. To get this list, you need to make a call to the endpoint returned in the url attribute.
      Returns:
      _object
    • setObject

      public void setObject(String _object)
    • url

    • getUrl

      @Nullable public String getUrl()
      The endpoint where this list of redemptions can be accessed using a **GET** method. `/v1/vouchers/{voucher_code}/redemptions`
      Returns:
      url
    • setUrl

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

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