Class RateCreateParams
java.lang.Object
com.stripe.net.ApiRequestParams
com.stripe.param.v2.billing.ratecards.RateCreateParams
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Required. The unit value for the custom pricing unit, as a string.static enum
static class
Nested classes/interfaces inherited from class com.stripe.net.ApiRequestParams
ApiRequestParams.EnumParam
-
Field Summary
Fields inherited from class com.stripe.net.ApiRequestParams
EXTRA_PARAMS_KEY
-
Method Summary
Modifier and TypeMethodDescriptionstatic RateCreateParams.Builder
builder()
protected boolean
boolean
The custom pricing unit that this rate binds to.Map of extra parameters for custom features not available in this client library.Set of key-value pairs that you can attach to an object.The Metered Item that this rate binds to.getPrice()
The ID of the price object to take price information from.Defines whether the tiered 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()
Methods inherited from class com.stripe.net.ApiRequestParams
paramsToMap, toMap
-
Method Details
-
builder
-
getCustomPricingUnitAmount
The custom pricing unit that this rate binds to. -
getExtraParams
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedName
value. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance. -
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. -
getPrice
The ID of the price object to take price information from. The price must have the same interval as the rate card. Updates to the Price will not be reflected in the Rate Card or its rates. -
getTieringMode
Defines whether the tiered 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. -
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. -
equals
-
canEqual
-
hashCode
public int hashCode()
-