From c78513ebd03a9f619d4df306cad231573ccaca78 Mon Sep 17 00:00:00 2001 From: Spryker Bot Date: Thu, 2 May 2024 11:30:25 +0300 Subject: [PATCH] Auto-updating Spryker modules on 2024-04-30 13:25 for release group #5367 / Jira ticket ACP-2252 (#481) * Applied release group `ACP-2252 Stripe B2B/B2C App: Support for Refunds in OMS`, RG link https://api.release.spryker.com/release-group/5367 * ACP-2252: Fixed test --------- Co-authored-by: upgrader Co-authored-by: Anton Zubariev --- composer.lock | 39 ++++++++++--------- src/Pyz/Zed/Oms/OmsDependencyProvider.php | 2 + .../PaymentRefundedMessageCest.php | 2 +- 3 files changed, 24 insertions(+), 19 deletions(-) diff --git a/composer.lock b/composer.lock index d0c088b95b..62f6a828b9 100644 --- a/composer.lock +++ b/composer.lock @@ -28422,16 +28422,16 @@ }, { "name": "spryker/message-broker", - "version": "1.10.0", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/spryker/message-broker.git", - "reference": "505bccef1b489f2a19e7c920820ca74d49dab3d8" + "reference": "848e88dec3eac53a7d2a51e8291be9c7120563a9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/message-broker/zipball/505bccef1b489f2a19e7c920820ca74d49dab3d8", - "reference": "505bccef1b489f2a19e7c920820ca74d49dab3d8", + "url": "https://api.github.com/repos/spryker/message-broker/zipball/848e88dec3eac53a7d2a51e8291be9c7120563a9", + "reference": "848e88dec3eac53a7d2a51e8291be9c7120563a9", "shasum": "" }, "require": { @@ -28477,9 +28477,9 @@ ], "description": "MessageBroker module", "support": { - "source": "https://github.com/spryker/message-broker/tree/1.10.0" + "source": "https://github.com/spryker/message-broker/tree/1.11.0" }, - "time": "2023-12-07T09:15:27+00:00" + "time": "2024-04-29T16:15:47+00:00" }, { "name": "spryker/message-broker-aws", @@ -40156,16 +40156,16 @@ }, { "name": "spryker/refund", - "version": "5.8.0", + "version": "5.9.0", "source": { "type": "git", "url": "https://github.com/spryker/refund.git", - "reference": "558f980c3eaf19d869a1e1468f38a548decaddd5" + "reference": "c59e367f2d4f16ffe4162b8a160be0c6aa0e684d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/refund/zipball/558f980c3eaf19d869a1e1468f38a548decaddd5", - "reference": "558f980c3eaf19d869a1e1468f38a548decaddd5", + "url": "https://api.github.com/repos/spryker/refund/zipball/c59e367f2d4f16ffe4162b8a160be0c6aa0e684d", + "reference": "c59e367f2d4f16ffe4162b8a160be0c6aa0e684d", "shasum": "" }, "require": { @@ -40194,6 +40194,9 @@ "spryker/testify": "*", "spryker/zed-navigation": "*" }, + "suggest": { + "spryker/oms": "If you want to use Oms command plugins." + }, "type": "library", "extra": { "branch-alias": { @@ -40211,9 +40214,9 @@ ], "description": "Refund module", "support": { - "source": "https://github.com/spryker/refund/tree/5.8.0" + "source": "https://github.com/spryker/refund/tree/5.9.0" }, - "time": "2023-12-07T16:17:29+00:00" + "time": "2024-04-29T16:15:47+00:00" }, { "name": "spryker/refund-extension", @@ -41255,16 +41258,16 @@ }, { "name": "spryker/sales-payment", - "version": "1.7.0", + "version": "1.8.0", "source": { "type": "git", "url": "https://github.com/spryker/sales-payment.git", - "reference": "094b1065eeebe7bed083ff48b0176657cb450e8a" + "reference": "2ca71425d715c05ee21bf990675ef86db85cbe6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/spryker/sales-payment/zipball/094b1065eeebe7bed083ff48b0176657cb450e8a", - "reference": "094b1065eeebe7bed083ff48b0176657cb450e8a", + "url": "https://api.github.com/repos/spryker/sales-payment/zipball/2ca71425d715c05ee21bf990675ef86db85cbe6b", + "reference": "2ca71425d715c05ee21bf990675ef86db85cbe6b", "shasum": "" }, "require": { @@ -41309,9 +41312,9 @@ ], "description": "SalesPayment module", "support": { - "source": "https://github.com/spryker/sales-payment/tree/1.7.0" + "source": "https://github.com/spryker/sales-payment/tree/1.8.0" }, - "time": "2024-03-25T14:53:14+00:00" + "time": "2024-04-29T16:15:47+00:00" }, { "name": "spryker/sales-payment-detail", diff --git a/src/Pyz/Zed/Oms/OmsDependencyProvider.php b/src/Pyz/Zed/Oms/OmsDependencyProvider.php index f97129c78c..2297547359 100644 --- a/src/Pyz/Zed/Oms/OmsDependencyProvider.php +++ b/src/Pyz/Zed/Oms/OmsDependencyProvider.php @@ -25,6 +25,7 @@ use Spryker\Zed\PickingList\Communication\Plugin\Oms\IsPickingListGenerationFinishedConditionPlugin; use Spryker\Zed\PickingList\Communication\Plugin\Oms\IsPickingStartedConditionPlugin; use Spryker\Zed\ProductBundle\Communication\Plugin\Oms\ProductBundleReservationPostSaveTerminationAwareStrategyPlugin; +use Spryker\Zed\Refund\Communication\Plugin\Oms\RefundCommandPlugin; use Spryker\Zed\SalesInvoice\Communication\Plugin\Oms\GenerateOrderInvoiceCommandPlugin; use Spryker\Zed\SalesPayment\Communication\Plugin\Oms\SendCancelPaymentMessageCommandPlugin; use Spryker\Zed\SalesPayment\Communication\Plugin\Oms\SendCapturePaymentMessageCommandPlugin; @@ -105,6 +106,7 @@ protected function extendCommandPlugins(Container $container): Container $commandCollection->add(new SendCapturePaymentMessageCommandPlugin(), 'Payment/Capture'); $commandCollection->add(new SendRefundPaymentMessageCommandPlugin(), 'Payment/Refund'); $commandCollection->add(new SendCancelPaymentMessageCommandPlugin(), 'Payment/Cancel'); + $commandCollection->add(new RefundCommandPlugin(), 'Payment/Refund/Confirm'); return $commandCollection; }); diff --git a/tests/PyzTest/Zed/MessageBroker/MessageHandlers/Payment/Presentation/PaymentRefundedMessageCest.php b/tests/PyzTest/Zed/MessageBroker/MessageHandlers/Payment/Presentation/PaymentRefundedMessageCest.php index 6d0f5c53c1..f7a94d45c3 100644 --- a/tests/PyzTest/Zed/MessageBroker/MessageHandlers/Payment/Presentation/PaymentRefundedMessageCest.php +++ b/tests/PyzTest/Zed/MessageBroker/MessageHandlers/Payment/Presentation/PaymentRefundedMessageCest.php @@ -32,7 +32,7 @@ class PaymentRefundedMessageCest /** * @var string */ - public const FINAL_ITEM_STATE = 'payment refunded'; + public const FINAL_ITEM_STATE = 'payment refund succeeded'; /** * @param \PyzTest\Zed\MessageBroker\PaymentPresentationTester $I