Package com.stripe.param
Class SkuUpdateParams.Inventory.Builder
java.lang.Object
com.stripe.param.SkuUpdateParams.Inventory.Builder
- Enclosing class:
SkuUpdateParams.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. SeeSkuUpdateParams.Inventory.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. SeeSkuUpdateParams.Inventory.extraParamsfor the field documentation. -
setQuantity
The count of inventory available. Required iftypeisfinite. -
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 iftypeisbucket. -
setValue
An indicator of the inventory available. Possible values arein_stock,limited, andout_of_stock. Will be present if and only iftypeisbucket.
-