Class RedemptionsRollbackCreateResponseBodyGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedemptionsRollbackCreateResponseBodyGift 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

    • RedemptionsRollbackCreateResponseBodyGift

      public RedemptionsRollbackCreateResponseBodyGift()
  • Method Details

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

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