<?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="Magento\Checkout\Api\PaymentInformationManagementInterface">
        <plugin name="DJOGlobal_PreventFraudOrders::CustomerQuoteValidator" type="DJOGlobal\PreventFraudOrders\Plugin\CustomerQuoteValidator"/>
    </type>
    <type name="Magento\Checkout\Api\GuestPaymentInformationManagementInterface">
        <plugin name="DJOGlobal_PreventFraudOrders::GuestQuoteValidator" type="DJOGlobal\PreventFraudOrders\Plugin\GuestQuoteValidator"/>
    </type>
    <type name="Magento\Checkout\Api\ShippingInformationManagementInterface">
        <plugin name="DJOGlobal_PreventFraudOrders::ShippingAddressValidator" type="DJOGlobal\PreventFraudOrders\Plugin\ShippingAddressValidator"/>
    </type>

    <type name="DJOGlobal\PreventFraudOrders\Logger\Handler">
        <arguments>
            <argument name="filesystem" xsi:type="object">Magento\Framework\Filesystem\Driver\File</argument>
        </arguments>
    </type>
    <type name="DJOGlobal\PreventFraudOrders\Logger\Logger">
        <arguments>
            <argument name="name" xsi:type="string">block_cart</argument>
            <argument name="handlers"  xsi:type="array">
                <item name="system" xsi:type="object">DJOGlobal\PreventFraudOrders\Logger\Handler</item>
            </argument>
        </arguments>
    </type>
</config>
