public static class PriceCreateParams.Tier
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PriceCreateParams.Tier.Builder |
static class |
PriceCreateParams.Tier.UpTo |
Modifier and Type | Method and Description |
---|---|
static PriceCreateParams.Tier.Builder |
builder() |
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.Long |
getFlatAmount()
The flat billing amount for an entire tier, regardless of the number of units in the tier.
|
java.math.BigDecimal |
getFlatAmountDecimal()
Same as
flat_amount , but accepts a decimal value representing an integer in the minor
units of the currency. |
java.lang.Long |
getUnitAmount()
The per unit billing amount for each individual unit for which this tier applies.
|
java.math.BigDecimal |
getUnitAmountDecimal()
Same as
unit_amount , but accepts a decimal value with at most 12 decimal places. |
java.lang.Object |
getUpTo()
Specifies the upper bound of this tier.
|
public static PriceCreateParams.Tier.Builder builder()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@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.public java.lang.Long getFlatAmount()
public java.math.BigDecimal getFlatAmountDecimal()
flat_amount
, but accepts a decimal value representing an integer in the minor
units of the currency. Only one of flat_amount
and flat_amount_decimal
can be
set.public java.lang.Long getUnitAmount()
public java.math.BigDecimal getUnitAmountDecimal()
unit_amount
, but accepts a decimal value with at most 12 decimal places. Only
one of unit_amount
and unit_amount_decimal
can be set.public java.lang.Object getUpTo()
inf
to define a fallback tier.