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

<!--

 This file is part of the Sylius Mollie Plugin package.

 (c) Sylius Sp. z o.o.

 For the full copyright and license information, please view the LICENSE
 file that was distributed with this source code.

-->

<container
    xmlns="http://symfony.com/schema/dic/services"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"
>
    <services>
        <service
            id="sylius_mollie.processor.payment_surcharge"
            class="Sylius\MolliePlugin\Processor\PaymentSurchargeProcessor"
        >
            <argument type="service" id="sylius_mollie.calculator.payment_fee.composite"/>
            <tag name="sylius.order_processor" priority="10"/>
        </service>

        <service
            id="sylius_mollie.processor.payment_surcharge_cleanup"
            class="Sylius\MolliePlugin\Processor\PaymentSurchargeCleanupProcessor"
        >
            <argument type="service" id="sylius_mollie.calculator.clearer.payment_fee_adjustment"/>
            <tag name="sylius.order_processor" priority="20"/>
        </service>
    </services>
</container>
