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 Details

    • determineProductsInventoryAvailability

      <P extends Product> Collection<P> determineProductsInventoryAvailability(Collection<P> products, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Hydrates the SkuInventoryAvailabilitySummary for the provided Products and its Variants.
      Parameters:
      products - The products to check inventory for
      contextInfo - Context information around sandbox and multitenant state.
      Returns:
      The products with inventory availability hydrated