Class LicenseFeeCreateParams.Tier.Builder

java.lang.Object
com.stripe.param.v2.billing.LicenseFeeCreateParams.Tier.Builder
Enclosing class:
LicenseFeeCreateParams.Tier

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

    • Builder

      public Builder()
  • Method Details

    • build

      Finalize and obtain parameter instance from this builder.
    • putExtraParam

      public LicenseFeeCreateParams.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 LicenseFeeCreateParams.Tier.extraParams for the field documentation.
    • putAllExtraParam

      public LicenseFeeCreateParams.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 LicenseFeeCreateParams.Tier.extraParams for the field documentation.
    • setFlatAmount

      public LicenseFeeCreateParams.Tier.Builder setFlatAmount(String flatAmount)
      Price for the entire tier, represented as a decimal string in minor currency units with at most 12 decimal places.
    • setUnitAmount

      public LicenseFeeCreateParams.Tier.Builder setUnitAmount(String unitAmount)
      Per-unit price for units included in this tier, represented as a decimal string in minor currency units with at most 12 decimal places.
    • setUpToDecimal

      public LicenseFeeCreateParams.Tier.Builder setUpToDecimal(String upToDecimal)
      Up to and including this quantity will be contained in the tier. Only one of up_to_decimal and up_to_inf may be set.
    • setUpToInf

      No upper bound to this tier. Only one of up_to_decimal and up_to_inf may be set.