Package com.stripe.param
Class PriceCreateParams.ProductData.Builder
java.lang.Object
com.stripe.param.PriceCreateParams.ProductData.Builder
- Enclosing class:
- PriceCreateParams.ProductData
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
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 currently available for purchase.The identifier for the product.Required. The product's name, meant to be displayable to the customer.setStatementDescriptor
(String statementDescriptor) An arbitrary string to be displayed on your customer's credit card or bank statement.setTaxCode
(String taxCode) A tax code ID.setUnitLabel
(String unitLabel)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setActive
Whether the product is currently available for purchase. Defaults totrue
. -
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. SeePriceCreateParams.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. SeePriceCreateParams.ProductData.extraParams
for the field documentation. -
setId
The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated. -
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. SeePriceCreateParams.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. SeePriceCreateParams.ProductData.metadata
for the field documentation. -
setName
Required. The product's name, meant to be displayable to the customer. -
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. -
setTaxCode
A tax code ID. -
setUnitLabel
-