Package com.stripe.param
Class QuoteUpdateParams.LineItem.Builder
- java.lang.Object
-
- com.stripe.param.QuoteUpdateParams.LineItem.Builder
-
- Enclosing class:
- QuoteUpdateParams.LineItem
public static class QuoteUpdateParams.LineItem.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QuoteUpdateParams.LineItem.Builder
addAllTaxRate(java.util.List<java.lang.String> elements)
Add all elements to `taxRates` list.QuoteUpdateParams.LineItem.Builder
addTaxRate(java.lang.String element)
Add an element to `taxRates` list.QuoteUpdateParams.LineItem
build()
Finalize and obtain parameter instance from this builder.QuoteUpdateParams.LineItem.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.QuoteUpdateParams.LineItem.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.QuoteUpdateParams.LineItem.Builder
setId(EmptyParam id)
The ID of an existing line item on the quote.QuoteUpdateParams.LineItem.Builder
setId(java.lang.String id)
The ID of an existing line item on the quote.QuoteUpdateParams.LineItem.Builder
setPrice(EmptyParam price)
The ID of the price object.QuoteUpdateParams.LineItem.Builder
setPrice(java.lang.String price)
The ID of the price object.QuoteUpdateParams.LineItem.Builder
setPriceData(QuoteUpdateParams.LineItem.PriceData priceData)
Data used to generate a new Price object inline.QuoteUpdateParams.LineItem.Builder
setQuantity(java.lang.Long quantity)
The quantity of the line item.QuoteUpdateParams.LineItem.Builder
setTaxRates(EmptyParam taxRates)
The tax rates which apply to the line item.QuoteUpdateParams.LineItem.Builder
setTaxRates(java.util.List<java.lang.String> taxRates)
The tax rates which apply to the line item.
-
-
-
Method Detail
-
build
public QuoteUpdateParams.LineItem build()
Finalize and obtain parameter instance from this builder.
-
putExtraParam
public QuoteUpdateParams.LineItem.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. SeeQuoteUpdateParams.LineItem.extraParams
for the field documentation.
-
putAllExtraParam
public QuoteUpdateParams.LineItem.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. SeeQuoteUpdateParams.LineItem.extraParams
for the field documentation.
-
setId
public QuoteUpdateParams.LineItem.Builder setId(java.lang.String id)
The ID of an existing line item on the quote.
-
setId
public QuoteUpdateParams.LineItem.Builder setId(EmptyParam id)
The ID of an existing line item on the quote.
-
setPrice
public QuoteUpdateParams.LineItem.Builder setPrice(java.lang.String price)
The ID of the price object. One ofprice
orprice_data
is required.
-
setPrice
public QuoteUpdateParams.LineItem.Builder setPrice(EmptyParam price)
The ID of the price object. One ofprice
orprice_data
is required.
-
setPriceData
public QuoteUpdateParams.LineItem.Builder setPriceData(QuoteUpdateParams.LineItem.PriceData priceData)
-
setQuantity
public QuoteUpdateParams.LineItem.Builder setQuantity(java.lang.Long quantity)
The quantity of the line item.
-
addTaxRate
public QuoteUpdateParams.LineItem.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. SeeQuoteUpdateParams.LineItem.taxRates
for the field documentation.
-
addAllTaxRate
public QuoteUpdateParams.LineItem.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. SeeQuoteUpdateParams.LineItem.taxRates
for the field documentation.
-
setTaxRates
public QuoteUpdateParams.LineItem.Builder setTaxRates(EmptyParam taxRates)
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
public QuoteUpdateParams.LineItem.Builder setTaxRates(java.util.List<java.lang.String> taxRates)
The tax rates which apply to the line item. When set, thedefault_tax_rates
on the quote do not apply to this line item.
-
-