Package com.stripe.param
Class PlanCreateParams.Tier.Builder
java.lang.Object
com.stripe.param.PlanCreateParams.Tier.Builder
- Enclosing class:
- PlanCreateParams.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(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. SeePlanCreateParams.Tier.extraParamsfor 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. SeePlanCreateParams.Tier.extraParamsfor 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_amountandflat_amount_decimalcan 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_amountandunit_amount_decimalcan 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. Useinfto 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. Useinfto define a fallback tier.
-