<?xml version="1.0"?>
<!--
  ~ Copyright Magmodules.eu. 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\Quote\Api\Data\CartInterface">
        <attribute code="mollie_payment_fee" type="float"/>
        <attribute code="base_mollie_payment_fee" type="float"/>
        <attribute code="mollie_payment_fee_tax" type="float"/>
        <attribute code="base_mollie_payment_fee_tax" type="float"/>
    </extension_attributes>

    <extension_attributes for="Magento\Sales\Api\Data\OrderInterface">
        <attribute code="mollie_payment_fee" type="float"/>
        <attribute code="base_mollie_payment_fee" type="float"/>
        <attribute code="mollie_payment_fee_tax" type="float"/>
        <attribute code="base_mollie_payment_fee_tax" type="float"/>
    </extension_attributes>

    <extension_attributes for="Magento\Sales\Api\Data\OrderItemInterface">
        <attribute code="mollie_recurring_type" type="string"/>
        <attribute code="mollie_recurring_data" type="string[]"/>
    </extension_attributes>

    <extension_attributes for="Magento\Customer\Api\Data\CustomerInterface">
        <attribute code="mollie_customer_id" type="string"/>
    </extension_attributes>
</config>
