<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">


    <preference for="Yeboyebo\Vales\Api\ValesManagementInterface" type="Yeboyebo\Vales\Model\ValesManagement" />
    <preference for="Yeboyebo\Vales\Api\GuestValesManagementInterface" type="Yeboyebo\Vales\Model\GuestCart\GuestValesManagement" />

    <type name="Magento\Quote\Api\CartTotalRepositoryInterface">
        <plugin name="yeboyebo_vales_add_quote_data" type="Yeboyebo\Vales\Plugin\Cart\Totals\TotalsValesConverterPlugin"/>
    </type>
    <preference for="Magento\Paypal\Model\Cart" type="Yeboyebo\Vales\Model\Paypal\Cart" />
     <preference for="Magento\Paypal\Model\Express" type="Yeboyebo\Vales\Model\Paypal\Express" />

</config>