Package com.stripe.param
Class SubscriptionScheduleUpdateParams.Phase.Item.Builder
- java.lang.Object
-
- com.stripe.param.SubscriptionScheduleUpdateParams.Phase.Item.Builder
-
- Enclosing class:
- SubscriptionScheduleUpdateParams.Phase.Item
public static class SubscriptionScheduleUpdateParams.Phase.Item.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
build
public SubscriptionScheduleUpdateParams.Phase.Item 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
public SubscriptionScheduleUpdateParams.Phase.Item.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. SeeSubscriptionScheduleUpdateParams.Phase.Item.extraParams
for the field documentation.
-
putAllExtraParam
public SubscriptionScheduleUpdateParams.Phase.Item.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. SeeSubscriptionScheduleUpdateParams.Phase.Item.extraParams
for the field documentation.
-
setPlan
public SubscriptionScheduleUpdateParams.Phase.Item.Builder setPlan(java.lang.String plan)
The plan ID to subscribe to. You may specify the same ID inplan
andprice
.
-
setPlan
public SubscriptionScheduleUpdateParams.Phase.Item.Builder setPlan(EmptyParam plan)
The plan ID to subscribe to. You may specify the same ID inplan
andprice
.
-
setPrice
public SubscriptionScheduleUpdateParams.Phase.Item.Builder setPrice(java.lang.String price)
The ID of the price object.
-
setPrice
public SubscriptionScheduleUpdateParams.Phase.Item.Builder setPrice(EmptyParam price)
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
public SubscriptionScheduleUpdateParams.Phase.Item.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 SubscriptionScheduleUpdateParams.Phase.Item.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. SeeSubscriptionScheduleUpdateParams.Phase.Item.taxRates
for the field documentation.
-
addAllTaxRate
public SubscriptionScheduleUpdateParams.Phase.Item.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. SeeSubscriptionScheduleUpdateParams.Phase.Item.taxRates
for the field documentation.
-
setTaxRates
public SubscriptionScheduleUpdateParams.Phase.Item.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 SubscriptionScheduleUpdateParams.Phase.Item.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.
-
-