Class InventoryEntryReorderPointMessagePayloadBuilder
- All Implemented Interfaces:
Builder<InventoryEntryReorderPointMessagePayload>
Example to create an instance using the builder pattern
InventoryEntryReorderPointMessagePayload inventoryEntryReorderPointMessagePayload = InventoryEntryReorderPointMessagePayload.builder()
.sku("{sku}")
.quantityOnStock(0.3)
.build()
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()builds InventoryEntryReorderPointMessagePayload with checking for non-null required valuesbuilds InventoryEntryReorderPointMessagePayload without checking for non-null required valuesThequantityOnStockof the InventoryEntry at the time the reorder point level was reached.getSku()Reference to the Channel where the InventoryEntryquantityOnStockreached the configured reorder point level.of()factory method for an instance of InventoryEntryReorderPointMessagePayloadBuilderof(InventoryEntryReorderPointMessagePayload template) create builder for InventoryEntryReorderPointMessagePayload instancequantityOnStock(Integer quantityOnStock) ThequantityOnStockof the InventoryEntry at the time the reorder point level was reached.supplyChannel(ChannelReference supplyChannel) Reference to the Channel where the InventoryEntryquantityOnStockreached the configured reorder point level.Reference to the Channel where the InventoryEntryquantityOnStockreached the configured reorder point level.Reference to the Channel where the InventoryEntryquantityOnStockreached the configured reorder point level.
-
Constructor Details
-
InventoryEntryReorderPointMessagePayloadBuilder
public InventoryEntryReorderPointMessagePayloadBuilder()
-
-
Method Details
-
sku
The
skuof the InventoryEntry whosequantityOnStockreached the configured reorder point level.- Parameters:
sku- value to be set- Returns:
- Builder
-
quantityOnStock
The
quantityOnStockof the InventoryEntry at the time the reorder point level was reached.- Parameters:
quantityOnStock- value to be set- Returns:
- Builder
-
supplyChannel
public InventoryEntryReorderPointMessagePayloadBuilder supplyChannel(Function<ChannelReferenceBuilder, ChannelReferenceBuilder> builder) Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured reorder point level.- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
withSupplyChannel
public InventoryEntryReorderPointMessagePayloadBuilder withSupplyChannel(Function<ChannelReferenceBuilder, ChannelReference> builder) Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured reorder point level.- Parameters:
builder- function to build the supplyChannel value- Returns:
- Builder
-
supplyChannel
public InventoryEntryReorderPointMessagePayloadBuilder supplyChannel(@Nullable ChannelReference supplyChannel) Reference to the Channel where the InventoryEntry
quantityOnStockreached the configured reorder point level.- Parameters:
supplyChannel- value to be set- Returns:
- Builder
-
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
-
build
builds InventoryEntryReorderPointMessagePayload with checking for non-null required values- Specified by:
buildin interfaceBuilder<InventoryEntryReorderPointMessagePayload>- Returns:
- InventoryEntryReorderPointMessagePayload
-
buildUnchecked
builds InventoryEntryReorderPointMessagePayload without checking for non-null required values- Returns:
- InventoryEntryReorderPointMessagePayload
-
of
factory method for an instance of InventoryEntryReorderPointMessagePayloadBuilder- Returns:
- builder
-
of
public static InventoryEntryReorderPointMessagePayloadBuilder of(InventoryEntryReorderPointMessagePayload template) create builder for InventoryEntryReorderPointMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-