public static class SubscriptionCreateParams.Item
extends java.lang.Object
billing_cycle_anchor
should be reset when a threshold is reached.
If true, billing_cycle_anchor
will be updated to the date/time the threshold was
last reached; otherwise, the value will remain unchanged.Modifier and Type | Class and Description |
---|---|
static class |
SubscriptionCreateParams.Item.BillingThresholds |
static class |
SubscriptionCreateParams.Item.Builder |
static class |
SubscriptionCreateParams.Item.PriceData
Usage threshold that triggers the subscription to advance to a new billing period.
|
Modifier and Type | Method and Description |
---|---|
static SubscriptionCreateParams.Item.Builder |
builder() |
java.lang.Object |
getBillingThresholds()
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.String |
getPlan()
Plan ID for this item, as a string.
|
java.lang.String |
getPrice()
The ID of the price object.
|
SubscriptionCreateParams.Item.PriceData |
getPriceData()
Data used to generate a new Price object
inline.
|
java.lang.Long |
getQuantity()
Quantity for this item.
|
java.lang.Object |
getTaxRates()
A list of Tax Rate ids.
|
public static SubscriptionCreateParams.Item.Builder builder()
public java.lang.Object getBillingThresholds()
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@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.public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.String getPlan()
public java.lang.String getPrice()
public SubscriptionCreateParams.Item.PriceData getPriceData()
public java.lang.Long getQuantity()
public java.lang.Object getTaxRates()
default_tax_rates
on the Subscription. When updating, pass an empty string to remove
previously-defined tax rates.