Class LicenseFeeCreateParams.Builder

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

public static class LicenseFeeCreateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public LicenseFeeCreateParams build()
      Finalize and obtain parameter instance from this builder.
    • setCurrency

      public LicenseFeeCreateParams.Builder setCurrency(String currency)
      Required. Three-letter ISO currency code, in lowercase. Must be a supported currency.
    • setDisplayName

      public LicenseFeeCreateParams.Builder setDisplayName(String displayName)
      Required. A customer-facing name for the License Fee. This name is used in Stripe-hosted products like the Customer Portal and Checkout. It does not show up on Invoices. Maximum length of 250 characters.
    • putExtraParam

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

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

      public LicenseFeeCreateParams.Builder setLicensedItem(String licensedItem)
      Required. The Licensed Item that this License Fee binds to.
    • setLookupKey

      public LicenseFeeCreateParams.Builder setLookupKey(String lookupKey)
      An internal key you can use to search for a particular license fee. Maximum length of 200 characters.
    • putMetadata

      public LicenseFeeCreateParams.Builder putMetadata(String key, String value)
      Add a key/value pair to `metadata` 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.metadata for the field documentation.
    • putAllMetadata

      public LicenseFeeCreateParams.Builder putAllMetadata(Map<String,String> map)
      Add all map key/value pairs to `metadata` 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.metadata for the field documentation.
    • setServiceInterval

      public LicenseFeeCreateParams.Builder setServiceInterval(LicenseFeeCreateParams.ServiceInterval serviceInterval)
      Required. The interval for assessing service. For example, a monthly license fee with a rate of $1 for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads during a month of service." This is similar to but distinct from billing interval; the service interval deals with the rate at which the customer accumulates fees, while the billing interval in Cadence deals with the rate the customer is billed.
    • setServiceIntervalCount

      public LicenseFeeCreateParams.Builder setServiceIntervalCount(Integer serviceIntervalCount)
      Required. The length of the interval for assessing service. For example, set this to 3 and service_interval to "month" in order to specify quarterly service.
    • setTaxBehavior

      Required. The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.
    • setTieringMode

      Defines whether the tiered price should be graduated or volume-based. In volume-based tiering, the maximum quantity within a period determines the per-unit price. In graduated tiering, the pricing changes as the quantity grows into new tiers. Can only be set if tiers is set.
    • addTier

      Add an element to `tiers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See LicenseFeeCreateParams.tiers for the field documentation.
    • addAllTier

      Add all elements to `tiers` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. See LicenseFeeCreateParams.tiers for the field documentation.
    • setTransformQuantity

      public LicenseFeeCreateParams.Builder setTransformQuantity(LicenseFeeCreateParams.TransformQuantity transformQuantity)
      Apply a transformation to the reported usage or set quantity before computing the amount billed.
    • setUnitAmount

      public LicenseFeeCreateParams.Builder setUnitAmount(String unitAmount)
      The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal places. Cannot be set if tiers is provided.