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.addAllImage
(List<String> elements) Add all elements to `images` list.addAllTaxRate
(List<String> elements) Add all elements to `taxRates` list.addDynamicTaxRate
(String element) Add an element to `dynamicTaxRates` list.Add an element to `images` 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.[Deprecated] The amount to be collected per unit of the line item.setCurrency
(String currency) [Deprecated] Three-letter ISO currency code, in lowercase.setDescription
(String description) [Deprecated] The description for the line item, to be displayed on the Checkout page.[Deprecated] The name for the item to be displayed on the Checkout page.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. -
setAmount
[Deprecated] The amount to be collected per unit of the line item. If specified, must also passcurrency
andname
. -
setCurrency
[Deprecated] Three-letter ISO currency code, in lowercase. Must be a supported currency. Required ifamount
is passed. -
setDescription
[Deprecated] The description for the line item, to be displayed on the Checkout page. -
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. -
addImage
Add an element to `images` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.LineItem.images
for the field documentation. -
addAllImage
Add all elements to `images` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.LineItem.images
for the field documentation. -
setName
[Deprecated] The name for the item to be displayed on the Checkout page. Required ifamount
is passed. -
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.
-