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

feat(next): Serialize and deserialize webhook events #620

Merged
merged 1 commit into from
Oct 26, 2024

Conversation

lasantosr
Copy link

Summary

It's recommended to process stripe webhook events asynchronously (doc), so it will be common to write those events to some kind of pub/pub like kafka.

This PR derives the serialize and deserialize traits on the webhook event when the feature flags are enabled.

Checklist

Copy link
Collaborator

@mzeitlin11 mzeitlin11 left a comment

Choose a reason for hiding this comment

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

Thanks @lasantosr, definitely makes sense to treat these like other types and ensure they can be de/serialized with serde by opting into the feature flag

@mzeitlin11 mzeitlin11 merged commit 1af8bc9 into arlyon:next Oct 26, 2024
15 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.

2 participants