<?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\Framework\View\Element\UiComponent\DataProvider\DataProvider">
        <plugin name="Amasty_Dropshipping::DataProvider" type="Amasty\Dropshipping\Plugin\DataProvider"/>
    </type>
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\CollectionFactory">
        <plugin name="Amasty_Dropshipping::DataProviderCollectionFactory" type="Amasty\Dropshipping\Plugin\DataProviderCollectionFactory"/>
    </type>
    <type name="Magento\Sales\Block\Adminhtml\Order\Create\Form\Account">
        <plugin name="Amasty_Dropshipping::OrderCreateFormAccount" type="Amasty\Dropshipping\Plugin\OrderCreateFormAccount"/>
    </type>
    <type name="Magento\Sales\Model\ResourceModel\Order\Customer\Collection">
        <plugin name="Amasty_Dropshipping::OrderCustomerCollection" type="Amasty\Dropshipping\Plugin\OrderCustomerCollection"/>
    </type>
    <type name="Magento\Customer\Model\Customer\Attribute\Source\Group">
        <plugin name="Amasty_Dropshipping::CustomerAttributeSourceGroup" type="Amasty\Dropshipping\Plugin\CustomerAttributeSourceGroup"/>
    </type>
    <type name="Magento\Widget\Block\Adminhtml\Widget">
        <plugin name="Amasty_Dropshipping::Widget" type="Amasty\Dropshipping\Plugin\Widget"/>
    </type>
    <type name="Magento\Sales\Block\Adminhtml\Order\View\Items\Renderer\DefaultRenderer">
        <plugin name="Amasty_Dropshipping::AddDealersColumn" type="Amasty\Dropshipping\Plugin\Block\Adminhtml\Order\View\Items\Renderer\DealerRendererPlugin" sortOrder="1" />
        <plugin name="Amasty_Dropshipping::AddNotifiedColumn" type="Amasty\Dropshipping\Plugin\Block\Adminhtml\Order\View\Items\Renderer\NotifiedRendererPlugin" sortOrder="10" />
    </type>
    <type name="Magento\Sales\Block\Adminhtml\Items\AbstractItems">
        <plugin name="Amasty_Dropshipping::getItemsForDealer" type="Amasty\Dropshipping\Plugin\Block\Adminhtml\Order\View\Items\GetItemsPlugin" sortOrder="2" />
    </type>
    <type name="Magento\Sales\Model\Service\InvoiceService">
        <plugin name="Amasty_Dropshipping::setItemsInInvoice" type="Amasty\Dropshipping\Plugin\Model\Service\InvoiceServicePlugin" sortOrder="3" />
    </type>
    <type name="Amasty\AdvancedMSI\Model\Repository\ReservedProductsRepository">
        <plugin name="Amasty_Dropshipping::getReservedProducts" type="Amasty\Dropshipping\Plugin\Model\Repository\ReservedProducts" sortOrder="3" />
    </type>
</config>