Package com.stripe.param
Class PriceUpdateParams.CurrencyOption.Tier.Builder
java.lang.Object
com.stripe.param.PriceUpdateParams.CurrencyOption.Tier.Builder
- Enclosing class:
- PriceUpdateParams.CurrencyOption.Tier
-
Constructor Summary
Constructors -
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
(EmptyParam flatAmountDecimal) Same asflat_amount
, but accepts a decimal value representing an integer in the minor units of the currency.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
(EmptyParam unitAmountDecimal) Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.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. SeePriceUpdateParams.CurrencyOption.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. SeePriceUpdateParams.CurrencyOption.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
public PriceUpdateParams.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. -
setFlatAmountDecimal
public PriceUpdateParams.CurrencyOption.Tier.Builder setFlatAmountDecimal(EmptyParam 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
The per unit billing amount for each individual unit for which this tier applies. -
setUnitAmountDecimal
public PriceUpdateParams.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. -
setUnitAmountDecimal
public PriceUpdateParams.CurrencyOption.Tier.Builder setUnitAmountDecimal(EmptyParam 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 PriceUpdateParams.CurrencyOption.Tier.Builder setUpTo(PriceUpdateParams.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.
-