<?php

namespace FiloBlu\Esb\Api\Data;

use Magento\Sales\Api\Data\OrderInterface;

/**
 * Interface OrderStatusTransitionProducerInterface
 * @package FiloBlu\Esb\Api\Data
 */
interface OrderStatusTransitionProducerInterface extends OrderProducerInterface
{

    /**
     * @param OrderInterface|null $order
     * @param OrderStatusTransitionInterface|null $transition
     * @return MessageInterface
     */
    public function produce(OrderInterface $order = null, OrderStatusTransitionInterface $transition = null): MessageInterface;
}
