Class InventoryEntryQuantitySetMessagePayloadBuilder
- All Implemented Interfaces:
Builder<InventoryEntryQuantitySetMessagePayload>
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds InventoryEntryQuantitySetMessagePayload with checking for non-null required valuesbuilds InventoryEntryQuantitySetMessagePayload without checking for non-null required valuesAvailable quantity for the InventoryEntry after the quantity was updated.Quantity on stock for the InventoryEntry after the quantity was updated.Available quantity for the InventoryEntry before the quantity was updated.Quantity on stock for the InventoryEntry before the quantity was updated.Reference to the Channel where the InventoryEntry quantity was set.newAvailableQuantity
(Long newAvailableQuantity) Available quantity for the InventoryEntry after the quantity was updated.newQuantityOnStock
(Long newQuantityOnStock) Quantity on stock for the InventoryEntry after the quantity was updated.of()
factory method for an instance of InventoryEntryQuantitySetMessagePayloadBuilderof
(InventoryEntryQuantitySetMessagePayload template) create builder for InventoryEntryQuantitySetMessagePayload instanceoldAvailableQuantity
(Long oldAvailableQuantity) Available quantity for the InventoryEntry before the quantity was updated.oldQuantityOnStock
(Long oldQuantityOnStock) Quantity on stock for the InventoryEntry before the quantity was updated.supplyChannel
(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry quantity was set.Reference to the Channel where the InventoryEntry quantity was set.Reference to the Channel where the InventoryEntry quantity was set.
-
Constructor Details
-
InventoryEntryQuantitySetMessagePayloadBuilder
public InventoryEntryQuantitySetMessagePayloadBuilder()
-
-
Method Details
-
oldQuantityOnStock
Quantity on stock for the InventoryEntry before the quantity was updated.
- Parameters:
oldQuantityOnStock
- value to be set- Returns:
- Builder
-
newQuantityOnStock
Quantity on stock for the InventoryEntry after the quantity was updated.
- Parameters:
newQuantityOnStock
- value to be set- Returns:
- Builder
-
oldAvailableQuantity
public InventoryEntryQuantitySetMessagePayloadBuilder oldAvailableQuantity(Long oldAvailableQuantity) Available quantity for the InventoryEntry before the quantity was updated.
- Parameters:
oldAvailableQuantity
- value to be set- Returns:
- Builder
-
newAvailableQuantity
public InventoryEntryQuantitySetMessagePayloadBuilder newAvailableQuantity(Long newAvailableQuantity) Available quantity for the InventoryEntry after the quantity was updated.
- Parameters:
newAvailableQuantity
- value to be set- Returns:
- Builder
-
supplyChannel
public InventoryEntryQuantitySetMessagePayloadBuilder supplyChannel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Reference to the Channel where the InventoryEntry quantity was set.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public InventoryEntryQuantitySetMessagePayloadBuilder withSupplyChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Reference to the Channel where the InventoryEntry quantity was set.
- Parameters:
builder
- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public InventoryEntryQuantitySetMessagePayloadBuilder supplyChannel(@Nullable ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry quantity was set.
- Parameters:
supplyChannel
- value to be set- Returns:
- Builder
-
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
-
build
builds InventoryEntryQuantitySetMessagePayload with checking for non-null required values- Specified by:
build
in interfaceBuilder<InventoryEntryQuantitySetMessagePayload>
- Returns:
- InventoryEntryQuantitySetMessagePayload
-
buildUnchecked
builds InventoryEntryQuantitySetMessagePayload without checking for non-null required values- Returns:
- InventoryEntryQuantitySetMessagePayload
-
of
factory method for an instance of InventoryEntryQuantitySetMessagePayloadBuilder- Returns:
- builder
-
of
public static InventoryEntryQuantitySetMessagePayloadBuilder of(InventoryEntryQuantitySetMessagePayload template) create builder for InventoryEntryQuantitySetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-