<?xml version="1.0" encoding="UTF-8" ?>
<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="Stripe\ShopwarePayment\Webhook\StripeWebhookController" public="true">
            <argument type="service" id="Stripe\ShopwarePayment\StripeApi\StripeApiFactory" />
            <argument type="service" id="Stripe\ShopwarePayment\Webhook\StripeWebhookEventDispatcher" />
            <argument type="service" id="Stripe\ShopwarePayment\Webhook\StripeWebhookRegistrationService" />
            <argument type="service" id="monolog.logger.stripe_payment_channel" />
        </service>
        <service id="Stripe\ShopwarePayment\Webhook\StripeWebhookEventDispatcher">
            <argument type="service" id="Stripe\ShopwarePayment\Webhook\StripeWebhookEventHandler" />
        </service>
        <service id="Stripe\ShopwarePayment\Webhook\StripeWebhookEventHandler">
            <argument type="service" id="order_transaction.repository" />
            <argument type="service" id="Stripe\ShopwarePayment\Payment\IdempotentOrderTransactionStateHandler" />
            <argument type="service" id="Stripe\ShopwarePayment\Payment\StripeOrderTransactionService" />
            <argument type="service" id="Stripe\ShopwarePayment\Payment\StripeCustomerService" />
            <argument type="service" id="Stripe\ShopwarePayment\StripeApi\StripeApiFactory" />
            <argument
                type="service"
                id="Stripe\ShopwarePayment\OrderTransactionLocking\OrderTransactionLockingService"
            />
        </service>
        <service id="Stripe\ShopwarePayment\Webhook\StripeWebhookRegistrationService">
            <argument type="service" id="Stripe\ShopwarePayment\StripeApi\StripeApiFactory" />
            <argument type="service" id="Stripe\ShopwarePayment\Config\StripePluginConfigService" />
            <argument type="service" id="router.default" />
        </service>
    </services>
</container>
