Package com.stripe.param
Class PlanCreateParams.Tier
java.lang.Object
com.stripe.param.PlanCreateParams.Tier
- Enclosing class:
- PlanCreateParams
A label that represents units of this product. When set, this will be included in
customers' receipts, invoices, Checkout, and the customer portal.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Map of extra parameters for custom features not available in this client library.The flat billing amount for an entire tier, regardless of the number of units in the tier.Same asflat_amount
, but accepts a decimal value representing an integer in the minor units of the currency.The per unit billing amount for each individual unit for which this tier applies.Same asunit_amount
, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places.getUpTo()
Required. Specifies the upper bound of this tier.
-
Method Details
-
builder
-
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
getFlatAmount
The flat billing amount for an entire tier, regardless of the number of units in the tier. -
getFlatAmountDecimal
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. -
getUnitAmount
The per unit billing amount for each individual unit for which this tier applies. -
getUnitAmountDecimal
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. -
getUpTo
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.
-