Package com.stripe.param
Class SubscriptionScheduleUpdateParams.Phase.Item.Builder
java.lang.Object
com.stripe.param.SubscriptionScheduleUpdateParams.Phase.Item.Builder
- Enclosing class:
SubscriptionScheduleUpdateParams.Phase.Item
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllTaxRate(List<String> elements) Add all elements to `taxRates` list.addTaxRate(String element) Add an element to `taxRates` list.build()Finalize and obtain parameter instance from this builder.putAllExtraParam(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.setBillingThresholds(EmptyParam billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.setBillingThresholds(SubscriptionScheduleUpdateParams.Phase.Item.BillingThresholds billingThresholds) Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.setPlan(EmptyParam plan) The plan ID to subscribe to.The plan ID to subscribe to.setPrice(EmptyParam price) The ID of the price object.The ID of the price object.Data used to generate a new Price object inline.setQuantity(Long quantity) Quantity for the given price.setTaxRates(EmptyParam taxRates) A list of Tax Rate ids.setTaxRates(List<String> taxRates) A list of Tax Rate ids.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setBillingThresholds
public SubscriptionScheduleUpdateParams.Phase.Item.Builder setBillingThresholds(SubscriptionScheduleUpdateParams.Phase.Item.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 SubscriptionScheduleUpdateParams.Phase.Item.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
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. SeeSubscriptionScheduleUpdateParams.Phase.Item.extraParamsfor the field documentation. -
putAllExtraParam
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. SeeSubscriptionScheduleUpdateParams.Phase.Item.extraParamsfor the field documentation. -
setPlan
The plan ID to subscribe to. You may specify the same ID inplanandprice. -
setPlan
The plan ID to subscribe to. You may specify the same ID inplanandprice. -
setPrice
The ID of the price object. -
setPrice
The ID of the price object. -
setPriceData
public SubscriptionScheduleUpdateParams.Phase.Item.Builder setPriceData(SubscriptionScheduleUpdateParams.Phase.Item.PriceData priceData) Data used to generate a new Price object inline. -
setQuantity
Quantity for the given price. Can be set only if the price'susage_typeislicensedand notmetered. -
addTaxRate
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. SeeSubscriptionScheduleUpdateParams.Phase.Item.taxRatesfor the field documentation. -
addAllTaxRate
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. SeeSubscriptionScheduleUpdateParams.Phase.Item.taxRatesfor the field documentation. -
setTaxRates
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rateson the Subscription. When updating, pass an empty string to remove previously-defined tax rates. -
setTaxRates
A list of Tax Rate ids. These Tax Rates will override thedefault_tax_rateson the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
-