<?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\Customer\CustomerData\Customer">
        <plugin name="Reply-AdditionalCustomerData-Plugin"
                type="Reply\Customer\Plugin\CustomerData\Customer"
                disabled="false"/>
    </type>
    <!-- Override per aggiunta info sales_order_view adminhtml -->
    <preference for="Magento\Sales\Block\Adminhtml\Order\View\Info" type="Reply\Customer\Block\Adminhtml\Order\View\Info" />
    <!-- Override per aggiunta info sales_order_view frontend -->
    <preference for="Magento\Sales\Block\Order\Info" type="Reply\Customer\Block\Order\Info" />
    <type name="Reply\Customer\Model\Condition\Customer">
        <arguments>
            <argument name="data" xsi:type="array">
                <item name="customerResource" xsi:type="object">Magento\Customer\Model\ResourceModel\Customer</item>
            </argument>
        </arguments>
    </type>

    <!-- Modifica voci address book, rimozione private/company e request_invoice -->
    <type name="Magento\Customer\Block\Address\Book">
        <plugin name="amCompanyCustomer" type="Reply\Customer\Plugin\Customer\Block\Address\Book" />
    </type>
    <preference for="Magento\Customer\Block\Account\Dashboard\Address" type="Reply\Customer\Block\Account\Dashboard\Address" />
</config>
