<?xml version="1.0"?>
<!--
/**
 * Avalara_AvaTax
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
 *
 * @copyright  Copyright (c) 2016 Avalara, Inc.
 * @license    http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Event/etc/events.xsd">
    <event name="admin_system_config_changed_section_tax">
        <observer name="admin_system_config_changed_section_tax" instance="Avalara\AvaTax\Observer\ConfigSaveObserver" />
    </event>
    <event name="catalog_product_delete_after_done">
        <observer name="avatax_delete_synced_product" instance="Avalara\AvaTax\Observer\RemoveAvaTaxProductEventObserver" />
    </event>
    <event name="catalog_product_save_before">
        <observer name="avatax_update_synced_product" instance="Avalara\AvaTax\Observer\UpdateProductToAvaTaxEventObserver" />
    </event>
    <event name="store_edit">
        <observer name="avatax_sync_store_info" instance="Avalara\AvaTax\Observer\UpdateStoreInfoToCCSPortalObserver" />
    </event>
</config>
