Class ValidationsValidateRequestBodyRedeemablesItemGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ValidationsValidateRequestBodyRedeemablesItemGift extends Object
Contains information on the number of gift card credits that the customer wants to apply to the order.
  • Field Details

  • Constructor Details

    • ValidationsValidateRequestBodyRedeemablesItemGift

      public ValidationsValidateRequestBodyRedeemablesItemGift()
  • Method Details

    • credits

    • getCredits

      @Nullable public Integer getCredits()
      The number of credits that the user wants to use from the gift card to fulfill the order. The value of credits cannot be higher than the current balance on the gift card. Value is multiplied by 100 to precisely represent 2 decimal places. For example `10000 cents` for `$100.00`.
      Returns:
      credits
    • setCredits

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

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