Package com.stripe.param
Class PriceCreateParams.ProductData.Builder
- java.lang.Object
-
- com.stripe.param.PriceCreateParams.ProductData.Builder
-
- Enclosing class:
- PriceCreateParams.ProductData
public static class PriceCreateParams.ProductData.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PriceCreateParams.ProductData
build()
Finalize and obtain parameter instance from this builder.PriceCreateParams.ProductData.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.PriceCreateParams.ProductData.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.PriceCreateParams.ProductData.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.PriceCreateParams.ProductData.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.PriceCreateParams.ProductData.Builder
setActive(java.lang.Boolean active)
Whether the product is currently available for purchase.PriceCreateParams.ProductData.Builder
setId(java.lang.String id)
The identifier for the product.PriceCreateParams.ProductData.Builder
setName(java.lang.String name)
The product's name, meant to be displayable to the customer.PriceCreateParams.ProductData.Builder
setStatementDescriptor(java.lang.String statementDescriptor)
An arbitrary string to be displayed on your customer's credit card or bank statement.PriceCreateParams.ProductData.Builder
setTaxCode(java.lang.String taxCode)
A tax code ID.PriceCreateParams.ProductData.Builder
setUnitLabel(java.lang.String unitLabel)
-
-
-
Method Detail
-
build
public PriceCreateParams.ProductData build()
Finalize and obtain parameter instance from this builder.
-
setActive
public PriceCreateParams.ProductData.Builder setActive(java.lang.Boolean active)
Whether the product is currently available for purchase. Defaults totrue
.
-
putExtraParam
public PriceCreateParams.ProductData.Builder putExtraParam(java.lang.String key, java.lang.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. SeePriceCreateParams.ProductData.extraParams
for the field documentation.
-
putAllExtraParam
public PriceCreateParams.ProductData.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeePriceCreateParams.ProductData.extraParams
for the field documentation.
-
setId
public PriceCreateParams.ProductData.Builder setId(java.lang.String id)
The identifier for the product. Must be unique. If not provided, an identifier will be randomly generated.
-
putMetadata
public PriceCreateParams.ProductData.Builder putMetadata(java.lang.String key, java.lang.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. SeePriceCreateParams.ProductData.metadata
for the field documentation.
-
putAllMetadata
public PriceCreateParams.ProductData.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.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. SeePriceCreateParams.ProductData.metadata
for the field documentation.
-
setName
public PriceCreateParams.ProductData.Builder setName(java.lang.String name)
The product's name, meant to be displayable to the customer. Whenever this product is sold via a subscription, name will show up on associated invoice line item descriptions.
-
setStatementDescriptor
public PriceCreateParams.ProductData.Builder setStatementDescriptor(java.lang.String statementDescriptor)
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
public PriceCreateParams.ProductData.Builder setTaxCode(java.lang.String taxCode)
A tax code ID.
-
setUnitLabel
public PriceCreateParams.ProductData.Builder setUnitLabel(java.lang.String unitLabel)
-
-