Skip to content

Commit eaa8da1

Browse files
authored
Merge pull request #7 from TheStaticMage/sub-expiration-dates
Add expires_at field to channel subscription payloads
2 parents 56f337a + 6513f47 commit eaa8da1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

payloads/v1/webhooks.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export interface SubscriptionRenewalEvent {
5656
subscriber: WebhookUser;
5757
duration: number;
5858
created_at: string;
59+
expires_at: string;
5960
}
6061

6162
export interface SubscriptionGiftEvent {
@@ -65,6 +66,7 @@ export interface SubscriptionGiftEvent {
6566
gifter: WebhookUser;
6667
giftees: WebhookUser[];
6768
created_at: string;
69+
expires_at: string;
6870
}
6971

7072
export interface NewSubscriptionEvent {
@@ -74,6 +76,7 @@ export interface NewSubscriptionEvent {
7476
subscriber: WebhookUser;
7577
duration: number;
7678
created_at: string;
79+
expires_at: string;
7780
}
7881

7982
export interface LivestreamStatusUpdatedEvent {

0 commit comments

Comments
 (0)