<?xml version="1.0" encoding="UTF-8"?>
<!--
/**
 * di
 *
 * @copyright Copyright © 2020 Magepow. All rights reserved.
 * @author    @copyright Copyright (c) 2014 Magepow (<https://www.magepow.com>)
 * @license <https://www.magepow.com/license-agreement.html>
 * @Author: magepow<support@magepow.com>
 * @github: <https://github.com/magepow>
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
    <preference for="Magepow\OnestepCheckout\Api\CheckoutManagementInterface" type="Magepow\OnestepCheckout\Model\CheckoutManagement"/>
    <preference for="Magepow\OnestepCheckout\Api\GuestCheckoutManagementInterface" type="Magepow\OnestepCheckout\Model\GuestCheckoutManagement"/>
    <type name="Magento\Customer\Model\Address">
        <plugin name="setShouldIgnoreValidation" type="Magepow\OnestepCheckout\Plugin\Customer\Address"/>
    </type>
    <type name="Magento\Checkout\Helper\Data">
        <plugin name="osc_allow_guest_checkout" type="Magepow\OnestepCheckout\Plugin\Checkout\Data"/>
    </type>
    <type name="Magento\Customer\Model\AccountManagement">
        <plugin name="onestepcheckout_newaccount" type="Magepow\OnestepCheckout\Plugin\Customer\AccountManagement"/>
    </type>
</config>
