public static class SubscriptionScheduleCreateParams.Phase.Plan.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
addAllTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `taxRates` list.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
addTaxRate(java.lang.String element)
Add an element to `taxRates` list.
|
SubscriptionScheduleCreateParams.Phase.Plan |
build()
Finalize and obtain parameter instance from this builder.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a
new billing period.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setBillingThresholds(SubscriptionScheduleCreateParams.Phase.Plan.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a
new billing period.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setPlan(java.lang.String plan)
The plan ID to subscribe to.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setPrice(java.lang.String price)
The ID of the price object.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setPriceData(SubscriptionScheduleCreateParams.Phase.Plan.PriceData priceData)
Data used to generate a new price object inline.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setQuantity(java.lang.Long quantity)
Quantity for the given price.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setTaxRates(EmptyParam taxRates)
A list of Tax Rate ids.
|
SubscriptionScheduleCreateParams.Phase.Plan.Builder |
setTaxRates(java.util.List<java.lang.String> taxRates)
A list of Tax Rate ids.
|
public SubscriptionScheduleCreateParams.Phase.Plan build()
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setBillingThresholds(SubscriptionScheduleCreateParams.Phase.Plan.BillingThresholds billingThresholds)
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setBillingThresholds(EmptyParam billingThresholds)
public SubscriptionScheduleCreateParams.Phase.Plan.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SubscriptionScheduleCreateParams.Phase.Plan.extraParams
for the field
documentation.public SubscriptionScheduleCreateParams.Phase.Plan.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SubscriptionScheduleCreateParams.Phase.Plan.extraParams
for the field
documentation.public SubscriptionScheduleCreateParams.Phase.Plan.Builder setPlan(java.lang.String plan)
plan
and price
.public SubscriptionScheduleCreateParams.Phase.Plan.Builder setPrice(java.lang.String price)
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setPriceData(SubscriptionScheduleCreateParams.Phase.Plan.PriceData priceData)
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setQuantity(java.lang.Long quantity)
usage_type
is licensed
and not metered
.public SubscriptionScheduleCreateParams.Phase.Plan.Builder addTaxRate(java.lang.String element)
SubscriptionScheduleCreateParams.Phase.Plan.taxRates
for the field documentation.public SubscriptionScheduleCreateParams.Phase.Plan.Builder addAllTaxRate(java.util.List<java.lang.String> elements)
SubscriptionScheduleCreateParams.Phase.Plan.taxRates
for the field documentation.public SubscriptionScheduleCreateParams.Phase.Plan.Builder setTaxRates(EmptyParam taxRates)
default_tax_rates
on the Subscription. When updating, pass an empty string to remove
previously-defined tax rates.public SubscriptionScheduleCreateParams.Phase.Plan.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.