Package com.stripe.param
Class SkuCreateParams.Builder
java.lang.Object
com.stripe.param.SkuCreateParams.Builder
- Enclosing class:
SkuCreateParams
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllExpand(List<String> elements) Add all elements to `expand` list.Add an element to `expand` list.build()Finalize and obtain parameter instance from this builder.putAllAttribute(Map<String, String> map) Add all map key/value pairs to `attributes` map.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.putAttribute(String key, String value) Add a key/value pair to `attributes` 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 SKU is available for purchase.setCurrency(String currency) Three-letter ISO currency code, in lowercase.The identifier for the SKU.The URL of an image for this SKU, meant to be displayable to the customer.setInventory(SkuCreateParams.Inventory inventory) Description of the SKU's inventory.setPackageDimensions(SkuCreateParams.PackageDimensions packageDimensions) The dimensions of this SKU for shipping purposes.The cost of the item as a nonnegative integer in the smallest currency unit (that is, 100 cents to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency).setProduct(String product) The ID of the product this SKU is associated with.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setActive
Whether the SKU is available for purchase. Default totrue. -
putAttribute
Add a key/value pair to `attributes` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSkuCreateParams.attributesfor the field documentation. -
putAllAttribute
Add all map key/value pairs to `attributes` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSkuCreateParams.attributesfor the field documentation. -
setCurrency
Three-letter ISO currency code, in lowercase. Must be a supported currency. -
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. SeeSkuCreateParams.expandfor 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. SeeSkuCreateParams.expandfor 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. SeeSkuCreateParams.extraParamsfor 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. SeeSkuCreateParams.extraParamsfor the field documentation. -
setId
The identifier for the SKU. Must be unique. If not provided, an identifier will be randomly generated. -
setImage
The URL of an image for this SKU, meant to be displayable to the customer. -
setInventory
Description of the SKU's inventory. -
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. SeeSkuCreateParams.metadatafor 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. SeeSkuCreateParams.metadatafor the field documentation. -
setPackageDimensions
public SkuCreateParams.Builder setPackageDimensions(SkuCreateParams.PackageDimensions packageDimensions) The dimensions of this SKU for shipping purposes. -
setPrice
The cost of the item as a nonnegative integer in the smallest currency unit (that is, 100 cents to charge $1.00, or 100 to charge ¥100, Japanese Yen being a zero-decimal currency). -
setProduct
The ID of the product this SKU is associated with. Must be a product with typegood.
-