<?xml version="1.0"?>
<!--
/**
  * BSS Commerce Co.
  *
  * NOTICE OF LICENSE
  *
  * This source file is subject to the EULA
  * that is bundled with this package in the file LICENSE.txt.
  * It is also available through the world-wide-web at this URL:
  * http://bsscommerce.com/Bss-Commerce-License.txt
  *
  * @category  BSS
  * @package   Bss_StoreCredit
  * @author    Extension Team
  * @copyright Copyright (c) 2017-2018 BSS Commerce Co. ( http://bsscommerce.com )
  * @license   http://bsscommerce.com/Bss-Commerce-License.txt
  */
-->
<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\TotalsInterface">
        <attribute code="base_bss_storecredit_amount" type="float" />
        <attribute code="bss_storecredit_amount" type="float" />
    </extension_attributes>

    <extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
        <attribute code="base_bss_storecredit_amount" type="float" />
        <attribute code="bss_storecredit_amount" type="float" />
        <attribute code="bss_store_credit" type="Bss\StoreCredit\Api\Data\HistoryInterface" />
    </extension_attributes>

    <extension_attributes for="Magento\Sales\Model\Order">
        <attribute code="bss_store_credit" type="Bss\StoreCredit\Model\History" />
    </extension_attributes>
</config>
