Repository navigation
refactor(webhooks): name the payment and customer webhook event types - #1155
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 3 Skipped Deployments
|
Contributor
|
shreyav
force-pushed
the
named-enums-stablecoins
branch
from
October 9, 2026 17:01
2913d21 to
547ed7a
Compare
shreyav
force-pushed
the
named-enums-webhooks
branch
from
October 9, 2026 17:01
a9f3ff7 to
2e08ba9
Compare
shreyav
changed the base branch from
named-enums-stablecoins
to
named-enums-customers
October 9, 2026 17:02
shreyav
force-pushed
the
named-enums-customers
branch
from
October 9, 2026 17:20
c9e175d to
fa1f658
Compare
shreyav
force-pushed
the
named-enums-webhooks
branch
from
October 9, 2026 17:20
2e08ba9 to
c3de030
Compare
shreyav
marked this pull request as draft
October 9, 2026 17:21
shreyav
marked this pull request as ready for review
October 9, 2026 18:21
AaryamanBhute
previously approved these changes
Oct 9, 2026
shreyav
force-pushed
the
named-enums-customers
branch
from
October 9, 2026 18:35
fa1f658 to
9bc7cd0
Compare
shreyav
force-pushed
the
named-enums-webhooks
branch
from
October 9, 2026 18:35
c3de030 to
8c4b5c1
Compare
The type field on the outgoing payment, incoming payment, and customer webhooks declared its event names inline. Each family's names are now a component schema. The wire format is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
shreyav
force-pushed
the
named-enums-webhooks
branch
from
October 9, 2026 20:20
8c4b5c1 to
6bafb18
Compare
carsonp6
approved these changes
Oct 9, 2026
This branch was successfully deployed
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.
Independent PR on
main.What changed
typefield onOutgoingPaymentWebhook,IncomingPaymentWebhook, andCustomerWebhooknow referencesOutgoingPaymentWebhookEventType,IncomingPaymentWebhookEventType, andCustomerWebhookEventType, each holding that family's event names such asOUTGOING_PAYMENT.REFUND_FAILED.openapi.yamlandmintlify/openapi.yamlwithmake build.Why
Integrators dispatch on the webhook
typestring. A named enum per family gives every generated SDK a type to switch on and lets a compiler flag an unhandled event name.SDK impact
The wire format is unchanged. In statically typed SDKs the
typefield on these payloads changes from string to enum. A consumer that comparestypeagainst string literals keeps working where the enum is a string subtype or literal union; one that reads it as a plain string type needs a source change.Test plan
make lint-openapi: Redocly reports the description valid, Spectral exits 0.oasdiff breakingagainstmain: no breaking changes.🤖 Generated with Claude Code
https://claude.ai/code/session_01MYijrrgsrFLJZ5fkmC5XwJ