SourceSelectionServiceInterface.php 812 B

1234567891011121314151617181920212223242526
  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\InventorySourceSelectionApi\Api;
  8. /**
  9. * Returns source selection algorithm result for given Inventory Request
  10. *
  11. * @api
  12. */
  13. interface SourceSelectionServiceInterface
  14. {
  15. /**
  16. * @param \Magento\InventorySourceSelectionApi\Api\Data\InventoryRequestInterface $inventoryRequest
  17. * @param string $algorithmCode
  18. * @return \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultInterface
  19. */
  20. public function execute(
  21. \Magento\InventorySourceSelectionApi\Api\Data\InventoryRequestInterface $inventoryRequest,
  22. string $algorithmCode
  23. ): \Magento\InventorySourceSelectionApi\Api\Data\SourceSelectionResultInterface;
  24. }