Log in

Inventory Module

GetSourceCodesBySkus

Model

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

Model

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

Model

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

Collection

This collection class manages groups of SourceCarrierLink entities, which represent the relationships between inventory sources and shipping carriers....

Model\ResourceModel\SourceItem\Collection

Collection

This collection class manages groups of SourceItem entities, which represent inventory quantities for products at specific sources/warehouses. Develop...

Model\ResourceModel\Source\Collection

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

Collection

This collection class manages groups of StockSourceLink entities, which represent the relationships between inventory stocks and their sources. Develo...

Model\ResourceModel\Stock\Collection

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Interface

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

Model

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

Model

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

Model

This resource model handles database operations for inventory sources in Magento's Multi-Source Inventory (MSI) system. It manages loading and saving...

ResourceModel\SourceCarrierLink

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

This class manages the relationship between inventory sources and shipping carriers in Magento's Multi-Source Inventory (MSI) system. Developers use i...

SourceItem

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

This class saves source item inventory records without triggering legacy catalog inventory synchronization. Developers would use this when they need t...

SourceItem\Validator\QuantityValidator

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

This validator class validates an array of StockSourceLink entities by iterating through each link and applying individual validation rules. Developer...

Stock\Command\DeleteById

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

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

Model

This validator class checks if a string value contains leading or trailing whitespace characters. Developers use this when validating inventory-relate...

Validators\NoSpecialCharsInString

Model

This validator class checks if a string contains special character patterns that could indicate potential template injection or security vulnerabiliti...

Validators\NoWhitespaceInString

Model

This validator checks if a string field contains any whitespace characters (spaces, tabs, newlines). Developers use this class when validating invento...

Validators\NotAnEmptyString

Model

This validator class checks if a string value is empty or contains only whitespace. Developers use this class when validating inventory-related form i...