Class PlanCreateParams.Tier

  • Enclosing class:
    PlanCreateParams

    public static class PlanCreateParams.Tier
    extends java.lang.Object
    A label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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 in %s with at most 12 decimal places.
      java.lang.Object getUpTo()
      Specifies the upper bound of this tier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 @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 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 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 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 as unit_amount, but accepts a decimal value in %s with at most 12 decimal places. Only one of unit_amount and unit_amount_decimal can 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. Use inf to define a fallback tier.