<?xml version="1.0" encoding="UTF-8"?>
<!--
  @copyright  Vertex. All rights reserved.  https://www.vertexinc.com/
  @author     Mediotype                     https://www.mediotype.com/
  -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="vertex_address_validation" translate="label" type="text" sortOrder="510" showInDefault="1" showInWebsite="1" showInStore="1">
            <label><![CDATA[Address Validation]]></label>
            <tab>sales</tab>
            <resource>Magento_Sales::tax</resource>
            <group id="vertex_settings" translate="label comment" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1">
                <label><![CDATA[Vertex Address Validation]]></label>
                <field id="enable" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label><![CDATA[Use Vertex Address Validation]]></label>
                    <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
                    <comment><![CDATA[Validate US addresses entered during the Checkout process]]></comment>
                </field>
                <field id="address_api_url" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                    <label><![CDATA[Address Validation API URL]]></label>
                    <config_path>tax/vertex_settings/address_api_url</config_path>
                    <validate>required-entry</validate>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                </field>
                <field id="always_message" translate="label" type="select" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label><![CDATA[Confirmation Message when no action is needed]]></label>
                    <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
                    <comment><![CDATA[Display Confirmation Message when Original Address EXACTLY matches the Suggested Address]]></comment>
                    <depends>
                        <field id="enable">1</field>
                    </depends>
                    </field>
                </group>
        </section>
    </system>
</config>
