RefundInvoiceInterface.php 1.0 KB

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