Package com.stripe.model
Class PromotionCode.Restrictions
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.PromotionCode.Restrictions
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- PromotionCode
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Promotion code restrictions defined in each available currency option.A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).Three-letter ISO code for minimum_amountint
hashCode()
void
setCurrencyOptions
(Map<String, PromotionCode.Restrictions.CurrencyOption> currencyOptions) Promotion code restrictions defined in each available currency option.void
setFirstTimeTransaction
(Boolean firstTimeTransaction) A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.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).void
setMinimumAmountCurrency
(String minimumAmountCurrency) Three-letter ISO code for minimum_amountMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
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
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices. -
getMinimumAmount
Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). -
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
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices. -
setMinimumAmount
Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work). -
setMinimumAmountCurrency
Three-letter ISO code for minimum_amount -
equals
-
canEqual
-
hashCode
public int hashCode()
-