Package com.stripe.param
Class PromotionCodeCreateParams.Restrictions.Builder
- java.lang.Object
-
- com.stripe.param.PromotionCodeCreateParams.Restrictions.Builder
-
- Enclosing class:
- PromotionCodeCreateParams.Restrictions
public static class PromotionCodeCreateParams.Restrictions.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromotionCodeCreateParams.Restrictions
build()
Finalize and obtain parameter instance from this builder.PromotionCodeCreateParams.Restrictions.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PromotionCodeCreateParams.Restrictions.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PromotionCodeCreateParams.Restrictions.Builder
setFirstTimeTransaction(java.lang.Boolean firstTimeTransaction)
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.PromotionCodeCreateParams.Restrictions.Builder
setMinimumAmount(java.lang.Long minimumAmount)
Minimum amount required to redeem this Promotion Code into a Coupon (e.g., a purchase must be $100 or more to work).PromotionCodeCreateParams.Restrictions.Builder
setMinimumAmountCurrency(java.lang.String minimumAmountCurrency)
Three-letter ISO code for minimum_amount
-
-
-
Method Detail
-
build
public PromotionCodeCreateParams.Restrictions build()
Finalize and obtain parameter instance from this builder.
-
putExtraParam
public PromotionCodeCreateParams.Restrictions.Builder putExtraParam(java.lang.String key, java.lang.Object value)
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
public PromotionCodeCreateParams.Restrictions.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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(java.lang.Boolean firstTimeTransaction)
A Boolean indicating if the Promotion Code should only be redeemed for Customers without any successful payments or invoices.
-
setMinimumAmount
public PromotionCodeCreateParams.Restrictions.Builder setMinimumAmount(java.lang.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 PromotionCodeCreateParams.Restrictions.Builder setMinimumAmountCurrency(java.lang.String minimumAmountCurrency)
Three-letter ISO code for minimum_amount
-
-