stripe 16.8.0 → 16.9.0-beta.2

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 (169) hide show
  1. package/CHANGELOG.md +819 -110
  2. package/README.md +33 -0
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +66 -5
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +2 -1
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/AccountNotices.js +21 -0
  9. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  10. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  11. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  14. package/cjs/resources/GiftCards/Cards.js +23 -0
  15. package/cjs/resources/GiftCards/Transactions.js +33 -0
  16. package/cjs/resources/Invoices.js +17 -0
  17. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  18. package/cjs/resources/Margins.js +22 -0
  19. package/cjs/resources/OAuth.js +1 -1
  20. package/cjs/resources/Orders.js +24 -0
  21. package/cjs/resources/PaymentIntents.js +4 -0
  22. package/cjs/resources/QuotePhases.js +22 -0
  23. package/cjs/resources/Quotes.js +32 -0
  24. package/cjs/resources/SubscriptionSchedules.js +4 -0
  25. package/cjs/resources/Tax/Associations.js +9 -0
  26. package/cjs/resources/Tax/Forms.js +20 -0
  27. package/cjs/resources/Terminal/Readers.js +12 -0
  28. package/cjs/resources.js +40 -10
  29. package/cjs/stripe.core.js +6 -3
  30. package/cjs/utils.js +31 -6
  31. package/esm/RequestSender.js +67 -6
  32. package/esm/StripeResource.js +2 -2
  33. package/esm/apiVersion.js +1 -0
  34. package/esm/multipart.js +2 -2
  35. package/esm/resources/AccountNotices.js +18 -0
  36. package/esm/resources/Capital/FinancingOffers.js +18 -0
  37. package/esm/resources/Capital/FinancingSummary.js +9 -0
  38. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  39. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  40. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  41. package/esm/resources/GiftCards/Cards.js +20 -0
  42. package/esm/resources/GiftCards/Transactions.js +30 -0
  43. package/esm/resources/Invoices.js +17 -0
  44. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  45. package/esm/resources/Margins.js +19 -0
  46. package/esm/resources/OAuth.js +2 -2
  47. package/esm/resources/Orders.js +21 -0
  48. package/esm/resources/PaymentIntents.js +4 -0
  49. package/esm/resources/QuotePhases.js +19 -0
  50. package/esm/resources/Quotes.js +32 -0
  51. package/esm/resources/SubscriptionSchedules.js +4 -0
  52. package/esm/resources/Tax/Associations.js +6 -0
  53. package/esm/resources/Tax/Forms.js +17 -0
  54. package/esm/resources/Terminal/Readers.js +12 -0
  55. package/esm/resources.js +26 -0
  56. package/esm/stripe.core.js +6 -3
  57. package/esm/utils.js +28 -4
  58. package/package.json +1 -1
  59. package/types/AccountLinksResource.d.ts +5 -1
  60. package/types/AccountNotices.d.ts +113 -0
  61. package/types/AccountNoticesResource.d.ts +98 -0
  62. package/types/AccountSessions.d.ts +45 -0
  63. package/types/AccountSessionsResource.d.ts +260 -0
  64. package/types/Accounts.d.ts +113 -1
  65. package/types/AccountsResource.d.ts +270 -0
  66. package/types/Capital/FinancingOffers.d.ts +188 -0
  67. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  68. package/types/Capital/FinancingSummary.d.ts +106 -0
  69. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  70. package/types/Capital/FinancingTransactions.d.ts +135 -0
  71. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  72. package/types/Charges.d.ts +74 -1
  73. package/types/ChargesResource.d.ts +1300 -2
  74. package/types/Checkout/Sessions.d.ts +187 -5
  75. package/types/Checkout/SessionsResource.d.ts +353 -7
  76. package/types/ConfirmationTokens.d.ts +67 -0
  77. package/types/Coupons.d.ts +1 -1
  78. package/types/CouponsResource.d.ts +1 -1
  79. package/types/CreditNotes.d.ts +21 -0
  80. package/types/CreditNotesResource.d.ts +51 -0
  81. package/types/CustomerSessions.d.ts +4 -0
  82. package/types/CustomersResource.d.ts +7 -2
  83. package/types/Disputes.d.ts +152 -0
  84. package/types/DisputesResource.d.ts +120 -0
  85. package/types/EventTypes.d.ts +460 -0
  86. package/types/Events.d.ts +85 -0
  87. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  88. package/types/FinancialConnections/Accounts.d.ts +29 -1
  89. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  90. package/types/FinancialConnections/Institutions.d.ts +93 -0
  91. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  92. package/types/FinancialConnections/Sessions.d.ts +49 -1
  93. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  94. package/types/GiftCards/Cards.d.ts +118 -0
  95. package/types/GiftCards/CardsResource.d.ts +159 -0
  96. package/types/GiftCards/Transactions.d.ts +129 -0
  97. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  98. package/types/InvoiceItems.d.ts +5 -0
  99. package/types/InvoiceItemsResource.d.ts +98 -0
  100. package/types/InvoiceLineItems.d.ts +22 -0
  101. package/types/InvoicePayments.d.ts +138 -0
  102. package/types/Invoices.d.ts +118 -2
  103. package/types/InvoicesResource.d.ts +5462 -1801
  104. package/types/Issuing/CardholdersResource.d.ts +2 -1
  105. package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
  106. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
  107. package/types/LineItems.d.ts +7 -0
  108. package/types/Mandates.d.ts +77 -0
  109. package/types/Margins.d.ts +56 -0
  110. package/types/MarginsResource.d.ts +114 -0
  111. package/types/Orders.d.ts +1084 -0
  112. package/types/OrdersResource.d.ts +2765 -0
  113. package/types/PaymentIntents.d.ts +505 -2
  114. package/types/PaymentIntentsResource.d.ts +7009 -3403
  115. package/types/PaymentLinks.d.ts +1 -0
  116. package/types/PaymentLinksResource.d.ts +10 -4
  117. package/types/PaymentMethodConfigurations.d.ts +36 -0
  118. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  119. package/types/PaymentMethods.d.ts +67 -0
  120. package/types/PaymentMethodsResource.d.ts +119 -0
  121. package/types/Prices.d.ts +22 -0
  122. package/types/PricesResource.d.ts +22 -0
  123. package/types/Products.d.ts +39 -0
  124. package/types/ProductsResource.d.ts +36 -0
  125. package/types/QuoteLines.d.ts +634 -0
  126. package/types/QuotePhases.d.ts +198 -0
  127. package/types/QuotePhasesResource.d.ts +67 -0
  128. package/types/QuotePreviewInvoices.d.ts +1531 -0
  129. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  130. package/types/Quotes.d.ts +596 -1
  131. package/types/QuotesResource.d.ts +2526 -194
  132. package/types/SetupAttempts.d.ts +9 -0
  133. package/types/SetupIntents.d.ts +110 -1
  134. package/types/SetupIntentsResource.d.ts +522 -3
  135. package/types/Sources.d.ts +23 -0
  136. package/types/SubscriptionItems.d.ts +21 -0
  137. package/types/SubscriptionItemsResource.d.ts +109 -0
  138. package/types/SubscriptionSchedules.d.ts +200 -0
  139. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  140. package/types/Subscriptions.d.ts +82 -1
  141. package/types/SubscriptionsResource.d.ts +349 -4
  142. package/types/Tax/Associations.d.ts +126 -0
  143. package/types/Tax/AssociationsResource.d.ts +29 -0
  144. package/types/Tax/Calculations.d.ts +2 -1
  145. package/types/Tax/CalculationsResource.d.ts +2 -1
  146. package/types/Tax/Forms.d.ts +133 -0
  147. package/types/Tax/FormsResource.d.ts +90 -0
  148. package/types/Tax/Transactions.d.ts +2 -1
  149. package/types/TaxIds.d.ts +2 -1
  150. package/types/TaxIdsResource.d.ts +2 -1
  151. package/types/Terminal/Readers.d.ts +278 -0
  152. package/types/Terminal/ReadersResource.d.ts +208 -0
  153. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  154. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  155. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  156. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  157. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  158. package/types/Treasury/InboundTransfers.d.ts +3 -1
  159. package/types/Treasury/OutboundPayments.d.ts +3 -1
  160. package/types/Treasury/OutboundTransfers.d.ts +29 -1
  161. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  162. package/types/Treasury/ReceivedCredits.d.ts +29 -1
  163. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  164. package/types/Treasury/TransactionEntries.d.ts +9 -3
  165. package/types/Treasury/Transactions.d.ts +9 -3
  166. package/types/WebhookEndpointsResource.d.ts +54 -0
  167. package/types/Webhooks.d.ts +37 -28
  168. package/types/index.d.ts +67 -0
  169. package/types/lib.d.ts +12 -0
@@ -82,6 +82,11 @@ declare module 'stripe' {
82
82
  */
83
83
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
84
84
 
85
+ /**
86
+ * A hash to configure risk controls on the account. Please see [this page for more details](https://stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
87
+ */
88
+ risk_controls?: AccountCreateParams.RiskControls;
89
+
85
90
  /**
86
91
  * Options for customizing how the account functions within Stripe.
87
92
  */
@@ -329,6 +334,11 @@ declare module 'stripe' {
329
334
  */
330
335
  link_payments?: Capabilities.LinkPayments;
331
336
 
337
+ /**
338
+ * The mb_way_payments capability.
339
+ */
340
+ mb_way_payments?: Capabilities.MbWayPayments;
341
+
332
342
  /**
333
343
  * The mobilepay_payments capability.
334
344
  */
@@ -359,11 +369,26 @@ declare module 'stripe' {
359
369
  */
360
370
  paynow_payments?: Capabilities.PaynowPayments;
361
371
 
372
+ /**
373
+ * The paypal_payments capability.
374
+ */
375
+ paypal_payments?: Capabilities.PaypalPayments;
376
+
377
+ /**
378
+ * The payto_payments capability.
379
+ */
380
+ payto_payments?: Capabilities.PaytoPayments;
381
+
362
382
  /**
363
383
  * The promptpay_payments capability.
364
384
  */
365
385
  promptpay_payments?: Capabilities.PromptpayPayments;
366
386
 
387
+ /**
388
+ * The rechnung_payments capability.
389
+ */
390
+ rechnung_payments?: Capabilities.RechnungPayments;
391
+
367
392
  /**
368
393
  * The revolut_pay_payments capability.
369
394
  */
@@ -620,6 +645,13 @@ declare module 'stripe' {
620
645
  requested?: boolean;
621
646
  }
622
647
 
648
+ interface MbWayPayments {
649
+ /**
650
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
651
+ */
652
+ requested?: boolean;
653
+ }
654
+
623
655
  interface MobilepayPayments {
624
656
  /**
625
657
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -662,6 +694,20 @@ declare module 'stripe' {
662
694
  requested?: boolean;
663
695
  }
664
696
 
697
+ interface PaypalPayments {
698
+ /**
699
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
700
+ */
701
+ requested?: boolean;
702
+ }
703
+
704
+ interface PaytoPayments {
705
+ /**
706
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
707
+ */
708
+ requested?: boolean;
709
+ }
710
+
665
711
  interface PromptpayPayments {
666
712
  /**
667
713
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -669,6 +715,13 @@ declare module 'stripe' {
669
715
  requested?: boolean;
670
716
  }
671
717
 
718
+ interface RechnungPayments {
719
+ /**
720
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
721
+ */
722
+ requested?: boolean;
723
+ }
724
+
672
725
  interface RevolutPayPayments {
673
726
  /**
674
727
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -924,6 +977,16 @@ declare module 'stripe' {
924
977
  }
925
978
 
926
979
  interface Controller {
980
+ /**
981
+ * A hash of configuration describing the Connect application that controls the account.
982
+ */
983
+ application?: Controller.Application;
984
+
985
+ /**
986
+ * Properties of the account's dashboard.
987
+ */
988
+ dashboard?: Controller.Dashboard;
989
+
927
990
  /**
928
991
  * A hash of configuration for who pays Stripe fees for product usage on this account.
929
992
  */
@@ -946,6 +1009,34 @@ declare module 'stripe' {
946
1009
  }
947
1010
 
948
1011
  namespace Controller {
1012
+ interface Application {
1013
+ /**
1014
+ * Whether the controller is liable for losses on this account. For details, see [Understanding Connect Account Balances](https://stripe.com/docs/connect/account-balances).
1015
+ */
1016
+ loss_liable: boolean;
1017
+
1018
+ /**
1019
+ * Whether the controller owns onboarding for this account.
1020
+ */
1021
+ onboarding_owner?: boolean;
1022
+
1023
+ /**
1024
+ * Whether the controller has pricing controls for this account.
1025
+ */
1026
+ pricing_controls?: boolean;
1027
+ }
1028
+
1029
+ interface Dashboard {
1030
+ /**
1031
+ * Whether this account should have access to the full Stripe Dashboard (`full`), to the Express Dashboard (`express`), or to no Stripe-hosted dashboard (`none`). Defaults to `full`.
1032
+ */
1033
+ type?: Dashboard.Type;
1034
+ }
1035
+
1036
+ namespace Dashboard {
1037
+ type Type = 'express' | 'full' | 'none';
1038
+ }
1039
+
949
1040
  interface Fees {
950
1041
  /**
951
1042
  * A value indicating the responsible payer of Stripe fees on this account. Defaults to `account`. Learn more about [fee behavior on connected accounts](https://docs.stripe.com/connect/direct-charges-fee-payer-behavior).
@@ -1310,6 +1401,36 @@ declare module 'stripe' {
1310
1401
  }
1311
1402
  }
1312
1403
 
1404
+ interface RiskControls {
1405
+ /**
1406
+ * Represents the risk control status of charges. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
1407
+ */
1408
+ charges?: RiskControls.Charges;
1409
+
1410
+ /**
1411
+ * Represents the risk control status of payouts. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
1412
+ */
1413
+ payouts?: RiskControls.Payouts;
1414
+ }
1415
+
1416
+ namespace RiskControls {
1417
+ interface Charges {
1418
+ /**
1419
+ * To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
1420
+ * There can be a delay before the risk control is paused or unpaused.
1421
+ */
1422
+ pause_requested?: boolean;
1423
+ }
1424
+
1425
+ interface Payouts {
1426
+ /**
1427
+ * To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
1428
+ * There can be a delay before the risk control is paused or unpaused.
1429
+ */
1430
+ pause_requested?: boolean;
1431
+ }
1432
+ }
1433
+
1313
1434
  interface Settings {
1314
1435
  /**
1315
1436
  * Settings specific to Bacs Direct Debit.
@@ -1321,6 +1442,11 @@ declare module 'stripe' {
1321
1442
  */
1322
1443
  branding?: Settings.Branding;
1323
1444
 
1445
+ /**
1446
+ * Settings specific to the account's use of the Capital product.
1447
+ */
1448
+ capital?: Settings.Capital;
1449
+
1324
1450
  /**
1325
1451
  * Settings specific to the account's use of the Card Issuing product.
1326
1452
  */
@@ -1341,6 +1467,11 @@ declare module 'stripe' {
1341
1467
  */
1342
1468
  payouts?: Settings.Payouts;
1343
1469
 
1470
+ /**
1471
+ * Settings specific to the account's tax forms.
1472
+ */
1473
+ tax_forms?: Settings.TaxForms;
1474
+
1344
1475
  /**
1345
1476
  * Settings specific to the account's Treasury FinancialAccounts.
1346
1477
  */
@@ -1377,6 +1508,22 @@ declare module 'stripe' {
1377
1508
  secondary_color?: string;
1378
1509
  }
1379
1510
 
1511
+ interface Capital {
1512
+ /**
1513
+ * Per-currency mapping of user-selected destination accounts used to pay out loans.
1514
+ */
1515
+ payout_destination?: {
1516
+ [key: string]: string;
1517
+ };
1518
+
1519
+ /**
1520
+ * Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
1521
+ */
1522
+ payout_destination_selector?: {
1523
+ [key: string]: Array<string>;
1524
+ };
1525
+ }
1526
+
1380
1527
  interface CardIssuing {
1381
1528
  /**
1382
1529
  * Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/issuing/connect/tos_acceptance).
@@ -1510,6 +1657,13 @@ declare module 'stripe' {
1510
1657
  }
1511
1658
  }
1512
1659
 
1660
+ interface TaxForms {
1661
+ /**
1662
+ * Whether the account opted out of receiving their tax forms by postal delivery.
1663
+ */
1664
+ consented_to_paperless_delivery?: boolean;
1665
+ }
1666
+
1513
1667
  interface Treasury {
1514
1668
  /**
1515
1669
  * Details on the account's acceptance of the Stripe Treasury Services Agreement.
@@ -1644,6 +1798,11 @@ declare module 'stripe' {
1644
1798
  */
1645
1799
  metadata?: Stripe.Emptyable<Stripe.MetadataParam>;
1646
1800
 
1801
+ /**
1802
+ * A hash to configure risk controls on the account. Please see [this page for more details](https://stripe.com/connect/pausing-payments-or-payouts-on-connected-accounts).
1803
+ */
1804
+ risk_controls?: AccountUpdateParams.RiskControls;
1805
+
1647
1806
  /**
1648
1807
  * Options for customizing how the account functions within Stripe.
1649
1808
  */
@@ -1924,6 +2083,11 @@ declare module 'stripe' {
1924
2083
  */
1925
2084
  link_payments?: Capabilities.LinkPayments;
1926
2085
 
2086
+ /**
2087
+ * The mb_way_payments capability.
2088
+ */
2089
+ mb_way_payments?: Capabilities.MbWayPayments;
2090
+
1927
2091
  /**
1928
2092
  * The mobilepay_payments capability.
1929
2093
  */
@@ -1954,11 +2118,26 @@ declare module 'stripe' {
1954
2118
  */
1955
2119
  paynow_payments?: Capabilities.PaynowPayments;
1956
2120
 
2121
+ /**
2122
+ * The paypal_payments capability.
2123
+ */
2124
+ paypal_payments?: Capabilities.PaypalPayments;
2125
+
2126
+ /**
2127
+ * The payto_payments capability.
2128
+ */
2129
+ payto_payments?: Capabilities.PaytoPayments;
2130
+
1957
2131
  /**
1958
2132
  * The promptpay_payments capability.
1959
2133
  */
1960
2134
  promptpay_payments?: Capabilities.PromptpayPayments;
1961
2135
 
2136
+ /**
2137
+ * The rechnung_payments capability.
2138
+ */
2139
+ rechnung_payments?: Capabilities.RechnungPayments;
2140
+
1962
2141
  /**
1963
2142
  * The revolut_pay_payments capability.
1964
2143
  */
@@ -2215,6 +2394,13 @@ declare module 'stripe' {
2215
2394
  requested?: boolean;
2216
2395
  }
2217
2396
 
2397
+ interface MbWayPayments {
2398
+ /**
2399
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2400
+ */
2401
+ requested?: boolean;
2402
+ }
2403
+
2218
2404
  interface MobilepayPayments {
2219
2405
  /**
2220
2406
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2257,6 +2443,20 @@ declare module 'stripe' {
2257
2443
  requested?: boolean;
2258
2444
  }
2259
2445
 
2446
+ interface PaypalPayments {
2447
+ /**
2448
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2449
+ */
2450
+ requested?: boolean;
2451
+ }
2452
+
2453
+ interface PaytoPayments {
2454
+ /**
2455
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2456
+ */
2457
+ requested?: boolean;
2458
+ }
2459
+
2260
2460
  interface PromptpayPayments {
2261
2461
  /**
2262
2462
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2264,6 +2464,13 @@ declare module 'stripe' {
2264
2464
  requested?: boolean;
2265
2465
  }
2266
2466
 
2467
+ interface RechnungPayments {
2468
+ /**
2469
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2470
+ */
2471
+ requested?: boolean;
2472
+ }
2473
+
2267
2474
  interface RevolutPayPayments {
2268
2475
  /**
2269
2476
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -2852,6 +3059,36 @@ declare module 'stripe' {
2852
3059
  }
2853
3060
  }
2854
3061
 
3062
+ interface RiskControls {
3063
+ /**
3064
+ * Represents the risk control status of charges. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
3065
+ */
3066
+ charges?: RiskControls.Charges;
3067
+
3068
+ /**
3069
+ * Represents the risk control status of payouts. Please see [this page for more details](https://stripe.com/docs/connect/pausing-payments-or-payouts-on-connected-accounts).
3070
+ */
3071
+ payouts?: RiskControls.Payouts;
3072
+ }
3073
+
3074
+ namespace RiskControls {
3075
+ interface Charges {
3076
+ /**
3077
+ * To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
3078
+ * There can be a delay before the risk control is paused or unpaused.
3079
+ */
3080
+ pause_requested?: boolean;
3081
+ }
3082
+
3083
+ interface Payouts {
3084
+ /**
3085
+ * To request to pause a risk control, pass `true`. To request to unpause a risk control, pass `false`.
3086
+ * There can be a delay before the risk control is paused or unpaused.
3087
+ */
3088
+ pause_requested?: boolean;
3089
+ }
3090
+ }
3091
+
2855
3092
  interface Settings {
2856
3093
  /**
2857
3094
  * Settings specific to Bacs Direct Debit payments.
@@ -2863,6 +3100,11 @@ declare module 'stripe' {
2863
3100
  */
2864
3101
  branding?: Settings.Branding;
2865
3102
 
3103
+ /**
3104
+ * Settings specific to the account's use of the Capital product.
3105
+ */
3106
+ capital?: Settings.Capital;
3107
+
2866
3108
  /**
2867
3109
  * Settings specific to the account's use of the Card Issuing product.
2868
3110
  */
@@ -2888,6 +3130,11 @@ declare module 'stripe' {
2888
3130
  */
2889
3131
  payouts?: Settings.Payouts;
2890
3132
 
3133
+ /**
3134
+ * Settings specific to the account's tax forms.
3135
+ */
3136
+ tax_forms?: Settings.TaxForms;
3137
+
2891
3138
  /**
2892
3139
  * Settings specific to the account's Treasury FinancialAccounts.
2893
3140
  */
@@ -2924,6 +3171,22 @@ declare module 'stripe' {
2924
3171
  secondary_color?: string;
2925
3172
  }
2926
3173
 
3174
+ interface Capital {
3175
+ /**
3176
+ * Per-currency mapping of user-selected destination accounts used to pay out loans.
3177
+ */
3178
+ payout_destination?: {
3179
+ [key: string]: string;
3180
+ };
3181
+
3182
+ /**
3183
+ * Per-currency mapping of all destination accounts eligible to receive Capital financing payouts.
3184
+ */
3185
+ payout_destination_selector?: {
3186
+ [key: string]: Array<string>;
3187
+ };
3188
+ }
3189
+
2927
3190
  interface CardIssuing {
2928
3191
  /**
2929
3192
  * Details on the account's acceptance of the [Stripe Issuing Terms and Disclosures](https://stripe.com/issuing/connect/tos_acceptance).
@@ -3064,6 +3327,13 @@ declare module 'stripe' {
3064
3327
  }
3065
3328
  }
3066
3329
 
3330
+ interface TaxForms {
3331
+ /**
3332
+ * Whether the account opted out of receiving their tax forms by postal delivery.
3333
+ */
3334
+ consented_to_paperless_delivery?: boolean;
3335
+ }
3336
+
3067
3337
  interface Treasury {
3068
3338
  /**
3069
3339
  * Details on the account's acceptance of the Stripe Treasury Services Agreement.
@@ -0,0 +1,188 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ declare module 'stripe' {
4
+ namespace Stripe {
5
+ namespace Capital {
6
+ /**
7
+ * This is an object representing an offer of financing from
8
+ * Stripe Capital to a Connect subaccount.
9
+ */
10
+ interface FinancingOffer {
11
+ /**
12
+ * A unique identifier for the financing object.
13
+ */
14
+ id: string;
15
+
16
+ /**
17
+ * The object type: financing_offer.
18
+ */
19
+ object: 'capital.financing_offer';
20
+
21
+ /**
22
+ * This is an object representing the terms of an offer of financing from
23
+ * Stripe Capital to a Connected account. This resource represents
24
+ * the terms accepted by the Connected account, which may differ from those
25
+ * offered.
26
+ */
27
+ accepted_terms?: FinancingOffer.AcceptedTerms;
28
+
29
+ /**
30
+ * The ID of the merchant associated with this financing object.
31
+ */
32
+ account: string;
33
+
34
+ /**
35
+ * The time at which this financing offer was charged off, if applicable. Given in seconds since unix epoch.
36
+ */
37
+ charged_off_at?: number;
38
+
39
+ /**
40
+ * Time at which the offer was created. Given in seconds since unix epoch.
41
+ */
42
+ created: number;
43
+
44
+ /**
45
+ * Time at which the offer expires. Given in seconds since unix epoch.
46
+ */
47
+ expires_after: number;
48
+
49
+ /**
50
+ * The type of financing being offered.
51
+ */
52
+ financing_type?: FinancingOffer.FinancingType;
53
+
54
+ /**
55
+ * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
56
+ */
57
+ livemode: boolean;
58
+
59
+ /**
60
+ * Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
61
+ */
62
+ metadata?: Stripe.Metadata;
63
+
64
+ /**
65
+ * This is an object representing the terms of an offer of financing from
66
+ * Stripe Capital to a Connected account. This resource represents
67
+ * both the terms offered to the Connected account.
68
+ */
69
+ offered_terms?: FinancingOffer.OfferedTerms;
70
+
71
+ /**
72
+ * Financing product identifier.
73
+ */
74
+ product_type?: FinancingOffer.ProductType;
75
+
76
+ /**
77
+ * The ID of the financing offer that replaced this offer.
78
+ */
79
+ replacement?: string;
80
+
81
+ /**
82
+ * The ID of the financing offer that this offer is a replacement for.
83
+ */
84
+ replacement_for?: string;
85
+
86
+ /**
87
+ * The current status of the offer.
88
+ */
89
+ status: FinancingOffer.Status;
90
+
91
+ /**
92
+ * See [financing_type](https://stripe.com/docs/api/capital/connect_financing_object#financing_offer_object-financing_type).
93
+ */
94
+ type?: FinancingOffer.Type;
95
+ }
96
+
97
+ namespace FinancingOffer {
98
+ interface AcceptedTerms {
99
+ /**
100
+ * Amount of financing offered, in minor units.
101
+ */
102
+ advance_amount: number;
103
+
104
+ /**
105
+ * Currency that the financing offer is transacted in. For example, `usd`.
106
+ */
107
+ currency: string;
108
+
109
+ /**
110
+ * Fixed fee amount, in minor units.
111
+ */
112
+ fee_amount: number;
113
+
114
+ /**
115
+ * Populated when the `product_type` of the `financingoffer` is `refill`.
116
+ * Represents the discount amount on remaining premium for the existing loan at payout time.
117
+ */
118
+ previous_financing_fee_discount_amount: number | null;
119
+
120
+ /**
121
+ * Per-transaction rate at which Stripe will withhold funds to repay the financing.
122
+ */
123
+ withhold_rate: number;
124
+ }
125
+
126
+ type FinancingType = 'cash_advance' | 'flex_loan';
127
+
128
+ interface OfferedTerms {
129
+ /**
130
+ * Amount of financing offered, in minor units.
131
+ */
132
+ advance_amount: number;
133
+
134
+ /**
135
+ * Describes the type of user the offer is being extended to.
136
+ */
137
+ campaign_type: OfferedTerms.CampaignType;
138
+
139
+ /**
140
+ * Currency that the financing offer is transacted in. For example, `usd`.
141
+ */
142
+ currency: string;
143
+
144
+ /**
145
+ * Fixed fee amount, in minor units.
146
+ */
147
+ fee_amount: number;
148
+
149
+ /**
150
+ * Populated when the `product_type` of the `financingoffer` is `refill`.
151
+ * Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer`
152
+ * is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate
153
+ * and the remaining fee.
154
+ */
155
+ previous_financing_fee_discount_rate: number | null;
156
+
157
+ /**
158
+ * Per-transaction rate at which Stripe will withhold funds to repay the financing.
159
+ */
160
+ withhold_rate: number;
161
+ }
162
+
163
+ namespace OfferedTerms {
164
+ type CampaignType =
165
+ | 'newly_eligible_user'
166
+ | 'previously_eligible_user'
167
+ | 'repeat_user';
168
+ }
169
+
170
+ type ProductType = 'refill' | 'standard';
171
+
172
+ type Status =
173
+ | 'accepted'
174
+ | 'canceled'
175
+ | 'completed'
176
+ | 'delivered'
177
+ | 'expired'
178
+ | 'fully_repaid'
179
+ | 'paid_out'
180
+ | 'rejected'
181
+ | 'replaced'
182
+ | 'undelivered';
183
+
184
+ type Type = 'cash_advance' | 'flex_loan';
185
+ }
186
+ }
187
+ }
188
+ }