Package com.stripe.param
Class SkuCreateParams.Inventory.Builder
java.lang.Object
com.stripe.param.SkuCreateParams.Inventory.Builder
- Enclosing class:
SkuCreateParams.Inventory
-
Constructor Summary
Constructors -
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setQuantity
(Long quantity) The count of inventory available.Inventory type.setValue
(EmptyParam value) An indicator of the inventory available.An indicator of the inventory available.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
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.Inventory.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. SeeSkuCreateParams.Inventory.extraParams
for the field documentation. -
setQuantity
The count of inventory available. Required iftype
isfinite
. -
setType
Inventory type. Possible values arefinite
,bucket
(not quantified), andinfinite
. -
setValue
An indicator of the inventory available. Possible values arein_stock
,limited
, andout_of_stock
. Will be present if and only iftype
isbucket
. -
setValue
An indicator of the inventory available. Possible values arein_stock
,limited
, andout_of_stock
. Will be present if and only iftype
isbucket
.
-