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 this cart item
cartItem
- The cart item whose inventory is being checked
catalogItemList
- The CatalogItemList
that should contain the CartItem's
related CatalogItem
.
contextInfo
- Context information about sandboxing and multitenant state