Commit a2c7824
fix: add missing webhook payload types to validation
Add the following webhook payload types that were missing from the
WebhoookPayload union used for webhook validation:
- WebhookCustomerSeatAssignedPayload (customer_seat.assigned)
- WebhookCustomerSeatClaimedPayload (customer_seat.claimed)
- WebhookCustomerSeatRevokedPayload (customer_seat.revoked)
- WebhookSubscriptionPastDuePayload (subscription.past_due)
These payload models already exist in the SDK but were not included
in the webhook validation discriminated union, causing validation
errors when receiving these webhook events.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 9bd5651 commit a2c7824
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | 25 | | |
23 | 26 | | |
| |||
32 | 35 | | |
33 | 36 | | |
34 | 37 | | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | 64 | | |
| |||
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| 72 | + | |
65 | 73 | | |
66 | 74 | | |
67 | 75 | | |
| |||
0 commit comments