<?xml version="1.0"?>
<!--
/**
 * @copyright: Copyright © 2020 Firebear Studio. All rights reserved.
 * @author   : Firebear Studio <fbeardev@gmail.com>
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="Magento\Customer\Controller\Adminhtml\Address\Save">
        <plugin name="publish_customer_update_adminhtml"
                type="Firebear\PlatformSap\Plugin\CustomerUpdateAdminhtmlPlugin"/>
    </type>
    <type name="Magento\Customer\Controller\Adminhtml\Address\DefaultBillingAddress">
        <plugin name="publish_customer_update_adminhtml_default_billing"
                type="Firebear\PlatformSap\Plugin\CustomerUpdateAdminhtmlPlugin"/>
    </type>
    <type name="Magento\Customer\Controller\Adminhtml\Address\Delete">
        <plugin name="publish_customer_update_adminhtml_address_delete"
                type="Firebear\PlatformSap\Plugin\CustomerUpdateAdminhtmlPlugin"/>
    </type>
    <type name="Magento\Customer\Controller\Adminhtml\Address\DefaultShippingAddress">
        <plugin name="publish_customer_update_adminhtml_default_shipping"
                type="Firebear\PlatformSap\Plugin\CustomerUpdateAdminhtmlPlugin"/>
    </type>
    <type name="Magento\Backend\Block\Widget\Button\ToolbarInterface">
        <plugin name="sync_with_sap_button_toolbar" type="Firebear\PlatformSap\Plugin\Button\ToolbarPlugin"/>
    </type>
    <type name="Magento\Sales\Controller\Adminhtml\Order\Creditmemo\Save">
        <plugin name="publish_credit_memo_update_adminhtml"
                type="Firebear\PlatformSap\Plugin\CreditmemoUpdateAdminhtmlPlugin"/>
    </type>
    <type name="Magento\Sales\Controller\Adminhtml\Order\Cancel">
        <plugin name="publish_order_cancel_adminhtml"
                type="Firebear\PlatformSap\Plugin\OrderCancelAdminhtmlPlugin"/>
    </type>
    <type name="Magento\Framework\View\Element\UiComponent\DataProvider\FilterPool">
        <plugin name="firebearBeforeApplyFilters" type="Firebear\PlatformSap\Plugin\BeforeApplyFilters"/>
    </type>
</config>
