Package com.stripe.param.checkout
Class SessionCreateParams.LineItem.PriceData.ProductData.Builder
java.lang.Object
com.stripe.param.checkout.SessionCreateParams.LineItem.PriceData.ProductData.Builder
- Enclosing class:
- SessionCreateParams.LineItem.PriceData.ProductData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllImage
(List<String> elements) Add all elements to `images` list.Add an element to `images` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setDescription
(String description) The product's description, meant to be displayable to the customer.Required. The product's name, meant to be displayable to the customer.setTaxCode
(String taxCode) A tax code ID.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDescription
public SessionCreateParams.LineItem.PriceData.ProductData.Builder setDescription(String description) The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes. -
putExtraParam
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putExtraParam(String key, 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. SeeSessionCreateParams.LineItem.PriceData.ProductData.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putAllExtraParam(Map<String, 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. SeeSessionCreateParams.LineItem.PriceData.ProductData.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.PriceData.ProductData.images
for the field documentation. -
addAllImage
public SessionCreateParams.LineItem.PriceData.ProductData.Builder addAllImage(List<String> elements) 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.PriceData.ProductData.images
for the field documentation. -
putMetadata
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putMetadata(String key, String value) Add a key/value pair to `metadata` 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.PriceData.ProductData.metadata
for the field documentation. -
putAllMetadata
public SessionCreateParams.LineItem.PriceData.ProductData.Builder putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` 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.PriceData.ProductData.metadata
for the field documentation. -
setName
Required. The product's name, meant to be displayable to the customer. -
setTaxCode
A tax code ID.
-