CreditmemoProcessorInterface.php 749 Bytes
Newer Older
Ketan's avatar
Ketan committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
<?php
/**
 * @copyright  Vertex. All rights reserved.  https://www.vertexinc.com/
 * @author     Mediotype                     https://www.mediotype.com/
 */

namespace Vertex\Tax\Model\Api\Data\InvoiceRequestBuilder;

use Magento\Sales\Api\Data\CreditmemoInterface;
use Vertex\Services\Invoice\RequestInterface;

/**
 * Processes a Magento Creditmemo and returns a Vertex Invoice
 *
 * @api
 * @since 2.2.1
 */
interface CreditmemoProcessorInterface
{
    /**
     * Process a Creditmemo and return a Vertex Invoice Request
     *
     * @param RequestInterface $request
     * @param CreditmemoInterface $creditmemo
     * @return RequestInterface
     */
    public function process(RequestInterface $request, CreditmemoInterface $creditmemo);
}