Package com.stripe.param
Class ProductUpdateParams.Builder
java.lang.Object
com.stripe.param.ProductUpdateParams.Builder
- Enclosing class:
- ProductUpdateParams
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand
(List<String> elements) Add all elements to `expand` list.addAllImage
(List<String> elements) Add all elements to `images` list.Add all elements to `marketingFeatures` list.Add an element to `expand` list.Add an element to `images` list.Add an element to `marketingFeatures` 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.Whether the product is available for purchase.setDefaultPrice
(EmptyParam defaultPrice) The ID of the Price object that is the default price for this product.setDefaultPrice
(String defaultPrice) The ID of the Price object that is the default price for this product.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.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.setMarketingFeatures
(EmptyParam marketingFeatures) A list of up to 15 marketing features for this product.setMarketingFeatures
(List<ProductUpdateParams.MarketingFeature> marketingFeatures) A list of up to 15 marketing features for this product.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.setName
(EmptyParam name) The product's name, meant to be displayable to the customer.The product's name, meant to be displayable to the customer.setPackageDimensions
(EmptyParam packageDimensions) The dimensions of this product for shipping purposes.setPackageDimensions
(ProductUpdateParams.PackageDimensions packageDimensions) The dimensions of this product for shipping purposes.setShippable
(Boolean shippable) Whether this product is shipped (i.e., physical goods).setStatementDescriptor
(EmptyParam statementDescriptor) An arbitrary string to be displayed on your customer's credit card or bank statement.setStatementDescriptor
(String statementDescriptor) An arbitrary string to be displayed on your customer's credit card or bank statement.setTaxCode
(EmptyParam taxCode) A tax code ID.setTaxCode
(String taxCode) A tax code ID.setUnitLabel
(EmptyParam unitLabel) A label that represents units of this product.setUnitLabel
(String unitLabel) A label that represents units of this product.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. -
setActive
Whether the product is available for purchase. -
setDefaultPrice
The ID of the Price object that is the default price for this product. -
setDefaultPrice
The ID of the Price object that is the default price for this product. -
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. -
addExpand
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeProductUpdateParams.expand
for the field documentation. -
addAllExpand
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeProductUpdateParams.expand
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. SeeProductUpdateParams.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. SeeProductUpdateParams.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. SeeProductUpdateParams.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. SeeProductUpdateParams.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. -
addMarketingFeature
public ProductUpdateParams.Builder addMarketingFeature(ProductUpdateParams.MarketingFeature element) Add an element to `marketingFeatures` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeProductUpdateParams.marketingFeatures
for the field documentation. -
addAllMarketingFeature
public ProductUpdateParams.Builder addAllMarketingFeature(List<ProductUpdateParams.MarketingFeature> elements) Add all elements to `marketingFeatures` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeProductUpdateParams.marketingFeatures
for the field documentation. -
setMarketingFeatures
A list of up to 15 marketing features for this product. These are displayed in pricing tables. -
setMarketingFeatures
public ProductUpdateParams.Builder setMarketingFeatures(List<ProductUpdateParams.MarketingFeature> marketingFeatures) A list of up to 15 marketing features for this product. These are displayed in pricing tables. -
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. SeeProductUpdateParams.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. SeeProductUpdateParams.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
The product's name, meant to be displayable to the customer. -
setName
The product's name, meant to be displayable to the customer. -
setPackageDimensions
public ProductUpdateParams.Builder setPackageDimensions(ProductUpdateParams.PackageDimensions packageDimensions) The dimensions of this product for shipping purposes. -
setPackageDimensions
The dimensions of this product for shipping purposes. -
setShippable
Whether this product is shipped (i.e., physical goods). -
setStatementDescriptor
An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.This may be up to 22 characters. The statement description may not include
<
,>
,\
,"
,'
characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. It must contain at least one letter. May only be set iftype=service
. Only used for subscription payments. -
setStatementDescriptor
An arbitrary string to be displayed on your customer's credit card or bank statement. While most banks display this information consistently, some may display it incorrectly or not at all.This may be up to 22 characters. The statement description may not include
<
,>
,\
,"
,'
characters, and will appear on your customer's statement in capital letters. Non-ASCII characters are automatically stripped. It must contain at least one letter. May only be set iftype=service
. Only used for subscription payments. -
setTaxCode
A tax code ID. -
setTaxCode
A tax code ID. -
setUnitLabel
A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set iftype=service
. -
setUnitLabel
A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. May only be set iftype=service
. -
setUrl
A URL of a publicly-accessible webpage for this product. -
setUrl
A URL of a publicly-accessible webpage for this product.
-