Interface InventoryEntryQuantitySetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Quantity, Remove Quantity or Change Quantity update action. Inventory changes as a result of Order creation do not trigger this message.
Example to create an instance using the builder pattern
InventoryEntryQuantitySetMessagePayload inventoryEntryQuantitySetMessagePayload = InventoryEntryQuantitySetMessagePayload.builder()
.oldQuantityOnStock(0.3)
.newQuantityOnStock(0.3)
.oldAvailableQuantity(0.3)
.newAvailableQuantity(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for InventoryEntryQuantitySetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for InventoryEntryQuantitySetMessagePayloadcreate builder for InventoryEntryQuantitySetMessagePayload instancefactory method to create a deep copy of InventoryEntryQuantitySetMessagePayload@NotNull Long
Available quantity for the InventoryEntry after the quantity was updated.@NotNull Long
Quantity on stock for the InventoryEntry after the quantity was updated.@NotNull Long
Available quantity for the InventoryEntry before the quantity was updated.@NotNull Long
Quantity on stock for the InventoryEntry before the quantity was updated.@Valid ChannelReference
Reference to the Channel where the InventoryEntry quantity was set.of()
factory methodof
(InventoryEntryQuantitySetMessagePayload template) factory method to create a shallow copy InventoryEntryQuantitySetMessagePayloadvoid
setNewAvailableQuantity
(Long newAvailableQuantity) Available quantity for the InventoryEntry after the quantity was updated.void
setNewQuantityOnStock
(Long newQuantityOnStock) Quantity on stock for the InventoryEntry after the quantity was updated.void
setOldAvailableQuantity
(Long oldAvailableQuantity) Available quantity for the InventoryEntry before the quantity was updated.void
setOldQuantityOnStock
(Long oldQuantityOnStock) Quantity on stock for the InventoryEntry before the quantity was updated.void
setSupplyChannel
(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry quantity was set.static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryQuantitySetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withInventoryEntryQuantitySetMessagePayload
(Function<InventoryEntryQuantitySetMessagePayload, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
INVENTORY_ENTRY_QUANTITY_SET
discriminator value for InventoryEntryQuantitySetMessagePayload- See Also:
-
-
Method Details
-
getOldQuantityOnStock
Quantity on stock for the InventoryEntry before the quantity was updated.
- Returns:
- oldQuantityOnStock
-
getNewQuantityOnStock
Quantity on stock for the InventoryEntry after the quantity was updated.
- Returns:
- newQuantityOnStock
-
getOldAvailableQuantity
Available quantity for the InventoryEntry before the quantity was updated.
- Returns:
- oldAvailableQuantity
-
getNewAvailableQuantity
Available quantity for the InventoryEntry after the quantity was updated.
- Returns:
- newAvailableQuantity
-
getSupplyChannel
Reference to the Channel where the InventoryEntry quantity was set.
- Returns:
- supplyChannel
-
setOldQuantityOnStock
Quantity on stock for the InventoryEntry before the quantity was updated.
- Parameters:
oldQuantityOnStock
- value to be set
-
setNewQuantityOnStock
Quantity on stock for the InventoryEntry after the quantity was updated.
- Parameters:
newQuantityOnStock
- value to be set
-
setOldAvailableQuantity
Available quantity for the InventoryEntry before the quantity was updated.
- Parameters:
oldAvailableQuantity
- value to be set
-
setNewAvailableQuantity
Available quantity for the InventoryEntry after the quantity was updated.
- Parameters:
newAvailableQuantity
- value to be set
-
setSupplyChannel
Reference to the Channel where the InventoryEntry quantity was set.
- Parameters:
supplyChannel
- value to be set
-
of
factory method- Returns:
- instance of InventoryEntryQuantitySetMessagePayload
-
of
factory method to create a shallow copy InventoryEntryQuantitySetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static InventoryEntryQuantitySetMessagePayload deepCopy(@Nullable InventoryEntryQuantitySetMessagePayload template) factory method to create a deep copy of InventoryEntryQuantitySetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryQuantitySetMessagePayload- Returns:
- builder
-
builder
static InventoryEntryQuantitySetMessagePayloadBuilder builder(InventoryEntryQuantitySetMessagePayload template) create builder for InventoryEntryQuantitySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryQuantitySetMessagePayload
default <T> T withInventoryEntryQuantitySetMessagePayload(Function<InventoryEntryQuantitySetMessagePayload, 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<InventoryEntryQuantitySetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-