Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

events.DeliveryStatus: expose mx-host and additional fields #311

Merged
merged 1 commit into from
Aug 8, 2023

Conversation

jehiah
Copy link
Contributor

@jehiah jehiah commented Jul 31, 2023

This updates events.DeliveryStatus to include additional fields listed in the API docs (and which I observed in practice). I originally noticed that mx-host was missing.

Because the boolean fields imply a separate value when they are missing I set them to *bool but happy to adjust if there is a style preference. I've marked these new fields as 'omitempty' to indicate they are not always present.

https://documentation.mailgun.com/en/latest/api-events.html#event-structure

@jehiah jehiah force-pushed the delivery_status_mx_host_311 branch from 97782a0 to 90ec5e7 Compare July 31, 2023 20:20
Copy link
Contributor

@thrawn01 thrawn01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you so much for making this PR!

@thrawn01 thrawn01 merged commit b3130dc into mailgun:master Aug 8, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants