<?php
namespace FiloBlu\Esb\Api\Data;

use Magento\Sales\Api\Data\InvoiceInterface;

/**
 * Interface InvoiceProducerInterface
 * @package FiloBlu\Esb\Api\Data
 */
interface InvoiceProducerInterface extends ProducerInterface
{
    /**
     * @param InvoiceInterface|null $invoice
     * @return MessageInterface
     */
    public function produce(InvoiceInterface $invoice = null) : MessageInterface;
}
