diff --git a/src/Emails/Receiving.php b/src/Emails/Receiving.php index 2331f17..9dc3aa8 100644 --- a/src/Emails/Receiving.php +++ b/src/Emails/Receiving.php @@ -16,6 +16,7 @@ * @property null|array $bcc The email addresses of all blind carbon copy recipients. * @property null|array $cc The email addresses of all carbon copy recipients. * @property null|array $reply_to The reply to email address. + * @property array $received_for The addresses the email was received for (forwarding recipients). * @property string $message_id The unique identifier for the message. * @property null|array $headers The headers for the received email. * @property array $attachments The attachments for the email. diff --git a/tests/Fixtures/Emails/Receiving.php b/tests/Fixtures/Emails/Receiving.php index 1d92e90..2c38366 100644 --- a/tests/Fixtures/Emails/Receiving.php +++ b/tests/Fixtures/Emails/Receiving.php @@ -14,6 +14,7 @@ function inboundEmail(): array 'bcc' => [], 'cc' => [], 'reply_to' => [], + 'received_for' => ['forwarded@example.com'], 'message_id' => '', 'attachments' => [ [ diff --git a/tests/Service/Emails/Receiving.php b/tests/Service/Emails/Receiving.php index f24b952..b83b07a 100644 --- a/tests/Service/Emails/Receiving.php +++ b/tests/Service/Emails/Receiving.php @@ -9,7 +9,8 @@ $result = $client->emails->receiving->get('4ef9a417-02e9-4d39-ad75-9611e0fcc33c'); expect($result)->toBeInstanceOf(Receiving::class) - ->id->toBe('4ef9a417-02e9-4d39-ad75-9611e0fcc33c'); + ->id->toBe('4ef9a417-02e9-4d39-ad75-9611e0fcc33c') + ->received_for->toBe(['forwarded@example.com']); }); it('can get a list of inbound email resources', function () {