stripe 9.0.0 → 9.3.0

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.
Files changed (69) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/VERSION +1 -1
  3. package/lib/resources/Apps/Secrets.js +31 -0
  4. package/lib/resources/Customers.js +5 -0
  5. package/lib/resources/FinancialConnections/Accounts.js +12 -0
  6. package/lib/resources/TestHelpers/Treasury/InboundTransfers.js +25 -0
  7. package/lib/resources/TestHelpers/Treasury/OutboundPayments.js +25 -0
  8. package/lib/resources/TestHelpers/Treasury/OutboundTransfers.js +25 -0
  9. package/lib/resources/TestHelpers/Treasury/ReceivedCredits.js +15 -0
  10. package/lib/resources/TestHelpers/Treasury/ReceivedDebits.js +15 -0
  11. package/lib/resources/Treasury/CreditReversals.js +26 -0
  12. package/lib/resources/Treasury/DebitReversals.js +26 -0
  13. package/lib/resources/Treasury/FinancialAccounts.js +41 -0
  14. package/lib/resources/Treasury/InboundTransfers.js +31 -0
  15. package/lib/resources/Treasury/OutboundPayments.js +31 -0
  16. package/lib/resources/Treasury/OutboundTransfers.js +31 -0
  17. package/lib/resources/Treasury/ReceivedCredits.js +21 -0
  18. package/lib/resources/Treasury/ReceivedDebits.js +21 -0
  19. package/lib/resources/Treasury/TransactionEntries.js +21 -0
  20. package/lib/resources/Treasury/Transactions.js +21 -0
  21. package/lib/resources.js +22 -0
  22. package/package.json +1 -1
  23. package/types/2020-08-27/Accounts.d.ts +5 -5
  24. package/types/2020-08-27/Apps/Secrets.d.ts +241 -0
  25. package/types/2020-08-27/BillingPortal/Configurations.d.ts +1 -1
  26. package/types/2020-08-27/BillingPortal/Sessions.d.ts +1 -1
  27. package/types/2020-08-27/Charges.d.ts +8 -0
  28. package/types/2020-08-27/Checkout/Sessions.d.ts +51 -3
  29. package/types/2020-08-27/Customers.d.ts +24 -0
  30. package/types/2020-08-27/Discounts.d.ts +4 -4
  31. package/types/2020-08-27/FinancialConnections/Accounts.d.ts +63 -0
  32. package/types/2020-08-27/Invoices.d.ts +3 -0
  33. package/types/2020-08-27/Issuing/Authorizations.d.ts +22 -0
  34. package/types/2020-08-27/Issuing/Cards.d.ts +7 -0
  35. package/types/2020-08-27/Issuing/Disputes.d.ts +29 -0
  36. package/types/2020-08-27/Issuing/Transactions.d.ts +17 -0
  37. package/types/2020-08-27/LineItems.d.ts +2 -3
  38. package/types/2020-08-27/Mandates.d.ts +4 -0
  39. package/types/2020-08-27/Orders.d.ts +84 -4
  40. package/types/2020-08-27/PaymentIntents.d.ts +332 -2
  41. package/types/2020-08-27/PaymentLinks.d.ts +167 -0
  42. package/types/2020-08-27/PaymentMethods.d.ts +73 -0
  43. package/types/2020-08-27/PromotionCodes.d.ts +2 -2
  44. package/types/2020-08-27/Quotes.d.ts +6 -9
  45. package/types/2020-08-27/Refunds.d.ts +1 -1
  46. package/types/2020-08-27/SetupAttempts.d.ts +4 -0
  47. package/types/2020-08-27/SetupIntents.d.ts +157 -0
  48. package/types/2020-08-27/SubscriptionSchedules.d.ts +15 -0
  49. package/types/2020-08-27/Subscriptions.d.ts +41 -2
  50. package/types/2020-08-27/Terminal/Configurations.d.ts +63 -0
  51. package/types/2020-08-27/TestHelpers/Treasury/InboundTransfers.d.ts +108 -0
  52. package/types/2020-08-27/TestHelpers/Treasury/OutboundPayments.d.ts +105 -0
  53. package/types/2020-08-27/TestHelpers/Treasury/OutboundTransfers.d.ts +105 -0
  54. package/types/2020-08-27/TestHelpers/Treasury/ReceivedCredits.d.ts +93 -0
  55. package/types/2020-08-27/TestHelpers/Treasury/ReceivedDebits.d.ts +91 -0
  56. package/types/2020-08-27/Tokens.d.ts +2 -2
  57. package/types/2020-08-27/Treasury/CreditReversals.d.ts +168 -0
  58. package/types/2020-08-27/Treasury/DebitReversals.d.ts +187 -0
  59. package/types/2020-08-27/Treasury/FinancialAccountFeatures.d.ts +622 -0
  60. package/types/2020-08-27/Treasury/FinancialAccounts.d.ts +833 -0
  61. package/types/2020-08-27/Treasury/InboundTransfers.d.ts +349 -0
  62. package/types/2020-08-27/Treasury/OutboundPayments.d.ts +550 -0
  63. package/types/2020-08-27/Treasury/OutboundTransfers.d.ts +385 -0
  64. package/types/2020-08-27/Treasury/ReceivedCredits.d.ts +303 -0
  65. package/types/2020-08-27/Treasury/ReceivedDebits.d.ts +231 -0
  66. package/types/2020-08-27/Treasury/TransactionEntries.d.ts +257 -0
  67. package/types/2020-08-27/Treasury/Transactions.d.ts +268 -0
  68. package/types/2020-08-27/WebhookEndpoints.d.ts +62 -2
  69. package/types/2020-08-27/index.d.ts +39 -0
@@ -0,0 +1,622 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Treasury {
6
+ /**
7
+ * The FinancialAccountFeatures object.
8
+ */
9
+ interface FinancialAccountFeatures {
10
+ /**
11
+ * String representing the object's type. Objects of the same type share the same value.
12
+ */
13
+ object: 'treasury.financial_account_features';
14
+
15
+ /**
16
+ * Toggle settings for enabling/disabling a feature
17
+ */
18
+ card_issuing?: FinancialAccountFeatures.CardIssuing;
19
+
20
+ /**
21
+ * Toggle settings for enabling/disabling a feature
22
+ */
23
+ deposit_insurance?: FinancialAccountFeatures.DepositInsurance;
24
+
25
+ /**
26
+ * Settings related to Financial Addresses features on a Financial Account
27
+ */
28
+ financial_addresses?: FinancialAccountFeatures.FinancialAddresses;
29
+
30
+ /**
31
+ * InboundTransfers contains inbound transfers features for a FinancialAccount.
32
+ */
33
+ inbound_transfers?: FinancialAccountFeatures.InboundTransfers;
34
+
35
+ /**
36
+ * Toggle settings for enabling/disabling a feature
37
+ */
38
+ intra_stripe_flows?: FinancialAccountFeatures.IntraStripeFlows;
39
+
40
+ /**
41
+ * Settings related to Outbound Payments features on a Financial Account
42
+ */
43
+ outbound_payments?: FinancialAccountFeatures.OutboundPayments;
44
+
45
+ /**
46
+ * OutboundTransfers contains outbound transfers features for a FinancialAccount.
47
+ */
48
+ outbound_transfers?: FinancialAccountFeatures.OutboundTransfers;
49
+ }
50
+
51
+ namespace FinancialAccountFeatures {
52
+ interface CardIssuing {
53
+ /**
54
+ * Whether the FinancialAccount should have the Feature.
55
+ */
56
+ requested: boolean;
57
+
58
+ /**
59
+ * Whether the Feature is operational.
60
+ */
61
+ status: CardIssuing.Status;
62
+
63
+ /**
64
+ * Additional details; includes at least one entry when the status is not `active`.
65
+ */
66
+ status_details: Array<CardIssuing.StatusDetail>;
67
+ }
68
+
69
+ namespace CardIssuing {
70
+ type Status = 'active' | 'pending' | 'restricted';
71
+
72
+ interface StatusDetail {
73
+ /**
74
+ * Represents the reason why the status is `pending` or `restricted`.
75
+ */
76
+ code: StatusDetail.Code;
77
+
78
+ /**
79
+ * Represents what the user should do, if anything, to activate the Feature.
80
+ */
81
+ resolution: StatusDetail.Resolution | null;
82
+
83
+ /**
84
+ * The `platform_restrictions` that are restricting this Feature.
85
+ */
86
+ restriction?: StatusDetail.Restriction;
87
+ }
88
+
89
+ namespace StatusDetail {
90
+ type Code =
91
+ | 'activating'
92
+ | 'capability_not_requested'
93
+ | 'financial_account_closed'
94
+ | 'rejected_other'
95
+ | 'rejected_unsupported_business'
96
+ | 'requirements_past_due'
97
+ | 'requirements_pending_verification'
98
+ | 'restricted_by_platform'
99
+ | 'restricted_other';
100
+
101
+ type Resolution =
102
+ | 'contact_stripe'
103
+ | 'provide_information'
104
+ | 'remove_restriction';
105
+
106
+ type Restriction = 'inbound_flows' | 'outbound_flows';
107
+ }
108
+ }
109
+
110
+ interface DepositInsurance {
111
+ /**
112
+ * Whether the FinancialAccount should have the Feature.
113
+ */
114
+ requested: boolean;
115
+
116
+ /**
117
+ * Whether the Feature is operational.
118
+ */
119
+ status: DepositInsurance.Status;
120
+
121
+ /**
122
+ * Additional details; includes at least one entry when the status is not `active`.
123
+ */
124
+ status_details: Array<DepositInsurance.StatusDetail>;
125
+ }
126
+
127
+ namespace DepositInsurance {
128
+ type Status = 'active' | 'pending' | 'restricted';
129
+
130
+ interface StatusDetail {
131
+ /**
132
+ * Represents the reason why the status is `pending` or `restricted`.
133
+ */
134
+ code: StatusDetail.Code;
135
+
136
+ /**
137
+ * Represents what the user should do, if anything, to activate the Feature.
138
+ */
139
+ resolution: StatusDetail.Resolution | null;
140
+
141
+ /**
142
+ * The `platform_restrictions` that are restricting this Feature.
143
+ */
144
+ restriction?: StatusDetail.Restriction;
145
+ }
146
+
147
+ namespace StatusDetail {
148
+ type Code =
149
+ | 'activating'
150
+ | 'capability_not_requested'
151
+ | 'financial_account_closed'
152
+ | 'rejected_other'
153
+ | 'rejected_unsupported_business'
154
+ | 'requirements_past_due'
155
+ | 'requirements_pending_verification'
156
+ | 'restricted_by_platform'
157
+ | 'restricted_other';
158
+
159
+ type Resolution =
160
+ | 'contact_stripe'
161
+ | 'provide_information'
162
+ | 'remove_restriction';
163
+
164
+ type Restriction = 'inbound_flows' | 'outbound_flows';
165
+ }
166
+ }
167
+
168
+ interface FinancialAddresses {
169
+ /**
170
+ * Toggle settings for enabling/disabling a feature
171
+ */
172
+ aba?: FinancialAddresses.Aba;
173
+ }
174
+
175
+ namespace FinancialAddresses {
176
+ interface Aba {
177
+ /**
178
+ * Whether the FinancialAccount should have the Feature.
179
+ */
180
+ requested: boolean;
181
+
182
+ /**
183
+ * Whether the Feature is operational.
184
+ */
185
+ status: Aba.Status;
186
+
187
+ /**
188
+ * Additional details; includes at least one entry when the status is not `active`.
189
+ */
190
+ status_details: Array<Aba.StatusDetail>;
191
+ }
192
+
193
+ namespace Aba {
194
+ type Status = 'active' | 'pending' | 'restricted';
195
+
196
+ interface StatusDetail {
197
+ /**
198
+ * Represents the reason why the status is `pending` or `restricted`.
199
+ */
200
+ code: StatusDetail.Code;
201
+
202
+ /**
203
+ * Represents what the user should do, if anything, to activate the Feature.
204
+ */
205
+ resolution: StatusDetail.Resolution | null;
206
+
207
+ /**
208
+ * The `platform_restrictions` that are restricting this Feature.
209
+ */
210
+ restriction?: StatusDetail.Restriction;
211
+ }
212
+
213
+ namespace StatusDetail {
214
+ type Code =
215
+ | 'activating'
216
+ | 'capability_not_requested'
217
+ | 'financial_account_closed'
218
+ | 'rejected_other'
219
+ | 'rejected_unsupported_business'
220
+ | 'requirements_past_due'
221
+ | 'requirements_pending_verification'
222
+ | 'restricted_by_platform'
223
+ | 'restricted_other';
224
+
225
+ type Resolution =
226
+ | 'contact_stripe'
227
+ | 'provide_information'
228
+ | 'remove_restriction';
229
+
230
+ type Restriction = 'inbound_flows' | 'outbound_flows';
231
+ }
232
+ }
233
+ }
234
+
235
+ interface InboundTransfers {
236
+ /**
237
+ * Toggle settings for enabling/disabling a feature
238
+ */
239
+ ach?: InboundTransfers.Ach;
240
+ }
241
+
242
+ namespace InboundTransfers {
243
+ interface Ach {
244
+ /**
245
+ * Whether the FinancialAccount should have the Feature.
246
+ */
247
+ requested: boolean;
248
+
249
+ /**
250
+ * Whether the Feature is operational.
251
+ */
252
+ status: Ach.Status;
253
+
254
+ /**
255
+ * Additional details; includes at least one entry when the status is not `active`.
256
+ */
257
+ status_details: Array<Ach.StatusDetail>;
258
+ }
259
+
260
+ namespace Ach {
261
+ type Status = 'active' | 'pending' | 'restricted';
262
+
263
+ interface StatusDetail {
264
+ /**
265
+ * Represents the reason why the status is `pending` or `restricted`.
266
+ */
267
+ code: StatusDetail.Code;
268
+
269
+ /**
270
+ * Represents what the user should do, if anything, to activate the Feature.
271
+ */
272
+ resolution: StatusDetail.Resolution | null;
273
+
274
+ /**
275
+ * The `platform_restrictions` that are restricting this Feature.
276
+ */
277
+ restriction?: StatusDetail.Restriction;
278
+ }
279
+
280
+ namespace StatusDetail {
281
+ type Code =
282
+ | 'activating'
283
+ | 'capability_not_requested'
284
+ | 'financial_account_closed'
285
+ | 'rejected_other'
286
+ | 'rejected_unsupported_business'
287
+ | 'requirements_past_due'
288
+ | 'requirements_pending_verification'
289
+ | 'restricted_by_platform'
290
+ | 'restricted_other';
291
+
292
+ type Resolution =
293
+ | 'contact_stripe'
294
+ | 'provide_information'
295
+ | 'remove_restriction';
296
+
297
+ type Restriction = 'inbound_flows' | 'outbound_flows';
298
+ }
299
+ }
300
+ }
301
+
302
+ interface IntraStripeFlows {
303
+ /**
304
+ * Whether the FinancialAccount should have the Feature.
305
+ */
306
+ requested: boolean;
307
+
308
+ /**
309
+ * Whether the Feature is operational.
310
+ */
311
+ status: IntraStripeFlows.Status;
312
+
313
+ /**
314
+ * Additional details; includes at least one entry when the status is not `active`.
315
+ */
316
+ status_details: Array<IntraStripeFlows.StatusDetail>;
317
+ }
318
+
319
+ namespace IntraStripeFlows {
320
+ type Status = 'active' | 'pending' | 'restricted';
321
+
322
+ interface StatusDetail {
323
+ /**
324
+ * Represents the reason why the status is `pending` or `restricted`.
325
+ */
326
+ code: StatusDetail.Code;
327
+
328
+ /**
329
+ * Represents what the user should do, if anything, to activate the Feature.
330
+ */
331
+ resolution: StatusDetail.Resolution | null;
332
+
333
+ /**
334
+ * The `platform_restrictions` that are restricting this Feature.
335
+ */
336
+ restriction?: StatusDetail.Restriction;
337
+ }
338
+
339
+ namespace StatusDetail {
340
+ type Code =
341
+ | 'activating'
342
+ | 'capability_not_requested'
343
+ | 'financial_account_closed'
344
+ | 'rejected_other'
345
+ | 'rejected_unsupported_business'
346
+ | 'requirements_past_due'
347
+ | 'requirements_pending_verification'
348
+ | 'restricted_by_platform'
349
+ | 'restricted_other';
350
+
351
+ type Resolution =
352
+ | 'contact_stripe'
353
+ | 'provide_information'
354
+ | 'remove_restriction';
355
+
356
+ type Restriction = 'inbound_flows' | 'outbound_flows';
357
+ }
358
+ }
359
+
360
+ interface OutboundPayments {
361
+ /**
362
+ * Toggle settings for enabling/disabling a feature
363
+ */
364
+ ach?: OutboundPayments.Ach;
365
+
366
+ /**
367
+ * Toggle settings for enabling/disabling a feature
368
+ */
369
+ us_domestic_wire?: OutboundPayments.UsDomesticWire;
370
+ }
371
+
372
+ namespace OutboundPayments {
373
+ interface Ach {
374
+ /**
375
+ * Whether the FinancialAccount should have the Feature.
376
+ */
377
+ requested: boolean;
378
+
379
+ /**
380
+ * Whether the Feature is operational.
381
+ */
382
+ status: Ach.Status;
383
+
384
+ /**
385
+ * Additional details; includes at least one entry when the status is not `active`.
386
+ */
387
+ status_details: Array<Ach.StatusDetail>;
388
+ }
389
+
390
+ namespace Ach {
391
+ type Status = 'active' | 'pending' | 'restricted';
392
+
393
+ interface StatusDetail {
394
+ /**
395
+ * Represents the reason why the status is `pending` or `restricted`.
396
+ */
397
+ code: StatusDetail.Code;
398
+
399
+ /**
400
+ * Represents what the user should do, if anything, to activate the Feature.
401
+ */
402
+ resolution: StatusDetail.Resolution | null;
403
+
404
+ /**
405
+ * The `platform_restrictions` that are restricting this Feature.
406
+ */
407
+ restriction?: StatusDetail.Restriction;
408
+ }
409
+
410
+ namespace StatusDetail {
411
+ type Code =
412
+ | 'activating'
413
+ | 'capability_not_requested'
414
+ | 'financial_account_closed'
415
+ | 'rejected_other'
416
+ | 'rejected_unsupported_business'
417
+ | 'requirements_past_due'
418
+ | 'requirements_pending_verification'
419
+ | 'restricted_by_platform'
420
+ | 'restricted_other';
421
+
422
+ type Resolution =
423
+ | 'contact_stripe'
424
+ | 'provide_information'
425
+ | 'remove_restriction';
426
+
427
+ type Restriction = 'inbound_flows' | 'outbound_flows';
428
+ }
429
+ }
430
+
431
+ interface UsDomesticWire {
432
+ /**
433
+ * Whether the FinancialAccount should have the Feature.
434
+ */
435
+ requested: boolean;
436
+
437
+ /**
438
+ * Whether the Feature is operational.
439
+ */
440
+ status: UsDomesticWire.Status;
441
+
442
+ /**
443
+ * Additional details; includes at least one entry when the status is not `active`.
444
+ */
445
+ status_details: Array<UsDomesticWire.StatusDetail>;
446
+ }
447
+
448
+ namespace UsDomesticWire {
449
+ type Status = 'active' | 'pending' | 'restricted';
450
+
451
+ interface StatusDetail {
452
+ /**
453
+ * Represents the reason why the status is `pending` or `restricted`.
454
+ */
455
+ code: StatusDetail.Code;
456
+
457
+ /**
458
+ * Represents what the user should do, if anything, to activate the Feature.
459
+ */
460
+ resolution: StatusDetail.Resolution | null;
461
+
462
+ /**
463
+ * The `platform_restrictions` that are restricting this Feature.
464
+ */
465
+ restriction?: StatusDetail.Restriction;
466
+ }
467
+
468
+ namespace StatusDetail {
469
+ type Code =
470
+ | 'activating'
471
+ | 'capability_not_requested'
472
+ | 'financial_account_closed'
473
+ | 'rejected_other'
474
+ | 'rejected_unsupported_business'
475
+ | 'requirements_past_due'
476
+ | 'requirements_pending_verification'
477
+ | 'restricted_by_platform'
478
+ | 'restricted_other';
479
+
480
+ type Resolution =
481
+ | 'contact_stripe'
482
+ | 'provide_information'
483
+ | 'remove_restriction';
484
+
485
+ type Restriction = 'inbound_flows' | 'outbound_flows';
486
+ }
487
+ }
488
+ }
489
+
490
+ interface OutboundTransfers {
491
+ /**
492
+ * Toggle settings for enabling/disabling a feature
493
+ */
494
+ ach?: OutboundTransfers.Ach;
495
+
496
+ /**
497
+ * Toggle settings for enabling/disabling a feature
498
+ */
499
+ us_domestic_wire?: OutboundTransfers.UsDomesticWire;
500
+ }
501
+
502
+ namespace OutboundTransfers {
503
+ interface Ach {
504
+ /**
505
+ * Whether the FinancialAccount should have the Feature.
506
+ */
507
+ requested: boolean;
508
+
509
+ /**
510
+ * Whether the Feature is operational.
511
+ */
512
+ status: Ach.Status;
513
+
514
+ /**
515
+ * Additional details; includes at least one entry when the status is not `active`.
516
+ */
517
+ status_details: Array<Ach.StatusDetail>;
518
+ }
519
+
520
+ namespace Ach {
521
+ type Status = 'active' | 'pending' | 'restricted';
522
+
523
+ interface StatusDetail {
524
+ /**
525
+ * Represents the reason why the status is `pending` or `restricted`.
526
+ */
527
+ code: StatusDetail.Code;
528
+
529
+ /**
530
+ * Represents what the user should do, if anything, to activate the Feature.
531
+ */
532
+ resolution: StatusDetail.Resolution | null;
533
+
534
+ /**
535
+ * The `platform_restrictions` that are restricting this Feature.
536
+ */
537
+ restriction?: StatusDetail.Restriction;
538
+ }
539
+
540
+ namespace StatusDetail {
541
+ type Code =
542
+ | 'activating'
543
+ | 'capability_not_requested'
544
+ | 'financial_account_closed'
545
+ | 'rejected_other'
546
+ | 'rejected_unsupported_business'
547
+ | 'requirements_past_due'
548
+ | 'requirements_pending_verification'
549
+ | 'restricted_by_platform'
550
+ | 'restricted_other';
551
+
552
+ type Resolution =
553
+ | 'contact_stripe'
554
+ | 'provide_information'
555
+ | 'remove_restriction';
556
+
557
+ type Restriction = 'inbound_flows' | 'outbound_flows';
558
+ }
559
+ }
560
+
561
+ interface UsDomesticWire {
562
+ /**
563
+ * Whether the FinancialAccount should have the Feature.
564
+ */
565
+ requested: boolean;
566
+
567
+ /**
568
+ * Whether the Feature is operational.
569
+ */
570
+ status: UsDomesticWire.Status;
571
+
572
+ /**
573
+ * Additional details; includes at least one entry when the status is not `active`.
574
+ */
575
+ status_details: Array<UsDomesticWire.StatusDetail>;
576
+ }
577
+
578
+ namespace UsDomesticWire {
579
+ type Status = 'active' | 'pending' | 'restricted';
580
+
581
+ interface StatusDetail {
582
+ /**
583
+ * Represents the reason why the status is `pending` or `restricted`.
584
+ */
585
+ code: StatusDetail.Code;
586
+
587
+ /**
588
+ * Represents what the user should do, if anything, to activate the Feature.
589
+ */
590
+ resolution: StatusDetail.Resolution | null;
591
+
592
+ /**
593
+ * The `platform_restrictions` that are restricting this Feature.
594
+ */
595
+ restriction?: StatusDetail.Restriction;
596
+ }
597
+
598
+ namespace StatusDetail {
599
+ type Code =
600
+ | 'activating'
601
+ | 'capability_not_requested'
602
+ | 'financial_account_closed'
603
+ | 'rejected_other'
604
+ | 'rejected_unsupported_business'
605
+ | 'requirements_past_due'
606
+ | 'requirements_pending_verification'
607
+ | 'restricted_by_platform'
608
+ | 'restricted_other';
609
+
610
+ type Resolution =
611
+ | 'contact_stripe'
612
+ | 'provide_information'
613
+ | 'remove_restriction';
614
+
615
+ type Restriction = 'inbound_flows' | 'outbound_flows';
616
+ }
617
+ }
618
+ }
619
+ }
620
+ }
621
+ }
622
+ }