Package com.stripe.param
Class QuoteUpdateParams.LineItem.Builder
java.lang.Object
com.stripe.param.QuoteUpdateParams.LineItem.Builder
- Enclosing class:
- QuoteUpdateParams.LineItem
-
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setDiscounts
(EmptyParam discounts) The discounts applied to this line item.setDiscounts
(List<QuoteUpdateParams.LineItem.Discount> discounts) The discounts applied to this line item.setId
(EmptyParam id) The ID of an existing line item on the quote.The ID of an existing line item on the quote.setPrice
(EmptyParam price) The ID of the price object.The ID of the price object.setPriceData
(QuoteUpdateParams.LineItem.PriceData priceData) Data used to generate a new Price object inline.setQuantity
(Long quantity) The quantity of the line item.setTaxRates
(EmptyParam taxRates) The tax rates which apply to the line item.setTaxRates
(List<String> taxRates) The tax rates which apply to the line item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
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.LineItem.discounts
for the field documentation. -
addAllDiscount
public QuoteUpdateParams.LineItem.Builder addAllDiscount(List<QuoteUpdateParams.LineItem.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.LineItem.discounts
for the field documentation. -
setDiscounts
The discounts applied to this line item. -
setDiscounts
public QuoteUpdateParams.LineItem.Builder setDiscounts(List<QuoteUpdateParams.LineItem.Discount> discounts) The discounts applied to this line item. -
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.LineItem.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. SeeQuoteUpdateParams.LineItem.extraParams
for the field documentation. -
setId
The ID of an existing line item on the quote. -
setId
The ID of an existing line item on the quote. -
setPrice
The ID of the price object. One ofprice
orprice_data
is required. -
setPrice
The ID of the price object. One ofprice
orprice_data
is required. -
setPriceData
public QuoteUpdateParams.LineItem.Builder setPriceData(QuoteUpdateParams.LineItem.PriceData priceData) -
setQuantity
The quantity of the line 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. SeeQuoteUpdateParams.LineItem.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. SeeQuoteUpdateParams.LineItem.taxRates
for the field documentation. -
setTaxRates
The tax rates which apply to the line item. When set, thedefault_tax_rates
on the quote do not apply to this line item. -
setTaxRates
The tax rates which apply to the line item. When set, thedefault_tax_rates
on the quote do not apply to this line item.
-