public static class InvoiceUpcomingParams.SubscriptionItem.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
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 |
setPlan(java.lang.String plan)
Plan ID for this item, as a string.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setQuantity(java.lang.Long quantity)
Quantity for this item.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setTaxRates(EmptyParam taxRates)
The tax rates which apply to this `subscription_item`.
|
InvoiceUpcomingParams.SubscriptionItem.Builder |
setTaxRates(java.util.List<java.lang.String> taxRates)
The tax rates which apply to this `subscription_item`.
|
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)
public InvoiceUpcomingParams.SubscriptionItem.Builder setDeleted(java.lang.Boolean deleted)
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 setPlan(java.lang.String plan)
public InvoiceUpcomingParams.SubscriptionItem.Builder setQuantity(java.lang.Long quantity)
public InvoiceUpcomingParams.SubscriptionItem.Builder setTaxRates(EmptyParam taxRates)
public InvoiceUpcomingParams.SubscriptionItem.Builder setTaxRates(java.util.List<java.lang.String> taxRates)