Package com.stripe.param
Class ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder
java.lang.Object
com.stripe.param.ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder
- Enclosing class:
- ProductCreateParams.DefaultPriceData.CurrencyOption.Tier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setFlatAmount
(Long flatAmount) The flat billing amount for an entire tier, regardless of the number of units in the tier.setFlatAmountDecimal
(BigDecimal flatAmountDecimal) Same asflat_amount
, but accepts a decimal value representing an integer in the minor units of the currency.setUnitAmount
(Long unitAmount) The per unit billing amount for each individual unit for which this tier applies.setUnitAmountDecimal
(BigDecimal unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.Required. Specifies the upper bound of this tier.Required. Specifies the upper bound of this tier.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder putExtraParam(String key, 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. SeeProductCreateParams.DefaultPriceData.CurrencyOption.Tier.extraParams
for the field documentation. -
putAllExtraParam
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder putAllExtraParam(Map<String, 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. SeeProductCreateParams.DefaultPriceData.CurrencyOption.Tier.extraParams
for the field documentation. -
setFlatAmount
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder setFlatAmount(Long flatAmount) The flat billing amount for an entire tier, regardless of the number of units in the tier. -
setFlatAmountDecimal
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder setFlatAmountDecimal(BigDecimal flatAmountDecimal) Same asflat_amount
, but accepts a decimal value representing an integer in the minor units of the currency. Only one offlat_amount
andflat_amount_decimal
can be set. -
setUnitAmount
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder setUnitAmount(Long unitAmount) The per unit billing amount for each individual unit for which this tier applies. -
setUnitAmountDecimal
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one ofunit_amount
andunit_amount_decimal
can be set. -
setUpTo
public ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.Builder setUpTo(ProductCreateParams.DefaultPriceData.CurrencyOption.Tier.UpTo upTo) Required. Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Useinf
to define a fallback tier. -
setUpTo
Required. Specifies the upper bound of this tier. The lower bound of a tier is the upper bound of the previous tier adding one. Useinf
to define a fallback tier.
-