<?xml version="1.0" encoding="UTF-8" ?>

<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping"
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                  xsi:schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping
                                  http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd"
                  xmlns:gedmo="http://gediminasm.org/schemas/orm/doctrine-extensions-mapping"
>
    <mapped-superclass name="Sylius\MolliePlugin\Entity\PaymentSurchargeFee" table="mollie_configuration_surcharge_fee">
        <id name="id" type="integer">
            <generator strategy="AUTO"/>
        </id>
        <field name="type" column="type" type="string" nullable="true" />
        <field name="fixedAmount" column="fixed_amount" type="float" nullable="true" />
        <field name="percentage" column="percentage" type="float" nullable="true" />
        <field name="surchargeLimit" column="surcharge_limit" type="float" nullable="true" />
        <one-to-one field="mollieGatewayConfig" target-entity="Sylius\MolliePlugin\Entity\MollieGatewayConfig" mapped-by="paymentSurchargeFee"/>
    </mapped-superclass>
</doctrine-mapping>
