Package com.stripe.param
Class PromotionCodeCreateParams.Restrictions.Builder
java.lang.Object
com.stripe.param.PromotionCodeCreateParams.Restrictions.Builder
- Enclosing class:
- PromotionCodeCreateParams.Restrictions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.Add all map key/value pairs to `currencyOptions` map.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.Add a key/value pair to `currencyOptions` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setFirstTimeTransaction
(Boolean firstTimeTransaction) A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.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
(String minimumAmountCurrency) Three-letter ISO code for minimum_amount
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putCurrencyOption
public PromotionCodeCreateParams.Restrictions.Builder putCurrencyOption(String key, PromotionCodeCreateParams.Restrictions.CurrencyOption value) Add a key/value pair to `currencyOptions` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePromotionCodeCreateParams.Restrictions.currencyOptions
for the field documentation. -
putAllCurrencyOption
public PromotionCodeCreateParams.Restrictions.Builder putAllCurrencyOption(Map<String, PromotionCodeCreateParams.Restrictions.CurrencyOption> map) Add all map key/value pairs to `currencyOptions` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePromotionCodeCreateParams.Restrictions.currencyOptions
for the field documentation. -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePromotionCodeCreateParams.Restrictions.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeePromotionCodeCreateParams.Restrictions.extraParams
for the field documentation. -
setFirstTimeTransaction
public PromotionCodeCreateParams.Restrictions.Builder setFirstTimeTransaction(Boolean firstTimeTransaction) 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
public PromotionCodeCreateParams.Restrictions.Builder setMinimumAmountCurrency(String minimumAmountCurrency) Three-letter ISO code for minimum_amount
-