RefundOrderInterface.php 1008 B

123456789101112131415161718192021222324252627282930313233343536
  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. * Interface RefundOrderInterface
  9. *
  10. * @api
  11. * @since 100.1.3
  12. */
  13. interface RefundOrderInterface
  14. {
  15. /**
  16. * Create offline refund for order
  17. *
  18. * @param int $orderId
  19. * @param \Magento\Sales\Api\Data\CreditmemoItemCreationInterface[] $items
  20. * @param bool|null $notify
  21. * @param bool|null $appendComment
  22. * @param \Magento\Sales\Api\Data\CreditmemoCommentCreationInterface|null $comment
  23. * @param \Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface|null $arguments
  24. * @return int
  25. * @since 100.1.3
  26. */
  27. public function execute(
  28. $orderId,
  29. array $items = [],
  30. $notify = false,
  31. $appendComment = false,
  32. \Magento\Sales\Api\Data\CreditmemoCommentCreationInterface $comment = null,
  33. \Magento\Sales\Api\Data\CreditmemoCreationArgumentsInterface $arguments = null
  34. );
  35. }