public interface InventoryServiceExtensionHandler extends ExtensionHandler
ContextualInventoryService. Usually, implementers
will want to only override the ContextualInventoryService methods rather than all of the methods included
in InventoryService and so you will extend from AbstractInventoryServiceExtensionHandler.ContextualInventoryService},
AbstractInventoryServiceExtensionHandler}| Modifier and Type | Method and Description |
|---|---|
ExtensionResultStatusType |
decrementInventory(Map<Sku,Integer> skuQuantities,
Map<String,Object> context)
Usually invoked within the
DecrementInventoryActivity to decrement inventory for the Skus that are in
skuQuantities |
ExtensionResultStatusType |
incrementInventory(Map<Sku,Integer> skuQuantities,
Map<String,Object> context) |
ExtensionResultStatusType |
retrieveQuantitiesAvailable(Collection<Sku> skus,
Map<String,Object> context,
ExtensionResultHolder<Map<Sku,Integer>> result)
Usually invoked within the
CheckAvailabilityActivity to retrieve the quantity that is available for the given
skus. |
getPriority, isEnabledExtensionResultStatusType retrieveQuantitiesAvailable(Collection<Sku> skus, Map<String,Object> context, ExtensionResultHolder<Map<Sku,Integer>> result)
CheckAvailabilityActivity to retrieve the quantity that is available for the given
skus.context - can be null. If not null, this should at least contain the ContextualInventoryService.ORDER_KEYContextualInventoryService#retrieveQuantitiesAvailable(Set, Map)}ExtensionResultStatusType decrementInventory(Map<Sku,Integer> skuQuantities, Map<String,Object> context) throws InventoryUnavailableException
DecrementInventoryActivity to decrement inventory for the Skus that are in
skuQuantitiescontext - can be null. If not null, this should at least contain the ContextualInventoryService.ORDER_KEY and/or the
ContextualInventoryService.ROLLBACK_STATE_KEYInventoryUnavailableExceptionContextualInventoryService#decrementInventory(Map, Map)}ExtensionResultStatusType incrementInventory(Map<Sku,Integer> skuQuantities, Map<String,Object> context)
context - can be null. If not null, this should at least contain the ContextualInventoryService.ROLLBACK_STATE_KEYContextualInventoryService#incrementInventory(Map, Map)}Copyright © 2015. All Rights Reserved.