Package com.stripe.model.v2.billing
Class LicenseFeeVersion
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.LicenseFeeVersion
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about Tier, please refer to the API Reference.static class
For more details about TransformQuantity, please refer to the API Reference. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Timestamp of when the object was created.getId()
Unique identifier for the object.The ID of the parent License Fee.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.String representing the object's type.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.int
hashCode()
void
setCreated
(Instant created) Timestamp of when the object was created.void
Unique identifier for the object.void
setLicenseFeeId
(String licenseFeeId) The ID of the parent License Fee.void
setLivemode
(Boolean livemode) Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.void
String representing the object's type.void
setTieringMode
(String tieringMode) Defines whether the tiering price should be graduated or volume-based.void
setTiers
(List<LicenseFeeVersion.Tier> tiers) Each element represents a pricing tier.void
setTransformQuantity
(LicenseFeeVersion.TransformQuantity transformQuantity) Apply a transformation to the reported usage or set quantity before computing the amount billed.void
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.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
LicenseFeeVersion
public LicenseFeeVersion()
-
-
Method Details
-
getCreated
Timestamp of when the object was created. -
getLicenseFeeId
The ID of the parent License Fee. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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_version
. -
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 iftiers
is set.One of
graduated
, orvolume
. -
getTiers
Each element represents a pricing tier. Cannot be set ifunit_amount
is 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 iftiers
is provided. -
setCreated
Timestamp of when the object was created. -
setId
Unique identifier for the object. -
setLicenseFeeId
The ID of the parent License Fee. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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_version
. -
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 iftiers
is set.One of
graduated
, orvolume
. -
setTiers
Each element represents a pricing tier. Cannot be set ifunit_amount
is 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 iftiers
is provided. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-