<?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_pse" translate="label comment" type="text" sortOrder="70" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
        <label>Pse</label>
        <depends>
            <field id="*/*/merchant_profile/site_id">MCO</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_pse/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_pse/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_pse/expiration</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_document_identification" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Capture document identification</label>
                <source_model>Magento\Config\Model\Config\Source\Enabledisable</source_model>
                <config_path>payment/mercadopago_adbpayment_pse/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="min_order_total" translate="label comment" type="text" sortOrder="110" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Minimum order total</label>
                <comment>Minimum amount to pay with Pse.</comment>
                <validate>validate-number validate-zero-or-greater</validate>
                <config_path>payment/mercadopago_adbpayment_pse/min_order_total</config_path>
            </field>
            <field id="max_order_total" translate="label comment" type="text" sortOrder="120" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
                <label>Maximum order amount</label>
                <comment>Maximum amount to pay with Pse.</comment>
                <validate>validate-number validate-zero-or-greater</validate>
                <config_path>payment/mercadopago_adbpayment_pse/max_order_total</config_path>
            </field>
            <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_pse/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_pse/sort_order</config_path>
            </field>
        </group>
    </group>
</include>
