Interface InventoryEntryOutOfStockMessagePayload
- All Superinterfaces:
MessagePayload,MessagePayloadMixin
Generated after InventoryEntry quantityOnStock goes to 0.
Example to create an instance using the builder pattern
InventoryEntryOutOfStockMessagePayload inventoryEntryOutOfStockMessagePayload = InventoryEntryOutOfStockMessagePayload.builder()
.sku("{sku}")
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for InventoryEntryOutOfStockMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for InventoryEntryOutOfStockMessagePayloadcreate builder for InventoryEntryOutOfStockMessagePayload instancecopyDeep()factory method to create a deep copy of InventoryEntryOutOfStockMessagePayload@NotNull StringgetSku()@Valid ChannelReferenceof()factory methodof(InventoryEntryOutOfStockMessagePayload template) factory method to create a shallow copy InventoryEntryOutOfStockMessagePayloadvoidvoidsetSupplyChannel(ChannelReference supplyChannel) static com.fasterxml.jackson.core.type.TypeReference<InventoryEntryOutOfStockMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithInventoryEntryOutOfStockMessagePayload(Function<InventoryEntryOutOfStockMessagePayload, 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_OUT_OF_STOCK
discriminator value for InventoryEntryOutOfStockMessagePayload- See Also:
-
-
Method Details
-
getSku
The
skuof the InventoryEntry whosequantityOnStockwent to 0.- Returns:
- sku
-
getSupplyChannel
Reference to the Channel where the InventoryEntry quantity on stock went to 0.
- Returns:
- supplyChannel
-
setSku
The
skuof the InventoryEntry whosequantityOnStockwent to 0.- Parameters:
sku- value to be set
-
setSupplyChannel
Reference to the Channel where the InventoryEntry quantity on stock went to 0.
- Parameters:
supplyChannel- value to be set
-
of
factory method- Returns:
- instance of InventoryEntryOutOfStockMessagePayload
-
of
factory method to create a shallow copy InventoryEntryOutOfStockMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
InventoryEntryOutOfStockMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
deepCopy
@Nullable static InventoryEntryOutOfStockMessagePayload deepCopy(@Nullable InventoryEntryOutOfStockMessagePayload template) factory method to create a deep copy of InventoryEntryOutOfStockMessagePayload- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for InventoryEntryOutOfStockMessagePayload- Returns:
- builder
-
builder
static InventoryEntryOutOfStockMessagePayloadBuilder builder(InventoryEntryOutOfStockMessagePayload template) create builder for InventoryEntryOutOfStockMessagePayload instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withInventoryEntryOutOfStockMessagePayload
default <T> T withInventoryEntryOutOfStockMessagePayload(Function<InventoryEntryOutOfStockMessagePayload, 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<InventoryEntryOutOfStockMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-