Interface InventoryAvailabilityService<I extends CatalogItem>
- All Known Implementing Classes:
DefaultInventoryAvailabilityService
public interface InventoryAvailabilityService<I extends CatalogItem>
- Author:
- Chris Kittrell (ckittrell)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
checkInventoryAvailability
(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.CartItem cartItem, CatalogItemList<I> catalogItemList, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks the inventory of the cart item.
-
Method Details
-
checkInventoryAvailability
void checkInventoryAvailability(com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.cart.client.domain.CartItem cartItem, CatalogItemList<I> catalogItemList, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Checks the inventory of the cart item. First, it will check the catalog-based inventory details, and if it passes that check it will make a call to the inventory provider to check availability with the external inventory system.- Parameters:
cart
- The cart for thiscart item
cartItem
- The cart item whose inventory is being checkedcatalogItemList
- TheCatalogItemList
that should contain theCartItem's
relatedCatalogItem
.contextInfo
- Context information about sandboxing and multitenant state
-