<?xml version="1.0"?>
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
    <group id="mercadopago_adbpayment_payment_methods_off" translate="label comment" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">

        <label>Offline Payments Methods</label>
         <depends>
            <field id="*/*/merchant_profile/site_id" separator="|">MLB|MPE|MCO|MLU|MEC|MLA|MLM</field>
        </depends>
        <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0">
            <label>Enabled</label>
            <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
            <config_path>payment/mercadopago_adbpayment_payment_methods_off/active</config_path>
        </field>

        <field id="title" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
            <label>Title</label>
            <config_path>payment/mercadopago_adbpayment_payment_methods_off/title</config_path>
        </field>

        <field id="expiration" translate="label comment" type="text" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
            <label>Deadline for payment</label>
            <comment>Calendar days.</comment>
            <validate>required-entry validate-number</validate>
            <config_path>payment/mercadopago_adbpayment_payment_methods_off/expiration</config_path>
        </field>

        <field id="exclude_payment_methods" translate="label comment" type="multiselect" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="0">
            <label>Exclude Payment Methods</label>
            <comment>Select the payment methods you do NOT want to accept.</comment>
            <source_model>MercadoPago\AdbPayment\Model\Adminhtml\Source\PaymentMethodsOff</source_model>
            <config_path>payment/mercadopago_adbpayment_payment_methods_off/payment_methods</config_path>
        </field>

        <group id="document" translate="label comment" type="text" sortOrder="100" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Capture of customer details in the payment form</label>
            <comment>Activate this option if you want to obtain buyer`s documents details, using an additional field on the payment form. Disable it if your store already gets these details.</comment>
            <field id="get_name" translate="label comment" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Capture name</label>
                <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
                <config_path>payment/mercadopago_adbpayment_payment_methods_off/get_name</config_path>
            </field>
            <field id="get_document_identification" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Capture document identification</label>
                <comment>In case you leave this option active, an additional field in the payment form will obtain this information. If disabled, details will be retrieved directly from other fields within your store.</comment>
                <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
                <config_path>payment/mercadopago_adbpayment_payment_methods_off/get_document_identification</config_path>
            </field>
        </group>

         <group id="mercadopago_adbpayment_native_fields" translate="label comment" type="text" sortOrder="1000" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
            <label>Common Payment Method Definitions</label>
            <field id="specificcountry" translate="label comment" type="multiselect" sortOrder="130" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Payment From Specific Countries</label>
                <comment>Countries eligible to use this payment method.</comment>
                <source_model>Magento\Directory\Model\Config\Source\Country</source_model>
                <config_path>payment/mercadopago_adbpayment_payment_methods_off/specificcountry</config_path>
            </field>
            <field id="sort_order" translate="label comment" type="text" sortOrder="150" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Sort Order</label>
                <comment>Sets up in which order the payment methods will be shown at the Checkout.</comment>
                <frontend_class>validate-number</frontend_class>
                <config_path>payment/mercadopago_adbpayment_payment_methods_off/sort_order</config_path>
            </field>
        </group>

    </group>
</include>
