Class PromotionCode.Restrictions

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PromotionCode.Restrictions
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
PromotionCode

public static class PromotionCode.Restrictions extends StripeObject
  • Constructor Details

    • Restrictions

      public Restrictions()
  • Method Details

    • getCurrencyOptions

      Promotion code restrictions defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
    • getFirstTimeTransaction

      public Boolean getFirstTimeTransaction()
      A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.
    • getMinimumAmount

      public Long getMinimumAmount()
      Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
    • getMinimumAmountCurrency

      public String getMinimumAmountCurrency()
      Three-letter ISO code for minimum_amount
    • setCurrencyOptions

      public void setCurrencyOptions(Map<String,PromotionCode.Restrictions.CurrencyOption> currencyOptions)
      Promotion code restrictions defined in each available currency option. Each key must be a three-letter ISO currency code and a supported currency.
    • setFirstTimeTransaction

      public void setFirstTimeTransaction(Boolean firstTimeTransaction)
      A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.
    • setMinimumAmount

      public void setMinimumAmount(Long minimumAmount)
      Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).
    • setMinimumAmountCurrency

      public void setMinimumAmountCurrency(String minimumAmountCurrency)
      Three-letter ISO code for minimum_amount
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object