public static class PlanCreateParams.Tier
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PlanCreateParams.Tier.Builder |
static class |
PlanCreateParams.Tier.UpTo |
Modifier and Type | Method and Description |
---|---|
static PlanCreateParams.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 PlanCreateParams.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()
public java.lang.Long getUnitAmount()
public java.math.BigDecimal getUnitAmountDecimal()
public java.lang.Object getUpTo()