<?xml version="1.0"?>
<!--
/**
 * Mondial Relay & InPost Shipping Module
 *
 * @author    Magentix
 * @copyright Copyright © 2024 Magentix. All rights reserved.
 * @license   https://www.magentix.fr/en/licence.html Magentix Software Licence
 * @link      https://mondialrelay.magentix.fr/
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="MondialRelay\Shipping\Api\PickupRepositoryInterface" type="MondialRelay\Shipping\Model\PickupRepository" />
    <preference for="MondialRelay\Shipping\Api\Data\PickupSearchResultsInterface" type="Magento\Framework\Api\SearchResults" />
    <preference for="MondialRelay\Shipping\Api\GuestPickupRepositoryInterface" type="MondialRelay\Shipping\Model\GuestPickupRepository" />

    <type name="Magento\Quote\Model\Quote\Config">
        <plugin name="mondialrelay_shipping_catalog_attributes" type="MondialRelay\Shipping\Plugin\CatalogAttributes" sortOrder="120" />
    </type>
    <type name="Magento\Sales\Api\OrderRepositoryInterface">
        <plugin name="mondialrelay_order_api_shipping_data" type="MondialRelay\Shipping\Plugin\OrderRepository" sortOrder="100" />
    </type>
</config>
