@whop/sdk 0.0.24 → 0.0.25
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 +47 -0
- package/README.md +2 -2
- package/client.d.mts +13 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +13 -4
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/ai-chats.d.mts +265 -0
- package/resources/ai-chats.d.mts.map +1 -0
- package/resources/ai-chats.d.ts +265 -0
- package/resources/ai-chats.d.ts.map +1 -0
- package/resources/ai-chats.js +53 -0
- package/resources/ai-chats.js.map +1 -0
- package/resources/ai-chats.mjs +49 -0
- package/resources/ai-chats.mjs.map +1 -0
- package/resources/apps.d.mts +1 -1
- package/resources/apps.d.mts.map +1 -1
- package/resources/apps.d.ts +1 -1
- package/resources/apps.d.ts.map +1 -1
- package/resources/checkout-configurations.d.mts +12 -0
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +12 -0
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/company-token-transactions.d.mts +425 -0
- package/resources/company-token-transactions.d.mts.map +1 -0
- package/resources/company-token-transactions.d.ts +425 -0
- package/resources/company-token-transactions.d.ts.map +1 -0
- package/resources/company-token-transactions.js +59 -0
- package/resources/company-token-transactions.js.map +1 -0
- package/resources/company-token-transactions.mjs +55 -0
- package/resources/company-token-transactions.mjs.map +1 -0
- package/resources/dm-members.d.mts +242 -0
- package/resources/dm-members.d.mts.map +1 -0
- package/resources/dm-members.d.ts +242 -0
- package/resources/dm-members.d.ts.map +1 -0
- package/resources/dm-members.js +94 -0
- package/resources/dm-members.js.map +1 -0
- package/resources/dm-members.mjs +90 -0
- package/resources/dm-members.mjs.map +1 -0
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/members.d.mts +8 -0
- package/resources/members.d.mts.map +1 -1
- package/resources/members.d.ts +8 -0
- package/resources/members.d.ts.map +1 -1
- package/resources/memberships.d.mts +25 -0
- package/resources/memberships.d.mts.map +1 -1
- package/resources/memberships.d.ts +25 -0
- package/resources/memberships.d.ts.map +1 -1
- package/resources/memberships.js +18 -0
- package/resources/memberships.js.map +1 -1
- package/resources/memberships.mjs +18 -0
- package/resources/memberships.mjs.map +1 -1
- package/resources/messages.d.mts +17 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +17 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +10 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +10 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/payments.d.mts +9 -1
- package/resources/payments.d.mts.map +1 -1
- package/resources/payments.d.ts +9 -1
- package/resources/payments.d.ts.map +1 -1
- package/resources/payout-methods.d.mts +18 -0
- package/resources/payout-methods.d.mts.map +1 -1
- package/resources/payout-methods.d.ts +18 -0
- package/resources/payout-methods.d.ts.map +1 -1
- package/resources/reactions.d.mts +24 -1
- package/resources/reactions.d.mts.map +1 -1
- package/resources/reactions.d.ts +24 -1
- package/resources/reactions.d.ts.map +1 -1
- package/resources/reactions.js +11 -0
- package/resources/reactions.js.map +1 -1
- package/resources/reactions.mjs +11 -0
- package/resources/reactions.mjs.map +1 -1
- package/resources/refunds.d.mts +1 -1
- package/resources/refunds.d.mts.map +1 -1
- package/resources/refunds.d.ts +1 -1
- package/resources/refunds.d.ts.map +1 -1
- package/resources/shared.d.mts +39 -1
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +39 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhooks.d.mts +9 -0
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +9 -0
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/withdrawals.d.mts +4 -0
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +4 -0
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +81 -0
- package/src/resources/ai-chats.ts +346 -0
- package/src/resources/apps.ts +6 -0
- package/src/resources/checkout-configurations.ts +15 -0
- package/src/resources/company-token-transactions.ts +535 -0
- package/src/resources/dm-members.ts +310 -0
- package/src/resources/index.ts +36 -0
- package/src/resources/members.ts +10 -0
- package/src/resources/memberships.ts +38 -0
- package/src/resources/messages.ts +22 -0
- package/src/resources/payments.ts +69 -57
- package/src/resources/payout-methods.ts +22 -0
- package/src/resources/reactions.ts +36 -0
- package/src/resources/refunds.ts +2 -1
- package/src/resources/shared.ts +77 -11
- package/src/resources/webhooks.ts +11 -0
- package/src/resources/withdrawals.ts +5 -0
- 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
|
@@ -259,91 +259,93 @@ export type CardBrands =
|
|
|
259
259
|
* The different types of payment methods that can be used.
|
|
260
260
|
*/
|
|
261
261
|
export type PaymentMethodTypes =
|
|
262
|
+
| 'acss_debit'
|
|
263
|
+
| 'affirm'
|
|
262
264
|
| 'afterpay_clearpay'
|
|
263
265
|
| 'alipay'
|
|
266
|
+
| 'alma'
|
|
264
267
|
| 'amazon_pay'
|
|
268
|
+
| 'apple'
|
|
265
269
|
| 'apple_pay'
|
|
270
|
+
| 'au_becs_debit'
|
|
271
|
+
| 'bacs_debit'
|
|
266
272
|
| 'bancontact'
|
|
273
|
+
| 'billie'
|
|
274
|
+
| 'bizum'
|
|
275
|
+
| 'blik'
|
|
276
|
+
| 'boleto'
|
|
277
|
+
| 'capchase_pay'
|
|
267
278
|
| 'card'
|
|
268
279
|
| 'cashapp'
|
|
280
|
+
| 'coinbase'
|
|
269
281
|
| 'crypto'
|
|
282
|
+
| 'custom'
|
|
283
|
+
| 'customer_balance'
|
|
284
|
+
| 'demo_pay'
|
|
285
|
+
| 'eps'
|
|
286
|
+
| 'eu_bank_transfer'
|
|
287
|
+
| 'fpx'
|
|
288
|
+
| 'giropay'
|
|
270
289
|
| 'google_pay'
|
|
290
|
+
| 'gopay'
|
|
291
|
+
| 'grabpay'
|
|
292
|
+
| 'id_bank_transfer'
|
|
271
293
|
| 'ideal'
|
|
294
|
+
| 'interac'
|
|
295
|
+
| 'kakao_pay'
|
|
272
296
|
| 'klarna'
|
|
297
|
+
| 'konbini'
|
|
298
|
+
| 'kr_card'
|
|
299
|
+
| 'kr_market'
|
|
300
|
+
| 'kriya'
|
|
301
|
+
| 'link'
|
|
302
|
+
| 'mb_way'
|
|
273
303
|
| 'mobilepay'
|
|
274
|
-
| '
|
|
275
|
-
| 'swish'
|
|
276
|
-
| 'twint'
|
|
277
|
-
| 'us_bank_account'
|
|
278
|
-
| 'zip'
|
|
279
|
-
| 'vipps'
|
|
280
|
-
| 'paypal'
|
|
281
|
-
| 'sezzle'
|
|
282
|
-
| 'coinbase'
|
|
283
|
-
| 'splitit'
|
|
284
|
-
| 'platform_balance'
|
|
285
|
-
| 'apple'
|
|
286
|
-
| 'venmo'
|
|
287
|
-
| 'affirm'
|
|
304
|
+
| 'mondu'
|
|
288
305
|
| 'multibanco'
|
|
289
|
-
| 'wechat_pay'
|
|
290
306
|
| 'naver_pay'
|
|
307
|
+
| 'netbanking'
|
|
308
|
+
| 'ng_bank'
|
|
309
|
+
| 'ng_bank_transfer'
|
|
310
|
+
| 'ng_card'
|
|
311
|
+
| 'ng_market'
|
|
312
|
+
| 'ng_ussd'
|
|
313
|
+
| 'ng_wallet'
|
|
291
314
|
| 'nz_bank_account'
|
|
292
315
|
| 'oxxo'
|
|
293
316
|
| 'p24'
|
|
294
317
|
| 'pay_by_bank'
|
|
295
318
|
| 'payco'
|
|
296
319
|
| 'paynow'
|
|
320
|
+
| 'paypal'
|
|
321
|
+
| 'paypay'
|
|
322
|
+
| 'payto'
|
|
297
323
|
| 'pix'
|
|
324
|
+
| 'platform_balance'
|
|
298
325
|
| 'promptpay'
|
|
326
|
+
| 'qris'
|
|
327
|
+
| 'rechnung'
|
|
299
328
|
| 'revolut_pay'
|
|
300
329
|
| 'samsung_pay'
|
|
301
330
|
| 'satispay'
|
|
302
|
-
| 'sofort'
|
|
303
|
-
| 'konbini'
|
|
304
|
-
| 'kr_card'
|
|
305
|
-
| 'link'
|
|
306
|
-
| 'grabpay'
|
|
307
|
-
| 'kakao_pay'
|
|
308
|
-
| 'billie'
|
|
309
|
-
| 'blik'
|
|
310
|
-
| 'boleto'
|
|
311
|
-
| 'eps'
|
|
312
|
-
| 'fpx'
|
|
313
|
-
| 'giropay'
|
|
314
|
-
| 'acss_debit'
|
|
315
|
-
| 'alma'
|
|
316
|
-
| 'au_becs_debit'
|
|
317
|
-
| 'bacs_debit'
|
|
318
|
-
| 'bizum'
|
|
319
|
-
| 'capchase_pay'
|
|
320
|
-
| 'kriya'
|
|
321
|
-
| 'mondu'
|
|
322
|
-
| 'ng_wallet'
|
|
323
|
-
| 'paypay'
|
|
324
|
-
| 'sequra'
|
|
325
331
|
| 'scalapay'
|
|
326
|
-
| '
|
|
327
|
-
| '
|
|
328
|
-
| '
|
|
329
|
-
| '
|
|
330
|
-
| 'ng_bank'
|
|
331
|
-
| 'ng_bank_transfer'
|
|
332
|
-
| 'ng_card'
|
|
333
|
-
| 'ng_market'
|
|
334
|
-
| 'ng_ussd'
|
|
335
|
-
| 'payto'
|
|
336
|
-
| 'qris'
|
|
337
|
-
| 'rechnung'
|
|
338
|
-
| 'south_korea_market'
|
|
339
|
-
| 'kr_market'
|
|
332
|
+
| 'sepa_debit'
|
|
333
|
+
| 'sequra'
|
|
334
|
+
| 'sezzle'
|
|
335
|
+
| 'shop_pay'
|
|
340
336
|
| 'shopeepay'
|
|
341
|
-
| '
|
|
337
|
+
| 'sofort'
|
|
338
|
+
| 'south_korea_market'
|
|
339
|
+
| 'splitit'
|
|
342
340
|
| 'sunbit'
|
|
343
|
-
| '
|
|
344
|
-
| '
|
|
345
|
-
| '
|
|
346
|
-
| '
|
|
341
|
+
| 'swish'
|
|
342
|
+
| 'twint'
|
|
343
|
+
| 'upi'
|
|
344
|
+
| 'us_bank_account'
|
|
345
|
+
| 'venmo'
|
|
346
|
+
| 'vipps'
|
|
347
|
+
| 'wechat_pay'
|
|
348
|
+
| 'zip'
|
|
347
349
|
| 'unknown';
|
|
348
350
|
|
|
349
351
|
/**
|
|
@@ -431,6 +433,11 @@ export interface PaymentListResponse {
|
|
|
431
433
|
*/
|
|
432
434
|
metadata: { [key: string]: unknown } | null;
|
|
433
435
|
|
|
436
|
+
/**
|
|
437
|
+
* The time of the next schedule payment retry.
|
|
438
|
+
*/
|
|
439
|
+
next_payment_attempt: string | null;
|
|
440
|
+
|
|
434
441
|
/**
|
|
435
442
|
* The datetime the payment was paid
|
|
436
443
|
*/
|
|
@@ -446,6 +453,11 @@ export interface PaymentListResponse {
|
|
|
446
453
|
*/
|
|
447
454
|
payment_method_type: PaymentMethodTypes | null;
|
|
448
455
|
|
|
456
|
+
/**
|
|
457
|
+
* The number of failed payment attempts for the payment.
|
|
458
|
+
*/
|
|
459
|
+
payments_failed: number | null;
|
|
460
|
+
|
|
449
461
|
/**
|
|
450
462
|
* The plan attached to this payment.
|
|
451
463
|
*/
|
|
@@ -47,6 +47,12 @@ export interface PayoutMethodRetrieveResponse {
|
|
|
47
47
|
*/
|
|
48
48
|
id: string;
|
|
49
49
|
|
|
50
|
+
/**
|
|
51
|
+
* A reference to identify the payout destination, such as the last 4 digits of an
|
|
52
|
+
* account number or an email address.
|
|
53
|
+
*/
|
|
54
|
+
account_reference: string | null;
|
|
55
|
+
|
|
50
56
|
/**
|
|
51
57
|
* The company associated with the payout token
|
|
52
58
|
*/
|
|
@@ -68,6 +74,11 @@ export interface PayoutMethodRetrieveResponse {
|
|
|
68
74
|
*/
|
|
69
75
|
destination: PayoutMethodRetrieveResponse.Destination | null;
|
|
70
76
|
|
|
77
|
+
/**
|
|
78
|
+
* The name of the bank or financial institution.
|
|
79
|
+
*/
|
|
80
|
+
institution_name: string | null;
|
|
81
|
+
|
|
71
82
|
/**
|
|
72
83
|
* Whether this payout token is the default for the payout account
|
|
73
84
|
*/
|
|
@@ -121,6 +132,12 @@ export interface PayoutMethodListResponse {
|
|
|
121
132
|
*/
|
|
122
133
|
id: string;
|
|
123
134
|
|
|
135
|
+
/**
|
|
136
|
+
* A reference to identify the payout destination, such as the last 4 digits of an
|
|
137
|
+
* account number or an email address.
|
|
138
|
+
*/
|
|
139
|
+
account_reference: string | null;
|
|
140
|
+
|
|
124
141
|
/**
|
|
125
142
|
* The company associated with the payout token
|
|
126
143
|
*/
|
|
@@ -142,6 +159,11 @@ export interface PayoutMethodListResponse {
|
|
|
142
159
|
*/
|
|
143
160
|
destination: PayoutMethodListResponse.Destination | null;
|
|
144
161
|
|
|
162
|
+
/**
|
|
163
|
+
* The name of the bank or financial institution.
|
|
164
|
+
*/
|
|
165
|
+
institution_name: string | null;
|
|
166
|
+
|
|
145
167
|
/**
|
|
146
168
|
* Whether this payout token is the default for the payout account
|
|
147
169
|
*/
|
|
@@ -43,6 +43,22 @@ export class Reactions extends APIResource {
|
|
|
43
43
|
): PagePromise<ReactionListResponsesCursorPage, ReactionListResponse> {
|
|
44
44
|
return this._client.getAPIList('/reactions', CursorPage<ReactionListResponse>, { query, ...options });
|
|
45
45
|
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Deletes a reaction
|
|
49
|
+
*
|
|
50
|
+
* Required permissions:
|
|
51
|
+
*
|
|
52
|
+
* - `chat:read`
|
|
53
|
+
*/
|
|
54
|
+
delete(
|
|
55
|
+
id: string,
|
|
56
|
+
params: ReactionDeleteParams | null | undefined = {},
|
|
57
|
+
options?: RequestOptions,
|
|
58
|
+
): APIPromise<ReactionDeleteResponse> {
|
|
59
|
+
const { emoji } = params ?? {};
|
|
60
|
+
return this._client.delete(path`/reactions/${id}`, { query: { emoji }, ...options });
|
|
61
|
+
}
|
|
46
62
|
}
|
|
47
63
|
|
|
48
64
|
export type ReactionListResponsesCursorPage = CursorPage<ReactionListResponse>;
|
|
@@ -94,6 +110,11 @@ export namespace ReactionListResponse {
|
|
|
94
110
|
}
|
|
95
111
|
}
|
|
96
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Represents `true` or `false` values.
|
|
115
|
+
*/
|
|
116
|
+
export type ReactionDeleteResponse = boolean;
|
|
117
|
+
|
|
97
118
|
export interface ReactionCreateParams {
|
|
98
119
|
/**
|
|
99
120
|
* The ID of the post or message to react to.
|
|
@@ -105,6 +126,12 @@ export interface ReactionCreateParams {
|
|
|
105
126
|
* as everything will be :heart:
|
|
106
127
|
*/
|
|
107
128
|
emoji?: string | null;
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* The ID of the poll option to vote for. Only valid for messages or posts with
|
|
132
|
+
* polls.
|
|
133
|
+
*/
|
|
134
|
+
poll_option_id?: string | null;
|
|
108
135
|
}
|
|
109
136
|
|
|
110
137
|
export interface ReactionListParams extends CursorPageParams {
|
|
@@ -129,11 +156,20 @@ export interface ReactionListParams extends CursorPageParams {
|
|
|
129
156
|
last?: number | null;
|
|
130
157
|
}
|
|
131
158
|
|
|
159
|
+
export interface ReactionDeleteParams {
|
|
160
|
+
/**
|
|
161
|
+
* The emoji to remove (e.g., :heart: or '😀').
|
|
162
|
+
*/
|
|
163
|
+
emoji?: string | null;
|
|
164
|
+
}
|
|
165
|
+
|
|
132
166
|
export declare namespace Reactions {
|
|
133
167
|
export {
|
|
134
168
|
type ReactionListResponse as ReactionListResponse,
|
|
169
|
+
type ReactionDeleteResponse as ReactionDeleteResponse,
|
|
135
170
|
type ReactionListResponsesCursorPage as ReactionListResponsesCursorPage,
|
|
136
171
|
type ReactionCreateParams as ReactionCreateParams,
|
|
137
172
|
type ReactionListParams as ReactionListParams,
|
|
173
|
+
type ReactionDeleteParams as ReactionDeleteParams,
|
|
138
174
|
};
|
|
139
175
|
}
|
package/src/resources/refunds.ts
CHANGED
package/src/resources/shared.ts
CHANGED
|
@@ -1447,22 +1447,34 @@ export namespace ForumPost {
|
|
|
1447
1447
|
* The friendly status of a receipt
|
|
1448
1448
|
*/
|
|
1449
1449
|
export type FriendlyReceiptStatus =
|
|
1450
|
-
| '
|
|
1450
|
+
| 'succeeded'
|
|
1451
|
+
| 'pending'
|
|
1452
|
+
| 'failed'
|
|
1453
|
+
| 'past_due'
|
|
1454
|
+
| 'canceled'
|
|
1455
|
+
| 'price_too_low'
|
|
1456
|
+
| 'uncollectible'
|
|
1451
1457
|
| 'refunded'
|
|
1458
|
+
| 'auto_refunded'
|
|
1452
1459
|
| 'partially_refunded'
|
|
1453
1460
|
| 'dispute_warning'
|
|
1454
|
-
| '
|
|
1455
|
-
| '
|
|
1456
|
-
| '
|
|
1457
|
-
| '
|
|
1458
|
-
| '
|
|
1461
|
+
| 'dispute_needs_response'
|
|
1462
|
+
| 'dispute_warning_needs_response'
|
|
1463
|
+
| 'resolution_needs_response'
|
|
1464
|
+
| 'dispute_under_review'
|
|
1465
|
+
| 'dispute_warning_under_review'
|
|
1466
|
+
| 'resolution_under_review'
|
|
1467
|
+
| 'dispute_won'
|
|
1468
|
+
| 'dispute_warning_closed'
|
|
1469
|
+
| 'resolution_won'
|
|
1470
|
+
| 'dispute_lost'
|
|
1471
|
+
| 'dispute_closed'
|
|
1472
|
+
| 'resolution_lost'
|
|
1459
1473
|
| 'drafted'
|
|
1460
|
-
| 'uncollectible'
|
|
1461
|
-
| 'unresolved'
|
|
1462
|
-
| 'past_due'
|
|
1463
|
-
| 'pending'
|
|
1464
1474
|
| 'incomplete'
|
|
1465
|
-
| '
|
|
1475
|
+
| 'unresolved'
|
|
1476
|
+
| 'open_dispute'
|
|
1477
|
+
| 'open_resolution';
|
|
1466
1478
|
|
|
1467
1479
|
/**
|
|
1468
1480
|
* The different statuses of the global affiliate program for a product.
|
|
@@ -1764,6 +1776,20 @@ export interface Membership {
|
|
|
1764
1776
|
*/
|
|
1765
1777
|
cancel_at_period_end: boolean;
|
|
1766
1778
|
|
|
1779
|
+
/**
|
|
1780
|
+
* The different reasons a user can choose for why they are canceling their
|
|
1781
|
+
* membership.
|
|
1782
|
+
*/
|
|
1783
|
+
cancel_option:
|
|
1784
|
+
| 'too_expensive'
|
|
1785
|
+
| 'switching'
|
|
1786
|
+
| 'missing_features'
|
|
1787
|
+
| 'technical_issues'
|
|
1788
|
+
| 'bad_experience'
|
|
1789
|
+
| 'other'
|
|
1790
|
+
| 'testing'
|
|
1791
|
+
| null;
|
|
1792
|
+
|
|
1767
1793
|
/**
|
|
1768
1794
|
* The epoch timestamp of when the customer initiated a cancellation.
|
|
1769
1795
|
*/
|
|
@@ -1789,6 +1815,11 @@ export interface Membership {
|
|
|
1789
1815
|
*/
|
|
1790
1816
|
currency: Currency | null;
|
|
1791
1817
|
|
|
1818
|
+
/**
|
|
1819
|
+
* The responses to custom checkout questions for this membership.
|
|
1820
|
+
*/
|
|
1821
|
+
custom_field_responses: Array<Membership.CustomFieldResponse>;
|
|
1822
|
+
|
|
1792
1823
|
/**
|
|
1793
1824
|
* The license key for this Membership. This is only present if the membership
|
|
1794
1825
|
* grants access to an instance of the Whop Software app.
|
|
@@ -1874,6 +1905,26 @@ export namespace Membership {
|
|
|
1874
1905
|
title: string;
|
|
1875
1906
|
}
|
|
1876
1907
|
|
|
1908
|
+
/**
|
|
1909
|
+
* The response from a custom field on checkout
|
|
1910
|
+
*/
|
|
1911
|
+
export interface CustomFieldResponse {
|
|
1912
|
+
/**
|
|
1913
|
+
* The ID of the custom field item
|
|
1914
|
+
*/
|
|
1915
|
+
id: string;
|
|
1916
|
+
|
|
1917
|
+
/**
|
|
1918
|
+
* The response a user gave to the specific question or field.
|
|
1919
|
+
*/
|
|
1920
|
+
answer: string;
|
|
1921
|
+
|
|
1922
|
+
/**
|
|
1923
|
+
* The question asked by the custom field
|
|
1924
|
+
*/
|
|
1925
|
+
question: string;
|
|
1926
|
+
}
|
|
1927
|
+
|
|
1877
1928
|
/**
|
|
1878
1929
|
* The Member that this Membership belongs to.
|
|
1879
1930
|
*/
|
|
@@ -1928,6 +1979,11 @@ export namespace Membership {
|
|
|
1928
1979
|
*/
|
|
1929
1980
|
id: string;
|
|
1930
1981
|
|
|
1982
|
+
/**
|
|
1983
|
+
* The email of the user
|
|
1984
|
+
*/
|
|
1985
|
+
email: string | null;
|
|
1986
|
+
|
|
1931
1987
|
/**
|
|
1932
1988
|
* The name of the user from their Whop account.
|
|
1933
1989
|
*/
|
|
@@ -2213,6 +2269,11 @@ export interface Payment {
|
|
|
2213
2269
|
*/
|
|
2214
2270
|
metadata: { [key: string]: unknown } | null;
|
|
2215
2271
|
|
|
2272
|
+
/**
|
|
2273
|
+
* The time of the next schedule payment retry.
|
|
2274
|
+
*/
|
|
2275
|
+
next_payment_attempt: string | null;
|
|
2276
|
+
|
|
2216
2277
|
/**
|
|
2217
2278
|
* The datetime the payment was paid
|
|
2218
2279
|
*/
|
|
@@ -2228,6 +2289,11 @@ export interface Payment {
|
|
|
2228
2289
|
*/
|
|
2229
2290
|
payment_method_type: PaymentsAPI.PaymentMethodTypes | null;
|
|
2230
2291
|
|
|
2292
|
+
/**
|
|
2293
|
+
* The number of failed payment attempts for the payment.
|
|
2294
|
+
*/
|
|
2295
|
+
payments_failed: number | null;
|
|
2296
|
+
|
|
2231
2297
|
/**
|
|
2232
2298
|
* The plan attached to this payment.
|
|
2233
2299
|
*/
|
|
@@ -1457,6 +1457,12 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
1457
1457
|
*/
|
|
1458
1458
|
id: string;
|
|
1459
1459
|
|
|
1460
|
+
/**
|
|
1461
|
+
* A reference to identify the payout destination, such as the last 4 digits of an
|
|
1462
|
+
* account number or an email address.
|
|
1463
|
+
*/
|
|
1464
|
+
account_reference: string | null;
|
|
1465
|
+
|
|
1460
1466
|
/**
|
|
1461
1467
|
* The company associated with the payout token
|
|
1462
1468
|
*/
|
|
@@ -1478,6 +1484,11 @@ export namespace PayoutMethodCreatedWebhookEvent {
|
|
|
1478
1484
|
*/
|
|
1479
1485
|
destination: Data.Destination | null;
|
|
1480
1486
|
|
|
1487
|
+
/**
|
|
1488
|
+
* The name of the bank or financial institution.
|
|
1489
|
+
*/
|
|
1490
|
+
institution_name: string | null;
|
|
1491
|
+
|
|
1481
1492
|
/**
|
|
1482
1493
|
* Whether this payout token is the default for the payout account
|
|
1483
1494
|
*/
|
|
@@ -531,6 +531,11 @@ export interface WithdrawalCreateParams {
|
|
|
531
531
|
*/
|
|
532
532
|
payout_method_id?: string | null;
|
|
533
533
|
|
|
534
|
+
/**
|
|
535
|
+
* Whether the platform covers the payout fees instead of the connected account.
|
|
536
|
+
*/
|
|
537
|
+
platform_covers_fees?: boolean | null;
|
|
538
|
+
|
|
534
539
|
/**
|
|
535
540
|
* Custom statement descriptor for the withdrawal. Must be between 5 and 22
|
|
536
541
|
* characters and contain only alphanumeric characters.
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.25'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.25";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.25";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.25'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|