Package com.stripe.model.v2.billing
Class RateCardRate
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.RateCardRate
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
For more details about CustomPricingUnitAmount, please refer to the API Reference.static 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.The custom pricing unit that this rate binds to.getId()
Unique identifier for the object.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.Set of key-value pairs that you can attach to an object.The Metered Item that this rate binds to.String representing the object's type.The ID of the Rate Card it belongs to.The ID of the Rate Card Version it was created on.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
setCustomPricingUnitAmount
(RateCardRate.CustomPricingUnitAmount customPricingUnitAmount) The custom pricing unit that this rate binds to.void
Unique identifier for the object.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
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
setMeteredItem
(MeteredItem meteredItem) The Metered Item that this rate binds to.void
String representing the object's type.void
setRateCard
(String rateCard) The ID of the Rate Card it belongs to.void
setRateCardVersion
(String rateCardVersion) The ID of the Rate Card Version it was created on.void
setTieringMode
(String tieringMode) Defines whether the tiering price should be graduated or volume-based.void
setTiers
(List<RateCardRate.Tier> tiers) Each element represents a pricing tier.void
setTransformQuantity
(RateCardRate.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
-
RateCardRate
public RateCardRate()
-
-
Method Details
-
getCreated
Timestamp of when the object was created. -
getCustomPricingUnitAmount
The custom pricing unit that this rate binds to. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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. -
getMeteredItem
The Metered Item that this rate binds to. -
getObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.rate_card_rate
. -
getRateCard
The ID of the Rate Card it belongs to. -
getRateCardVersion
The ID of the Rate Card Version it was created on. -
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. -
setCustomPricingUnitAmount
public void setCustomPricingUnitAmount(RateCardRate.CustomPricingUnitAmount customPricingUnitAmount) The custom pricing unit that this rate binds to. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
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. -
setMeteredItem
The Metered Item that this rate binds to. -
setObject
String representing the object's type. Objects of the same type share the same value of the object field.Equal to
v2.billing.rate_card_rate
. -
setRateCard
The ID of the Rate Card it belongs to. -
setRateCardVersion
The ID of the Rate Card Version it was created on. -
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.
-