Skip to content

Commit

Permalink
Fix Postmark response (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
JonoB authored May 8, 2024
1 parent 669d1a7 commit 6e6ce11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Adapters/PostmarkMailAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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();
}
}

0 comments on commit 6e6ce11

Please sign in to comment.