GetStockBySalesChannelInterface.php 741 B

123456789101112131415161718192021222324252627
  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\InventorySalesApi\Api;
  8. /**
  9. * Service which returns linked stock for a certain sales channel
  10. *
  11. * @api
  12. */
  13. interface GetStockBySalesChannelInterface
  14. {
  15. /**
  16. * Resolve Stock by Sales Channel
  17. *
  18. * @param \Magento\InventorySalesApi\Api\Data\SalesChannelInterface $salesChannel
  19. * @throws \Magento\Framework\Exception\NoSuchEntityException
  20. * @return \Magento\InventoryApi\Api\Data\StockInterface
  21. */
  22. public function execute(
  23. \Magento\InventorySalesApi\Api\Data\SalesChannelInterface $salesChannel
  24. ): \Magento\InventoryApi\Api\Data\StockInterface;
  25. }