Package com.stripe.param
Class PriceCreateParams.Tier.Builder
- java.lang.Object
-
- com.stripe.param.PriceCreateParams.Tier.Builder
-
- Enclosing class:
- PriceCreateParams.Tier
public static class PriceCreateParams.Tier.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceCreateParams.Tier
build()
Finalize and obtain parameter instance from this builder.PriceCreateParams.Tier.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PriceCreateParams.Tier.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PriceCreateParams.Tier.Builder
setFlatAmount(java.lang.Long flatAmount)
The flat billing amount for an entire tier, regardless of the number of units in the tier.PriceCreateParams.Tier.Builder
setFlatAmountDecimal(java.math.BigDecimal flatAmountDecimal)
Same asflat_amount
, but accepts a decimal value representing an integer in the minor units of the currency.PriceCreateParams.Tier.Builder
setUnitAmount(java.lang.Long unitAmount)
The per unit billing amount for each individual unit for which this tier applies.PriceCreateParams.Tier.Builder
setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
Same asunit_amount
, but accepts a decimal value in %s with at most 12 decimal places.PriceCreateParams.Tier.Builder
setUpTo(PriceCreateParams.Tier.UpTo upTo)
Specifies the upper bound of this tier.PriceCreateParams.Tier.Builder
setUpTo(java.lang.Long upTo)
Specifies the upper bound of this tier.
-
-
-
Method Detail
-
build
public PriceCreateParams.Tier build()
Finalize and obtain parameter instance from this builder.
-
putExtraParam
public PriceCreateParams.Tier.Builder putExtraParam(java.lang.String key, java.lang.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. SeePriceCreateParams.Tier.extraParams
for the field documentation.
-
putAllExtraParam
public PriceCreateParams.Tier.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeePriceCreateParams.Tier.extraParams
for the field documentation.
-
setFlatAmount
public PriceCreateParams.Tier.Builder setFlatAmount(java.lang.Long flatAmount)
The flat billing amount for an entire tier, regardless of the number of units in the tier.
-
setFlatAmountDecimal
public PriceCreateParams.Tier.Builder setFlatAmountDecimal(java.math.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 PriceCreateParams.Tier.Builder setUnitAmount(java.lang.Long unitAmount)
The per unit billing amount for each individual unit for which this tier applies.
-
setUnitAmountDecimal
public PriceCreateParams.Tier.Builder setUnitAmountDecimal(java.math.BigDecimal unitAmountDecimal)
Same asunit_amount
, but accepts a decimal value in %s with at most 12 decimal places. Only one ofunit_amount
andunit_amount_decimal
can be set.
-
setUpTo
public PriceCreateParams.Tier.Builder setUpTo(PriceCreateParams.Tier.UpTo upTo)
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
public PriceCreateParams.Tier.Builder setUpTo(java.lang.Long upTo)
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.
-
-