feat(webhooks): add CARD_TRANSACTION webhook contract#690
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
✱ Stainless preview builds for gridThis PR will update the cli go kotlin openapi php python ruby typescript ✅ grid-ruby studio · code
|
|
@greptile review |
Add a dedicated card-transaction webhook that fires on every state transition of a CardTransaction (AUTHORIZED, PARTIALLY_SETTLED, SETTLED, REFUNDED, EXCEPTION), carrying the full CardTransaction resource. - New webhooks/card-transaction.yaml operation (cardTransactionWebhook) - New CardTransactionWebhook schema extending BaseWebhook - Add CARD_TRANSACTION.* values to WebhookType enum - Register webhook in root spec and rebundle Ports lightsparkdev/webdev#30355 into the OpenAPI source of truth. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The examples omitted required CardTransaction fields, making them invalid against the schema and failing the spectral oas3-valid-media-example check. Flesh out each example to a full valid payload — including the type, direction, customerId, and platformCustomerId fields now required by the reworked CardTransaction schema on main — and add settled / refunded / exception examples covering the lifecycle, mirroring card-state-change.yaml. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2d80e33 to
dd2e276
Compare
Merge activity
|
Upstream #690 merged a canonical per-status card-transaction webhook contract (CARD_TRANSACTION.AUTHORIZED/PARTIALLY_SETTLED/SETTLED/ REFUNDED/EXCEPTION) that supersedes this branch's single CARD.TRANSACTION_UPDATE type. Drop CardTransactionUpdateWebhook and its operation/registration/enum value, rewrite the card doc snippets to the family semantics, and extend the family with CARD_TRANSACTION.DECLINED (webhook enum, operation description, and a declined example) to match the DECLINED terminal status this branch adds to CardTransactionStatus. Bundles regenerated with make build. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018kzvhCS9mZrkHaH7E5EQ94
Upstream #690 merged a canonical per-status card-transaction webhook contract (CARD_TRANSACTION.AUTHORIZED/PARTIALLY_SETTLED/SETTLED/ REFUNDED/EXCEPTION) that supersedes this branch's single CARD.TRANSACTION_UPDATE type. Drop CardTransactionUpdateWebhook and its operation/registration/enum value, rewrite the card doc snippets to the family semantics, and extend the family with CARD_TRANSACTION.DECLINED (webhook enum, operation description, and a declined example) to match the DECLINED terminal status this branch adds to CardTransactionStatus. Bundles regenerated with make build. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018kzvhCS9mZrkHaH7E5EQ94

Add a dedicated card-transaction webhook that fires on every state
transition of a CardTransaction (AUTHORIZED, PARTIALLY_SETTLED, SETTLED,
REFUNDED, EXCEPTION), carrying the full CardTransaction resource.
Ports lightsparkdev/webdev#30355 into the OpenAPI source of truth.
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com