Package com.stripe.param
Class PriceCreateParams.Tier
- java.lang.Object
-
- com.stripe.param.PriceCreateParams.Tier
-
- Enclosing class:
- PriceCreateParams
public static class PriceCreateParams.Tier extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPriceCreateParams.Tier.Builderstatic classPriceCreateParams.Tier.UpTo
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PriceCreateParams.Tier.Builderbuilder()java.util.Map<java.lang.String,java.lang.Object>getExtraParams()Map of extra parameters for custom features not available in this client library.java.lang.LonggetFlatAmount()The flat billing amount for an entire tier, regardless of the number of units in the tier.java.math.BigDecimalgetFlatAmountDecimal()Same asflat_amount, but accepts a decimal value representing an integer in the minor units of the currency.java.lang.LonggetUnitAmount()The per unit billing amount for each individual unit for which this tier applies.java.math.BigDecimalgetUnitAmountDecimal()Same asunit_amount, but accepts a decimal value in %s with at most 12 decimal places.java.lang.ObjectgetUpTo()Specifies the upper bound of this tier.
-
-
-
Method Detail
-
builder
public static PriceCreateParams.Tier.Builder builder()
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> 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@SerializedNamevalue. 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
public java.lang.Long getFlatAmount()
The flat billing amount for an entire tier, regardless of the number of units in the tier.
-
getFlatAmountDecimal
public java.math.BigDecimal getFlatAmountDecimal()
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.
-
getUnitAmount
public java.lang.Long getUnitAmount()
The per unit billing amount for each individual unit for which this tier applies.
-
getUnitAmountDecimal
public java.math.BigDecimal getUnitAmountDecimal()
Same asunit_amount, but accepts a decimal value in %s with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
-
getUpTo
public java.lang.Object getUpTo()
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.
-
-