Class RedeemableVoucherGift

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

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class RedeemableVoucherGift extends Object
Object representing gift parameters. Child attributes are present only if `type` is `GIFT_VOUCHER`. Defaults to `null`.
  • Field Details

  • Constructor Details

    • RedeemableVoucherGift

      public RedeemableVoucherGift()
  • Method Details

    • amount

      public RedeemableVoucherGift amount(Integer amount)
    • getAmount

      @Nullable public Integer getAmount()
      Total gift card income over the lifetime of the card. Value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.
      Returns:
      amount
    • setAmount

      public void setAmount(Integer amount)
    • balance

      public RedeemableVoucherGift balance(Integer balance)
    • getBalance

      @Nullable public Integer getBalance()
      Available funds. Value is multiplied by 100 to precisely represent 2 decimal places. For example, $100 amount is written as 10000.
      Returns:
      balance
    • setBalance

      public void setBalance(Integer balance)
    • effect

    • getEffect

      @Nullable public RedeemableVoucherGift.EffectEnum getEffect()
      Defines how the credits are applied to the customer's order.
      Returns:
      effect
    • setEffect

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

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