Package com.stripe.model.v2.billing
Class LicenseFee
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.LicenseFee
- All Implemented Interfaces:
HasId,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about Tier, please refer to the API Reference.static classApply a transformation to the reported usage or set quantity before computing the amount billed. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanWhether this License Fee is active.Timestamp of when the object was created.Three-letter ISO currency code, in lowercase.A customer-facing name for the license fee.getId()Unique identifier for the object.The ID of the license fee's most recently created version.A Licensed Item represents a billable item whose pricing is based on license fees.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.The ID of the License Fee Version that will be used by all subscriptions when no specific version is specified.An internal key you can use to search for a particular License Fee.Set of key-value pairs that you can attach to an object.String representing the object's type.The interval for assessing service.The length of the interval for assessing service.The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.Defines whether the tiering price should be graduated or volume-based.getTiers()Each element represents a pricing tier.Apply a transformation to the reported usage or set quantity before computing the amount billed.The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal places.inthashCode()voidWhether this License Fee is active.voidsetCreated(Instant created) Timestamp of when the object was created.voidsetCurrency(String currency) Three-letter ISO currency code, in lowercase.voidsetDisplayName(String displayName) A customer-facing name for the license fee.voidUnique identifier for the object.voidsetLatestVersion(String latestVersion) The ID of the license fee's most recently created version.voidsetLicensedItem(LicensedItem licensedItem) A Licensed Item represents a billable item whose pricing is based on license fees.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetLiveVersion(String liveVersion) The ID of the License Fee Version that will be used by all subscriptions when no specific version is specified.voidsetLookupKey(String lookupKey) An internal key you can use to search for a particular License Fee.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetServiceInterval(String serviceInterval) The interval for assessing service.voidsetServiceIntervalCount(Long serviceIntervalCount) The length of the interval for assessing service.voidsetTaxBehavior(String taxBehavior) The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.voidsetTieringMode(String tieringMode) Defines whether the tiering price should be graduated or volume-based.voidsetTiers(List<LicenseFee.Tier> tiers) Each element represents a pricing tier.voidsetTransformQuantity(LicenseFee.TransformQuantity transformQuantity) Apply a transformation to the reported usage or set quantity before computing the amount billed.voidsetUnitAmount(String unitAmount) The per-unit amount to be charged, represented as a decimal string in minor currency units with at most 12 decimal places.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
LicenseFee
public LicenseFee()
-
-
Method Details
-
getActive
Whether this License Fee is active. Inactive License Fees cannot be used in new activations or be modified. -
getCreated
Timestamp of when the object was created. -
getCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
getDisplayName
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. -
getLatestVersion
The ID of the license fee's most recently created version. -
getLicensedItem
A Licensed Item represents a billable item whose pricing is based on license fees. You can use license fees to specify the pricing and create subscriptions to these items. -
getLiveVersion
The ID of the License Fee Version that will be used by all subscriptions when no specific version is specified. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getLookupKey
An internal key you can use to search for a particular License Fee. Maximum length of 200 characters. -
getMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.license_fee. -
getServiceInterval
The interval for assessing service.One of
day,month,week, oryear. -
getServiceIntervalCount
The length of the interval for assessing service. For example, set this to 3 andservice_intervalto"month"in order to specify quarterly service. -
getTaxBehavior
The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.One of
exclusive, orinclusive. -
getTieringMode
Defines whether the tiering 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 iftiersis set.One of
graduated, orvolume. -
getTiers
Each element represents a pricing tier. Cannot be set ifunit_amountis provided. -
getTransformQuantity
Apply a transformation to the reported usage or set quantity before computing the amount billed. -
getUnitAmount
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 iftiersis provided. -
setActive
Whether this License Fee is active. Inactive License Fees cannot be used in new activations or be modified. -
setCreated
Timestamp of when the object was created. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
setDisplayName
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. -
setId
Unique identifier for the object. -
setLatestVersion
The ID of the license fee's most recently created version. -
setLicensedItem
A Licensed Item represents a billable item whose pricing is based on license fees. You can use license fees to specify the pricing and create subscriptions to these items. -
setLiveVersion
The ID of the License Fee Version that will be used by all subscriptions when no specific version is specified. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setLookupKey
An internal key you can use to search for a particular License Fee. Maximum length of 200 characters. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.license_fee. -
setServiceInterval
The interval for assessing service.One of
day,month,week, oryear. -
setServiceIntervalCount
The length of the interval for assessing service. For example, set this to 3 andservice_intervalto"month"in order to specify quarterly service. -
setTaxBehavior
The Stripe Tax tax behavior - whether the license fee is inclusive or exclusive of tax.One of
exclusive, orinclusive. -
setTieringMode
Defines whether the tiering 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 iftiersis set.One of
graduated, orvolume. -
setTiers
Each element represents a pricing tier. Cannot be set ifunit_amountis provided. -
setTransformQuantity
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 iftiersis provided. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-