Package com.stripe.param
Class SubscriptionCreateParams.Item
- java.lang.Object
-
- com.stripe.param.SubscriptionCreateParams.Item
-
- Enclosing class:
- SubscriptionCreateParams
public static class SubscriptionCreateParams.Item extends java.lang.ObjectIndicates if thebilling_cycle_anchorshould be reset when a threshold is reached. If true,billing_cycle_anchorwill be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionCreateParams.Item.BillingThresholdsstatic classSubscriptionCreateParams.Item.Builderstatic classSubscriptionCreateParams.Item.PriceDataUsage threshold that triggers the subscription to advance to a new billing period.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionCreateParams.Item.Builderbuilder()java.lang.ObjectgetBillingThresholds()Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.java.util.Map<java.lang.String,java.lang.Object>getExtraParams()Map of extra parameters for custom features not available in this client library.java.util.Map<java.lang.String,java.lang.String>getMetadata()Set of key-value pairs that you can attach to an object.java.lang.StringgetPlan()Plan ID for this item, as a string.java.lang.StringgetPrice()The ID of the price object.SubscriptionCreateParams.Item.PriceDatagetPriceData()Data used to generate a new Price object inline.java.lang.LonggetQuantity()Quantity for this item.java.lang.ObjectgetTaxRates()A list of Tax Rate ids.
-
-
-
Method Detail
-
builder
public static SubscriptionCreateParams.Item.Builder builder()
-
getBillingThresholds
public java.lang.Object getBillingThresholds()
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> 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@SerializedNamevalue. 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
public java.util.Map<java.lang.String,java.lang.String> 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata.
-
getPlan
public java.lang.String getPlan()
Plan ID for this item, as a string.
-
getPrice
public java.lang.String getPrice()
The ID of the price object.
-
getPriceData
public SubscriptionCreateParams.Item.PriceData getPriceData()
Data used to generate a new Price object inline.
-
getQuantity
public java.lang.Long getQuantity()
Quantity for this item.
-
getTaxRates
public java.lang.Object getTaxRates()
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rateson the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
-
-