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

use Magento\Sales\Api\Data\OrderInterface;

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