Class CustomerSummaryRedemptionsGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class CustomerSummaryRedemptionsGift extends Object
Summary of gift card credits.
  • Field Details

  • Constructor Details

    • CustomerSummaryRedemptionsGift

      public CustomerSummaryRedemptionsGift()
  • Method Details

    • redeemedAmount

      public CustomerSummaryRedemptionsGift redeemedAmount(Integer redeemedAmount)
    • getRedeemedAmount

      @Nullable public Integer getRedeemedAmount()
      Total amount of gift card credits redeemed by customer. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      redeemedAmount
    • setRedeemedAmount

      public void setRedeemedAmount(Integer redeemedAmount)
    • amountToGo

      public CustomerSummaryRedemptionsGift amountToGo(Integer amountToGo)
    • getAmountToGo

      @Nullable public Integer getAmountToGo()
      Remaining gift card balance across all gift cards. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      amountToGo
    • setAmountToGo

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

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