<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="boomi_integration" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
            <tab>djo_extensions</tab>
            <label>Boomi Integration</label>
            <resource>Magento_Backend::admin</resource>

            <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
                <label>General</label>

                <field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Enabled</label>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <comment><![CDATA[If set to No, all service will be disabled/off, even if they are set to Yes individually.<br /><span style="color:red;font-weight:bold;">!!! NOTE: IF TURNED OFF, SHOULD ALSO TURN OFF SAVED CC TO MAKE SURE THEY ARE STILL THERE WHEN TURNED BACK ON.</span>]]></comment>
                </field>
            </group>

            <group id="service_api" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
                <label>Service API</label>

                <field id="endpoint" translate="label comment" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Endpoint</label>
                    <comment><![CDATA[Needs to start with http:// or https:// ]]></comment>
                </field>
                <field id="auth_token" translate="label comment" type="obscure" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="0">
                    <label>Auth Token</label>
                    <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
                </field>
            </group>
        </section>
    </system>
</config>
