<?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)
 */
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <group id="one_way_items_sync" translate="label comment" showInDefault="0" showInWebsite="0" showInStore="0" sortOrder="60">
        <label>Product Sync</label>
        <frontend_model>Avalara\AvaTax\Block\Adminhtml\System\Config\ExpandedFieldSet</frontend_model>
        <field id="one_way_items_sync_enabled" type="select" translate="label" sortOrder="100" showInDefault="0" showInWebsite="0" showInStore="0">
            <config_path>tax/one_way_items_sync/enabled</config_path>
            <label>Sync Products with Avalara</label>
            <frontend_model>productSyncEnabledToggle</frontend_model>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
            <tooltip>Synchronize your product catalog in Adobe Commerce with the catalog you configured in the Avalara Portal. This a one-way product sync from Adobe Commerce to Avalara.</tooltip>
            <depends>
                <field id="enabled">1</field>
            </depends>
        </field>
        <depends>
            <field id="tax/avatax_configuration/enabled">1</field>
            <field id="tax/avatax_configuration/product_sync_subscription">1</field>
        </depends>
    </group>
</include>