public interface InventoryService
Modifier and Type | Method and Description |
---|---|
FetchRequest<InventoryEntry> |
bySku(java.lang.String sku)
Fetches the InventoryEntry by sku which does not have any channel.
|
FetchRequest<InventoryEntry> |
bySku(java.lang.String sku,
java.lang.String channelId)
Fetches the InventoryEntry by sku which does have a channel.
|
CommandRequest<InventoryEntry> |
createInventoryEntry(java.lang.String sku,
long quantityOnStock)
Creates a new InventoryEntry that does not belong to a Channel.
|
CommandRequest<InventoryEntry> |
createInventoryEntry(java.lang.String sku,
long quantityOnStock,
java.lang.Long restockableInDays,
org.joda.time.DateTime expectedDelivery)
Creates a new InventoryEntry that does not belong to a Channel.
|
CommandRequest<InventoryEntry> |
createInventoryEntry(java.lang.String sku,
long quantityOnStock,
java.lang.Long restockableInDays,
org.joda.time.DateTime expectedDelivery,
java.lang.String channelId)
Creates a new InventoryEntry that does belong to a Channel.
|
QueryRequest<InventoryEntry> |
query()
Queries inventory entries.
|
QueryRequest<InventoryEntry> |
queryBySku(java.lang.String sku)
Searches all InventoryEntry objects that have the given sku.
|
CommandRequest<InventoryEntry> |
updateInventoryEntry(VersionedId id,
InventoryEntryUpdate update) |
CommandRequest<InventoryEntry> createInventoryEntry(java.lang.String sku, long quantityOnStock)
CommandRequest<InventoryEntry> createInventoryEntry(java.lang.String sku, long quantityOnStock, java.lang.Long restockableInDays, org.joda.time.DateTime expectedDelivery)
expectedDelivery
- optional expected date for the delivery of the item.restockableInDays
- optional the time difference in days to get the item in stock again.CommandRequest<InventoryEntry> createInventoryEntry(java.lang.String sku, long quantityOnStock, java.lang.Long restockableInDays, org.joda.time.DateTime expectedDelivery, java.lang.String channelId)
expectedDelivery
- optional expected date for the delivery of the item.restockableInDays
- optional the time difference in days to get the item in stock again.FetchRequest<InventoryEntry> bySku(java.lang.String sku)
FetchRequest<InventoryEntry> bySku(java.lang.String sku, java.lang.String channelId)
QueryRequest<InventoryEntry> queryBySku(java.lang.String sku)
QueryRequest<InventoryEntry> query()
CommandRequest<InventoryEntry> updateInventoryEntry(VersionedId id, InventoryEntryUpdate update)