Repository navigation
Add rejected_at to the thread message delivery - #187
Conversation
|
Caution Review failedThe pull request is closed. No actionable comments were generated in the recent review. Walkthrough
Pre-merge checks:
|
| status: "delivered", | ||
| delivered_at: "2026-05-08T11:40:05.000Z", | ||
| bounced_at: null, | ||
| rejected_at: null, |
There was a problem hiding this comment.
[nitpick] Could you add a rejected outbound message to the fixture (status: "not_delivered" with rejected_at set), like the other SDKs do? Then the test also shows a real timestamp, not only null.
a66aa44 to
8ef57a6
Compare
Motivation
The Get a thread API now returns
rejected_atin thedeliveryobject of sent (outbound) messages: the time a copy was rejected before sending, for example because the recipient is on the suppression list, andnullotherwise. Spec change: mailtrap/mailtrap-openapi#75.Changes
ThreadMessageDelivery: addrejected_at: string | null, next tobounced_atHow to test
yarn jest src/__tests__/lib/api/resources/inbound/Threads.test.tspassesdelivery.rejected_atholds a timestampSummary by CodeRabbit
null.