RefundOrderInterface.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\Model\Order\Validation;
  7. use Magento\Sales\Api\Data\CreditmemoInterface;
  8. use Magento\Sales\Api\Data\OrderInterface;
  9. use Magento\Sales\Model\ValidatorResultInterface;
  10. /**
  11. * Interface RefundOrderInterface
  12. *
  13. * @api
  14. * @since 100.1.3
  15. */
  16. interface RefundOrderInterface
  17. {
  18. /**
  19. * @param OrderInterface $order
  20. * @param CreditmemoInterface $creditmemo
  21. * @param array $items
  22. * @param bool $notify
  23. * @param bool $appendComment
  24. * @param \Magento\Sales\Api\Data\CreditmemoCommentCreationInterface|null $comment
  25. * @param \Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface|null $arguments
  26. * @return ValidatorResultInterface
  27. * @since 100.1.3
  28. */
  29. public function validate(
  30. OrderInterface $order,
  31. CreditmemoInterface $creditmemo,
  32. array $items = [],
  33. $notify = false,
  34. $appendComment = false,
  35. \Magento\Sales\Api\Data\CreditmemoCommentCreationInterface $comment = null,
  36. \Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface $arguments = null
  37. );
  38. }