<?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\Quote\Model\Quote">
        <plugin name="DJOGlobal_PreventAccountInfoChanges::ForceDefaultBillingAddress" type="DJOGlobal\PreventAccountInfoChanges\Plugin\ForceDefaultBillingAddress"/>
    </type>
    -->
    <type name="Magento\Checkout\Model\Type\Onepage">
        <plugin name="DJOGlobal_PreventAccountInfoChanges::RequireDefaultBillingAddressForCheckout" type="DJOGlobal\PreventAccountInfoChanges\Plugin\RequireDefaultBillingAddressForCheckout"/>
    </type>
    <type name="Magento\Customer\Model\Address\CustomerAddressDataProvider">
        <plugin name="DJOGlobal_PreventAccountInfoChanges::EnsureBillingAddressInCheckoutCustomerData" type="DJOGlobal\PreventAccountInfoChanges\Plugin\EnsureBillingAddressInCheckoutCustomerData"/>
    </type>
    <type name="Magento\Checkout\Model\DefaultConfigProvider">
        <plugin name="DJOGlobal_PreventAccountInfoChanges::AddEditBillingAddressFlagToCheckoutConfig" type="DJOGlobal\PreventAccountInfoChanges\Plugin\AddEditBillingAddressFlagToCheckoutConfig"/>
    </type>
    <type name="Magento\CheckoutAddressSearch\Block\Checkout\BillingAddressProcessor">
        <plugin name="DJOGlobal_PreventAccountInfoChanges::PreventBillingAddressEditInCheckoutAddressSearch" type="DJOGlobal\PreventAccountInfoChanges\Plugin\PreventBillingAddressEditInCheckoutAddressSearch"/>
    </type>

    <type name="DJOGlobal\PreventAccountInfoChanges\Plugin\RequireDefaultBillingAddressForCheckout">
        <arguments>
            <argument name="customerSession" xsi:type="object">Magento\Customer\Model\Session\Proxy</argument>
        </arguments>
    </type>
</config>
