<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Sales\Api\OrderRepositoryInterface">
        <plugin name="reply_order_plugin_repository" type="Reply\Sales\Plugin\OrderRepositoryPlugin"/>
    </type>
    <type name="Magento\Quote\Model\Quote\Item\ToOrderItem">
        <plugin name="reply_order_item_plugin_repository" type="Reply\Sales\Plugin\ToOrderItemPlugin"/>
    </type>
    <type name="Magento\Quote\Model\Quote\Address\ToOrderAddress">
        <plugin name="reply_order_address_plugin_repository" type="Reply\Sales\Plugin\ToOrderAddressPlugin"/>
    </type>
    <preference for="Magento\SalesSequence\Model\Sequence" type="Reply\Sales\Model\Sequence"/>
    <type name="Magento\Sales\Block\Adminhtml\Order\View\History">
        <plugin name="reply_sales_hide_status" type="Reply\Sales\Plugin\HistoryPlugin"/>
    </type>
    <preference for="Magento\Sales\Model\ResourceModel\Order\Handler\State"
                type="Reply\Sales\Model\ResourceModel\Order\Handler\State"/>
    <preference for="Magento\Sales\Controller\Adminhtml\Order\AddComment"
                type="Reply\Sales\Controller\Adminhtml\Order\AddComment"/>
    <preference for="Magento\Sales\Block\Adminhtml\Order\View"
                type="Reply\Sales\Block\Adminhtml\Order\View"/>
    <type name="Magento\Sales\Controller\Order\Invoice">
        <plugin name="reply_sales_controller_order_invoice_plugin" type="Reply\Sales\Plugin\Controller\Order\Invoice"/>
    </type>
</config>
