Inventory Module
GetSourceCodesBySkus
This class retrieves all source codes that have inventory associated with given product SKUs. Developers use this when they need to find which invento...
GetStockIdsBySkus
This class retrieves all stock IDs associated with given product SKUs in Magento's Multi-Source Inventory (MSI) system. Developers use this when they...
GetStockItemData\IsProductAssignedToStockCacheStorage
This class provides in-memory caching for product-to-stock assignments in Magento's Multi-Source Inventory (MSI) system. Developers use it to temporar...
Model\ResourceModel\SourceCarrierLink\Collection
This collection class manages groups of SourceCarrierLink entities, which represent the relationships between inventory sources and shipping carriers....
Model\ResourceModel\SourceItem\Collection
This collection class manages groups of SourceItem entities, which represent inventory quantities for products at specific sources/warehouses. Develop...
Model\ResourceModel\Source\Collection
This collection class manages a group of inventory source entities in Magento's Multi-Source Inventory (MSI) system. Developers use it to retrieve and...
Model\ResourceModel\StockSourceLink\Collection
This collection class manages groups of StockSourceLink entities, which represent the relationships between inventory stocks and their sources. Develo...
Model\ResourceModel\Stock\Collection
This collection class is used to retrieve and manipulate multiple Stock records from the database in Magento's Multi-Source Inventory (MSI) system. De...
Model\SourceItem\Command\GetListInterface
This interface defines a command for retrieving a list of source items (inventory locations and their stock quantities) based on search criteria. Deve...
Model\Source\Command\GetInterface
This interface defines a command for retrieving an inventory source by its code. Developers would implement this interface to customize how Magento lo...
Model\Source\Command\GetListInterface
This interface defines a command for retrieving a list of inventory sources based on search criteria. Developers would use implementations of this int...
Model\Source\Command\SaveInterface
This interface defines a service contract for saving inventory source data in Magento's Multi-Source Inventory (MSI) system. Developers implement this...
Model\Stock\Command\DeleteByIdInterface
This interface defines a command for deleting stock records by their ID in Magento's Multi-Source Inventory (MSI) system. Developers should implement...
Model\Stock\Command\GetInterface
This interface defines a command for retrieving Stock data by its ID in Magento's Multi-Source Inventory (MSI) system. Developers would implement this...
Model\Stock\Command\GetListInterface
This interface defines a command for retrieving a list of inventory stocks based on search criteria. Developers use this as a service contract to impl...
Model\Stock\Command\SaveInterface
This is a Service Provider Interface (SPI) that defines the contract for saving Stock data in Magento's Multi-Source Inventory system. Developers woul...
ResourceModel\GetSourceCodesBySkus
This class retrieves a distinct list of source codes associated with given product SKUs from the inventory system. Developers would use this when they...
ResourceModel\IsProductAssignedToStock
This class checks if a specific product (identified by SKU) is assigned to a particular stock. It queries the database to verify if there's a link bet...
ResourceModel\Source
This resource model handles database operations for inventory sources in Magento's Multi-Source Inventory (MSI) system. It manages loading and saving...
ResourceModel\SourceCarrierLink
This resource model manages database operations for the source-carrier link table in Magento's Multi-Source Inventory system. It defines the connectio...
ResourceModel\SourceItem
This resource model handles database operations for inventory source items in Magento's Multi-Source Inventory (MSI) system. Developers use this class...
ResourceModel\SourceItem\DecrementQtyForMultipleSourceItem
This class handles the database operation of decreasing inventory quantities for multiple source items in Magento's Multi-Source Inventory (MSI) syste...
ResourceModel\SourceItem\DeleteMultiple
This class provides an optimized way to delete multiple inventory source items from the database in a single operation. Developers use this when they...
ResourceModel\SourceItem\SaveMultiple
This class handles bulk saving of inventory source items to the database for performance optimization. Developers use this when they need to save mult...
ResourceModel\Stock
This resource model manages database operations for Stock entities in Magento's Multi-Source Inventory (MSI) system. Developers use this class when pe...
ResourceModel\StockSourceLink
This resource model manages database operations for linking inventory sources to stocks in Magento's Multi-Source Inventory (MSI) system. Developers u...
ResourceModel\StockSourceLink\DeleteMultiple
This class handles the bulk deletion of stock-source links from the database in Magento's Multi-Source Inventory (MSI) system. Developers use this whe...
ResourceModel\StockSourceLink\SaveMultiple
This class handles bulk saving of stock-source links in Magento's Multi-Source Inventory (MSI) system. Developers use this when they need to efficient...
Source
This is the data model class for inventory sources in Magento's Multi-Source Inventory (MSI) system. Developers use this class to represent physical l...
SourceCarrierLink
This model represents a link between an inventory source and a shipping carrier in Magento's Multi-Source Inventory (MSI) system. Developers use this...
SourceCarrierLinkManagement
This class manages the relationship between inventory sources and shipping carriers in Magento's Multi-Source Inventory (MSI) system. Developers use i...
SourceItem
This model represents a source item in Magento's Multi-Source Inventory (MSI) system, linking a product SKU to a specific inventory source with its qu...
SourceItemRepository
This repository class provides access to source item data in Magento's Multi-Source Inventory (MSI) system. Developers use it to retrieve lists of sou...
SourceItemSearchResults
This class represents search results for Source Items in Magento's Multi-Source Inventory (MSI) system. Developers use this class to receive and handl...
SourceItem\Command\DecrementSourceItemQty
This class handles decreasing inventory quantities for source items in Magento's Multi-Source Inventory (MSI) system. Developers use it when processin...
SourceItem\Command\GetList
This command class retrieves a filtered list of source items (inventory records linking products to inventory sources) based on search criteria. Devel...
SourceItem\Command\GetSourceItemsBySku
This class retrieves all source items (inventory records) associated with a specific product SKU across all inventory sources. Developers use this whe...
SourceItem\Command\GetSourceItemsBySkuCache
This class acts as a caching decorator for retrieving source items by SKU in Magento's Multi-Source Inventory (MSI) system. It stores source item data...
SourceItem\Command\SourceItemsDelete
This class handles the deletion of multiple source items (inventory records) from Magento's Multi-Source Inventory (MSI) system. Developers use this s...
SourceItem\Command\SourceItemsSave
This class is responsible for saving multiple source items (inventory records for specific sources) to the database. Developers use this when they nee...
SourceItem\Command\SourceItemsSaveWithoutLegacySynchronization
This class saves source item inventory records without triggering legacy catalog inventory synchronization. Developers would use this when they need t...
SourceItem\Validator\QuantityValidator
This validator ensures that the quantity value of a source item is numeric and valid. Developers use this class when validating inventory source item...
SourceItem\Validator\SkuValidator
This validator ensures that a source item's SKU meets basic requirements: it cannot be empty and must not have leading or trailing spaces. Developers...
SourceItem\Validator\SourceCodeValidator
This validator ensures that a source item's source code is properly formatted before being saved in Magento's Multi-Source Inventory system. Developer...
SourceItem\Validator\SourceItemsValidator
This class validates multiple source items at once by iterating through an array of source items and checking each one using a SourceItemValidator. De...
SourceItem\Validator\StatusValidator
This validator ensures that the status field of a source item (inventory location product) is valid before saving. It checks that the status is numeri...
SourceRepository
This repository class manages CRUD operations for inventory sources in Magento 2's Multi-Source Inventory (MSI) system. Developers use this class to s...
SourceSearchResults
This class represents a collection of search results when querying for inventory sources in Magento's Multi-Source Inventory (MSI) system. Developers...
Source\Command\Get
This class retrieves a single inventory source by its unique source code. Developers use this when they need to fetch detailed information about a spe...
Source\Command\GetList
This class retrieves a filtered list of inventory sources based on search criteria. Developers use it when they need to fetch multiple source records...
Source\Command\GetSourcesAssignedToStockOrderedByPriority
This class retrieves all inventory sources assigned to a specific stock, ordered by their priority from lowest to highest. Developers use this when th...
Source\Command\GetSourcesAssignedToStockOrderedByPriorityCache
This class provides a caching layer for retrieving sources assigned to a stock, ordered by priority. It wraps the actual command and stores results in...
Source\Command\Save
This class handles saving inventory source entities in Magento's Multi-Source Inventory (MSI) system. Developers use this command to persist source da...
Source\Validator\CodeValidator
This validator ensures that inventory source codes meet specific format requirements before being saved. Developers use this class when creating or up...
Source\Validator\CountryValidator
This validator ensures that a source (inventory location) has a valid country ID assigned. Developers use this class when creating or updating invento...
Source\Validator\NameValidator
This validator ensures that inventory source names meet specific requirements before being saved. It checks that the source name is not empty and does...
Source\Validator\PostcodeValidator
This validator ensures that a source's postcode field is not empty when creating or updating inventory sources in Magento's Multi-Source Inventory (MS...
Stock
This model class represents a Stock entity in Magento's Multi-Source Inventory (MSI) system. Developers use it to work with stock records, which are c...
StockRepository
This class serves as the main repository for managing Stock entities in Magento's Multi-Source Inventory (MSI) system. Developers use this class to pe...
StockSearchResults
This class serves as a container for stock search results in Magento's Multi-Source Inventory (MSI) system. Developers use this class when implementin...
StockSourceLink
This model represents the link between inventory sources and stocks in Magento's Multi-Source Inventory (MSI) system. Developers use this class to man...
StockSourceLinkSearchResults
This class represents a collection of search results for Stock-Source links in Magento's Multi-Source Inventory (MSI) system. Developers use this clas...
StockSourceLink\Command\GetStockSourceLinks
This class retrieves stock-source link records based on search criteria, returning a collection of links between stocks and inventory sources. Develop...
StockSourceLink\Command\StockSourceLinksDelete
This class handles the deletion of multiple stock-source link associations in Magento's Multi-Source Inventory (MSI) system. Developers use this when...
StockSourceLink\Command\StockSourceLinksExtensionAttributes
This class manages the joining of extension attributes to stock source link collections in Magento's Multi-Source Inventory (MSI) system. Developers u...
StockSourceLink\Command\StockSourceLinksSave
This class handles saving multiple stock-source links in Magento's Multi-Source Inventory (MSI) system. Developers use this when they need to associat...
StockSourceLink\Validator\PriorityValidator
This validator ensures that the priority value assigned to a stock-source link is valid by checking that it's greater than zero. Developers use this c...
StockSourceLink\Validator\SourceCodeValidator
This validator ensures that source codes in stock-source links are valid by checking they are not empty and contain no whitespace. Developers use this...
StockSourceLink\Validator\StockIdValidator
This validator ensures that a stock ID in a StockSourceLink is valid by checking it's not empty. Developers use this when creating or updating stock-s...
StockSourceLink\Validator\StockSourceLinksValidator
This validator class validates an array of StockSourceLink entities by iterating through each link and applying individual validation rules. Developer...
Stock\Command\DeleteById
This class handles the deletion of inventory stock records by their ID in Magento's Multi-Source Inventory (MSI) system. Developers would use this whe...
Stock\Command\Get
This class retrieves a stock entity by its ID from the database. Developers use this command when they need to fetch complete stock information for in...
Stock\Command\GetCache
This class provides cached access to stock data in Magento's Multi-Source Inventory (MSI) system. It stores retrieved stock objects in memory to avoid...
Stock\Command\GetList
This class retrieves a filtered and paginated list of inventory stock records in Magento 2. Developers use this when they need to query stocks with sp...
Stock\Command\Save
This class is responsible for saving Stock entities to the database in Magento's Multi-Source Inventory (MSI) system. Developers use this command clas...
Stock\Validator\NameValidator
This validator ensures that a Stock entity has a valid, non-empty name before it can be saved. Developers use this class as part of Magento's MSI (Mul...
Validators\IsNumericValue
This validator class checks if a given value is numeric and returns validation errors if it's not. Developers use this when validating inventory-relat...
Validators\NoSpaceBeforeAndAfterString
This validator class checks if a string value contains leading or trailing whitespace characters. Developers use this when validating inventory-relate...
Validators\NoSpecialCharsInString
This validator class checks if a string contains special character patterns that could indicate potential template injection or security vulnerabiliti...
Validators\NoWhitespaceInString
This validator checks if a string field contains any whitespace characters (spaces, tabs, newlines). Developers use this class when validating invento...
Validators\NotAnEmptyString
This validator class checks if a string value is empty or contains only whitespace. Developers use this class when validating inventory-related form i...