Class PriceUpdateParams.CurrencyOption.Tier

Enclosing class:

public static class PriceUpdateParams.CurrencyOption.Tier extends Object
The starting unit amount which can be updated by the customer.
  • Method Details

    • builder

    • getExtraParams

      public Map<String,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 @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

      public Long getFlatAmount()
      The flat billing amount for an entire tier, regardless of the number of units in the tier.
    • getFlatAmountDecimal

      public Object getFlatAmountDecimal()
      Same as 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.
    • getUnitAmount

      public Long getUnitAmount()
      The per unit billing amount for each individual unit for which this tier applies.
    • getUnitAmountDecimal

      public Object getUnitAmountDecimal()
      Same as unit_amount, but accepts a decimal value in cents (or local equivalent) with at most 12 decimal places. Only one of unit_amount and unit_amount_decimal can be set.
    • getUpTo

      public 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. Use inf to define a fallback tier.