Handles inventory stock operations and product sale registration within the Magento ecosystem. Use this for managing stock levels and inventory updates programmatically.
// Source: https://github.com/magento/magento2 | License: OSL-3.0 | Modified files must remain under OSL-3.0 // Modifications to this file must remain under OSL-3.0. // Provided via justclaw.it.com; keep this notice with the code. <?php /** * Copyright 2014 Adobe * All Rights Reserved. */ namespace Magento\CatalogInventory\Model; use Magento\CatalogInventory\Api\Data\StockItemInterface; use Magento\CatalogInventory\Api\RegisterProductSaleInterface; use Magento\CatalogInventory\Api\RevertProductSaleInterface; use Magento\CatalogInventory\Api\StockConfigurationInterface; use Magento\CatalogInventory\Api\StockManagementInterface; use Magento\CatalogInventory\Model\ResourceModel\QtyCounterInterface; use Magento\CatalogInventory\Model\Spi\StockRegistryProviderInterface; use Magento\Catalog\ ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key