Package com.stripe.param.v2.billing
Class LicenseFeeCreateParams.Builder
java.lang.Object
com.stripe.param.v2.billing.LicenseFeeCreateParams.Builder
- Enclosing class:
- LicenseFeeCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTier
(List<LicenseFeeCreateParams.Tier> elements) Add all elements to `tiers` list.addTier
(LicenseFeeCreateParams.Tier element) Add an element to `tiers` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.setDisplayName
(String displayName) Required. A customer-facing name for the License Fee.setLicensedItem
(String licensedItem) Required. The Licensed Item that this License Fee binds to.setLookupKey
(String lookupKey) An internal key you can use to search for a particular license fee.setServiceInterval
(LicenseFeeCreateParams.ServiceInterval serviceInterval) Required. The interval for assessing service.setServiceIntervalCount
(Integer serviceIntervalCount) Required. The length of the interval for assessing service.setTaxBehavior
(LicenseFeeCreateParams.TaxBehavior taxBehavior) Required. The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.setTieringMode
(LicenseFeeCreateParams.TieringMode tieringMode) Defines whether the tiered price should be graduated or volume-based.setTransformQuantity
(LicenseFeeCreateParams.TransformQuantity transformQuantity) Apply a transformation to the reported usage or set quantity before computing the amount billed.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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCurrency
Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDisplayName
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
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. SeeLicenseFeeCreateParams.extraParams
for the field documentation. -
putAllExtraParam
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. SeeLicenseFeeCreateParams.extraParams
for the field documentation. -
setLicensedItem
Required. The Licensed Item that this License Fee binds to. -
setLookupKey
An internal key you can use to search for a particular license fee. Maximum length of 200 characters. -
putMetadata
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. SeeLicenseFeeCreateParams.metadata
for the field documentation. -
putAllMetadata
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. SeeLicenseFeeCreateParams.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
Required. The length of the interval for assessing service. For example, set this to 3 andservice_interval
to"month"
in order to specify quarterly service. -
setTaxBehavior
public LicenseFeeCreateParams.Builder setTaxBehavior(LicenseFeeCreateParams.TaxBehavior taxBehavior) Required. The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax. -
setTieringMode
public LicenseFeeCreateParams.Builder setTieringMode(LicenseFeeCreateParams.TieringMode tieringMode) 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 iftiers
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. SeeLicenseFeeCreateParams.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. SeeLicenseFeeCreateParams.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
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 iftiers
is provided.
-