Package com.stripe.model.v2.billing
Class RateCard
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.v2.billing.RateCard
- All Implemented Interfaces:
HasId
,StripeObjectInterface
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Whether this RateCard is active.Timestamp of when the object was created.Three-letter ISO currency code, in lowercase.A customer-facing name for the Rate Card.getId()
Unique identifier for the object.The ID of this rate card's most recently created version.Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode.The ID of the Rate Card 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 RateCard.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 rates are inclusive or exclusive of tax.int
hashCode()
void
Whether this RateCard is active.void
setCreated
(Instant created) Timestamp of when the object was created.void
setCurrency
(String currency) Three-letter ISO currency code, in lowercase.void
setDisplayName
(String displayName) A customer-facing name for the Rate Card.void
Unique identifier for the object.void
setLatestVersion
(String latestVersion) The ID of this rate card's most recently created version.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
setLiveVersion
(String liveVersion) The ID of the Rate Card Version that will be used by all subscriptions when no specific version is specified.void
setLookupKey
(String lookupKey) An internal key you can use to search for a particular RateCard.void
setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.void
String representing the object's type.void
setServiceInterval
(String serviceInterval) The interval for assessing service.void
setServiceIntervalCount
(Integer serviceIntervalCount) The length of the interval for assessing service.void
setTaxBehavior
(String taxBehavior) The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
RateCard
public RateCard()
-
-
Method Details
-
getActive
Whether this RateCard is active. Inactive RateCards cannot be used in new activations or have new rates added. -
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 Rate Card. 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 this rate card's most recently created version. -
getLiveVersion
The ID of the Rate Card Version that will be used by all subscriptions when no specific version is specified. -
getLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
getLookupKey
An internal key you can use to search for a particular RateCard. 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.rate_card
. -
getServiceInterval
The interval for assessing service. For example, a monthly Rate Card with a rate of $1 for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads during a month of service." This is similar to but distinct from billing interval; the service interval deals with the rate at which the customer accumulates fees, while the billing interval in Cadence deals with the rate the customer is billed.One of
day
,month
,week
, oryear
. -
getServiceIntervalCount
The length of the interval for assessing service. For example, set this to 3 andservice_interval
to"month"
in order to specify quarterly service. -
getTaxBehavior
The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.One of
exclusive
, orinclusive
. -
setActive
Whether this RateCard is active. Inactive RateCards cannot be used in new activations or have new rates added. -
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 Rate Card. 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 this rate card's most recently created version. -
setLiveVersion
The ID of the Rate Card Version that will be used by all subscriptions when no specific version is specified. -
setLivemode
Has the valuetrue
if the object exists in live mode or the valuefalse
if the object exists in test mode. -
setLookupKey
An internal key you can use to search for a particular RateCard. 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.rate_card
. -
setServiceInterval
The interval for assessing service. For example, a monthly Rate Card with a rate of $1 for the first 10 "workloads" and $2 thereafter means "$1 per workload up to 10 workloads during a month of service." This is similar to but distinct from billing interval; the service interval deals with the rate at which the customer accumulates fees, while the billing interval in Cadence deals with the rate the customer is billed.One of
day
,month
,week
, oryear
. -
setServiceIntervalCount
The length of the interval for assessing service. For example, set this to 3 andservice_interval
to"month"
in order to specify quarterly service. -
setTaxBehavior
The Stripe Tax tax behavior - whether the rates are inclusive or exclusive of tax.One of
exclusive
, orinclusive
. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-