ShipOrderInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Api;
  7. /**
  8. * Class ShipOrderInterface
  9. *
  10. * @api
  11. * @since 100.1.2
  12. */
  13. interface ShipOrderInterface
  14. {
  15. /**
  16. * Creates new Shipment for given Order.
  17. *
  18. * @param int $orderId
  19. * @param \Magento\Sales\Api\Data\ShipmentItemCreationInterface[] $items
  20. * @param bool $notify
  21. * @param bool $appendComment
  22. * @param \Magento\Sales\Api\Data\ShipmentCommentCreationInterface|null $comment
  23. * @param \Magento\Sales\Api\Data\ShipmentTrackCreationInterface[] $tracks
  24. * @param \Magento\Sales\Api\Data\ShipmentPackageCreationInterface[] $packages
  25. * @param \Magento\Sales\Api\Data\ShipmentCreationArgumentsInterface|null $arguments
  26. * @return int Id of created Shipment.
  27. * @since 100.1.2
  28. */
  29. public function execute(
  30. $orderId,
  31. array $items = [],
  32. $notify = false,
  33. $appendComment = false,
  34. \Magento\Sales\Api\Data\ShipmentCommentCreationInterface $comment = null,
  35. array $tracks = [],
  36. array $packages = [],
  37. \Magento\Sales\Api\Data\ShipmentCreationArgumentsInterface $arguments = null
  38. );
  39. }