Interface InventoryEntrySafetyStockMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after InventoryEntry quantityOnStock reaches the configured safety stock level. For more information, see InventoryEntryStockLevels.
Example to create an instance using the builder pattern
InventoryEntrySafetyStockMessagePayload inventoryEntrySafetyStockMessagePayload = InventoryEntrySafetyStockMessagePayload.builder()
.sku("{sku}")
.quantityOnStock(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntrySafetyStockMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntrySafetyStockMessagePayloadcreate builder for InventoryEntrySafetyStockMessagePayload instancecopyDeep()factory method to create a deep copy of InventoryEntrySafetyStockMessagePayload@NotNull IntegerThequantityOnStockof the InventoryEntry at the time the safety stock level was reached.@NotNull StringgetSku()@Valid ChannelReferenceReference to the Channel where the InventoryEntryquantityOnStockreached the configured safety stock level.of()factory methodof(InventoryEntrySafetyStockMessagePayload template) factory method to create a shallow copy InventoryEntrySafetyStockMessagePayloadvoidsetQuantityOnStock(Integer quantityOnStock) ThequantityOnStockof the InventoryEntry at the time the safety stock level was reached.voidvoidsetSupplyChannel(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntryquantityOnStockreached the configured safety stock level.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntrySafetyStockMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInventoryEntrySafetyStockMessagePayload(Function<InventoryEntrySafetyStockMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
INVENTORY_ENTRY_SAFETY_STOCK
discriminator value for InventoryEntrySafetyStockMessagePayload- See Also:
-
-
Method Details
-
getSku
The
skuof the InventoryEntry whosequantityOnStockreached the configured safety stock level.- Returns:
- sku
-
getQuantityOnStock
The
quantityOnStockof the InventoryEntry at the time the safety stock level was reached.- Returns:
- quantityOnStock
-
getSupplyChannel
Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured safety stock level.- Returns:
- supplyChannel
-
setSku
The
skuof the InventoryEntry whosequantityOnStockreached the configured safety stock level.- Parameters:
sku- value to be set
-
setQuantityOnStock
The
quantityOnStockof the InventoryEntry at the time the safety stock level was reached.- Parameters:
quantityOnStock- value to be set
-
setSupplyChannel
Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured safety stock level.- Parameters:
supplyChannel- value to be set
-
of
factory method- Returns:
- instance of InventoryEntrySafetyStockMessagePayload
-
of
factory method to create a shallow copy InventoryEntrySafetyStockMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntrySafetyStockMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static InventoryEntrySafetyStockMessagePayload deepCopy(@Nullable InventoryEntrySafetyStockMessagePayload template) factory method to create a deep copy of InventoryEntrySafetyStockMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntrySafetyStockMessagePayload- Returns:
- builder
-
builder
static InventoryEntrySafetyStockMessagePayloadBuilder builder(InventoryEntrySafetyStockMessagePayload template) create builder for InventoryEntrySafetyStockMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntrySafetyStockMessagePayload
default <T> T withInventoryEntrySafetyStockMessagePayload(Function<InventoryEntrySafetyStockMessagePayload, 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<InventoryEntrySafetyStockMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-