Package com.stripe.param
Class PriceCreateParams.Tier.Builder
java.lang.Object
com.stripe.param.PriceCreateParams.Tier.Builder
- Enclosing class:
- PriceCreateParams.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
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. SeePriceCreateParams.Tier.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. SeePriceCreateParams.Tier.extraParams
for the field documentation. -
setFlatAmount
The flat billing amount for an entire tier, regardless of the number of units in the tier. -
setFlatAmountDecimal
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
The per unit billing amount for each individual unit for which this tier applies. -
setUnitAmountDecimal
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
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.
-