<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) Amasty (https://www.amasty.com)
 * @package Dropshipping for Magento 2
 */-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Sales\Model\Service\OrderService">
        <plugin name="Amasty_Dropshipping::OrderService" type="Amasty\Dropshipping\Plugin\OrderService"/>
    </type>

    <type name="Magento\Sales\Model\Order\Email\Sender\OrderSender">
        <plugin name="Amasty_Dropshipping::OrderEmailSenderOrderSender" type="Amasty\Dropshipping\Plugin\OrderEmailSenderOrderSender"/>
    </type>

    <type name="Magento\Sales\Model\Order\Email\Container\OrderIdentity">
        <plugin name="Amasty_Dropshipping::OrderEmailSenderOrderSender" type="Amasty\Dropshipping\Plugin\OrderEmailContainerOrderIdentity"/>
    </type>
    <preference for="Amasty\Dropshipping\Api\Data\DealerItemInterface" type="Amasty\Dropshipping\Model\DealerItem\DealerItem" />
    <preference for="Amasty\Dropshipping\Api\DealerItemRepositoryInterface" type="Amasty\Dropshipping\Model\DealerItem\DealerItemRepository" />
</config>