RefundAdapterInterface.php 715 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Sales\Model\Order;
  7. use Magento\Sales\Api\Data\CreditmemoInterface;
  8. use Magento\Sales\Api\Data\OrderInterface;
  9. /**
  10. * Encapsulates refund operation behind unified interface.
  11. * Can be used as extension point.
  12. *
  13. * @api
  14. * @since 100.1.3
  15. */
  16. interface RefundAdapterInterface
  17. {
  18. /**
  19. * @param CreditmemoInterface $creditmemo
  20. * @param OrderInterface $order
  21. * @param bool $isOnline
  22. * @return OrderInterface
  23. * @since 100.1.3
  24. */
  25. public function refund(
  26. CreditmemoInterface $creditmemo,
  27. OrderInterface $order,
  28. $isOnline = false
  29. );
  30. }