public static class InvoiceUpcomingParams.SubscriptionItem
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
InvoiceUpcomingParams.SubscriptionItem.BillingThresholds |
static class |
InvoiceUpcomingParams.SubscriptionItem.Builder |
Modifier and Type | Method and Description |
---|---|
static InvoiceUpcomingParams.SubscriptionItem.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.String |
getId()
Subscription item to update.
|
java.lang.Object |
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.Long |
getQuantity()
Quantity for this item.
|
java.lang.Object |
getTaxRates()
A list of Tax Rate ids.
|
public static InvoiceUpcomingParams.SubscriptionItem.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.String getId()
public java.lang.Object getMetadata()
metadata
.public java.lang.String 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.