public static class SubscriptionUpdateParams.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 |
SubscriptionUpdateParams.Item.BillingThresholds |
static class |
SubscriptionUpdateParams.Item.Builder |
Modifier and Type | Method and Description |
---|---|
static SubscriptionUpdateParams.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.lang.Boolean |
getClearUsage()
Delete all usage for a given subscription item.
|
java.lang.Boolean |
getDeleted()
A flag that, if set to
true , will delete the specified item. |
java.util.Map<java.lang.String,java.lang.Object> |
getExtraParams()
Map of extra parameters for custom features not available in this client library.
|
java.lang.Object |
getId()
Subscription item to update.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
Set of key-value pairs that you can attach to an object.
|
java.lang.Object |
getPlan()
Plan ID for this item, as a string.
|
java.lang.Long |
getQuantity()
Quantity for this item.
|
java.lang.Object |
getTaxRates()
A list of Tax Rate ids.
|
public static SubscriptionUpdateParams.Item.Builder builder()
public java.lang.Object getBillingThresholds()
public java.lang.Boolean getClearUsage()
deleted
is set to
true
and the current plan's usage_type
is metered
.public java.lang.Boolean getDeleted()
true
, will delete the specified item.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.lang.Object getId()
public java.util.Map<java.lang.String,java.lang.String> getMetadata()
metadata
.public java.lang.Object getPlan()
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.