From 6e6ce11e1882e5516836d283ad55c738a880ce61 Mon Sep 17 00:00:00 2001 From: Jon Behr Date: Wed, 8 May 2024 16:45:54 +0100 Subject: [PATCH] Fix Postmark response (#196) --- src/Adapters/PostmarkMailAdapter.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Adapters/PostmarkMailAdapter.php b/src/Adapters/PostmarkMailAdapter.php index a6102d32..9e5afcde 100644 --- a/src/Adapters/PostmarkMailAdapter.php +++ b/src/Adapters/PostmarkMailAdapter.php @@ -5,7 +5,7 @@ namespace Sendportal\Base\Adapters; use Illuminate\Support\Arr; -use Postmark\Models\DynamicResponseModel; +use Postmark\Models\PostmarkResponse; use Postmark\PostmarkClient; use Sendportal\Base\Services\Messages\MessageTrackingOptions; @@ -48,8 +48,8 @@ protected function resolveClient(): PostmarkClient return $this->client; } - protected function resolveMessageId(DynamicResponseModel $result): string + protected function resolveMessageId(PostmarkResponse $result): string { - return (string)$result->__get('MessageID'); + return $result->getMessageID(); } }