public static class InvoiceUpcomingParams.SubscriptionItem.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InvoiceUpcomingParams.SubscriptionItem.Builder |
addAllTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `taxRates` list.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
addTaxRate(java.lang.String element)
Add an element to `taxRates` list.
|
InvoiceUpcomingParams.SubscriptionItem |
build()
Finalize and obtain parameter instance from this builder.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
putMetadata(java.lang.String key,
java.lang.String value)
Add a key/value pair to `metadata` map.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setBillingThresholds(InvoiceUpcomingParams.SubscriptionItem.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new
billing period.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setClearUsage(java.lang.Boolean clearUsage)
Delete all usage for a given subscription item.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setDeleted(java.lang.Boolean deleted)
A flag that, if set to
true , will delete the specified item. |
InvoiceUpcomingParams.SubscriptionItem.Builder |
setId(java.lang.String id)
Subscription item to update.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setMetadata(EmptyParam metadata)
Set of key-value pairs that you can
attach to an object.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Set of key-value pairs that you can
attach to an object.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setPlan(java.lang.String plan)
Plan ID for this item, as a string.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setPrice(java.lang.String price)
The ID of the price object.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setPriceData(InvoiceUpcomingParams.SubscriptionItem.PriceData priceData)
Data used to generate a new Price object
inline.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setQuantity(java.lang.Long quantity)
Quantity for this item.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setTaxRates(EmptyParam taxRates)
A list of Tax Rate ids.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setTaxRates(java.util.List<java.lang.String> taxRates)
A list of Tax Rate ids.
|
public InvoiceUpcomingParams.SubscriptionItem build()
public InvoiceUpcomingParams.SubscriptionItem.Builder setBillingThresholds(InvoiceUpcomingParams.SubscriptionItem.BillingThresholds billingThresholds)
public InvoiceUpcomingParams.SubscriptionItem.Builder setBillingThresholds(EmptyParam billingThresholds)
public InvoiceUpcomingParams.SubscriptionItem.Builder setClearUsage(java.lang.Boolean clearUsage)
deleted
is set to
true
and the current plan's usage_type
is metered
.public InvoiceUpcomingParams.SubscriptionItem.Builder setDeleted(java.lang.Boolean deleted)
true
, will delete the specified item.public InvoiceUpcomingParams.SubscriptionItem.Builder putExtraParam(java.lang.String key, java.lang.Object value)
InvoiceUpcomingParams.SubscriptionItem.extraParams
for the field documentation.public InvoiceUpcomingParams.SubscriptionItem.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
InvoiceUpcomingParams.SubscriptionItem.extraParams
for the field documentation.public InvoiceUpcomingParams.SubscriptionItem.Builder setId(java.lang.String id)
public InvoiceUpcomingParams.SubscriptionItem.Builder putMetadata(java.lang.String key, java.lang.String value)
InvoiceUpcomingParams.SubscriptionItem.metadata
for the field documentation.public InvoiceUpcomingParams.SubscriptionItem.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
InvoiceUpcomingParams.SubscriptionItem.metadata
for the field documentation.public InvoiceUpcomingParams.SubscriptionItem.Builder setMetadata(EmptyParam metadata)
metadata
.public InvoiceUpcomingParams.SubscriptionItem.Builder setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
.public InvoiceUpcomingParams.SubscriptionItem.Builder setPlan(java.lang.String plan)
public InvoiceUpcomingParams.SubscriptionItem.Builder setPrice(java.lang.String price)
public InvoiceUpcomingParams.SubscriptionItem.Builder setPriceData(InvoiceUpcomingParams.SubscriptionItem.PriceData priceData)
public InvoiceUpcomingParams.SubscriptionItem.Builder setQuantity(java.lang.Long quantity)
public InvoiceUpcomingParams.SubscriptionItem.Builder addTaxRate(java.lang.String element)
InvoiceUpcomingParams.SubscriptionItem.taxRates
for the field documentation.public InvoiceUpcomingParams.SubscriptionItem.Builder addAllTaxRate(java.util.List<java.lang.String> elements)
InvoiceUpcomingParams.SubscriptionItem.taxRates
for the field documentation.public InvoiceUpcomingParams.SubscriptionItem.Builder setTaxRates(EmptyParam taxRates)
default_tax_rates
on the Subscription. When updating, pass an empty string to remove
previously-defined tax rates.public InvoiceUpcomingParams.SubscriptionItem.Builder setTaxRates(java.util.List<java.lang.String> taxRates)
default_tax_rates
on the Subscription. When updating, pass an empty string to remove
previously-defined tax rates.