Package com.stripe.param.v2.billing
Class LicenseFeeUpdateParams.Builder
java.lang.Object
com.stripe.param.v2.billing.LicenseFeeUpdateParams.Builder
- Enclosing class:
- LicenseFeeUpdateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTier
(List<LicenseFeeUpdateParams.Tier> elements) Add all elements to `tiers` list.addTier
(LicenseFeeUpdateParams.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, Object> 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, EmptyParam value) Add a key/value pair to `metadata` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setDisplayName
(EmptyParam displayName) Required. A customer-facing name for the License Fee.setDisplayName
(String displayName) Required. A customer-facing name for the License Fee.setLiveVersion
(EmptyParam liveVersion) Changes the version that new license fee will use.setLiveVersion
(String liveVersion) Changes the version that new license fee will use.setLookupKey
(EmptyParam lookupKey) An internal key you can use to search for a particular license fee.setLookupKey
(String lookupKey) An internal key you can use to search for a particular license fee.setTieringMode
(LicenseFeeUpdateParams.TieringMode tieringMode) Defines whether the tiered price should be graduated or volume-based.setTransformQuantity
(LicenseFeeUpdateParams.TransformQuantity transformQuantity) Apply a transformation to the reported usage or set quantity before computing the amount billed.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.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. -
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. -
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. SeeLicenseFeeUpdateParams.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. SeeLicenseFeeUpdateParams.extraParams
for the field documentation. -
setLiveVersion
Changes the version that new license fee will use. Providinglive_version = "latest"
will set the license fee'slive_version
to its latest version. -
setLiveVersion
Changes the version that new license fee will use. Providinglive_version = "latest"
will set the license fee'slive_version
to its latest version. -
setLookupKey
An internal key you can use to search for a particular license fee. Maximum length of 200 characters. -
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. SeeLicenseFeeUpdateParams.metadata
for the field documentation. -
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. SeeLicenseFeeUpdateParams.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. Map values can only be one of the following types: `String`, `EmptyParam`. SeeLicenseFeeUpdateParams.metadata
for the field documentation. -
setTieringMode
public LicenseFeeUpdateParams.Builder setTieringMode(LicenseFeeUpdateParams.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. SeeLicenseFeeUpdateParams.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. SeeLicenseFeeUpdateParams.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
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. -
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.
-