public interface BasicInventoryService
| Modifier and Type | Method and Description |
|---|---|
void |
decrementInventory(Long skuId,
int quantity)
Attempts to decrement inventory if it is available.
|
void |
decrementInventory(Map<Long,Integer> skuQuantities)
Attempts to decrement inventory for a map of Sku ids and quantities.
|
void |
incrementInventory(Long skuId,
int quantity)
Attempts to increment inventory.
|
void |
incrementInventory(Map<Long,Integer> skuQuantities)
Attempts to increment inventory for a map of Sku ids and quantities.
|
boolean |
isAvailable(Long skuId,
int quantity)
Indicates whether the given quantity is available for the particular skuId.
|
Map<Long,Integer> |
retrieveQuantitiesAvailable(Set<Long> skuIds)
Retrieves the quantities available for a set of sku ids.
|
Integer |
retrieveQuantityAvailable(Long skuId)
Retrieves the quantity available for a particular sku.
|
Integer retrieveQuantityAvailable(Long skuId)
skuId - Map<Long,Integer> retrieveQuantitiesAvailable(Set<Long> skuIds)
skuIds - boolean isAvailable(Long skuId, int quantity)
skuId - quantity - void decrementInventory(Long skuId, int quantity) throws BasicInventoryUnavailableException
skuId - quantity - BasicInventoryUnavailableExceptionvoid decrementInventory(Map<Long,Integer> skuQuantities) throws BasicInventoryUnavailableException
skuQuantities - BasicInventoryUnavailableExceptionvoid incrementInventory(Long skuId, int quantity)
skuId - quantity - Copyright © 2014. All rights reserved.