@whop/sdk 0.0.16 → 0.0.19
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 +43 -0
- package/client.d.mts +2 -2
- package/client.d.mts.map +1 -1
- package/client.d.ts +2 -2
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/companies.d.mts +26 -0
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +26 -0
- package/resources/companies.d.ts.map +1 -1
- package/resources/courses.d.mts +4 -0
- package/resources/courses.d.mts.map +1 -1
- package/resources/courses.d.ts +4 -0
- package/resources/courses.d.ts.map +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/ledger-accounts.d.mts +87 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +87 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +1 -0
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs +1 -0
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/payment-methods.d.mts +258 -2
- package/resources/payment-methods.d.mts.map +1 -1
- package/resources/payment-methods.d.ts +258 -2
- package/resources/payment-methods.d.ts.map +1 -1
- package/resources/webhooks.d.mts +24 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +24 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/src/client.ts +2 -0
- package/src/resources/companies.ts +32 -0
- package/src/resources/courses.ts +5 -0
- package/src/resources/index.ts +1 -0
- package/src/resources/ledger-accounts.ts +104 -0
- package/src/resources/payment-methods.ts +310 -2
- package/src/resources/webhooks.ts +29 -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
|
@@ -34,7 +34,7 @@ export type PaymentMethodListResponsesCursorPage = CursorPage<PaymentMethodListR
|
|
|
34
34
|
/**
|
|
35
35
|
* A payment method with no additional properties
|
|
36
36
|
*/
|
|
37
|
-
export type PaymentMethodRetrieveResponse = PaymentMethodRetrieveResponse.BasePaymentMethod | PaymentMethodRetrieveResponse.CardPaymentMethod | PaymentMethodRetrieveResponse.UsBankAccountPaymentMethod;
|
|
37
|
+
export type PaymentMethodRetrieveResponse = PaymentMethodRetrieveResponse.BasePaymentMethod | PaymentMethodRetrieveResponse.CardPaymentMethod | PaymentMethodRetrieveResponse.UsBankAccountPaymentMethod | PaymentMethodRetrieveResponse.CashappPaymentMethod | PaymentMethodRetrieveResponse.IdealPaymentMethod | PaymentMethodRetrieveResponse.SepaDebitPaymentMethod;
|
|
38
38
|
export declare namespace PaymentMethodRetrieveResponse {
|
|
39
39
|
/**
|
|
40
40
|
* A payment method with no additional properties
|
|
@@ -149,11 +149,139 @@ export declare namespace PaymentMethodRetrieveResponse {
|
|
|
149
149
|
last4: string;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* The Cash App details for the payment method
|
|
154
|
+
*/
|
|
155
|
+
interface CashappPaymentMethod {
|
|
156
|
+
/**
|
|
157
|
+
* The ID of the payment method
|
|
158
|
+
*/
|
|
159
|
+
id: string;
|
|
160
|
+
/**
|
|
161
|
+
* The Cash App details associated with this payment method
|
|
162
|
+
*/
|
|
163
|
+
cashapp: CashappPaymentMethod.Cashapp;
|
|
164
|
+
/**
|
|
165
|
+
* When the payment method was created
|
|
166
|
+
*/
|
|
167
|
+
created_at: string;
|
|
168
|
+
/**
|
|
169
|
+
* The type of the payment method
|
|
170
|
+
*/
|
|
171
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
172
|
+
/**
|
|
173
|
+
* The typename of this object
|
|
174
|
+
*/
|
|
175
|
+
typename: 'CashappPaymentMethod';
|
|
176
|
+
}
|
|
177
|
+
namespace CashappPaymentMethod {
|
|
178
|
+
/**
|
|
179
|
+
* The Cash App details associated with this payment method
|
|
180
|
+
*/
|
|
181
|
+
interface Cashapp {
|
|
182
|
+
/**
|
|
183
|
+
* A unique and immutable identifier assigned by Cash App to every buyer.
|
|
184
|
+
*/
|
|
185
|
+
buyer_id: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* A public identifier for buyers using Cash App.
|
|
188
|
+
*/
|
|
189
|
+
cashtag: string | null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The iDEAL details for the payment method
|
|
194
|
+
*/
|
|
195
|
+
interface IdealPaymentMethod {
|
|
196
|
+
/**
|
|
197
|
+
* The ID of the payment method
|
|
198
|
+
*/
|
|
199
|
+
id: string;
|
|
200
|
+
/**
|
|
201
|
+
* When the payment method was created
|
|
202
|
+
*/
|
|
203
|
+
created_at: string;
|
|
204
|
+
/**
|
|
205
|
+
* The iDEAL details associated with this payment method
|
|
206
|
+
*/
|
|
207
|
+
ideal: IdealPaymentMethod.Ideal;
|
|
208
|
+
/**
|
|
209
|
+
* The type of the payment method
|
|
210
|
+
*/
|
|
211
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
212
|
+
/**
|
|
213
|
+
* The typename of this object
|
|
214
|
+
*/
|
|
215
|
+
typename: 'IdealPaymentMethod';
|
|
216
|
+
}
|
|
217
|
+
namespace IdealPaymentMethod {
|
|
218
|
+
/**
|
|
219
|
+
* The iDEAL details associated with this payment method
|
|
220
|
+
*/
|
|
221
|
+
interface Ideal {
|
|
222
|
+
/**
|
|
223
|
+
* The customer's bank.
|
|
224
|
+
*/
|
|
225
|
+
bank: string | null;
|
|
226
|
+
/**
|
|
227
|
+
* The Bank Identifier Code of the customer's bank.
|
|
228
|
+
*/
|
|
229
|
+
bic: string | null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The SEPA Direct Debit details for the payment method
|
|
234
|
+
*/
|
|
235
|
+
interface SepaDebitPaymentMethod {
|
|
236
|
+
/**
|
|
237
|
+
* The ID of the payment method
|
|
238
|
+
*/
|
|
239
|
+
id: string;
|
|
240
|
+
/**
|
|
241
|
+
* When the payment method was created
|
|
242
|
+
*/
|
|
243
|
+
created_at: string;
|
|
244
|
+
/**
|
|
245
|
+
* The type of the payment method
|
|
246
|
+
*/
|
|
247
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
248
|
+
/**
|
|
249
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
250
|
+
*/
|
|
251
|
+
sepa_debit: SepaDebitPaymentMethod.SepaDebit;
|
|
252
|
+
/**
|
|
253
|
+
* The typename of this object
|
|
254
|
+
*/
|
|
255
|
+
typename: 'SepaDebitPaymentMethod';
|
|
256
|
+
}
|
|
257
|
+
namespace SepaDebitPaymentMethod {
|
|
258
|
+
/**
|
|
259
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
260
|
+
*/
|
|
261
|
+
interface SepaDebit {
|
|
262
|
+
/**
|
|
263
|
+
* Bank code of the bank associated with the account.
|
|
264
|
+
*/
|
|
265
|
+
bank_code: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Branch code of the bank associated with the account.
|
|
268
|
+
*/
|
|
269
|
+
branch_code: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Two-letter ISO code representing the country the bank account is located in.
|
|
272
|
+
*/
|
|
273
|
+
country: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Last four digits of the IBAN.
|
|
276
|
+
*/
|
|
277
|
+
last4: string | null;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
152
280
|
}
|
|
153
281
|
/**
|
|
154
282
|
* A payment method with no additional properties
|
|
155
283
|
*/
|
|
156
|
-
export type PaymentMethodListResponse = PaymentMethodListResponse.BasePaymentMethod | PaymentMethodListResponse.CardPaymentMethod | PaymentMethodListResponse.UsBankAccountPaymentMethod;
|
|
284
|
+
export type PaymentMethodListResponse = PaymentMethodListResponse.BasePaymentMethod | PaymentMethodListResponse.CardPaymentMethod | PaymentMethodListResponse.UsBankAccountPaymentMethod | PaymentMethodListResponse.CashappPaymentMethod | PaymentMethodListResponse.IdealPaymentMethod | PaymentMethodListResponse.SepaDebitPaymentMethod;
|
|
157
285
|
export declare namespace PaymentMethodListResponse {
|
|
158
286
|
/**
|
|
159
287
|
* A payment method with no additional properties
|
|
@@ -268,6 +396,134 @@ export declare namespace PaymentMethodListResponse {
|
|
|
268
396
|
last4: string;
|
|
269
397
|
}
|
|
270
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* The Cash App details for the payment method
|
|
401
|
+
*/
|
|
402
|
+
interface CashappPaymentMethod {
|
|
403
|
+
/**
|
|
404
|
+
* The ID of the payment method
|
|
405
|
+
*/
|
|
406
|
+
id: string;
|
|
407
|
+
/**
|
|
408
|
+
* The Cash App details associated with this payment method
|
|
409
|
+
*/
|
|
410
|
+
cashapp: CashappPaymentMethod.Cashapp;
|
|
411
|
+
/**
|
|
412
|
+
* When the payment method was created
|
|
413
|
+
*/
|
|
414
|
+
created_at: string;
|
|
415
|
+
/**
|
|
416
|
+
* The type of the payment method
|
|
417
|
+
*/
|
|
418
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
419
|
+
/**
|
|
420
|
+
* The typename of this object
|
|
421
|
+
*/
|
|
422
|
+
typename: 'CashappPaymentMethod';
|
|
423
|
+
}
|
|
424
|
+
namespace CashappPaymentMethod {
|
|
425
|
+
/**
|
|
426
|
+
* The Cash App details associated with this payment method
|
|
427
|
+
*/
|
|
428
|
+
interface Cashapp {
|
|
429
|
+
/**
|
|
430
|
+
* A unique and immutable identifier assigned by Cash App to every buyer.
|
|
431
|
+
*/
|
|
432
|
+
buyer_id: string | null;
|
|
433
|
+
/**
|
|
434
|
+
* A public identifier for buyers using Cash App.
|
|
435
|
+
*/
|
|
436
|
+
cashtag: string | null;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* The iDEAL details for the payment method
|
|
441
|
+
*/
|
|
442
|
+
interface IdealPaymentMethod {
|
|
443
|
+
/**
|
|
444
|
+
* The ID of the payment method
|
|
445
|
+
*/
|
|
446
|
+
id: string;
|
|
447
|
+
/**
|
|
448
|
+
* When the payment method was created
|
|
449
|
+
*/
|
|
450
|
+
created_at: string;
|
|
451
|
+
/**
|
|
452
|
+
* The iDEAL details associated with this payment method
|
|
453
|
+
*/
|
|
454
|
+
ideal: IdealPaymentMethod.Ideal;
|
|
455
|
+
/**
|
|
456
|
+
* The type of the payment method
|
|
457
|
+
*/
|
|
458
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
459
|
+
/**
|
|
460
|
+
* The typename of this object
|
|
461
|
+
*/
|
|
462
|
+
typename: 'IdealPaymentMethod';
|
|
463
|
+
}
|
|
464
|
+
namespace IdealPaymentMethod {
|
|
465
|
+
/**
|
|
466
|
+
* The iDEAL details associated with this payment method
|
|
467
|
+
*/
|
|
468
|
+
interface Ideal {
|
|
469
|
+
/**
|
|
470
|
+
* The customer's bank.
|
|
471
|
+
*/
|
|
472
|
+
bank: string | null;
|
|
473
|
+
/**
|
|
474
|
+
* The Bank Identifier Code of the customer's bank.
|
|
475
|
+
*/
|
|
476
|
+
bic: string | null;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* The SEPA Direct Debit details for the payment method
|
|
481
|
+
*/
|
|
482
|
+
interface SepaDebitPaymentMethod {
|
|
483
|
+
/**
|
|
484
|
+
* The ID of the payment method
|
|
485
|
+
*/
|
|
486
|
+
id: string;
|
|
487
|
+
/**
|
|
488
|
+
* When the payment method was created
|
|
489
|
+
*/
|
|
490
|
+
created_at: string;
|
|
491
|
+
/**
|
|
492
|
+
* The type of the payment method
|
|
493
|
+
*/
|
|
494
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
495
|
+
/**
|
|
496
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
497
|
+
*/
|
|
498
|
+
sepa_debit: SepaDebitPaymentMethod.SepaDebit;
|
|
499
|
+
/**
|
|
500
|
+
* The typename of this object
|
|
501
|
+
*/
|
|
502
|
+
typename: 'SepaDebitPaymentMethod';
|
|
503
|
+
}
|
|
504
|
+
namespace SepaDebitPaymentMethod {
|
|
505
|
+
/**
|
|
506
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
507
|
+
*/
|
|
508
|
+
interface SepaDebit {
|
|
509
|
+
/**
|
|
510
|
+
* Bank code of the bank associated with the account.
|
|
511
|
+
*/
|
|
512
|
+
bank_code: string | null;
|
|
513
|
+
/**
|
|
514
|
+
* Branch code of the bank associated with the account.
|
|
515
|
+
*/
|
|
516
|
+
branch_code: string | null;
|
|
517
|
+
/**
|
|
518
|
+
* Two-letter ISO code representing the country the bank account is located in.
|
|
519
|
+
*/
|
|
520
|
+
country: string | null;
|
|
521
|
+
/**
|
|
522
|
+
* Last four digits of the IBAN.
|
|
523
|
+
*/
|
|
524
|
+
last4: string | null;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
271
527
|
}
|
|
272
528
|
export interface PaymentMethodRetrieveParams {
|
|
273
529
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.d.mts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;OAUG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IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -34,7 +34,7 @@ export type PaymentMethodListResponsesCursorPage = CursorPage<PaymentMethodListR
|
|
|
34
34
|
/**
|
|
35
35
|
* A payment method with no additional properties
|
|
36
36
|
*/
|
|
37
|
-
export type PaymentMethodRetrieveResponse = PaymentMethodRetrieveResponse.BasePaymentMethod | PaymentMethodRetrieveResponse.CardPaymentMethod | PaymentMethodRetrieveResponse.UsBankAccountPaymentMethod;
|
|
37
|
+
export type PaymentMethodRetrieveResponse = PaymentMethodRetrieveResponse.BasePaymentMethod | PaymentMethodRetrieveResponse.CardPaymentMethod | PaymentMethodRetrieveResponse.UsBankAccountPaymentMethod | PaymentMethodRetrieveResponse.CashappPaymentMethod | PaymentMethodRetrieveResponse.IdealPaymentMethod | PaymentMethodRetrieveResponse.SepaDebitPaymentMethod;
|
|
38
38
|
export declare namespace PaymentMethodRetrieveResponse {
|
|
39
39
|
/**
|
|
40
40
|
* A payment method with no additional properties
|
|
@@ -149,11 +149,139 @@ export declare namespace PaymentMethodRetrieveResponse {
|
|
|
149
149
|
last4: string;
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
|
+
/**
|
|
153
|
+
* The Cash App details for the payment method
|
|
154
|
+
*/
|
|
155
|
+
interface CashappPaymentMethod {
|
|
156
|
+
/**
|
|
157
|
+
* The ID of the payment method
|
|
158
|
+
*/
|
|
159
|
+
id: string;
|
|
160
|
+
/**
|
|
161
|
+
* The Cash App details associated with this payment method
|
|
162
|
+
*/
|
|
163
|
+
cashapp: CashappPaymentMethod.Cashapp;
|
|
164
|
+
/**
|
|
165
|
+
* When the payment method was created
|
|
166
|
+
*/
|
|
167
|
+
created_at: string;
|
|
168
|
+
/**
|
|
169
|
+
* The type of the payment method
|
|
170
|
+
*/
|
|
171
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
172
|
+
/**
|
|
173
|
+
* The typename of this object
|
|
174
|
+
*/
|
|
175
|
+
typename: 'CashappPaymentMethod';
|
|
176
|
+
}
|
|
177
|
+
namespace CashappPaymentMethod {
|
|
178
|
+
/**
|
|
179
|
+
* The Cash App details associated with this payment method
|
|
180
|
+
*/
|
|
181
|
+
interface Cashapp {
|
|
182
|
+
/**
|
|
183
|
+
* A unique and immutable identifier assigned by Cash App to every buyer.
|
|
184
|
+
*/
|
|
185
|
+
buyer_id: string | null;
|
|
186
|
+
/**
|
|
187
|
+
* A public identifier for buyers using Cash App.
|
|
188
|
+
*/
|
|
189
|
+
cashtag: string | null;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* The iDEAL details for the payment method
|
|
194
|
+
*/
|
|
195
|
+
interface IdealPaymentMethod {
|
|
196
|
+
/**
|
|
197
|
+
* The ID of the payment method
|
|
198
|
+
*/
|
|
199
|
+
id: string;
|
|
200
|
+
/**
|
|
201
|
+
* When the payment method was created
|
|
202
|
+
*/
|
|
203
|
+
created_at: string;
|
|
204
|
+
/**
|
|
205
|
+
* The iDEAL details associated with this payment method
|
|
206
|
+
*/
|
|
207
|
+
ideal: IdealPaymentMethod.Ideal;
|
|
208
|
+
/**
|
|
209
|
+
* The type of the payment method
|
|
210
|
+
*/
|
|
211
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
212
|
+
/**
|
|
213
|
+
* The typename of this object
|
|
214
|
+
*/
|
|
215
|
+
typename: 'IdealPaymentMethod';
|
|
216
|
+
}
|
|
217
|
+
namespace IdealPaymentMethod {
|
|
218
|
+
/**
|
|
219
|
+
* The iDEAL details associated with this payment method
|
|
220
|
+
*/
|
|
221
|
+
interface Ideal {
|
|
222
|
+
/**
|
|
223
|
+
* The customer's bank.
|
|
224
|
+
*/
|
|
225
|
+
bank: string | null;
|
|
226
|
+
/**
|
|
227
|
+
* The Bank Identifier Code of the customer's bank.
|
|
228
|
+
*/
|
|
229
|
+
bic: string | null;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
/**
|
|
233
|
+
* The SEPA Direct Debit details for the payment method
|
|
234
|
+
*/
|
|
235
|
+
interface SepaDebitPaymentMethod {
|
|
236
|
+
/**
|
|
237
|
+
* The ID of the payment method
|
|
238
|
+
*/
|
|
239
|
+
id: string;
|
|
240
|
+
/**
|
|
241
|
+
* When the payment method was created
|
|
242
|
+
*/
|
|
243
|
+
created_at: string;
|
|
244
|
+
/**
|
|
245
|
+
* The type of the payment method
|
|
246
|
+
*/
|
|
247
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
248
|
+
/**
|
|
249
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
250
|
+
*/
|
|
251
|
+
sepa_debit: SepaDebitPaymentMethod.SepaDebit;
|
|
252
|
+
/**
|
|
253
|
+
* The typename of this object
|
|
254
|
+
*/
|
|
255
|
+
typename: 'SepaDebitPaymentMethod';
|
|
256
|
+
}
|
|
257
|
+
namespace SepaDebitPaymentMethod {
|
|
258
|
+
/**
|
|
259
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
260
|
+
*/
|
|
261
|
+
interface SepaDebit {
|
|
262
|
+
/**
|
|
263
|
+
* Bank code of the bank associated with the account.
|
|
264
|
+
*/
|
|
265
|
+
bank_code: string | null;
|
|
266
|
+
/**
|
|
267
|
+
* Branch code of the bank associated with the account.
|
|
268
|
+
*/
|
|
269
|
+
branch_code: string | null;
|
|
270
|
+
/**
|
|
271
|
+
* Two-letter ISO code representing the country the bank account is located in.
|
|
272
|
+
*/
|
|
273
|
+
country: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Last four digits of the IBAN.
|
|
276
|
+
*/
|
|
277
|
+
last4: string | null;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
152
280
|
}
|
|
153
281
|
/**
|
|
154
282
|
* A payment method with no additional properties
|
|
155
283
|
*/
|
|
156
|
-
export type PaymentMethodListResponse = PaymentMethodListResponse.BasePaymentMethod | PaymentMethodListResponse.CardPaymentMethod | PaymentMethodListResponse.UsBankAccountPaymentMethod;
|
|
284
|
+
export type PaymentMethodListResponse = PaymentMethodListResponse.BasePaymentMethod | PaymentMethodListResponse.CardPaymentMethod | PaymentMethodListResponse.UsBankAccountPaymentMethod | PaymentMethodListResponse.CashappPaymentMethod | PaymentMethodListResponse.IdealPaymentMethod | PaymentMethodListResponse.SepaDebitPaymentMethod;
|
|
157
285
|
export declare namespace PaymentMethodListResponse {
|
|
158
286
|
/**
|
|
159
287
|
* A payment method with no additional properties
|
|
@@ -268,6 +396,134 @@ export declare namespace PaymentMethodListResponse {
|
|
|
268
396
|
last4: string;
|
|
269
397
|
}
|
|
270
398
|
}
|
|
399
|
+
/**
|
|
400
|
+
* The Cash App details for the payment method
|
|
401
|
+
*/
|
|
402
|
+
interface CashappPaymentMethod {
|
|
403
|
+
/**
|
|
404
|
+
* The ID of the payment method
|
|
405
|
+
*/
|
|
406
|
+
id: string;
|
|
407
|
+
/**
|
|
408
|
+
* The Cash App details associated with this payment method
|
|
409
|
+
*/
|
|
410
|
+
cashapp: CashappPaymentMethod.Cashapp;
|
|
411
|
+
/**
|
|
412
|
+
* When the payment method was created
|
|
413
|
+
*/
|
|
414
|
+
created_at: string;
|
|
415
|
+
/**
|
|
416
|
+
* The type of the payment method
|
|
417
|
+
*/
|
|
418
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
419
|
+
/**
|
|
420
|
+
* The typename of this object
|
|
421
|
+
*/
|
|
422
|
+
typename: 'CashappPaymentMethod';
|
|
423
|
+
}
|
|
424
|
+
namespace CashappPaymentMethod {
|
|
425
|
+
/**
|
|
426
|
+
* The Cash App details associated with this payment method
|
|
427
|
+
*/
|
|
428
|
+
interface Cashapp {
|
|
429
|
+
/**
|
|
430
|
+
* A unique and immutable identifier assigned by Cash App to every buyer.
|
|
431
|
+
*/
|
|
432
|
+
buyer_id: string | null;
|
|
433
|
+
/**
|
|
434
|
+
* A public identifier for buyers using Cash App.
|
|
435
|
+
*/
|
|
436
|
+
cashtag: string | null;
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* The iDEAL details for the payment method
|
|
441
|
+
*/
|
|
442
|
+
interface IdealPaymentMethod {
|
|
443
|
+
/**
|
|
444
|
+
* The ID of the payment method
|
|
445
|
+
*/
|
|
446
|
+
id: string;
|
|
447
|
+
/**
|
|
448
|
+
* When the payment method was created
|
|
449
|
+
*/
|
|
450
|
+
created_at: string;
|
|
451
|
+
/**
|
|
452
|
+
* The iDEAL details associated with this payment method
|
|
453
|
+
*/
|
|
454
|
+
ideal: IdealPaymentMethod.Ideal;
|
|
455
|
+
/**
|
|
456
|
+
* The type of the payment method
|
|
457
|
+
*/
|
|
458
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
459
|
+
/**
|
|
460
|
+
* The typename of this object
|
|
461
|
+
*/
|
|
462
|
+
typename: 'IdealPaymentMethod';
|
|
463
|
+
}
|
|
464
|
+
namespace IdealPaymentMethod {
|
|
465
|
+
/**
|
|
466
|
+
* The iDEAL details associated with this payment method
|
|
467
|
+
*/
|
|
468
|
+
interface Ideal {
|
|
469
|
+
/**
|
|
470
|
+
* The customer's bank.
|
|
471
|
+
*/
|
|
472
|
+
bank: string | null;
|
|
473
|
+
/**
|
|
474
|
+
* The Bank Identifier Code of the customer's bank.
|
|
475
|
+
*/
|
|
476
|
+
bic: string | null;
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* The SEPA Direct Debit details for the payment method
|
|
481
|
+
*/
|
|
482
|
+
interface SepaDebitPaymentMethod {
|
|
483
|
+
/**
|
|
484
|
+
* The ID of the payment method
|
|
485
|
+
*/
|
|
486
|
+
id: string;
|
|
487
|
+
/**
|
|
488
|
+
* When the payment method was created
|
|
489
|
+
*/
|
|
490
|
+
created_at: string;
|
|
491
|
+
/**
|
|
492
|
+
* The type of the payment method
|
|
493
|
+
*/
|
|
494
|
+
payment_method_type: PaymentsAPI.PaymentMethodTypes;
|
|
495
|
+
/**
|
|
496
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
497
|
+
*/
|
|
498
|
+
sepa_debit: SepaDebitPaymentMethod.SepaDebit;
|
|
499
|
+
/**
|
|
500
|
+
* The typename of this object
|
|
501
|
+
*/
|
|
502
|
+
typename: 'SepaDebitPaymentMethod';
|
|
503
|
+
}
|
|
504
|
+
namespace SepaDebitPaymentMethod {
|
|
505
|
+
/**
|
|
506
|
+
* The SEPA Direct Debit details associated with this payment method
|
|
507
|
+
*/
|
|
508
|
+
interface SepaDebit {
|
|
509
|
+
/**
|
|
510
|
+
* Bank code of the bank associated with the account.
|
|
511
|
+
*/
|
|
512
|
+
bank_code: string | null;
|
|
513
|
+
/**
|
|
514
|
+
* Branch code of the bank associated with the account.
|
|
515
|
+
*/
|
|
516
|
+
branch_code: string | null;
|
|
517
|
+
/**
|
|
518
|
+
* Two-letter ISO code representing the country the bank account is located in.
|
|
519
|
+
*/
|
|
520
|
+
country: string | null;
|
|
521
|
+
/**
|
|
522
|
+
* Last four digits of the IBAN.
|
|
523
|
+
*/
|
|
524
|
+
last4: string | null;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
271
527
|
}
|
|
272
528
|
export interface PaymentMethodRetrieveParams {
|
|
273
529
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;OAUG;IACH,IAAI,CACF,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,oCAAoC,EAAE,yBAAyB,CAAC;CAMhF;AAED,MAAM,MAAM,oCAAoC,GAAG,UAAU,CAAC,yBAAyB,CAAC,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,6BAA6B,CAAC,iBAAiB,GAC/C,6BAA6B,CAAC,iBAAiB,GAC/C,6BAA6B,CAAC,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"payment-methods.d.ts","sourceRoot":"","sources":["../src/resources/payment-methods.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,WAAW;OAChB,KAAK,MAAM;OACX,EAAE,UAAU,EAAE;OACd,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE;OAClD,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;;;;;;;OAUG;IACH,QAAQ,CACN,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,2BAA2B,EAClC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,6BAA6B,CAAC;IAI5C;;;;;;;;;;OAUG;IACH,IAAI,C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,MAAM,GAAG,IAAI,CAAC;YAE3B;;eAEG;YACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;YAEvB;;eAEG;YACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;SACtB;KACF;CACF;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC/D;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC;IAEpC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
package/resources/webhooks.d.mts
CHANGED
|
@@ -602,6 +602,28 @@ export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
|
602
602
|
*/
|
|
603
603
|
type: 'course_lesson_interaction.completed';
|
|
604
604
|
}
|
|
605
|
+
export interface PaymentCreatedWebhookEvent {
|
|
606
|
+
/**
|
|
607
|
+
* A unique ID for every single webhook request
|
|
608
|
+
*/
|
|
609
|
+
id: string;
|
|
610
|
+
/**
|
|
611
|
+
* The API version for this webhook
|
|
612
|
+
*/
|
|
613
|
+
api_version: 'v1';
|
|
614
|
+
/**
|
|
615
|
+
* An object representing a receipt for a membership.
|
|
616
|
+
*/
|
|
617
|
+
data: Shared.Payment;
|
|
618
|
+
/**
|
|
619
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
620
|
+
*/
|
|
621
|
+
timestamp: string;
|
|
622
|
+
/**
|
|
623
|
+
* The webhook event type
|
|
624
|
+
*/
|
|
625
|
+
type: 'payment.created';
|
|
626
|
+
}
|
|
605
627
|
export interface PaymentSucceededWebhookEvent {
|
|
606
628
|
/**
|
|
607
629
|
* A unique ID for every single webhook request
|
|
@@ -1090,8 +1112,8 @@ export declare namespace RefundUpdatedWebhookEvent {
|
|
|
1090
1112
|
}
|
|
1091
1113
|
}
|
|
1092
1114
|
}
|
|
1093
|
-
export type UnwrapWebhookEvent = InvoiceCreatedWebhookEvent | InvoicePaidWebhookEvent | InvoicePastDueWebhookEvent | InvoiceVoidedWebhookEvent | MembershipActivatedWebhookEvent | MembershipDeactivatedWebhookEvent | EntryCreatedWebhookEvent | EntryApprovedWebhookEvent | EntryDeniedWebhookEvent | EntryDeletedWebhookEvent | SetupIntentRequiresActionWebhookEvent | SetupIntentSucceededWebhookEvent | SetupIntentCanceledWebhookEvent | WithdrawalCreatedWebhookEvent | WithdrawalUpdatedWebhookEvent | CourseLessonInteractionCompletedWebhookEvent | PaymentSucceededWebhookEvent | PaymentFailedWebhookEvent | PaymentPendingWebhookEvent | DisputeCreatedWebhookEvent | DisputeUpdatedWebhookEvent | RefundCreatedWebhookEvent | RefundUpdatedWebhookEvent;
|
|
1115
|
+
export type UnwrapWebhookEvent = InvoiceCreatedWebhookEvent | InvoicePaidWebhookEvent | InvoicePastDueWebhookEvent | InvoiceVoidedWebhookEvent | MembershipActivatedWebhookEvent | MembershipDeactivatedWebhookEvent | EntryCreatedWebhookEvent | EntryApprovedWebhookEvent | EntryDeniedWebhookEvent | EntryDeletedWebhookEvent | SetupIntentRequiresActionWebhookEvent | SetupIntentSucceededWebhookEvent | SetupIntentCanceledWebhookEvent | WithdrawalCreatedWebhookEvent | WithdrawalUpdatedWebhookEvent | CourseLessonInteractionCompletedWebhookEvent | PaymentCreatedWebhookEvent | PaymentSucceededWebhookEvent | PaymentFailedWebhookEvent | PaymentPendingWebhookEvent | DisputeCreatedWebhookEvent | DisputeUpdatedWebhookEvent | RefundCreatedWebhookEvent | RefundUpdatedWebhookEvent;
|
|
1094
1116
|
export declare namespace Webhooks {
|
|
1095
|
-
export { type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent, type SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent, type SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent, type SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent, type WithdrawalCreatedWebhookEvent as WithdrawalCreatedWebhookEvent, type WithdrawalUpdatedWebhookEvent as WithdrawalUpdatedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent, type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent as DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent, type RefundCreatedWebhookEvent as RefundCreatedWebhookEvent, type RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
|
|
1117
|
+
export { type InvoiceCreatedWebhookEvent as InvoiceCreatedWebhookEvent, type InvoicePaidWebhookEvent as InvoicePaidWebhookEvent, type InvoicePastDueWebhookEvent as InvoicePastDueWebhookEvent, type InvoiceVoidedWebhookEvent as InvoiceVoidedWebhookEvent, type MembershipActivatedWebhookEvent as MembershipActivatedWebhookEvent, type MembershipDeactivatedWebhookEvent as MembershipDeactivatedWebhookEvent, type EntryCreatedWebhookEvent as EntryCreatedWebhookEvent, type EntryApprovedWebhookEvent as EntryApprovedWebhookEvent, type EntryDeniedWebhookEvent as EntryDeniedWebhookEvent, type EntryDeletedWebhookEvent as EntryDeletedWebhookEvent, type SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent, type SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent, type SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent, type WithdrawalCreatedWebhookEvent as WithdrawalCreatedWebhookEvent, type WithdrawalUpdatedWebhookEvent as WithdrawalUpdatedWebhookEvent, type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent, type PaymentCreatedWebhookEvent as PaymentCreatedWebhookEvent, type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent, type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent, type PaymentPendingWebhookEvent as PaymentPendingWebhookEvent, type DisputeCreatedWebhookEvent as DisputeCreatedWebhookEvent, type DisputeUpdatedWebhookEvent as DisputeUpdatedWebhookEvent, type RefundCreatedWebhookEvent as RefundCreatedWebhookEvent, type RefundUpdatedWebhookEvent as RefundUpdatedWebhookEvent, type UnwrapWebhookEvent as UnwrapWebhookEvent, };
|
|
1096
1118
|
}
|
|
1097
1119
|
//# sourceMappingURL=webhooks.d.mts.map
|