Class PriceCreateParams.Tier.Builder

java.lang.Object
com.stripe.param.PriceCreateParams.Tier.Builder
Enclosing class:
PriceCreateParams.Tier

public static class PriceCreateParams.Tier.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public PriceCreateParams.Tier build()
      Finalize and obtain parameter instance from this builder.
    • putExtraParam

      public PriceCreateParams.Tier.Builder putExtraParam(String key, Object value)
      Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PriceCreateParams.Tier.extraParams for the field documentation.
    • putAllExtraParam

      public PriceCreateParams.Tier.Builder putAllExtraParam(Map<String,Object> map)
      Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. See PriceCreateParams.Tier.extraParams for the field documentation.
    • setFlatAmount

      public PriceCreateParams.Tier.Builder setFlatAmount(Long flatAmount)
      The flat billing amount for an entire tier, regardless of the number of units in the tier.
    • setFlatAmountDecimal

      public PriceCreateParams.Tier.Builder setFlatAmountDecimal(BigDecimal flatAmountDecimal)
      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.
    • setUnitAmount

      public PriceCreateParams.Tier.Builder setUnitAmount(Long unitAmount)
      The per unit billing amount for each individual unit for which this tier applies.
    • setUnitAmountDecimal

      public PriceCreateParams.Tier.Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal)
      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.
    • setUpTo

      Required. 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.
    • setUpTo

      public PriceCreateParams.Tier.Builder setUpTo(Long upTo)
      Required. 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.