Package com.stripe.param
Class SubscriptionScheduleCreateParams.Phase.Plan.Builder
- java.lang.Object
-
- com.stripe.param.SubscriptionScheduleCreateParams.Phase.Plan.Builder
-
- Enclosing class:
- SubscriptionScheduleCreateParams.Phase.Plan
public static class SubscriptionScheduleCreateParams.Phase.Plan.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method 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.
-
-
-
Method Detail
-
build
public SubscriptionScheduleCreateParams.Phase.Plan build()
Finalize and obtain parameter instance from this builder.
-
setBillingThresholds
public 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. When updating, pass an empty string to remove previously-defined thresholds.
-
setBillingThresholds
public 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. When updating, pass an empty string to remove previously-defined thresholds.
-
putExtraParam
public SubscriptionScheduleCreateParams.Phase.Plan.Builder putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionScheduleCreateParams.Phase.Plan.extraParams
for the field documentation.
-
putAllExtraParam
public SubscriptionScheduleCreateParams.Phase.Plan.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSubscriptionScheduleCreateParams.Phase.Plan.extraParams
for the field documentation.
-
setPlan
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setPlan(java.lang.String plan)
The plan ID to subscribe to. You may specify the same ID inplan
andprice
.
-
setPrice
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setPrice(java.lang.String price)
The ID of the price object.
-
setPriceData
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setPriceData(SubscriptionScheduleCreateParams.Phase.Plan.PriceData priceData)
Data used to generate a new Price object inline.
-
setQuantity
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setQuantity(java.lang.Long quantity)
Quantity for the given price. Can be set only if the price'susage_type
islicensed
and notmetered
.
-
addTaxRate
public SubscriptionScheduleCreateParams.Phase.Plan.Builder addTaxRate(java.lang.String element)
Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleCreateParams.Phase.Plan.taxRates
for the field documentation.
-
addAllTaxRate
public SubscriptionScheduleCreateParams.Phase.Plan.Builder addAllTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSubscriptionScheduleCreateParams.Phase.Plan.taxRates
for the field documentation.
-
setTaxRates
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setTaxRates(EmptyParam taxRates)
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rates
on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
-
setTaxRates
public SubscriptionScheduleCreateParams.Phase.Plan.Builder setTaxRates(java.util.List<java.lang.String> taxRates)
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rates
on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
-
-