Package com.stripe.param
Class QuoteCreateParams.Line.Action.AddItem.Builder
java.lang.Object
com.stripe.param.QuoteCreateParams.Line.Action.AddItem.Builder
- Enclosing class:
- QuoteCreateParams.Line.Action.AddItem
-
Constructor Summary
-
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.The ID of the price object.setQuantity
(Long quantity) Quantity for this item.Options that configure the trial on the subscription item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
public QuoteCreateParams.Line.Action.AddItem.Builder addDiscount(QuoteCreateParams.Line.Action.AddItem.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. SeeQuoteCreateParams.Line.Action.AddItem.discounts
for the field documentation. -
addAllDiscount
public QuoteCreateParams.Line.Action.AddItem.Builder addAllDiscount(List<QuoteCreateParams.Line.Action.AddItem.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. SeeQuoteCreateParams.Line.Action.AddItem.discounts
for 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. SeeQuoteCreateParams.Line.Action.AddItem.extraParams
for 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. SeeQuoteCreateParams.Line.Action.AddItem.extraParams
for 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. SeeQuoteCreateParams.Line.Action.AddItem.metadata
for 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. SeeQuoteCreateParams.Line.Action.AddItem.metadata
for the field documentation. -
setPrice
The ID of the price object. -
setQuantity
Quantity for this item. -
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. SeeQuoteCreateParams.Line.Action.AddItem.taxRates
for 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. SeeQuoteCreateParams.Line.Action.AddItem.taxRates
for the field documentation. -
setTrial
public QuoteCreateParams.Line.Action.AddItem.Builder setTrial(QuoteCreateParams.Line.Action.AddItem.Trial trial) Options that configure the trial on the subscription item.
-