Class LicenseFeeUpdateParams.Builder

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

public static class LicenseFeeUpdateParams.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • build

      public LicenseFeeUpdateParams build()
      Finalize and obtain parameter instance from this builder.
    • setDisplayName

      public LicenseFeeUpdateParams.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.
    • setDisplayName

      public LicenseFeeUpdateParams.Builder setDisplayName(EmptyParam 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 LicenseFeeUpdateParams.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 LicenseFeeUpdateParams.extraParams for the field documentation.
    • putAllExtraParam

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

      public LicenseFeeUpdateParams.Builder setLiveVersion(String liveVersion)
      Changes the version that new license fee will use. Providing live_version = "latest" will set the license fee's live_version to its latest version.
    • setLiveVersion

      public LicenseFeeUpdateParams.Builder setLiveVersion(EmptyParam liveVersion)
      Changes the version that new license fee will use. Providing live_version = "latest" will set the license fee's live_version to its latest version.
    • setLookupKey

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

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

      public LicenseFeeUpdateParams.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 LicenseFeeUpdateParams.metadata for the field documentation.
    • putMetadata

      public LicenseFeeUpdateParams.Builder putMetadata(String key, EmptyParam 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 LicenseFeeUpdateParams.metadata for the field documentation.
    • putAllMetadata

      public LicenseFeeUpdateParams.Builder putAllMetadata(Map<String,Object> 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. Map values can only be one of the following types: `String`, `EmptyParam`. See LicenseFeeUpdateParams.metadata for the field documentation.
    • 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 LicenseFeeUpdateParams.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 LicenseFeeUpdateParams.tiers for the field documentation.
    • setTransformQuantity

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

      public LicenseFeeUpdateParams.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.
    • setUnitAmount

      public LicenseFeeUpdateParams.Builder setUnitAmount(EmptyParam 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.