<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
    <extension_attributes for="Magento\Quote\Api\Data\CartInterface">
        <attribute code="rma_replace_id" type="int" />
        <attribute code="rma_replace_order" type="int" />
    </extension_attributes>
    <extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
        <attribute code="rma_replace_id" type="int" />
        <attribute code="rma_replace_order" type="int" />
    </extension_attributes>
    <extension_attributes for="Magento\Quote\Api\Data\TotalsInterface">
        <attribute code="rma_replace_id" type="int" />
        <attribute code="rma_replace_order" type="int" />
    </extension_attributes>
</config>
