InventoryIndexer Module
AreMultipleProductsSalable
This class checks whether multiple products are available for sale (salable) in a specific stock. Developers use it when they need to verify inventory...
CompositeProductSalabilityChangeProcessor
This class implements a composite pattern to execute multiple product salability change processors in sequence. Developers use it to coordinate variou...
GetProductsIdsToProcess
This class compares product stock/salability status before and after a reindex operation to identify which products actually changed state. Developers...
GetStockItemData\CacheStorage
This class provides in-memory caching for stock item data during inventory indexing operations. Developers use this to temporarily store and retrieve...
IndexerConfig
This class provides configuration access for the inventory indexer strategy. Developers use this class to retrieve the active reindex strategy setting...
IsProductSalable
This class determines if a product is available for purchase (salable) in a specific stock/warehouse. Developers use this to check product availabilit...
Model\ProductSalabilityChangeProcessorInterface
This interface defines a contract for processing product salability changes in Magento's Multi-Source Inventory (MSI) system. Developers implement thi...
Model\StockIndexTableNameResolverInterface
This interface defines a contract for resolving the name of database tables used to store inventory stock index data. Developers use implementations o...
Queue\GetSalabilityDataForUpdate
This class detects changes in product salability (stock availability) after inventory reservations are created or modified. It compares the newly calc...
Queue\ReservationData
This is a data transfer object (DTO) that encapsulates reservation queue request information in Magento's Multi-Source Inventory system. Developers us...
Queue\UpdateIndexSalabilityStatus
This class recalculates product salability status in the inventory index when reservations change (e.g., after orders are placed). It processes both s...
Queue\UpdateIndexSalabilityStatus\IndexProcessor
This class processes inventory index updates for product salability status in a queue-based system. It ensures the main inventory index exists, retrie...
Queue\UpdateIndexSalabilityStatus\UpdateLegacyStock
This class updates legacy stock status records when inventory reservations are placed or removed. Developers use it to maintain backward compatibility...
ReindexStrategyOptions
This class provides configuration options for inventory reindexing strategies in Magento 2. Developers use this to define whether inventory reindexing...
ResourceModel\GetCategoryIdsByProductIds
This class retrieves all category IDs associated with given product IDs by querying the catalog_category_product table. Developers would use this when...
ResourceModel\GetProductIdsBySourceItemIds
This class retrieves product IDs that are associated with specific source item IDs in Magento's Multi-Source Inventory (MSI) system. Developers use th...
ResourceModel\GetProductIdsByStockIds
This class retrieves product entity IDs associated with specific stock IDs from the inventory index tables. Developers use this when they need to iden...
ResourceModel\GetSourceCodesBySourceItemIds
This resource model retrieves source codes mapped to their corresponding source item IDs from the database. Developers use this class when they need t...
ResourceModel\GetStockItemData
This class retrieves stock item data (quantity and salability status) for a specific product SKU and stock ID. Developers use this when they need to c...
ResourceModel\GetStockItemDataCache
This class provides cached access to stock item data in Magento's Multi-Source Inventory system. Developers use this class to efficiently retrieve sto...
ResourceModel\GetStockItemsData
This class retrieves stock item data (quantity and salability status) for multiple product SKUs from a specific stock. Developers use this when they n...
ResourceModel\GetStockItemsDataCache
This class provides cached access to stock item data for multiple SKUs and a specific stock. It acts as a performance optimization layer by checking c...
ResourceModel\IsInvalidationRequiredForSource
This resource model determines whether the inventory index needs to be invalidated (recalculated) when a source's enabled/disabled status changes. Dev...
ResourceModel\StockItemDataHandler
This class retrieves stock item data (quantity and salability) from the legacy cataloginventory_stock_item table for products assigned to the default...
ResourceModel\UpdateIsSalable
This class updates the 'is_salable' status for products in Magento's inventory index tables. Developers would use this when they need to update whethe...
ResourceModel\UpdateLegacyStockStatus
This class updates the legacy CatalogInventory stock status table when Multi-Source Inventory (MSI) stock data changes. Developers use this to maintai...
StockIndexTableNameResolver
This class resolves the actual database table name for a stock's inventory index based on the stock ID. Developers use this when they need to query or...