<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <type name="MercadoPago\AdbPayment\Gateway\Response\TxnIdCheckoutProHandler">
        <plugin name="yeboyebo_mercadopago_store_sandbox_init_point"
                type="Yeboyebo\MercadoPago\Plugin\Gateway\Response\TxnIdCheckoutProHandlerPlugin"/>
    </type>
    <type name="MercadoPago\AdbPayment\Gateway\Request\BackUrlsDataRequest">
        <plugin name="yeboyebo_mercadopago_back_urls"
                type="Yeboyebo\MercadoPago\Plugin\Gateway\Request\BackUrlsDataRequestPlugin"/>
    </type>
    <type name="MercadoPago\AdbPayment\Gateway\Request\AdditionalInfoPayerDataRequest">
        <plugin name="yeboyebo_mercadopago_skip_vault_without_mp_user"
                type="Yeboyebo\MercadoPago\Plugin\Gateway\Request\AdditionalInfoPayerDataRequestPlugin"/>
    </type>
    <type name="MercadoPago\AdbPayment\Gateway\Request\CcPaymentDataRequest">
        <plugin name="yeboyebo_mercadopago_cc_binary_mode_for_3ds"
                type="Yeboyebo\MercadoPago\Plugin\Gateway\Request\CcPaymentDataRequestPlugin"/>
    </type>
    <type name="MercadoPago\AdbPayment\Gateway\Http\TransferFactory">
        <plugin name="yeboyebo_mercadopago_transfer_binary_mode_for_3ds"
                type="Yeboyebo\MercadoPago\Plugin\Gateway\Http\TransferFactoryPlugin"/>
    </type>
    <type name="MercadoPago\AdbPayment\Gateway\Http\Client\CreateOrderPaymentCustomClient">
        <plugin name="yeboyebo_mercadopago_resolve_quote_id_for_3ds"
                type="Yeboyebo\MercadoPago\Plugin\Gateway\Http\Client\CreateOrderPaymentCustomClientPlugin"/>
    </type>
    <type name="Yeboyebo\Sales\Observer\SubmitObserver">
        <plugin name="yeboyebo_mercadopago_defer_checkout_pro_order_email"
                type="Yeboyebo\MercadoPago\Plugin\Sales\Observer\SubmitObserverPlugin"/>
    </type>
    <type name="Magento\Quote\Observer\SubmitObserver">
        <plugin name="yeboyebo_mercadopago_defer_checkout_pro_order_email_base"
                type="Yeboyebo\MercadoPago\Plugin\Sales\Observer\SubmitObserverPlugin"/>
    </type>
    <type name="Magento\Sales\Model\Order\Email\Sender\OrderSender">
        <plugin name="yeboyebo_mercadopago_defer_checkout_pro_order_sender"
                type="Yeboyebo\MercadoPago\Plugin\Sales\Model\Order\Email\Sender\OrderSenderPlugin"/>
    </type>
    <type name="Yeboyebo\MercadoPago\Model\CheckoutProOrderSynchronizer">
        <plugin name="yeboyebo_mercadopago_checkout_pro_send_order_email"
                type="Yeboyebo\MercadoPago\Plugin\Model\CheckoutProOrderSynchronizerPlugin"/>
    </type>
    <preference for="Yeboyebo\MercadoPago\Api\OrderSyncManagementInterface"
                type="Yeboyebo\MercadoPago\Model\Api\OrderSyncManagement"/>
    <preference for="Yeboyebo\MercadoPago\Api\OrderCancelManagementInterface"
                type="Yeboyebo\MercadoPago\Model\Api\OrderCancelManagement"/>
    <type name="Magento\Framework\Console\CommandList">
        <arguments>
            <argument name="commands" xsi:type="array">
                <item name="yeboyebo_mercadopago_debug_payment" xsi:type="object">Yeboyebo\MercadoPago\Console\Command\DebugPaymentCommand</item>
                <item name="yeboyebo_mercadopago_sync_order" xsi:type="object">Yeboyebo\MercadoPago\Console\Command\SyncOrderCommand</item>
            </argument>
        </arguments>
    </type>
</config>
