Your IP : 216.73.216.220


Current Path : /home/rtorresani/www/vendor/magento/module-sales/Model/Order/
Upload File :
Current File : //home/rtorresani/www/vendor/magento/module-sales/Model/Order/RefundAdapterInterface.php

<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
namespace Magento\Sales\Model\Order;

use Magento\Sales\Api\Data\CreditmemoInterface;
use Magento\Sales\Api\Data\OrderInterface;

/**
 * Encapsulates refund operation behind unified interface.
 * Can be used as extension point.
 *
 * @api
 * @since 100.1.3
 */
interface RefundAdapterInterface
{
    /**
     * @param CreditmemoInterface $creditmemo
     * @param OrderInterface $order
     * @param bool $isOnline
     * @return OrderInterface
     * @since 100.1.3
     */
    public function refund(
        CreditmemoInterface $creditmemo,
        OrderInterface $order,
        $isOnline = false
    );
}