PlaceReservationsForSalesEventInterface.php 1021 B

1234567891011121314151617181920212223242526272829303132
  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. * This service is responsible for creating reservations upon a sale event.
  10. *
  11. * @api
  12. */
  13. interface PlaceReservationsForSalesEventInterface
  14. {
  15. /**
  16. * @param \Magento\InventorySalesApi\Api\Data\ItemToSellInterface[] $items
  17. * @param \Magento\InventorySalesApi\Api\Data\SalesChannelInterface $salesChannel
  18. * @param \Magento\InventorySalesApi\Api\Data\SalesEventInterface $salesEvent
  19. * @return void
  20. *
  21. * @throws \Magento\Framework\Exception\LocalizedException
  22. * @throws \Magento\Framework\Exception\InputException
  23. * @throws \Magento\Framework\Exception\CouldNotSaveException
  24. */
  25. public function execute(
  26. array $items,
  27. \Magento\InventorySalesApi\Api\Data\SalesChannelInterface $salesChannel,
  28. \Magento\InventorySalesApi\Api\Data\SalesEventInterface $salesEvent
  29. ): void;
  30. }