Package com.stripe.param
Class OrderCreateParams.LineItem.ProductData.Builder
java.lang.Object
com.stripe.param.OrderCreateParams.LineItem.ProductData.Builder
- Enclosing class:
- OrderCreateParams.LineItem.ProductData
-
Constructor Summary
Constructors -
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
(EmptyParam description) The product's description, meant to be displayable to the customer.setDescription
(String description) The product's description, meant to be displayable to the customer.Required. A unique identifier for this product.setImages
(EmptyParam images) A list of up to 8 URLs of images for this product, meant to be displayable to the customer.A list of up to 8 URLs of images for this product, meant to be displayable to the customer.setMetadata
(EmptyParam metadata) Set of key-value pairs that you can attach to an object.setMetadata
(Map<String, String> metadata) Set of key-value pairs that you can attach to an object.Required. The product's name, meant to be displayable to the customer.setPackageDimensions
(EmptyParam packageDimensions) The dimensions of this product for shipping purposes.setPackageDimensions
(OrderCreateParams.LineItem.ProductData.PackageDimensions packageDimensions) The dimensions of this product for shipping purposes.setShippable
(Boolean shippable) Whether this product is shipped (i.e., physical goods).setTaxCode
(EmptyParam taxCode) A tax code ID.setTaxCode
(String taxCode) A tax code ID.setUrl
(EmptyParam url) A URL of a publicly-accessible webpage for this product.A URL of a publicly-accessible webpage for this product.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDescription
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. -
setDescription
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
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. SeeOrderCreateParams.LineItem.ProductData.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. SeeOrderCreateParams.LineItem.ProductData.extraParams
for the field documentation. -
setId
Required. A unique identifier for this product.product_data
automatically creates a Product with this ID. If a Product with the same ID already exists, thenproduct_data
re-uses it to avoid duplicates. If any of the fields in the existing Product are different from the values inproduct_data
,product_data
updates the existing Product with the new information. So setproduct_data[id]
to the same string every time you sell the same product, but don't re-use the same string for different products. -
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. SeeOrderCreateParams.LineItem.ProductData.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. SeeOrderCreateParams.LineItem.ProductData.images
for the field documentation. -
setImages
A list of up to 8 URLs of images for this product, meant to be displayable to the customer. -
setImages
A list of up to 8 URLs of images for this product, meant to be displayable to the customer. -
putMetadata
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. SeeOrderCreateParams.LineItem.ProductData.metadata
for the field documentation. -
putAllMetadata
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. SeeOrderCreateParams.LineItem.ProductData.metadata
for the field documentation. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setMetadata
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value tometadata
. -
setName
Required. The product's name, meant to be displayable to the customer. -
setPackageDimensions
public OrderCreateParams.LineItem.ProductData.Builder setPackageDimensions(OrderCreateParams.LineItem.ProductData.PackageDimensions packageDimensions) The dimensions of this product for shipping purposes. -
setPackageDimensions
public OrderCreateParams.LineItem.ProductData.Builder setPackageDimensions(EmptyParam packageDimensions) The dimensions of this product for shipping purposes. -
setShippable
Whether this product is shipped (i.e., physical goods). -
setTaxCode
A tax code ID. -
setTaxCode
A tax code ID. -
setUrl
A URL of a publicly-accessible webpage for this product. -
setUrl
A URL of a publicly-accessible webpage for this product.
-