Package com.stripe.param
Class QuoteUpdateParams.Line.Action.SetItem.Builder
java.lang.Object
com.stripe.param.QuoteUpdateParams.Line.Action.SetItem.Builder
- Enclosing class:
- QuoteUpdateParams.Line.Action.SetItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `discounts` list.addAllTaxRate(List<String> elements) Add all elements to `taxRates` list.Add an element to `discounts` 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.putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata(String key, String value) Add a key/value pair to `metadata` map.setPrice(EmptyParam price) Required. The ID of the price object.Required. The ID of the price object.setQuantity(Long quantity) If an item with thepricealready exists, passing this will override the quantity on the subscription item that matches that price.If an item with thepricealready exists, passing this will override thetrialconfiguration on the subscription item that matches that price.setTrialOffer(EmptyParam trialOffer) The ID of the trial offer to apply to the configuration item.setTrialOffer(String trialOffer) The ID of the trial offer to apply to the configuration item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
public QuoteUpdateParams.Line.Action.SetItem.Builder addDiscount(QuoteUpdateParams.Line.Action.SetItem.Discount element) Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.Line.Action.SetItem.discountsfor the field documentation. -
addAllDiscount
public QuoteUpdateParams.Line.Action.SetItem.Builder addAllDiscount(List<QuoteUpdateParams.Line.Action.SetItem.Discount> elements) Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeQuoteUpdateParams.Line.Action.SetItem.discountsfor the field documentation. -
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. SeeQuoteUpdateParams.Line.Action.SetItem.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. SeeQuoteUpdateParams.Line.Action.SetItem.extraParamsfor the field documentation. -
putMetadata
Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.Line.Action.SetItem.metadatafor the field documentation. -
putAllMetadata
Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeQuoteUpdateParams.Line.Action.SetItem.metadatafor the field documentation. -
setPrice
Required. The ID of the price object. -
setPrice
Required. The ID of the price object. -
setQuantity
If an item with thepricealready exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, theitemsarray is cleared and a single new item is added with the suppliedquantity. -
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. SeeQuoteUpdateParams.Line.Action.SetItem.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. SeeQuoteUpdateParams.Line.Action.SetItem.taxRatesfor the field documentation. -
setTrial
public QuoteUpdateParams.Line.Action.SetItem.Builder setTrial(QuoteUpdateParams.Line.Action.SetItem.Trial trial) If an item with thepricealready exists, passing this will override thetrialconfiguration on the subscription item that matches that price. Otherwise, theitemsarray is cleared and a single new item is added with the suppliedtrial. -
setTrialOffer
The ID of the trial offer to apply to the configuration item. -
setTrialOffer
The ID of the trial offer to apply to the configuration item.
-