Skip to content

Commit 0b4b481

Browse files
authored
fix(backend): Allow null for period_end in billing subscription item webhook (#7699)
1 parent 3c98238 commit 0b4b481

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/quiet-doors-wave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': patch
3+
---
4+
5+
Allow `null` for `period_end` in `BillingSubscriptionItemWebhookEventJSON`

packages/backend/src/api/resources/JSON.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ export interface BillingSubscriptionItemWebhookEventJSON extends ClerkResourceJS
907907
proration_date: string;
908908
plan_period: 'month' | 'annual';
909909
period_start: number;
910-
period_end?: number;
910+
period_end: number | null;
911911
canceled_at?: number;
912912
past_due_at?: number;
913913
lifetime_paid: number;

0 commit comments

Comments
 (0)