Package com.stripe.param.checkout
Class SessionCreateParams.LineItem.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.LineItem.Builder
- Enclosing class:
- SessionCreateParams.LineItem
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllDynamicTaxRate
(List<String> elements) Add all elements to `dynamicTaxRates` list.addAllTaxRate
(List<String> elements) Add all elements to `taxRates` list.addDynamicTaxRate
(String element) Add an element to `dynamicTaxRates` 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.setAdjustableQuantity
(SessionCreateParams.LineItem.AdjustableQuantity adjustableQuantity) When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout.Data used to generate a new Price object inline.setQuantity
(Long quantity) The quantity of the line item being purchased.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAdjustableQuantity
public SessionCreateParams.LineItem.Builder setAdjustableQuantity(SessionCreateParams.LineItem.AdjustableQuantity adjustableQuantity) When set, provides configuration for this item’s quantity to be adjusted by the customer during Checkout. -
addDynamicTaxRate
Add an element to `dynamicTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.LineItem.dynamicTaxRates
for the field documentation. -
addAllDynamicTaxRate
Add all elements to `dynamicTaxRates` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.LineItem.dynamicTaxRates
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. SeeSessionCreateParams.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. SeeSessionCreateParams.LineItem.extraParams
for the field documentation. -
setPrice
-
setPriceData
public SessionCreateParams.LineItem.Builder setPriceData(SessionCreateParams.LineItem.PriceData priceData) -
setQuantity
The quantity of the line item being purchased. Quantity should not be defined whenrecurring.usage_type=metered
. -
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. SeeSessionCreateParams.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. SeeSessionCreateParams.LineItem.taxRates
for the field documentation.
-