Package com.stripe.param.terminal
Class ReaderSetReaderDisplayParams.Cart.Builder
java.lang.Object
com.stripe.param.terminal.ReaderSetReaderDisplayParams.Cart.Builder
- Enclosing class:
- ReaderSetReaderDisplayParams.Cart
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `lineItems` list.Add an element to `lineItems` 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.setCurrency
(String currency) Required. Three-letter ISO currency code, in lowercase.The amount of tax in cents.Required. Total balance of cart due in cents.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCurrency
Required. Three-letter ISO currency code, in lowercase. Must be a supported currency. -
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. SeeReaderSetReaderDisplayParams.Cart.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. SeeReaderSetReaderDisplayParams.Cart.extraParams
for the field documentation. -
addLineItem
public ReaderSetReaderDisplayParams.Cart.Builder addLineItem(ReaderSetReaderDisplayParams.Cart.LineItem element) Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeReaderSetReaderDisplayParams.Cart.lineItems
for the field documentation. -
addAllLineItem
public ReaderSetReaderDisplayParams.Cart.Builder addAllLineItem(List<ReaderSetReaderDisplayParams.Cart.LineItem> elements) Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeReaderSetReaderDisplayParams.Cart.lineItems
for the field documentation. -
setTax
The amount of tax in cents. -
setTotal
Required. Total balance of cart due in cents.
-