ShipOrderInterface.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order\Validation;
  7. use Magento\Sales\Api\Data\OrderInterface;
  8. use Magento\Sales\Api\Data\ShipmentInterface;
  9. /**
  10. * Interface ShipOrderInterface
  11. *
  12. * @api
  13. * @since 100.1.3
  14. */
  15. interface ShipOrderInterface
  16. {
  17. /**
  18. * @param OrderInterface $order
  19. * @param ShipmentInterface $shipment
  20. * @param array $items
  21. * @param bool $notify
  22. * @param bool $appendComment
  23. * @param \Magento\Sales\Api\Data\ShipmentCommentCreationInterface|null $comment
  24. * @param array $tracks
  25. * @param array $packages
  26. * @param \Magento\Sales\Api\Data\ShipmentCreationArgumentsInterface|null $arguments
  27. * @return \Magento\Sales\Model\ValidatorResultInterface
  28. * @since 100.1.3
  29. */
  30. public function validate(
  31. $order,
  32. $shipment,
  33. array $items = [],
  34. $notify = false,
  35. $appendComment = false,
  36. \Magento\Sales\Api\Data\ShipmentCommentCreationInterface $comment = null,
  37. array $tracks = [],
  38. array $packages = [],
  39. \Magento\Sales\Api\Data\ShipmentCreationArgumentsInterface $arguments = null
  40. );
  41. }