RefundInvoiceInterface.php 1.3 KB

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