Interface InventoryEntryReorderPointMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after InventoryEntry quantityOnStock reaches the configured reorder point level. For more information, see InventoryEntryStockLevels.
Example to create an instance using the builder pattern
InventoryEntryReorderPointMessagePayload inventoryEntryReorderPointMessagePayload = InventoryEntryReorderPointMessagePayload.builder()
.sku("{sku}")
.quantityOnStock(0.3)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntryReorderPointMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntryReorderPointMessagePayloadcreate builder for InventoryEntryReorderPointMessagePayload instancecopyDeep()factory method to create a deep copy of InventoryEntryReorderPointMessagePayload@NotNull IntegerThequantityOnStockof the InventoryEntry at the time the reorder point level was reached.@NotNull StringgetSku()@Valid ChannelReferenceReference to the Channel where the InventoryEntryquantityOnStockreached the configured reorder point level.of()factory methodof(InventoryEntryReorderPointMessagePayload template) factory method to create a shallow copy InventoryEntryReorderPointMessagePayloadvoidsetQuantityOnStock(Integer quantityOnStock) ThequantityOnStockof the InventoryEntry at the time the reorder point level was reached.voidvoidsetSupplyChannel(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntryquantityOnStockreached the configured reorder point level.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryReorderPointMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInventoryEntryReorderPointMessagePayload(Function<InventoryEntryReorderPointMessagePayload, 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_REORDER_POINT
discriminator value for InventoryEntryReorderPointMessagePayload- See Also:
-
-
Method Details
-
getSku
The
skuof the InventoryEntry whosequantityOnStockreached the configured reorder point level.- Returns:
- sku
-
getQuantityOnStock
The
quantityOnStockof the InventoryEntry at the time the reorder point level was reached.- Returns:
- quantityOnStock
-
getSupplyChannel
Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured reorder point level.- Returns:
- supplyChannel
-
setSku
The
skuof the InventoryEntry whosequantityOnStockreached the configured reorder point level.- Parameters:
sku- value to be set
-
setQuantityOnStock
The
quantityOnStockof the InventoryEntry at the time the reorder point level was reached.- Parameters:
quantityOnStock- value to be set
-
setSupplyChannel
Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured reorder point level.- Parameters:
supplyChannel- value to be set
-
of
factory method- Returns:
- instance of InventoryEntryReorderPointMessagePayload
-
of
static InventoryEntryReorderPointMessagePayload of(InventoryEntryReorderPointMessagePayload template) factory method to create a shallow copy InventoryEntryReorderPointMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntryReorderPointMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static InventoryEntryReorderPointMessagePayload deepCopy(@Nullable InventoryEntryReorderPointMessagePayload template) factory method to create a deep copy of InventoryEntryReorderPointMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryReorderPointMessagePayload- Returns:
- builder
-
builder
static InventoryEntryReorderPointMessagePayloadBuilder builder(InventoryEntryReorderPointMessagePayload template) create builder for InventoryEntryReorderPointMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryReorderPointMessagePayload
default <T> T withInventoryEntryReorderPointMessagePayload(Function<InventoryEntryReorderPointMessagePayload, 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<InventoryEntryReorderPointMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-