Class ValidationsValidateResponseBodyRedeemablesItemResultGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class ValidationsValidateResponseBodyRedeemablesItemResultGift extends Object
Stores the amount of gift card credits to be applied in the redemption.
  • Field Details

  • Constructor Details

    • ValidationsValidateResponseBodyRedeemablesItemResultGift

      public ValidationsValidateResponseBodyRedeemablesItemResultGift()
  • Method Details

    • credits

    • getCredits

      @Nullable public Integer getCredits()
      Total number of gift card credits to be applied in the redemption expressed as the smallest currency unit (e.g. 100 cents for $1.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

      Create an instance of ValidationsValidateResponseBodyRedeemablesItemResultGift given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of ValidationsValidateResponseBodyRedeemablesItemResultGift
      Throws:
      IOException - if the JSON string is invalid with respect to ValidationsValidateResponseBodyRedeemablesItemResultGift
    • toJson

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