Package com.stripe.model.v2.billing
Class RateCardCustomPricingUnitOverageRate
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.RateCardCustomPricingUnitOverageRate
- All Implemented Interfaces:
HasId,StripeObjectInterface
A rate card custom pricing unit overage rate defines the conversion rate from a custom pricing
unit to fiat currency when credits are exhausted. This enables automatic overage charges at a
configurable per-unit rate.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanTimestamp of when the object was created.The ID of the custom pricing unit this overage rate applies to.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.Set of key-value pairs that you can attach to an object.String representing the object's type.A one-time item represents a product that can be charged as a one-time line item, used for overage charges when custom pricing unit credits are exhausted.The ID of the Rate Card this overage rate belongs to.The ID of the Rate Card Version this overage rate was created on.The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places.inthashCode()voidsetCreated(Instant created) Timestamp of when the object was created.voidsetCustomPricingUnit(String customPricingUnit) The ID of the custom pricing unit this overage rate applies to.voidUnique identifier for the object.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidsetMetadata(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.voidString representing the object's type.voidsetOneTimeItem(OneTimeItem oneTimeItem) A one-time item represents a product that can be charged as a one-time line item, used for overage charges when custom pricing unit credits are exhausted.voidsetRateCard(String rateCard) The ID of the Rate Card this overage rate belongs to.voidsetRateCardVersion(String rateCardVersion) The ID of the Rate Card Version this overage rate was created on.voidsetUnitAmount(String unitAmount) The per-unit amount to charge for overages, 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
-
RateCardCustomPricingUnitOverageRate
public RateCardCustomPricingUnitOverageRate()
-
-
Method Details
-
getCreated
Timestamp of when the object was created. -
getCustomPricingUnit
The ID of the custom pricing unit this overage rate applies to. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
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_custom_pricing_unit_overage_rate. -
getOneTimeItem
A one-time item represents a product that can be charged as a one-time line item, used for overage charges when custom pricing unit credits are exhausted. -
getRateCard
The ID of the Rate Card this overage rate belongs to. -
getRateCardVersion
The ID of the Rate Card Version this overage rate was created on. -
getUnitAmount
The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places. -
setCreated
Timestamp of when the object was created. -
setCustomPricingUnit
The ID of the custom pricing unit this overage rate applies to. -
setId
Unique identifier for the object. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif 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. -
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_custom_pricing_unit_overage_rate. -
setOneTimeItem
A one-time item represents a product that can be charged as a one-time line item, used for overage charges when custom pricing unit credits are exhausted. -
setRateCard
The ID of the Rate Card this overage rate belongs to. -
setRateCardVersion
The ID of the Rate Card Version this overage rate was created on. -
setUnitAmount
The per-unit amount to charge for overages, represented as a decimal string in minor currency units with at most 12 decimal places. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-