<?xml version="1.0"?>
<!--
/**
 * @author Amasty Team
 * @copyright Copyright (c) 2023 Amasty (https://www.amasty.com)
 * @package Store Credit & Refund for Magento 2
 */-->
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Api/etc/extension_attributes.xsd">
    <extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
        <attribute code="amstorecredit_base_amount" type="float" />
        <attribute code="amstorecredit_amount" type="float" />
        <attribute code="amstorecredit_invoiced_base_amount" type="float" />
        <attribute code="amstorecredit_invoiced_amount" type="float" />
        <attribute code="amstorecredit_refunded_base_amount" type="float" />
        <attribute code="amstorecredit_refunded_amount" type="float" />
    </extension_attributes>
    <extension_attributes for="Magento\Sales\Api\Data\InvoiceInterface">
        <attribute code="amstorecredit_base_amount" type="float" />
        <attribute code="amstorecredit_amount" type="float" />
    </extension_attributes>
    <extension_attributes for="Magento\Sales\Api\Data\CreditmemoInterface">
        <attribute code="amstorecredit_base_amount" type="float" />
        <attribute code="amstorecredit_amount" type="float" />
    </extension_attributes>
    <extension_attributes for="Magento\Quote\Api\Data\TotalsInterface">
        <attribute code="amstorecredit_base_amount" type="float" />
        <attribute code="amstorecredit_amount" type="float" />
    </extension_attributes>
</config>
