From 56edf49960226871023cd61cdb03e4ffa15fe30c Mon Sep 17 00:00:00 2001 From: Oleksii Skorobogatko Date: Wed, 4 Sep 2024 18:15:35 +0300 Subject: [PATCH] #4 avoid confusing with channel message --- src/EventListener/NotifySubscribersListener.php | 2 +- src/Message/NotifySubscriber.php | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/EventListener/NotifySubscribersListener.php b/src/EventListener/NotifySubscribersListener.php index 4ef6c8a..857fda4 100644 --- a/src/EventListener/NotifySubscribersListener.php +++ b/src/EventListener/NotifySubscribersListener.php @@ -30,7 +30,7 @@ public function onOrderStatusWasChanged(OrderStatusWasChanged $event): void subscriberId: $subscriber->getId(), paymentProcessingId: $event->paymentProcessing->getId(), transactionId: $event->response->getTransactionId(), - message: $event->response->getMessage(), + responseMessage: $event->response->getMessage(), ); $this->messageBus->dispatch($message); } diff --git a/src/Message/NotifySubscriber.php b/src/Message/NotifySubscriber.php index 52844b4..011dac8 100644 --- a/src/Message/NotifySubscriber.php +++ b/src/Message/NotifySubscriber.php @@ -7,11 +7,11 @@ final readonly class NotifySubscriber { public function __construct( - public int $orderId, - public int $subscriberId, - public int $paymentProcessingId, - public string $transactionId, - public ?string $message, + public int $orderId, + public int $subscriberId, + public int $paymentProcessingId, + public string $transactionId, + public ?string $responseMessage, ) { } }