Package com.stripe.param
Class SkuCreateParams.Inventory.Builder
- java.lang.Object
-
- com.stripe.param.SkuCreateParams.Inventory.Builder
-
- Enclosing class:
- SkuCreateParams.Inventory
public static class SkuCreateParams.Inventory.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SkuCreateParams.Inventorybuild()Finalize and obtain parameter instance from this builder.SkuCreateParams.Inventory.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.SkuCreateParams.Inventory.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.SkuCreateParams.Inventory.BuildersetQuantity(java.lang.Long quantity)The count of inventory available.SkuCreateParams.Inventory.BuildersetType(SkuCreateParams.Inventory.Type type)Inventory type.SkuCreateParams.Inventory.BuildersetValue(EmptyParam value)An indicator of the inventory available.SkuCreateParams.Inventory.BuildersetValue(SkuCreateParams.Inventory.Value value)An indicator of the inventory available.
-
-
-
Method Detail
-
build
public SkuCreateParams.Inventory build()
Finalize and obtain parameter instance from this builder.
-
putExtraParam
public SkuCreateParams.Inventory.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. SeeSkuCreateParams.Inventory.extraParamsfor the field documentation.
-
putAllExtraParam
public SkuCreateParams.Inventory.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. SeeSkuCreateParams.Inventory.extraParamsfor the field documentation.
-
setQuantity
public SkuCreateParams.Inventory.Builder setQuantity(java.lang.Long quantity)
The count of inventory available. Required iftypeisfinite.
-
setType
public SkuCreateParams.Inventory.Builder setType(SkuCreateParams.Inventory.Type type)
Inventory type. Possible values arefinite,bucket(not quantified), andinfinite.
-
setValue
public SkuCreateParams.Inventory.Builder setValue(SkuCreateParams.Inventory.Value value)
An indicator of the inventory available. Possible values arein_stock,limited, andout_of_stock. Will be present if and only iftypeisbucket.
-
setValue
public SkuCreateParams.Inventory.Builder setValue(EmptyParam value)
An indicator of the inventory available. Possible values arein_stock,limited, andout_of_stock. Will be present if and only iftypeisbucket.
-
-