SourceItemsSaveInterface.php 804 B

123456789101112131415161718192021222324252627282930
  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\InventoryApi\Api;
  8. /**
  9. * Service method for source items save multiple
  10. * Performance efficient API
  11. *
  12. * Used fully qualified namespaces in annotations for proper work of WebApi request parser
  13. *
  14. * @api
  15. */
  16. interface SourceItemsSaveInterface
  17. {
  18. /**
  19. * Save Multiple Source item data
  20. *
  21. * @param \Magento\InventoryApi\Api\Data\SourceItemInterface[] $sourceItems
  22. * @return void
  23. * @throws \Magento\Framework\Exception\InputException
  24. * @throws \Magento\Framework\Validation\ValidationException
  25. * @throws \Magento\Framework\Exception\CouldNotSaveException
  26. */
  27. public function execute(array $sourceItems): void;
  28. }