GetStockItemConfigurationInterface.php 782 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. declare(strict_types=1);
  7. namespace Magento\InventoryConfigurationApi\Api;
  8. /**
  9. * Returns stock item configuration data by sku and stock id.
  10. *
  11. * @api
  12. */
  13. interface GetStockItemConfigurationInterface
  14. {
  15. /**
  16. * @param string $sku
  17. * @param int $stockId
  18. * @return \Magento\InventoryConfigurationApi\Api\Data\StockItemConfigurationInterface
  19. * @throws \Magento\Framework\Exception\LocalizedException
  20. * @throws \Magento\InventoryConfigurationApi\Exception\SkuIsNotAssignedToStockException
  21. */
  22. public function execute(
  23. string $sku,
  24. int $stockId
  25. ): \Magento\InventoryConfigurationApi\Api\Data\StockItemConfigurationInterface;
  26. }