Interface InventoryEntrySetReorderPointAction
- All Superinterfaces:
InventoryEntryUpdateAction,ResourceUpdateAction<InventoryEntryUpdateAction>
Sets the reorder point level for a specific InventoryEntry. When the stock reaches this level, a corresponding InventoryEntryReorderPoint Message is generated.
Example to create an instance using the builder pattern
InventoryEntrySetReorderPointAction inventoryEntrySetReorderPointAction = InventoryEntrySetReorderPointAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntrySetReorderPointAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntrySetReorderPointActionbuilder(InventoryEntrySetReorderPointAction template) create builder for InventoryEntrySetReorderPointAction instancecopyDeep()deepCopy(InventoryEntrySetReorderPointAction template) factory method to create a deep copy of InventoryEntrySetReorderPointActionSets the configured inventory stock level for reorder point.of()factory methodof(InventoryEntrySetReorderPointAction template) factory method to create a shallow copy InventoryEntrySetReorderPointActionvoidsetQuantity(Integer quantity) Sets the configured inventory stock level for reorder point.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetReorderPointAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.inventory.InventoryEntryUpdateAction
getAction, withInventoryEntryUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_REORDER_POINT
discriminator value for InventoryEntrySetReorderPointAction- See Also:
-
-
Method Details
-
getQuantity
Integer getQuantity()Sets the configured inventory stock level for reorder point. If the value is absent or
nullthe configured inventory stock level is removed.- Returns:
- quantity
-
setQuantity
Sets the configured inventory stock level for reorder point. If the value is absent or
nullthe configured inventory stock level is removed.- Parameters:
quantity- value to be set
-
of
factory method- Returns:
- instance of InventoryEntrySetReorderPointAction
-
of
factory method to create a shallow copy InventoryEntrySetReorderPointAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntrySetReorderPointAction copyDeep()- Specified by:
copyDeepin interfaceInventoryEntryUpdateAction
-
deepCopy
@Nullable static InventoryEntrySetReorderPointAction deepCopy(@Nullable InventoryEntrySetReorderPointAction template) factory method to create a deep copy of InventoryEntrySetReorderPointAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntrySetReorderPointAction- Returns:
- builder
-
builder
static InventoryEntrySetReorderPointActionBuilder builder(InventoryEntrySetReorderPointAction template) create builder for InventoryEntrySetReorderPointAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntrySetReorderPointAction
default <T> T withInventoryEntrySetReorderPointAction(Function<InventoryEntrySetReorderPointAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySetReorderPointAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-