Class RedemptionGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionGift extends Object
Contains the amount subtracted from the gift card for the redemption.
  • Field Details

  • Constructor Details

    • RedemptionGift

      public RedemptionGift()
  • Method Details

    • amount

      public RedemptionGift amount(Integer amount)
    • getAmount

      @Nullable public Integer getAmount()
      Amount subtracted from the gift card as a result of the redemption. The amount is expressed as the smallest currency unit (e.g. 100 cents for $1.00).
      Returns:
      amount
    • setAmount

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

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