Add new EventNotificationHandler class for better thin event management - #1881
Merged
Conversation
xavdid
marked this pull request as ready for review
August 19, 2026 23:04
xavdid
enabled auto-merge (squash)
August 19, 2026 23:04
zacchua-stripe
approved these changes
Aug 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why?
The event notification handler code has been in the
betaandprivate-previewbranches since last year, but it's time to take it to GA!This PR is entirely pre-approved code from previous PRs. It takes the static files from codegen, plus all the manual changes I made directly in
betato get everything working. It's stacked on top of the non-verified work from this week, too. Once this lands, the managed handler code should be in sync across all channels.Notably, the static files that we used to share functionality are no longer sourced from codegen. Instead, they're now true manual files in
masterwhose changes will flow into preview branches like normal.What?
EventNotificationHandlerclass & supporting infrastructure (ability to copy aStripeClient, etc)stripeClientmethods for creating a handler bound to that clientSee Also
Changelog
StripeClientand the fully-typed nature of thin events. This delivers painless event destination upgrades, in-editor checks for common mistakes, and better code modularity.