Interface InventoryProvider
- All Known Implementing Classes:
ExternalInventoryProvider
public interface InventoryProvider
Provider for interfacing with operations around inventory. Typically utilizes
WebClient
to make requests to an external REST API.-
Method Summary
Modifier and TypeMethodDescription<P extends Product>
Collection<P>determineProductsInventoryAvailability(Collection<P> products, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
Method Details
-
determineProductsInventoryAvailability
<P extends Product> Collection<P> determineProductsInventoryAvailability(Collection<P> products, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Parameters:
products- The products to check inventory forcontextInfo- Context information around sandbox and multitenant state.- Returns:
- The products with inventory availability hydrated
-