<?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\Block\Cart\Item\Renderer\Actions\Edit">
        <plugin name="DJOGlobal_Mismate::HideEditInCart" type="DJOGlobal\Mismate\Plugin\HideEditInCart"/>
    </type>

    <type name="Magento\Checkout\Model\Cart">
        <plugin name="DJOGlobal_Mismate::ValidateMismate" type="DJOGlobal\Mismate\Plugin\ValidateMismate"/>
    </type>

    <type name="Magento\Quote\Model\Quote\Item\Processor">
        <plugin name="DJOGlobal_Mismate::AdjustMismatePrice" type="DJOGlobal\Mismate\Plugin\AdjustMismatePrice"/>
    </type>

    <type name="Magento\Quote\Model\Quote\Item">
        <plugin name="DJOGlobal_Mismate::ForceAsSeparateQuoteItems" type="DJOGlobal\Mismate\Plugin\ForceAsSeparateQuoteItems"/>
    </type>

    <!-- add mismate item to quote -->
    <type name="Magento\Catalog\Model\Product\Type\AbstractType">
        <plugin name="DJOGlobal_Mismate::AddProductInsertsToQuoteItem" type="DJOGlobal\Mismate\Plugin\AddMismateToQuoteItemAsProductCustomOptions" sortOrder="199"/>
    </type>

    <type name="Magento\Catalog\Helper\Product\Configuration">
        <plugin name="DJOGlobal_Mismate::AddMismateCustomOptionsToQuoteItemRenderer" type="DJOGlobal\Mismate\Plugin\AddMismateCustomOptionsToQuoteItemRenderer"/>
    </type>

    <type name="Magento\Quote\Model\Quote\Item\ToOrderItem">
        <plugin name="DJOGlobal_Mismate::AddMismateToOrderItem" type="DJOGlobal\Mismate\Plugin\AddMismateToOrderItem"/>
    </type>

    <type name="\Magento\Sales\Block\Order\Item\Renderer\DefaultRenderer">
        <plugin name="DJOGlobal_Mismate::AddMismateToOrderItemRenderer" type="DJOGlobal\Mismate\Plugin\AddMismateToOrderItemRenderer"/>
    </type>

    <type name="\Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn">
        <plugin name="DJOGlobal_Mismate::AddMismateToOrderItemRendererAdmin.php" type="DJOGlobal\Mismate\Plugin\AddMismateToOrderItemRendererAdmin"/>
    </type>
</config>
