Skip to content

Commit

Permalink
NTR: update routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Mar 12, 2024
1 parent 8ec6079 commit 19cbd82
Show file tree
Hide file tree
Showing 32 changed files with 375 additions and 291 deletions.
2 changes: 0 additions & 2 deletions src/Compatibility/DependencyLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ public function loadServices(): void
# load other data
if ($versionCompare->gte('6.4')) {
$loader->load('compatibility/services_6.4.xml');
} elseif ($versionCompare->gte('6.3.5.0')) {
$loader->load('compatibility/services_6.3.5.0.xml');
}

if ($versionCompare->gte('6.5')) {
Expand Down

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/Order/Sw6/OrderController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/Order/Sw6/RefundController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/Order/Sw6/ShippingController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/Payment/Sw6/ReturnController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/PaymentMethod/Sw6/PaymentMethodController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/PluginConfig/Sw6/ConfigController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/Subscription/Sw6/SubscriptionController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Api/Support/Sw6/SupportController.php

This file was deleted.

27 changes: 0 additions & 27 deletions src/Controller/Api/Webhook/Sw6/WebhookController.php

This file was deleted.

15 changes: 0 additions & 15 deletions src/Controller/Storefront/POS/Sw6/PosController.php

This file was deleted.

14 changes: 0 additions & 14 deletions src/Controller/Storefront/iDEAL/Sw6/iDealController.php

This file was deleted.

Empty file.
24 changes: 0 additions & 24 deletions src/Resources/config/compatibility/services_6.3.5.0.xml

This file was deleted.

12 changes: 12 additions & 0 deletions src/Resources/config/routes/admin-api/order.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,17 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">
<route id="api.action.mollie.order.payment-url" path="/api/_action/mollie/order/payment-url" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\OrderControllerBase::paymentUrl</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.order.payment-url.legacy" path="/api/v{version}/_action/mollie/order/payment-url" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\OrderControllerBase::paymentUrlLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>
</routes>
14 changes: 14 additions & 0 deletions src/Resources/config/routes/admin-api/payment_method.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,18 @@
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">

<route id="api.mollie.payment-method.update-methods" path="/api/_action/mollie/payment-method/update-methods" methods="GET">
<default key="_controller">Kiener\MolliePayments\Controller\Api\PaymentMethod\PaymentMethodControllerBase::updatePaymentMethods</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.mollie.payment-method.update-methods.legacy" path="/api/v{version}/_action/mollie/payment-method/update-methods" methods="GET">
<default key="_controller">Kiener\MolliePayments\Controller\Api\PaymentMethod\PaymentMethodControllerBase::updatePaymentMethodsLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

</routes>
75 changes: 75 additions & 0 deletions src/Resources/config/routes/admin-api/refund.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,80 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/routing
https://symfony.com/schema/routing/routing-1.0.xsd">
<route id="api.mollie.refund.order" path="/api/mollie/refund/order" methods="GET">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundOrderNumber</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund-manager.data" path="/api/_action/mollie/refund-manager/data" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundManagerData</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.list" path="/api/_action/mollie/refund/list" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::list</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.total" path="/api/_action/mollie/refund/total" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::total</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund" path="/api/_action/mollie/refund" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundOrderID</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.cancel" path="/api/_action/mollie/refund/cancel" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::cancel</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund-manager.data.legacy" path="/api/v{version}/_action/mollie/refund-manager/data" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundManagerDataLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.list.legacy" path="/api/v{version}/_action/mollie/refund/list" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::listLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.total.legacy" path="/api/v{version}/_action/mollie/refund/total" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::totalLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.legacy" path="/api/v{version}/_action/mollie/refund" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::refundLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>

<route id="api.action.mollie.refund.cancel.legacy" path="/api/v{version}/_action/mollie/refund/cancel" methods="POST">
<default key="_controller">Kiener\MolliePayments\Controller\Api\Order\RefundControllerBase::cancelLegacy</default>
<default key="_routeScope">api</default>
<default key="auth_required"><bool>true</bool></default>
<default key="auth_enabled"><bool>true</bool></default>
</route>
</routes>
Loading

0 comments on commit 19cbd82

Please sign in to comment.