@whop/sdk 0.0.26 → 0.0.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/client.d.mts +6 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +6 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -2
- package/client.js.map +1 -1
- package/client.mjs +9 -2
- package/client.mjs.map +1 -1
- package/package.json +3 -3
- package/resources/access-tokens.d.mts +32 -51
- package/resources/access-tokens.d.mts.map +1 -1
- package/resources/access-tokens.d.ts +32 -51
- package/resources/access-tokens.d.ts.map +1 -1
- package/resources/access-tokens.js +6 -8
- package/resources/access-tokens.js.map +1 -1
- package/resources/access-tokens.mjs +6 -8
- package/resources/access-tokens.mjs.map +1 -1
- package/resources/ai-chats.d.mts +37 -9
- package/resources/ai-chats.d.mts.map +1 -1
- package/resources/ai-chats.d.ts +37 -9
- package/resources/ai-chats.d.ts.map +1 -1
- package/resources/ai-chats.js +1 -1
- package/resources/ai-chats.js.map +1 -1
- package/resources/ai-chats.mjs +1 -1
- package/resources/ai-chats.mjs.map +1 -1
- package/resources/app-builds.d.mts +2 -2
- package/resources/app-builds.d.ts +2 -2
- package/resources/apps.d.mts +5 -4
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +5 -4
- package/resources/apps.d.ts.map +1 -1
- package/resources/authorized-users.d.mts +6 -6
- package/resources/authorized-users.d.ts +6 -6
- package/resources/chat-channels.d.mts +1 -1
- package/resources/chat-channels.d.ts +1 -1
- package/resources/checkout-configurations.d.mts +24 -16
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +24 -16
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +38 -25
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +38 -25
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +7 -4
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +7 -4
- package/resources/companies.mjs.map +1 -1
- package/resources/company-token-transactions.d.mts +10 -10
- package/resources/company-token-transactions.d.ts +10 -10
- package/resources/course-chapters.d.mts +3 -3
- package/resources/course-chapters.d.ts +3 -3
- package/resources/course-lessons.d.mts +15 -15
- package/resources/course-lessons.d.ts +15 -15
- package/resources/course-students.d.mts +6 -6
- package/resources/course-students.d.ts +6 -6
- package/resources/courses.d.mts +8 -8
- package/resources/courses.d.ts +8 -8
- package/resources/disputes.d.mts +20 -18
- package/resources/disputes.d.mts.map +1 -1
- package/resources/disputes.d.ts +20 -18
- package/resources/disputes.d.ts.map +1 -1
- package/resources/entries.d.mts +6 -6
- package/resources/entries.d.ts +6 -6
- package/resources/experiences.d.mts +6 -5
- package/resources/experiences.d.mts.map +1 -1
- package/resources/experiences.d.ts +6 -5
- package/resources/experiences.d.ts.map +1 -1
- package/resources/fee-markups.d.mts +6 -6
- package/resources/fee-markups.d.ts +6 -6
- package/resources/files.d.mts +2 -2
- package/resources/files.d.ts +2 -2
- package/resources/forum-posts.d.mts +8 -4
- package/resources/forum-posts.d.mts.map +1 -1
- package/resources/forum-posts.d.ts +8 -4
- package/resources/forum-posts.d.ts.map +1 -1
- package/resources/forums.d.mts +1 -1
- package/resources/forums.d.ts +1 -1
- package/resources/index.d.mts +1 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/invoices.d.mts +28 -20
- package/resources/invoices.d.mts.map +1 -1
- package/resources/invoices.d.ts +28 -20
- package/resources/invoices.d.ts.map +1 -1
- package/resources/leads.d.mts +12 -12
- package/resources/leads.d.ts +12 -12
- package/resources/ledger-accounts.d.mts +9 -7
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +9 -7
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/members.d.mts +9 -9
- package/resources/members.d.ts +9 -9
- package/resources/memberships.d.mts +17 -12
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +17 -12
- package/resources/memberships.d.ts.map +1 -1
- package/resources/messages.d.mts +7 -3
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +7 -3
- package/resources/messages.d.ts.map +1 -1
- package/resources/payments.d.mts +27 -20
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +27 -20
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +6 -6
- package/resources/payout-methods.d.ts +6 -6
- package/resources/plans.d.mts +34 -24
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +34 -24
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +4 -2
- package/resources/products.d.mts.map +1 -1
- package/resources/products.d.ts +4 -2
- package/resources/products.d.ts.map +1 -1
- package/resources/promo-codes.d.mts +22 -12
- package/resources/promo-codes.d.mts.map +1 -1
- package/resources/promo-codes.d.ts +22 -12
- package/resources/promo-codes.d.ts.map +1 -1
- package/resources/reactions.d.mts +1 -1
- package/resources/reactions.d.ts +1 -1
- package/resources/refunds.d.mts +19 -15
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +19 -15
- package/resources/refunds.d.ts.map +1 -1
- package/resources/reviews.d.mts +10 -10
- package/resources/reviews.d.ts +10 -10
- package/resources/setup-intents.d.mts +18 -20
- package/resources/setup-intents.d.mts.map +1 -1
- package/resources/setup-intents.d.ts +18 -20
- package/resources/setup-intents.d.ts.map +1 -1
- package/resources/shared.d.mts +175 -137
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +175 -137
- package/resources/shared.d.ts.map +1 -1
- package/resources/shipments.d.mts +4 -4
- package/resources/shipments.d.ts +4 -4
- package/resources/support-channels.d.mts +1 -1
- package/resources/support-channels.d.ts +1 -1
- package/resources/topups.d.mts +6 -4
- package/resources/topups.d.mts.map +1 -1
- package/resources/topups.d.ts +6 -4
- package/resources/topups.d.ts.map +1 -1
- package/resources/transfers.d.mts +8 -5
- package/resources/transfers.d.mts.map +1 -1
- package/resources/transfers.d.ts +8 -5
- package/resources/transfers.d.ts.map +1 -1
- package/resources/users.d.mts +46 -8
- package/resources/users.d.mts.map +1 -1
- package/resources/users.d.ts +46 -8
- package/resources/users.d.ts.map +1 -1
- package/resources/users.js +10 -0
- package/resources/users.js.map +1 -1
- package/resources/users.mjs +10 -0
- package/resources/users.mjs.map +1 -1
- package/resources/verifications.d.mts +1 -1
- package/resources/verifications.d.ts +1 -1
- package/resources/webhooks.d.mts +71 -57
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +71 -57
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/withdrawals.d.mts +15 -11
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +15 -11
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +20 -8
- package/src/resources/access-tokens.ts +35 -56
- package/src/resources/ai-chats.ts +42 -9
- package/src/resources/app-builds.ts +2 -2
- package/src/resources/apps.ts +5 -4
- package/src/resources/authorized-users.ts +6 -6
- package/src/resources/chat-channels.ts +1 -1
- package/src/resources/checkout-configurations.ts +24 -16
- package/src/resources/companies.ts +41 -26
- package/src/resources/company-token-transactions.ts +10 -10
- package/src/resources/course-chapters.ts +3 -3
- package/src/resources/course-lessons.ts +15 -15
- package/src/resources/course-students.ts +6 -6
- package/src/resources/courses.ts +8 -8
- package/src/resources/disputes.ts +20 -18
- package/src/resources/entries.ts +6 -6
- package/src/resources/experiences.ts +6 -5
- package/src/resources/fee-markups.ts +6 -6
- package/src/resources/files.ts +2 -2
- package/src/resources/forum-posts.ts +8 -4
- package/src/resources/forums.ts +1 -1
- package/src/resources/index.ts +2 -1
- package/src/resources/invoices.ts +28 -20
- package/src/resources/leads.ts +12 -12
- package/src/resources/ledger-accounts.ts +9 -7
- package/src/resources/members.ts +9 -9
- package/src/resources/memberships.ts +18 -12
- package/src/resources/messages.ts +7 -3
- package/src/resources/payments.ts +28 -18
- package/src/resources/payout-methods.ts +6 -6
- package/src/resources/plans.ts +34 -24
- package/src/resources/products.ts +4 -2
- package/src/resources/promo-codes.ts +22 -12
- package/src/resources/reactions.ts +1 -1
- package/src/resources/refunds.ts +20 -15
- package/src/resources/reviews.ts +10 -10
- package/src/resources/setup-intents.ts +18 -20
- package/src/resources/shared.ts +176 -137
- package/src/resources/shipments.ts +4 -4
- package/src/resources/support-channels.ts +1 -1
- package/src/resources/topups.ts +6 -4
- package/src/resources/transfers.ts +8 -5
- package/src/resources/users.ts +58 -8
- package/src/resources/verifications.ts +1 -1
- package/src/resources/webhooks.ts +71 -57
- package/src/resources/withdrawals.ts +15 -11
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -79,7 +79,7 @@ export type ShipmentListResponsesCursorPage = CursorPage<ShipmentListResponse>;
|
|
|
79
79
|
*/
|
|
80
80
|
export interface ShipmentListResponse {
|
|
81
81
|
/**
|
|
82
|
-
* The
|
|
82
|
+
* The unique identifier for the shipment.
|
|
83
83
|
*/
|
|
84
84
|
id: string;
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ export interface ShipmentListResponse {
|
|
|
89
89
|
carrier: Shared.ShipmentCarrier;
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* The
|
|
92
|
+
* The datetime the shipment was created.
|
|
93
93
|
*/
|
|
94
94
|
created_at: string;
|
|
95
95
|
|
|
@@ -124,7 +124,7 @@ export interface ShipmentListResponse {
|
|
|
124
124
|
tracking_code: string;
|
|
125
125
|
|
|
126
126
|
/**
|
|
127
|
-
* The
|
|
127
|
+
* The datetime the shipment was last updated.
|
|
128
128
|
*/
|
|
129
129
|
updated_at: string;
|
|
130
130
|
}
|
|
@@ -135,7 +135,7 @@ export namespace ShipmentListResponse {
|
|
|
135
135
|
*/
|
|
136
136
|
export interface Payment {
|
|
137
137
|
/**
|
|
138
|
-
* The payment
|
|
138
|
+
* The unique identifier for the payment.
|
|
139
139
|
*/
|
|
140
140
|
id: string;
|
|
141
141
|
}
|
package/src/resources/topups.ts
CHANGED
|
@@ -29,16 +29,17 @@ export class Topups extends APIResource {
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
33
|
+
* track the amount, status, currency, and payment method used.
|
|
33
34
|
*/
|
|
34
35
|
export interface TopupCreateResponse {
|
|
35
36
|
/**
|
|
36
|
-
* The payment
|
|
37
|
+
* The unique identifier for the payment.
|
|
37
38
|
*/
|
|
38
39
|
id: string;
|
|
39
40
|
|
|
40
41
|
/**
|
|
41
|
-
* The datetime the payment was created
|
|
42
|
+
* The datetime the payment was created.
|
|
42
43
|
*/
|
|
43
44
|
created_at: string;
|
|
44
45
|
|
|
@@ -70,7 +71,8 @@ export interface TopupCreateResponse {
|
|
|
70
71
|
|
|
71
72
|
export interface TopupCreateParams {
|
|
72
73
|
/**
|
|
73
|
-
* The amount to add to the balance.
|
|
74
|
+
* The amount to add to the balance. Provided as a number in the specified
|
|
75
|
+
* currency. Eg: 50.00 for $50.00 USD.
|
|
74
76
|
*/
|
|
75
77
|
amount: number;
|
|
76
78
|
|
|
@@ -77,17 +77,18 @@ export type TransferListResponsesCursorPage = CursorPage<TransferListResponse>;
|
|
|
77
77
|
*/
|
|
78
78
|
export interface TransferListResponse {
|
|
79
79
|
/**
|
|
80
|
-
* The unique identifier
|
|
80
|
+
* The unique identifier for the credit transaction transfer.
|
|
81
81
|
*/
|
|
82
82
|
id: string;
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* The amount of the
|
|
85
|
+
* The amount of the transfer. Provided as a number in the specified currency. Eg:
|
|
86
|
+
* 10.43 for $10.43 USD.
|
|
86
87
|
*/
|
|
87
88
|
amount: number;
|
|
88
89
|
|
|
89
90
|
/**
|
|
90
|
-
* The
|
|
91
|
+
* The datetime the credit transaction transfer was created.
|
|
91
92
|
*/
|
|
92
93
|
created_at: string;
|
|
93
94
|
|
|
@@ -107,7 +108,8 @@ export interface TransferListResponse {
|
|
|
107
108
|
fee_amount: number | null;
|
|
108
109
|
|
|
109
110
|
/**
|
|
110
|
-
*
|
|
111
|
+
* Custom key-value pairs attached to the transfer. Max 50 keys, 500 chars per key,
|
|
112
|
+
* 5000 chars per value.
|
|
111
113
|
*/
|
|
112
114
|
metadata: { [key: string]: unknown } | null;
|
|
113
115
|
|
|
@@ -124,7 +126,8 @@ export interface TransferListResponse {
|
|
|
124
126
|
|
|
125
127
|
export interface TransferCreateParams {
|
|
126
128
|
/**
|
|
127
|
-
* The amount to
|
|
129
|
+
* The amount to transfer. Provided as a number in the specified currency. Eg:
|
|
130
|
+
* 25.00 for $25.00 USD.
|
|
128
131
|
*/
|
|
129
132
|
amount: number;
|
|
130
133
|
|
package/src/resources/users.ts
CHANGED
|
@@ -10,7 +10,7 @@ export class Users extends APIResource {
|
|
|
10
10
|
/**
|
|
11
11
|
* Retrieves a user by ID or username
|
|
12
12
|
*/
|
|
13
|
-
retrieve(id: string, options?: RequestOptions): APIPromise<
|
|
13
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<User> {
|
|
14
14
|
return this._client.get(path`/users/${id}`, options);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -25,14 +25,29 @@ export class Users extends APIResource {
|
|
|
25
25
|
const { id } = params;
|
|
26
26
|
return this._client.get(path`/users/${id}/access/${resourceID}`, options);
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Updates the current user's profile
|
|
31
|
+
*
|
|
32
|
+
* Required permissions:
|
|
33
|
+
*
|
|
34
|
+
* - `user:profile:update`
|
|
35
|
+
*/
|
|
36
|
+
updateProfile(
|
|
37
|
+
body: UserUpdateProfileParams | null | undefined = {},
|
|
38
|
+
options?: RequestOptions,
|
|
39
|
+
): APIPromise<User> {
|
|
40
|
+
return this._client.patch('/users/me', { body, ...options });
|
|
41
|
+
}
|
|
28
42
|
}
|
|
29
43
|
|
|
30
44
|
/**
|
|
31
|
-
*
|
|
45
|
+
* A user account on Whop. Contains profile information, identity details, and
|
|
46
|
+
* social connections.
|
|
32
47
|
*/
|
|
33
|
-
export interface
|
|
48
|
+
export interface User {
|
|
34
49
|
/**
|
|
35
|
-
* The
|
|
50
|
+
* The unique identifier for the user.
|
|
36
51
|
*/
|
|
37
52
|
id: string;
|
|
38
53
|
|
|
@@ -42,7 +57,7 @@ export interface UserRetrieveResponse {
|
|
|
42
57
|
bio: string | null;
|
|
43
58
|
|
|
44
59
|
/**
|
|
45
|
-
*
|
|
60
|
+
* The datetime the user was created.
|
|
46
61
|
*/
|
|
47
62
|
created_at: string;
|
|
48
63
|
|
|
@@ -54,7 +69,7 @@ export interface UserRetrieveResponse {
|
|
|
54
69
|
/**
|
|
55
70
|
* The user's profile picture
|
|
56
71
|
*/
|
|
57
|
-
profile_picture:
|
|
72
|
+
profile_picture: User.ProfilePicture | null;
|
|
58
73
|
|
|
59
74
|
/**
|
|
60
75
|
* The username of the user from their Whop account.
|
|
@@ -62,7 +77,7 @@ export interface UserRetrieveResponse {
|
|
|
62
77
|
username: string;
|
|
63
78
|
}
|
|
64
79
|
|
|
65
|
-
export namespace
|
|
80
|
+
export namespace User {
|
|
66
81
|
/**
|
|
67
82
|
* The user's profile picture
|
|
68
83
|
*/
|
|
@@ -97,10 +112,45 @@ export interface UserCheckAccessParams {
|
|
|
97
112
|
id: string;
|
|
98
113
|
}
|
|
99
114
|
|
|
115
|
+
export interface UserUpdateProfileParams {
|
|
116
|
+
/**
|
|
117
|
+
* User biography
|
|
118
|
+
*/
|
|
119
|
+
bio?: string | null;
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Display name
|
|
123
|
+
*/
|
|
124
|
+
name?: string | null;
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Profile picture
|
|
128
|
+
*/
|
|
129
|
+
profile_picture?: UserUpdateProfileParams.ProfilePicture | null;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Username (alphanumeric and hyphens)
|
|
133
|
+
*/
|
|
134
|
+
username?: string | null;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace UserUpdateProfileParams {
|
|
138
|
+
/**
|
|
139
|
+
* Profile picture
|
|
140
|
+
*/
|
|
141
|
+
export interface ProfilePicture {
|
|
142
|
+
/**
|
|
143
|
+
* The ID of an existing file object.
|
|
144
|
+
*/
|
|
145
|
+
id: string;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
100
149
|
export declare namespace Users {
|
|
101
150
|
export {
|
|
102
|
-
type
|
|
151
|
+
type User as User,
|
|
103
152
|
type UserCheckAccessResponse as UserCheckAccessResponse,
|
|
104
153
|
type UserCheckAccessParams as UserCheckAccessParams,
|
|
154
|
+
type UserUpdateProfileParams as UserUpdateProfileParams,
|
|
105
155
|
};
|
|
106
156
|
}
|
|
@@ -138,11 +138,12 @@ export type WebhookListResponsesCursorPage = CursorPage<WebhookListResponse>;
|
|
|
138
138
|
export type APIVersion = 'v1' | 'v2' | 'v5';
|
|
139
139
|
|
|
140
140
|
/**
|
|
141
|
-
* A webhook
|
|
141
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
142
|
+
* POST.
|
|
142
143
|
*/
|
|
143
144
|
export interface Webhook {
|
|
144
145
|
/**
|
|
145
|
-
* The
|
|
146
|
+
* The unique identifier for the webhook.
|
|
146
147
|
*/
|
|
147
148
|
id: string;
|
|
148
149
|
|
|
@@ -159,7 +160,7 @@ export interface Webhook {
|
|
|
159
160
|
child_resource_events: boolean;
|
|
160
161
|
|
|
161
162
|
/**
|
|
162
|
-
* The
|
|
163
|
+
* The datetime the webhook was created.
|
|
163
164
|
*/
|
|
164
165
|
created_at: string;
|
|
165
166
|
|
|
@@ -222,11 +223,12 @@ export type WebhookEvent =
|
|
|
222
223
|
| 'membership.cancel_at_period_end_changed';
|
|
223
224
|
|
|
224
225
|
/**
|
|
225
|
-
* A webhook
|
|
226
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
227
|
+
* POST.
|
|
226
228
|
*/
|
|
227
229
|
export interface WebhookCreateResponse {
|
|
228
230
|
/**
|
|
229
|
-
* The
|
|
231
|
+
* The unique identifier for the webhook.
|
|
230
232
|
*/
|
|
231
233
|
id: string;
|
|
232
234
|
|
|
@@ -243,7 +245,7 @@ export interface WebhookCreateResponse {
|
|
|
243
245
|
child_resource_events: boolean;
|
|
244
246
|
|
|
245
247
|
/**
|
|
246
|
-
* The
|
|
248
|
+
* The datetime the webhook was created.
|
|
247
249
|
*/
|
|
248
250
|
created_at: string;
|
|
249
251
|
|
|
@@ -279,11 +281,12 @@ export interface WebhookCreateResponse {
|
|
|
279
281
|
}
|
|
280
282
|
|
|
281
283
|
/**
|
|
282
|
-
* A webhook
|
|
284
|
+
* A webhook endpoint that receives event notifications for a company via HTTP
|
|
285
|
+
* POST.
|
|
283
286
|
*/
|
|
284
287
|
export interface WebhookListResponse {
|
|
285
288
|
/**
|
|
286
|
-
* The
|
|
289
|
+
* The unique identifier for the webhook.
|
|
287
290
|
*/
|
|
288
291
|
id: string;
|
|
289
292
|
|
|
@@ -300,7 +303,7 @@ export interface WebhookListResponse {
|
|
|
300
303
|
child_resource_events: boolean;
|
|
301
304
|
|
|
302
305
|
/**
|
|
303
|
-
* The
|
|
306
|
+
* The datetime the webhook was created.
|
|
304
307
|
*/
|
|
305
308
|
created_at: string;
|
|
306
309
|
|
|
@@ -465,8 +468,8 @@ export interface MembershipActivatedWebhookEvent {
|
|
|
465
468
|
api_version: 'v1';
|
|
466
469
|
|
|
467
470
|
/**
|
|
468
|
-
* A membership represents
|
|
469
|
-
*
|
|
471
|
+
* A membership represents an active relationship between a user and a product. It
|
|
472
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
470
473
|
*/
|
|
471
474
|
data: Shared.Membership;
|
|
472
475
|
|
|
@@ -498,8 +501,8 @@ export interface MembershipDeactivatedWebhookEvent {
|
|
|
498
501
|
api_version: 'v1';
|
|
499
502
|
|
|
500
503
|
/**
|
|
501
|
-
* A membership represents
|
|
502
|
-
*
|
|
504
|
+
* A membership represents an active relationship between a user and a product. It
|
|
505
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
503
506
|
*/
|
|
504
507
|
data: Shared.Membership;
|
|
505
508
|
|
|
@@ -531,7 +534,7 @@ export interface EntryCreatedWebhookEvent {
|
|
|
531
534
|
api_version: 'v1';
|
|
532
535
|
|
|
533
536
|
/**
|
|
534
|
-
* An
|
|
537
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
535
538
|
*/
|
|
536
539
|
data: Shared.Entry;
|
|
537
540
|
|
|
@@ -563,7 +566,7 @@ export interface EntryApprovedWebhookEvent {
|
|
|
563
566
|
api_version: 'v1';
|
|
564
567
|
|
|
565
568
|
/**
|
|
566
|
-
* An
|
|
569
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
567
570
|
*/
|
|
568
571
|
data: Shared.Entry;
|
|
569
572
|
|
|
@@ -595,7 +598,7 @@ export interface EntryDeniedWebhookEvent {
|
|
|
595
598
|
api_version: 'v1';
|
|
596
599
|
|
|
597
600
|
/**
|
|
598
|
-
* An
|
|
601
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
599
602
|
*/
|
|
600
603
|
data: Shared.Entry;
|
|
601
604
|
|
|
@@ -627,7 +630,7 @@ export interface EntryDeletedWebhookEvent {
|
|
|
627
630
|
api_version: 'v1';
|
|
628
631
|
|
|
629
632
|
/**
|
|
630
|
-
* An
|
|
633
|
+
* An entry represents a user's signup for a waitlisted plan.
|
|
631
634
|
*/
|
|
632
635
|
data: Shared.Entry;
|
|
633
636
|
|
|
@@ -659,8 +662,7 @@ export interface SetupIntentRequiresActionWebhookEvent {
|
|
|
659
662
|
api_version: 'v1';
|
|
660
663
|
|
|
661
664
|
/**
|
|
662
|
-
*
|
|
663
|
-
* to add a payment method to their account without making a purchase.
|
|
665
|
+
* A setup intent allows a user to save a payment method without making a purchase.
|
|
664
666
|
*/
|
|
665
667
|
data: SetupIntentsAPI.SetupIntent;
|
|
666
668
|
|
|
@@ -692,8 +694,7 @@ export interface SetupIntentSucceededWebhookEvent {
|
|
|
692
694
|
api_version: 'v1';
|
|
693
695
|
|
|
694
696
|
/**
|
|
695
|
-
*
|
|
696
|
-
* to add a payment method to their account without making a purchase.
|
|
697
|
+
* A setup intent allows a user to save a payment method without making a purchase.
|
|
697
698
|
*/
|
|
698
699
|
data: SetupIntentsAPI.SetupIntent;
|
|
699
700
|
|
|
@@ -725,8 +726,7 @@ export interface SetupIntentCanceledWebhookEvent {
|
|
|
725
726
|
api_version: 'v1';
|
|
726
727
|
|
|
727
728
|
/**
|
|
728
|
-
*
|
|
729
|
-
* to add a payment method to their account without making a purchase.
|
|
729
|
+
* A setup intent allows a user to save a payment method without making a purchase.
|
|
730
730
|
*/
|
|
731
731
|
data: SetupIntentsAPI.SetupIntent;
|
|
732
732
|
|
|
@@ -758,7 +758,8 @@ export interface WithdrawalCreatedWebhookEvent {
|
|
|
758
758
|
api_version: 'v1';
|
|
759
759
|
|
|
760
760
|
/**
|
|
761
|
-
* A withdrawal request
|
|
761
|
+
* A withdrawal represents a request to transfer funds from a company's ledger
|
|
762
|
+
* account to an external payout method.
|
|
762
763
|
*/
|
|
763
764
|
data: WithdrawalsAPI.Withdrawal;
|
|
764
765
|
|
|
@@ -790,7 +791,8 @@ export interface WithdrawalUpdatedWebhookEvent {
|
|
|
790
791
|
api_version: 'v1';
|
|
791
792
|
|
|
792
793
|
/**
|
|
793
|
-
* A withdrawal request
|
|
794
|
+
* A withdrawal represents a request to transfer funds from a company's ledger
|
|
795
|
+
* account to an external payout method.
|
|
794
796
|
*/
|
|
795
797
|
data: WithdrawalsAPI.Withdrawal;
|
|
796
798
|
|
|
@@ -880,7 +882,7 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
880
882
|
*/
|
|
881
883
|
export interface Data {
|
|
882
884
|
/**
|
|
883
|
-
* The
|
|
885
|
+
* The unique identifier for the payout token.
|
|
884
886
|
*/
|
|
885
887
|
id: string;
|
|
886
888
|
|
|
@@ -896,7 +898,7 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
896
898
|
company: Data.Company | null;
|
|
897
899
|
|
|
898
900
|
/**
|
|
899
|
-
* The
|
|
901
|
+
* The datetime the payout token was created.
|
|
900
902
|
*/
|
|
901
903
|
created_at: string;
|
|
902
904
|
|
|
@@ -934,7 +936,7 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
934
936
|
*/
|
|
935
937
|
export interface Company {
|
|
936
938
|
/**
|
|
937
|
-
* The
|
|
939
|
+
* The unique identifier for the company.
|
|
938
940
|
*/
|
|
939
941
|
id: string;
|
|
940
942
|
}
|
|
@@ -999,7 +1001,7 @@ export namespace VerificationSucceededWebhookEvent {
|
|
|
999
1001
|
*/
|
|
1000
1002
|
export interface Data {
|
|
1001
1003
|
/**
|
|
1002
|
-
*
|
|
1004
|
+
* The unique identifier for the verification.
|
|
1003
1005
|
*/
|
|
1004
1006
|
id: string;
|
|
1005
1007
|
|
|
@@ -1032,7 +1034,8 @@ export interface PaymentCreatedWebhookEvent {
|
|
|
1032
1034
|
api_version: 'v1';
|
|
1033
1035
|
|
|
1034
1036
|
/**
|
|
1035
|
-
*
|
|
1037
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
1038
|
+
* track the amount, status, currency, and payment method used.
|
|
1036
1039
|
*/
|
|
1037
1040
|
data: Shared.Payment;
|
|
1038
1041
|
|
|
@@ -1064,7 +1067,8 @@ export interface PaymentSucceededWebhookEvent {
|
|
|
1064
1067
|
api_version: 'v1';
|
|
1065
1068
|
|
|
1066
1069
|
/**
|
|
1067
|
-
*
|
|
1070
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
1071
|
+
* track the amount, status, currency, and payment method used.
|
|
1068
1072
|
*/
|
|
1069
1073
|
data: Shared.Payment;
|
|
1070
1074
|
|
|
@@ -1096,7 +1100,8 @@ export interface PaymentFailedWebhookEvent {
|
|
|
1096
1100
|
api_version: 'v1';
|
|
1097
1101
|
|
|
1098
1102
|
/**
|
|
1099
|
-
*
|
|
1103
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
1104
|
+
* track the amount, status, currency, and payment method used.
|
|
1100
1105
|
*/
|
|
1101
1106
|
data: Shared.Payment;
|
|
1102
1107
|
|
|
@@ -1128,7 +1133,8 @@ export interface PaymentPendingWebhookEvent {
|
|
|
1128
1133
|
api_version: 'v1';
|
|
1129
1134
|
|
|
1130
1135
|
/**
|
|
1131
|
-
*
|
|
1136
|
+
* A payment represents a completed or attempted charge for a membership. Payments
|
|
1137
|
+
* track the amount, status, currency, and payment method used.
|
|
1132
1138
|
*/
|
|
1133
1139
|
data: Shared.Payment;
|
|
1134
1140
|
|
|
@@ -1160,7 +1166,8 @@ export interface DisputeCreatedWebhookEvent {
|
|
|
1160
1166
|
api_version: 'v1';
|
|
1161
1167
|
|
|
1162
1168
|
/**
|
|
1163
|
-
*
|
|
1169
|
+
* A dispute is a chargeback or payment challenge filed against a company,
|
|
1170
|
+
* including evidence and response status.
|
|
1164
1171
|
*/
|
|
1165
1172
|
data: DisputesAPI.Dispute;
|
|
1166
1173
|
|
|
@@ -1192,7 +1199,8 @@ export interface DisputeUpdatedWebhookEvent {
|
|
|
1192
1199
|
api_version: 'v1';
|
|
1193
1200
|
|
|
1194
1201
|
/**
|
|
1195
|
-
*
|
|
1202
|
+
* A dispute is a chargeback or payment challenge filed against a company,
|
|
1203
|
+
* including evidence and response status.
|
|
1196
1204
|
*/
|
|
1197
1205
|
data: DisputesAPI.Dispute;
|
|
1198
1206
|
|
|
@@ -1224,7 +1232,8 @@ export interface RefundCreatedWebhookEvent {
|
|
|
1224
1232
|
api_version: 'v1';
|
|
1225
1233
|
|
|
1226
1234
|
/**
|
|
1227
|
-
*
|
|
1235
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1236
|
+
* amount, status, and payment provider.
|
|
1228
1237
|
*/
|
|
1229
1238
|
data: RefundCreatedWebhookEvent.Data;
|
|
1230
1239
|
|
|
@@ -1246,21 +1255,23 @@ export interface RefundCreatedWebhookEvent {
|
|
|
1246
1255
|
|
|
1247
1256
|
export namespace RefundCreatedWebhookEvent {
|
|
1248
1257
|
/**
|
|
1249
|
-
*
|
|
1258
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1259
|
+
* amount, status, and payment provider.
|
|
1250
1260
|
*/
|
|
1251
1261
|
export interface Data {
|
|
1252
1262
|
/**
|
|
1253
|
-
* The
|
|
1263
|
+
* The unique identifier for the refund.
|
|
1254
1264
|
*/
|
|
1255
1265
|
id: string;
|
|
1256
1266
|
|
|
1257
1267
|
/**
|
|
1258
|
-
* The amount of the refund.
|
|
1268
|
+
* The amount of the refund. Provided as a number in the specified currency. Eg:
|
|
1269
|
+
* 10.43 for $10.43 USD.
|
|
1259
1270
|
*/
|
|
1260
1271
|
amount: number;
|
|
1261
1272
|
|
|
1262
1273
|
/**
|
|
1263
|
-
* The
|
|
1274
|
+
* The datetime the refund was created.
|
|
1264
1275
|
*/
|
|
1265
1276
|
created_at: string;
|
|
1266
1277
|
|
|
@@ -1311,7 +1322,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1311
1322
|
*/
|
|
1312
1323
|
export interface Payment {
|
|
1313
1324
|
/**
|
|
1314
|
-
* The payment
|
|
1325
|
+
* The unique identifier for the payment.
|
|
1315
1326
|
*/
|
|
1316
1327
|
id: string;
|
|
1317
1328
|
|
|
@@ -1331,7 +1342,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1331
1342
|
card_last4: string | null;
|
|
1332
1343
|
|
|
1333
1344
|
/**
|
|
1334
|
-
* The datetime the payment was created
|
|
1345
|
+
* The datetime the payment was created.
|
|
1335
1346
|
*/
|
|
1336
1347
|
created_at: string;
|
|
1337
1348
|
|
|
@@ -1392,7 +1403,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1392
1403
|
*/
|
|
1393
1404
|
export interface Member {
|
|
1394
1405
|
/**
|
|
1395
|
-
* The
|
|
1406
|
+
* The unique identifier for the company member.
|
|
1396
1407
|
*/
|
|
1397
1408
|
id: string;
|
|
1398
1409
|
|
|
@@ -1407,7 +1418,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1407
1418
|
*/
|
|
1408
1419
|
export interface Membership {
|
|
1409
1420
|
/**
|
|
1410
|
-
* The
|
|
1421
|
+
* The unique identifier for the membership.
|
|
1411
1422
|
*/
|
|
1412
1423
|
id: string;
|
|
1413
1424
|
|
|
@@ -1422,7 +1433,7 @@ export namespace RefundCreatedWebhookEvent {
|
|
|
1422
1433
|
*/
|
|
1423
1434
|
export interface User {
|
|
1424
1435
|
/**
|
|
1425
|
-
* The
|
|
1436
|
+
* The unique identifier for the user.
|
|
1426
1437
|
*/
|
|
1427
1438
|
id: string;
|
|
1428
1439
|
|
|
@@ -1457,7 +1468,8 @@ export interface RefundUpdatedWebhookEvent {
|
|
|
1457
1468
|
api_version: 'v1';
|
|
1458
1469
|
|
|
1459
1470
|
/**
|
|
1460
|
-
*
|
|
1471
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1472
|
+
* amount, status, and payment provider.
|
|
1461
1473
|
*/
|
|
1462
1474
|
data: RefundUpdatedWebhookEvent.Data;
|
|
1463
1475
|
|
|
@@ -1479,21 +1491,23 @@ export interface RefundUpdatedWebhookEvent {
|
|
|
1479
1491
|
|
|
1480
1492
|
export namespace RefundUpdatedWebhookEvent {
|
|
1481
1493
|
/**
|
|
1482
|
-
*
|
|
1494
|
+
* A refund represents a full or partial reversal of a payment, including the
|
|
1495
|
+
* amount, status, and payment provider.
|
|
1483
1496
|
*/
|
|
1484
1497
|
export interface Data {
|
|
1485
1498
|
/**
|
|
1486
|
-
* The
|
|
1499
|
+
* The unique identifier for the refund.
|
|
1487
1500
|
*/
|
|
1488
1501
|
id: string;
|
|
1489
1502
|
|
|
1490
1503
|
/**
|
|
1491
|
-
* The amount of the refund.
|
|
1504
|
+
* The amount of the refund. Provided as a number in the specified currency. Eg:
|
|
1505
|
+
* 10.43 for $10.43 USD.
|
|
1492
1506
|
*/
|
|
1493
1507
|
amount: number;
|
|
1494
1508
|
|
|
1495
1509
|
/**
|
|
1496
|
-
* The
|
|
1510
|
+
* The datetime the refund was created.
|
|
1497
1511
|
*/
|
|
1498
1512
|
created_at: string;
|
|
1499
1513
|
|
|
@@ -1544,7 +1558,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1544
1558
|
*/
|
|
1545
1559
|
export interface Payment {
|
|
1546
1560
|
/**
|
|
1547
|
-
* The payment
|
|
1561
|
+
* The unique identifier for the payment.
|
|
1548
1562
|
*/
|
|
1549
1563
|
id: string;
|
|
1550
1564
|
|
|
@@ -1564,7 +1578,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1564
1578
|
card_last4: string | null;
|
|
1565
1579
|
|
|
1566
1580
|
/**
|
|
1567
|
-
* The datetime the payment was created
|
|
1581
|
+
* The datetime the payment was created.
|
|
1568
1582
|
*/
|
|
1569
1583
|
created_at: string;
|
|
1570
1584
|
|
|
@@ -1625,7 +1639,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1625
1639
|
*/
|
|
1626
1640
|
export interface Member {
|
|
1627
1641
|
/**
|
|
1628
|
-
* The
|
|
1642
|
+
* The unique identifier for the company member.
|
|
1629
1643
|
*/
|
|
1630
1644
|
id: string;
|
|
1631
1645
|
|
|
@@ -1640,7 +1654,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1640
1654
|
*/
|
|
1641
1655
|
export interface Membership {
|
|
1642
1656
|
/**
|
|
1643
|
-
* The
|
|
1657
|
+
* The unique identifier for the membership.
|
|
1644
1658
|
*/
|
|
1645
1659
|
id: string;
|
|
1646
1660
|
|
|
@@ -1655,7 +1669,7 @@ export namespace RefundUpdatedWebhookEvent {
|
|
|
1655
1669
|
*/
|
|
1656
1670
|
export interface User {
|
|
1657
1671
|
/**
|
|
1658
|
-
* The
|
|
1672
|
+
* The unique identifier for the user.
|
|
1659
1673
|
*/
|
|
1660
1674
|
id: string;
|
|
1661
1675
|
|
|
@@ -1690,8 +1704,8 @@ export interface MembershipCancelAtPeriodEndChangedWebhookEvent {
|
|
|
1690
1704
|
api_version: 'v1';
|
|
1691
1705
|
|
|
1692
1706
|
/**
|
|
1693
|
-
* A membership represents
|
|
1694
|
-
*
|
|
1707
|
+
* A membership represents an active relationship between a user and a product. It
|
|
1708
|
+
* tracks the user's access, billing status, and renewal schedule.
|
|
1695
1709
|
*/
|
|
1696
1710
|
data: Shared.Membership;
|
|
1697
1711
|
|