Class RedemptionRollbackGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionRollbackGift extends Object
Contains the amount returned to the gift card in the redemption rollback. It is expressed as a negative integer.
  • Field Details

  • Constructor Details

    • RedemptionRollbackGift

      public RedemptionRollbackGift()
  • Method Details

    • amount

      public RedemptionRollbackGift amount(Integer amount)
    • getAmount

      @Nullable public Integer getAmount()
      Amount returned to the gift card as a result of the redemption rollback and expressed as a negative integer. The amount is expressed as the smallest currency unit (e.g. -100 cents for $1.00 returned).
      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 RedemptionRollbackGift fromJson(String jsonString) throws IOException
      Create an instance of RedemptionRollbackGift given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of RedemptionRollbackGift
      Throws:
      IOException - if the JSON string is invalid with respect to RedemptionRollbackGift
    • toJson

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