stripe 17.0.0 → 17.2.0-beta.1

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 (152) hide show
  1. package/CHANGELOG.md +895 -148
  2. package/README.md +6 -7
  3. package/VERSION +1 -1
  4. package/cjs/resources/AccountNotices.js +21 -0
  5. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  6. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  7. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  8. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  9. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  10. package/cjs/resources/GiftCards/Cards.js +23 -0
  11. package/cjs/resources/GiftCards/Transactions.js +33 -0
  12. package/cjs/resources/Invoices.js +17 -0
  13. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  14. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  15. package/cjs/resources/Margins.js +22 -0
  16. package/cjs/resources/Orders.js +24 -0
  17. package/cjs/resources/PaymentIntents.js +4 -0
  18. package/cjs/resources/Quotes.js +32 -0
  19. package/cjs/resources/SubscriptionSchedules.js +4 -0
  20. package/cjs/resources/Tax/Associations.js +9 -0
  21. package/cjs/resources/Tax/Forms.js +20 -0
  22. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  23. package/cjs/resources/Terminal/Readers.js +12 -0
  24. package/cjs/resources.js +42 -10
  25. package/cjs/stripe.core.js +1 -1
  26. package/esm/resources/AccountNotices.js +18 -0
  27. package/esm/resources/Capital/FinancingOffers.js +18 -0
  28. package/esm/resources/Capital/FinancingSummary.js +9 -0
  29. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  30. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  31. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  32. package/esm/resources/GiftCards/Cards.js +20 -0
  33. package/esm/resources/GiftCards/Transactions.js +30 -0
  34. package/esm/resources/Invoices.js +17 -0
  35. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  36. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  37. package/esm/resources/Margins.js +19 -0
  38. package/esm/resources/Orders.js +21 -0
  39. package/esm/resources/PaymentIntents.js +4 -0
  40. package/esm/resources/Quotes.js +32 -0
  41. package/esm/resources/SubscriptionSchedules.js +4 -0
  42. package/esm/resources/Tax/Associations.js +6 -0
  43. package/esm/resources/Tax/Forms.js +17 -0
  44. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  45. package/esm/resources/Terminal/Readers.js +12 -0
  46. package/esm/resources.js +29 -0
  47. package/esm/stripe.core.js +1 -1
  48. package/package.json +1 -1
  49. package/types/AccountLinksResource.d.ts +5 -1
  50. package/types/AccountNotices.d.ts +113 -0
  51. package/types/AccountNoticesResource.d.ts +98 -0
  52. package/types/AccountSessions.d.ts +45 -0
  53. package/types/AccountSessionsResource.d.ts +309 -0
  54. package/types/Accounts.d.ts +113 -1
  55. package/types/AccountsResource.d.ts +270 -0
  56. package/types/Billing/MeterErrorReports.d.ts +106 -0
  57. package/types/Capital/FinancingOffers.d.ts +188 -0
  58. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  59. package/types/Capital/FinancingSummary.d.ts +106 -0
  60. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  61. package/types/Capital/FinancingTransactions.d.ts +135 -0
  62. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  63. package/types/Charges.d.ts +71 -0
  64. package/types/ChargesResource.d.ts +1294 -0
  65. package/types/Checkout/Sessions.d.ts +296 -4
  66. package/types/Checkout/SessionsResource.d.ts +351 -5
  67. package/types/ConfirmationTokens.d.ts +67 -0
  68. package/types/Coupons.d.ts +1 -1
  69. package/types/CouponsResource.d.ts +1 -1
  70. package/types/CreditNotes.d.ts +21 -0
  71. package/types/CreditNotesResource.d.ts +51 -0
  72. package/types/CustomersResource.d.ts +3 -0
  73. package/types/Disputes.d.ts +152 -0
  74. package/types/DisputesResource.d.ts +120 -0
  75. package/types/EventTypes.d.ts +545 -0
  76. package/types/Events.d.ts +90 -0
  77. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  78. package/types/FinancialConnections/Accounts.d.ts +29 -1
  79. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  80. package/types/FinancialConnections/Institutions.d.ts +93 -0
  81. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  82. package/types/FinancialConnections/Sessions.d.ts +49 -1
  83. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  84. package/types/GiftCards/Cards.d.ts +118 -0
  85. package/types/GiftCards/CardsResource.d.ts +159 -0
  86. package/types/GiftCards/Transactions.d.ts +129 -0
  87. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  88. package/types/InvoiceItems.d.ts +5 -0
  89. package/types/InvoiceItemsResource.d.ts +98 -0
  90. package/types/InvoiceLineItems.d.ts +23 -1
  91. package/types/InvoicePayments.d.ts +138 -0
  92. package/types/Invoices.d.ts +118 -2
  93. package/types/InvoicesResource.d.ts +5454 -1796
  94. package/types/Issuing/CardholdersResource.d.ts +2 -1
  95. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  96. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  97. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  98. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  99. package/types/Issuing/Settlements.d.ts +103 -0
  100. package/types/Issuing/Transactions.d.ts +2 -0
  101. package/types/Issuing/TransactionsResource.d.ts +5 -0
  102. package/types/LineItems.d.ts +7 -0
  103. package/types/Mandates.d.ts +77 -0
  104. package/types/MarginsResource.d.ts +114 -0
  105. package/types/Orders.d.ts +1084 -0
  106. package/types/OrdersResource.d.ts +2765 -0
  107. package/types/PaymentIntents.d.ts +503 -1
  108. package/types/PaymentIntentsResource.d.ts +7000 -3400
  109. package/types/PaymentLinks.d.ts +3 -0
  110. package/types/PaymentLinksResource.d.ts +6 -0
  111. package/types/PaymentMethodConfigurations.d.ts +36 -0
  112. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  113. package/types/PaymentMethods.d.ts +67 -0
  114. package/types/PaymentMethodsResource.d.ts +88 -0
  115. package/types/Prices.d.ts +22 -0
  116. package/types/PricesResource.d.ts +22 -0
  117. package/types/Products.d.ts +39 -0
  118. package/types/ProductsResource.d.ts +36 -0
  119. package/types/QuoteLines.d.ts +634 -0
  120. package/types/QuotePreviewInvoices.d.ts +1586 -0
  121. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  122. package/types/Quotes.d.ts +591 -1
  123. package/types/QuotesResource.d.ts +2526 -194
  124. package/types/SetupAttempts.d.ts +10 -0
  125. package/types/SetupIntents.d.ts +111 -1
  126. package/types/SetupIntentsResource.d.ts +522 -3
  127. package/types/Sources.d.ts +23 -0
  128. package/types/SubscriptionItems.d.ts +21 -0
  129. package/types/SubscriptionItemsResource.d.ts +109 -0
  130. package/types/SubscriptionSchedules.d.ts +200 -0
  131. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  132. package/types/Subscriptions.d.ts +82 -1
  133. package/types/SubscriptionsResource.d.ts +347 -2
  134. package/types/Tax/Associations.d.ts +126 -0
  135. package/types/Tax/AssociationsResource.d.ts +29 -0
  136. package/types/Tax/Forms.d.ts +133 -0
  137. package/types/Tax/FormsResource.d.ts +90 -0
  138. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  139. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  140. package/types/Terminal/Readers.d.ts +278 -0
  141. package/types/Terminal/ReadersResource.d.ts +215 -0
  142. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  143. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  144. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  145. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  146. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  147. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  148. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  149. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  150. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  151. package/types/WebhookEndpointsResource.d.ts +64 -0
  152. package/types/index.d.ts +52 -0
@@ -299,6 +299,11 @@ declare module 'stripe' {
299
299
  */
300
300
  link?: PaymentMethodData.Link;
301
301
 
302
+ /**
303
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
304
+ */
305
+ mb_way?: PaymentMethodData.MbWay;
306
+
302
307
  /**
303
308
  * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
304
309
  */
@@ -334,6 +339,11 @@ declare module 'stripe' {
334
339
  */
335
340
  paypal?: PaymentMethodData.Paypal;
336
341
 
342
+ /**
343
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
344
+ */
345
+ payto?: PaymentMethodData.Payto;
346
+
337
347
  /**
338
348
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
339
349
  */
@@ -349,6 +359,11 @@ declare module 'stripe' {
349
359
  */
350
360
  radar_options?: PaymentMethodData.RadarOptions;
351
361
 
362
+ /**
363
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
364
+ */
365
+ rechnung?: PaymentMethodData.Rechnung;
366
+
352
367
  /**
353
368
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
354
369
  */
@@ -626,6 +641,8 @@ declare module 'stripe' {
626
641
 
627
642
  interface Link {}
628
643
 
644
+ interface MbWay {}
645
+
629
646
  interface Mobilepay {}
630
647
 
631
648
  interface Multibanco {}
@@ -673,6 +690,23 @@ declare module 'stripe' {
673
690
 
674
691
  interface Paypal {}
675
692
 
693
+ interface Payto {
694
+ /**
695
+ * The account number for the bank account.
696
+ */
697
+ account_number?: string;
698
+
699
+ /**
700
+ * Bank-State-Branch number of the bank account.
701
+ */
702
+ bsb_number?: string;
703
+
704
+ /**
705
+ * The PayID alias for the bank account.
706
+ */
707
+ pay_id?: string;
708
+ }
709
+
676
710
  interface Pix {}
677
711
 
678
712
  interface Promptpay {}
@@ -684,6 +718,32 @@ declare module 'stripe' {
684
718
  session?: string;
685
719
  }
686
720
 
721
+ interface Rechnung {
722
+ /**
723
+ * Customer's date of birth
724
+ */
725
+ dob: Rechnung.Dob;
726
+ }
727
+
728
+ namespace Rechnung {
729
+ interface Dob {
730
+ /**
731
+ * The day of birth, between 1 and 31.
732
+ */
733
+ day: number;
734
+
735
+ /**
736
+ * The month of birth, between 1 and 12.
737
+ */
738
+ month: number;
739
+
740
+ /**
741
+ * The four-digit year of birth.
742
+ */
743
+ year: number;
744
+ }
745
+ }
746
+
687
747
  interface RevolutPay {}
688
748
 
689
749
  interface SepaDebit {
@@ -729,14 +789,17 @@ declare module 'stripe' {
729
789
  | 'klarna'
730
790
  | 'konbini'
731
791
  | 'link'
792
+ | 'mb_way'
732
793
  | 'mobilepay'
733
794
  | 'multibanco'
734
795
  | 'oxxo'
735
796
  | 'p24'
736
797
  | 'paynow'
737
798
  | 'paypal'
799
+ | 'payto'
738
800
  | 'pix'
739
801
  | 'promptpay'
802
+ | 'rechnung'
740
803
  | 'revolut_pay'
741
804
  | 'sepa_debit'
742
805
  | 'sofort'
@@ -820,6 +883,11 @@ declare module 'stripe' {
820
883
  */
821
884
  paypal?: PaymentMethodOptions.Paypal;
822
885
 
886
+ /**
887
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
888
+ */
889
+ payto?: PaymentMethodOptions.Payto;
890
+
823
891
  /**
824
892
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
825
893
  */
@@ -1115,6 +1183,86 @@ declare module 'stripe' {
1115
1183
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1116
1184
  */
1117
1185
  billing_agreement_id?: string;
1186
+
1187
+ currency?: string;
1188
+
1189
+ /**
1190
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
1191
+ */
1192
+ subsellers?: Array<string>;
1193
+ }
1194
+
1195
+ interface Payto {
1196
+ /**
1197
+ * Additional fields for Mandate creation.
1198
+ */
1199
+ mandate_options?: Payto.MandateOptions;
1200
+ }
1201
+
1202
+ namespace Payto {
1203
+ interface MandateOptions {
1204
+ /**
1205
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
1206
+ */
1207
+ amount?: number;
1208
+
1209
+ /**
1210
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
1211
+ */
1212
+ amount_type?: MandateOptions.AmountType;
1213
+
1214
+ /**
1215
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1216
+ */
1217
+ end_date?: string;
1218
+
1219
+ /**
1220
+ * The periodicity at which payments will be collected.
1221
+ */
1222
+ payment_schedule?: MandateOptions.PaymentSchedule;
1223
+
1224
+ /**
1225
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
1226
+ */
1227
+ payments_per_period?: number;
1228
+
1229
+ /**
1230
+ * The purpose for which payments are made. Defaults to retail.
1231
+ */
1232
+ purpose?: MandateOptions.Purpose;
1233
+
1234
+ /**
1235
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1236
+ */
1237
+ start_date?: string;
1238
+ }
1239
+
1240
+ namespace MandateOptions {
1241
+ type AmountType = 'fixed' | 'maximum';
1242
+
1243
+ type PaymentSchedule =
1244
+ | 'adhoc'
1245
+ | 'annual'
1246
+ | 'daily'
1247
+ | 'fortnightly'
1248
+ | 'monthly'
1249
+ | 'quarterly'
1250
+ | 'semi_annual'
1251
+ | 'weekly';
1252
+
1253
+ type Purpose =
1254
+ | 'dependant_support'
1255
+ | 'government'
1256
+ | 'loan'
1257
+ | 'mortgage'
1258
+ | 'other'
1259
+ | 'pension'
1260
+ | 'personal'
1261
+ | 'retail'
1262
+ | 'salary'
1263
+ | 'tax'
1264
+ | 'utility';
1265
+ }
1118
1266
  }
1119
1267
 
1120
1268
  interface SepaDebit {
@@ -1157,6 +1305,11 @@ declare module 'stripe' {
1157
1305
  */
1158
1306
  filters?: FinancialConnections.Filters;
1159
1307
 
1308
+ /**
1309
+ * Customize manual entry behavior
1310
+ */
1311
+ manual_entry?: FinancialConnections.ManualEntry;
1312
+
1160
1313
  /**
1161
1314
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
1162
1315
  */
@@ -1179,19 +1332,39 @@ declare module 'stripe' {
1179
1332
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1180
1333
  */
1181
1334
  account_subcategories?: Array<Filters.AccountSubcategory>;
1335
+
1336
+ /**
1337
+ * ID of the institution to use to filter for selectable accounts.
1338
+ */
1339
+ institution?: string;
1182
1340
  }
1183
1341
 
1184
1342
  namespace Filters {
1185
1343
  type AccountSubcategory = 'checking' | 'savings';
1186
1344
  }
1187
1345
 
1346
+ interface ManualEntry {
1347
+ /**
1348
+ * Settings for configuring manual entry of account details.
1349
+ */
1350
+ mode: ManualEntry.Mode;
1351
+ }
1352
+
1353
+ namespace ManualEntry {
1354
+ type Mode = 'automatic' | 'custom';
1355
+ }
1356
+
1188
1357
  type Permission =
1189
1358
  | 'balances'
1190
1359
  | 'ownership'
1191
1360
  | 'payment_method'
1192
1361
  | 'transactions';
1193
1362
 
1194
- type Prefetch = 'balances' | 'ownership' | 'transactions';
1363
+ type Prefetch =
1364
+ | 'balances'
1365
+ | 'inferred_balances'
1366
+ | 'ownership'
1367
+ | 'transactions';
1195
1368
  }
1196
1369
 
1197
1370
  interface MandateOptions {
@@ -1426,6 +1599,11 @@ declare module 'stripe' {
1426
1599
  */
1427
1600
  link?: PaymentMethodData.Link;
1428
1601
 
1602
+ /**
1603
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
1604
+ */
1605
+ mb_way?: PaymentMethodData.MbWay;
1606
+
1429
1607
  /**
1430
1608
  * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
1431
1609
  */
@@ -1461,6 +1639,11 @@ declare module 'stripe' {
1461
1639
  */
1462
1640
  paypal?: PaymentMethodData.Paypal;
1463
1641
 
1642
+ /**
1643
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1644
+ */
1645
+ payto?: PaymentMethodData.Payto;
1646
+
1464
1647
  /**
1465
1648
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1466
1649
  */
@@ -1476,6 +1659,11 @@ declare module 'stripe' {
1476
1659
  */
1477
1660
  radar_options?: PaymentMethodData.RadarOptions;
1478
1661
 
1662
+ /**
1663
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1664
+ */
1665
+ rechnung?: PaymentMethodData.Rechnung;
1666
+
1479
1667
  /**
1480
1668
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1481
1669
  */
@@ -1753,6 +1941,8 @@ declare module 'stripe' {
1753
1941
 
1754
1942
  interface Link {}
1755
1943
 
1944
+ interface MbWay {}
1945
+
1756
1946
  interface Mobilepay {}
1757
1947
 
1758
1948
  interface Multibanco {}
@@ -1800,6 +1990,23 @@ declare module 'stripe' {
1800
1990
 
1801
1991
  interface Paypal {}
1802
1992
 
1993
+ interface Payto {
1994
+ /**
1995
+ * The account number for the bank account.
1996
+ */
1997
+ account_number?: string;
1998
+
1999
+ /**
2000
+ * Bank-State-Branch number of the bank account.
2001
+ */
2002
+ bsb_number?: string;
2003
+
2004
+ /**
2005
+ * The PayID alias for the bank account.
2006
+ */
2007
+ pay_id?: string;
2008
+ }
2009
+
1803
2010
  interface Pix {}
1804
2011
 
1805
2012
  interface Promptpay {}
@@ -1811,6 +2018,32 @@ declare module 'stripe' {
1811
2018
  session?: string;
1812
2019
  }
1813
2020
 
2021
+ interface Rechnung {
2022
+ /**
2023
+ * Customer's date of birth
2024
+ */
2025
+ dob: Rechnung.Dob;
2026
+ }
2027
+
2028
+ namespace Rechnung {
2029
+ interface Dob {
2030
+ /**
2031
+ * The day of birth, between 1 and 31.
2032
+ */
2033
+ day: number;
2034
+
2035
+ /**
2036
+ * The month of birth, between 1 and 12.
2037
+ */
2038
+ month: number;
2039
+
2040
+ /**
2041
+ * The four-digit year of birth.
2042
+ */
2043
+ year: number;
2044
+ }
2045
+ }
2046
+
1814
2047
  interface RevolutPay {}
1815
2048
 
1816
2049
  interface SepaDebit {
@@ -1856,14 +2089,17 @@ declare module 'stripe' {
1856
2089
  | 'klarna'
1857
2090
  | 'konbini'
1858
2091
  | 'link'
2092
+ | 'mb_way'
1859
2093
  | 'mobilepay'
1860
2094
  | 'multibanco'
1861
2095
  | 'oxxo'
1862
2096
  | 'p24'
1863
2097
  | 'paynow'
1864
2098
  | 'paypal'
2099
+ | 'payto'
1865
2100
  | 'pix'
1866
2101
  | 'promptpay'
2102
+ | 'rechnung'
1867
2103
  | 'revolut_pay'
1868
2104
  | 'sepa_debit'
1869
2105
  | 'sofort'
@@ -1947,6 +2183,11 @@ declare module 'stripe' {
1947
2183
  */
1948
2184
  paypal?: PaymentMethodOptions.Paypal;
1949
2185
 
2186
+ /**
2187
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2188
+ */
2189
+ payto?: PaymentMethodOptions.Payto;
2190
+
1950
2191
  /**
1951
2192
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1952
2193
  */
@@ -2242,6 +2483,86 @@ declare module 'stripe' {
2242
2483
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2243
2484
  */
2244
2485
  billing_agreement_id?: string;
2486
+
2487
+ currency?: string;
2488
+
2489
+ /**
2490
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
2491
+ */
2492
+ subsellers?: Array<string>;
2493
+ }
2494
+
2495
+ interface Payto {
2496
+ /**
2497
+ * Additional fields for Mandate creation.
2498
+ */
2499
+ mandate_options?: Payto.MandateOptions;
2500
+ }
2501
+
2502
+ namespace Payto {
2503
+ interface MandateOptions {
2504
+ /**
2505
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2506
+ */
2507
+ amount?: number;
2508
+
2509
+ /**
2510
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
2511
+ */
2512
+ amount_type?: MandateOptions.AmountType;
2513
+
2514
+ /**
2515
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2516
+ */
2517
+ end_date?: string;
2518
+
2519
+ /**
2520
+ * The periodicity at which payments will be collected.
2521
+ */
2522
+ payment_schedule?: MandateOptions.PaymentSchedule;
2523
+
2524
+ /**
2525
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
2526
+ */
2527
+ payments_per_period?: number;
2528
+
2529
+ /**
2530
+ * The purpose for which payments are made. Defaults to retail.
2531
+ */
2532
+ purpose?: MandateOptions.Purpose;
2533
+
2534
+ /**
2535
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2536
+ */
2537
+ start_date?: string;
2538
+ }
2539
+
2540
+ namespace MandateOptions {
2541
+ type AmountType = 'fixed' | 'maximum';
2542
+
2543
+ type PaymentSchedule =
2544
+ | 'adhoc'
2545
+ | 'annual'
2546
+ | 'daily'
2547
+ | 'fortnightly'
2548
+ | 'monthly'
2549
+ | 'quarterly'
2550
+ | 'semi_annual'
2551
+ | 'weekly';
2552
+
2553
+ type Purpose =
2554
+ | 'dependant_support'
2555
+ | 'government'
2556
+ | 'loan'
2557
+ | 'mortgage'
2558
+ | 'other'
2559
+ | 'pension'
2560
+ | 'personal'
2561
+ | 'retail'
2562
+ | 'salary'
2563
+ | 'tax'
2564
+ | 'utility';
2565
+ }
2245
2566
  }
2246
2567
 
2247
2568
  interface SepaDebit {
@@ -2284,6 +2605,11 @@ declare module 'stripe' {
2284
2605
  */
2285
2606
  filters?: FinancialConnections.Filters;
2286
2607
 
2608
+ /**
2609
+ * Customize manual entry behavior
2610
+ */
2611
+ manual_entry?: FinancialConnections.ManualEntry;
2612
+
2287
2613
  /**
2288
2614
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
2289
2615
  */
@@ -2306,19 +2632,39 @@ declare module 'stripe' {
2306
2632
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2307
2633
  */
2308
2634
  account_subcategories?: Array<Filters.AccountSubcategory>;
2635
+
2636
+ /**
2637
+ * ID of the institution to use to filter for selectable accounts.
2638
+ */
2639
+ institution?: string;
2309
2640
  }
2310
2641
 
2311
2642
  namespace Filters {
2312
2643
  type AccountSubcategory = 'checking' | 'savings';
2313
2644
  }
2314
2645
 
2646
+ interface ManualEntry {
2647
+ /**
2648
+ * Settings for configuring manual entry of account details.
2649
+ */
2650
+ mode: ManualEntry.Mode;
2651
+ }
2652
+
2653
+ namespace ManualEntry {
2654
+ type Mode = 'automatic' | 'custom';
2655
+ }
2656
+
2315
2657
  type Permission =
2316
2658
  | 'balances'
2317
2659
  | 'ownership'
2318
2660
  | 'payment_method'
2319
2661
  | 'transactions';
2320
2662
 
2321
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2663
+ type Prefetch =
2664
+ | 'balances'
2665
+ | 'inferred_balances'
2666
+ | 'ownership'
2667
+ | 'transactions';
2322
2668
  }
2323
2669
 
2324
2670
  interface MandateOptions {
@@ -2602,6 +2948,11 @@ declare module 'stripe' {
2602
2948
  */
2603
2949
  link?: PaymentMethodData.Link;
2604
2950
 
2951
+ /**
2952
+ * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method.
2953
+ */
2954
+ mb_way?: PaymentMethodData.MbWay;
2955
+
2605
2956
  /**
2606
2957
  * 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. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
2607
2958
  */
@@ -2637,6 +2988,11 @@ declare module 'stripe' {
2637
2988
  */
2638
2989
  paypal?: PaymentMethodData.Paypal;
2639
2990
 
2991
+ /**
2992
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2993
+ */
2994
+ payto?: PaymentMethodData.Payto;
2995
+
2640
2996
  /**
2641
2997
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2642
2998
  */
@@ -2652,6 +3008,11 @@ declare module 'stripe' {
2652
3008
  */
2653
3009
  radar_options?: PaymentMethodData.RadarOptions;
2654
3010
 
3011
+ /**
3012
+ * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3013
+ */
3014
+ rechnung?: PaymentMethodData.Rechnung;
3015
+
2655
3016
  /**
2656
3017
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2657
3018
  */
@@ -2929,6 +3290,8 @@ declare module 'stripe' {
2929
3290
 
2930
3291
  interface Link {}
2931
3292
 
3293
+ interface MbWay {}
3294
+
2932
3295
  interface Mobilepay {}
2933
3296
 
2934
3297
  interface Multibanco {}
@@ -2976,6 +3339,23 @@ declare module 'stripe' {
2976
3339
 
2977
3340
  interface Paypal {}
2978
3341
 
3342
+ interface Payto {
3343
+ /**
3344
+ * The account number for the bank account.
3345
+ */
3346
+ account_number?: string;
3347
+
3348
+ /**
3349
+ * Bank-State-Branch number of the bank account.
3350
+ */
3351
+ bsb_number?: string;
3352
+
3353
+ /**
3354
+ * The PayID alias for the bank account.
3355
+ */
3356
+ pay_id?: string;
3357
+ }
3358
+
2979
3359
  interface Pix {}
2980
3360
 
2981
3361
  interface Promptpay {}
@@ -2987,6 +3367,32 @@ declare module 'stripe' {
2987
3367
  session?: string;
2988
3368
  }
2989
3369
 
3370
+ interface Rechnung {
3371
+ /**
3372
+ * Customer's date of birth
3373
+ */
3374
+ dob: Rechnung.Dob;
3375
+ }
3376
+
3377
+ namespace Rechnung {
3378
+ interface Dob {
3379
+ /**
3380
+ * The day of birth, between 1 and 31.
3381
+ */
3382
+ day: number;
3383
+
3384
+ /**
3385
+ * The month of birth, between 1 and 12.
3386
+ */
3387
+ month: number;
3388
+
3389
+ /**
3390
+ * The four-digit year of birth.
3391
+ */
3392
+ year: number;
3393
+ }
3394
+ }
3395
+
2990
3396
  interface RevolutPay {}
2991
3397
 
2992
3398
  interface SepaDebit {
@@ -3032,14 +3438,17 @@ declare module 'stripe' {
3032
3438
  | 'klarna'
3033
3439
  | 'konbini'
3034
3440
  | 'link'
3441
+ | 'mb_way'
3035
3442
  | 'mobilepay'
3036
3443
  | 'multibanco'
3037
3444
  | 'oxxo'
3038
3445
  | 'p24'
3039
3446
  | 'paynow'
3040
3447
  | 'paypal'
3448
+ | 'payto'
3041
3449
  | 'pix'
3042
3450
  | 'promptpay'
3451
+ | 'rechnung'
3043
3452
  | 'revolut_pay'
3044
3453
  | 'sepa_debit'
3045
3454
  | 'sofort'
@@ -3123,6 +3532,11 @@ declare module 'stripe' {
3123
3532
  */
3124
3533
  paypal?: PaymentMethodOptions.Paypal;
3125
3534
 
3535
+ /**
3536
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
3537
+ */
3538
+ payto?: PaymentMethodOptions.Payto;
3539
+
3126
3540
  /**
3127
3541
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3128
3542
  */
@@ -3418,6 +3832,86 @@ declare module 'stripe' {
3418
3832
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3419
3833
  */
3420
3834
  billing_agreement_id?: string;
3835
+
3836
+ currency?: string;
3837
+
3838
+ /**
3839
+ * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used.
3840
+ */
3841
+ subsellers?: Array<string>;
3842
+ }
3843
+
3844
+ interface Payto {
3845
+ /**
3846
+ * Additional fields for Mandate creation.
3847
+ */
3848
+ mandate_options?: Payto.MandateOptions;
3849
+ }
3850
+
3851
+ namespace Payto {
3852
+ interface MandateOptions {
3853
+ /**
3854
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
3855
+ */
3856
+ amount?: number;
3857
+
3858
+ /**
3859
+ * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively.
3860
+ */
3861
+ amount_type?: MandateOptions.AmountType;
3862
+
3863
+ /**
3864
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3865
+ */
3866
+ end_date?: string;
3867
+
3868
+ /**
3869
+ * The periodicity at which payments will be collected.
3870
+ */
3871
+ payment_schedule?: MandateOptions.PaymentSchedule;
3872
+
3873
+ /**
3874
+ * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit.
3875
+ */
3876
+ payments_per_period?: number;
3877
+
3878
+ /**
3879
+ * The purpose for which payments are made. Defaults to retail.
3880
+ */
3881
+ purpose?: MandateOptions.Purpose;
3882
+
3883
+ /**
3884
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
3885
+ */
3886
+ start_date?: string;
3887
+ }
3888
+
3889
+ namespace MandateOptions {
3890
+ type AmountType = 'fixed' | 'maximum';
3891
+
3892
+ type PaymentSchedule =
3893
+ | 'adhoc'
3894
+ | 'annual'
3895
+ | 'daily'
3896
+ | 'fortnightly'
3897
+ | 'monthly'
3898
+ | 'quarterly'
3899
+ | 'semi_annual'
3900
+ | 'weekly';
3901
+
3902
+ type Purpose =
3903
+ | 'dependant_support'
3904
+ | 'government'
3905
+ | 'loan'
3906
+ | 'mortgage'
3907
+ | 'other'
3908
+ | 'pension'
3909
+ | 'personal'
3910
+ | 'retail'
3911
+ | 'salary'
3912
+ | 'tax'
3913
+ | 'utility';
3914
+ }
3421
3915
  }
3422
3916
 
3423
3917
  interface SepaDebit {
@@ -3460,6 +3954,11 @@ declare module 'stripe' {
3460
3954
  */
3461
3955
  filters?: FinancialConnections.Filters;
3462
3956
 
3957
+ /**
3958
+ * Customize manual entry behavior
3959
+ */
3960
+ manual_entry?: FinancialConnections.ManualEntry;
3961
+
3463
3962
  /**
3464
3963
  * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. Valid permissions include: `balances`, `ownership`, `payment_method`, and `transactions`.
3465
3964
  */
@@ -3482,19 +3981,39 @@ declare module 'stripe' {
3482
3981
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3483
3982
  */
3484
3983
  account_subcategories?: Array<Filters.AccountSubcategory>;
3984
+
3985
+ /**
3986
+ * ID of the institution to use to filter for selectable accounts.
3987
+ */
3988
+ institution?: string;
3485
3989
  }
3486
3990
 
3487
3991
  namespace Filters {
3488
3992
  type AccountSubcategory = 'checking' | 'savings';
3489
3993
  }
3490
3994
 
3995
+ interface ManualEntry {
3996
+ /**
3997
+ * Settings for configuring manual entry of account details.
3998
+ */
3999
+ mode: ManualEntry.Mode;
4000
+ }
4001
+
4002
+ namespace ManualEntry {
4003
+ type Mode = 'automatic' | 'custom';
4004
+ }
4005
+
3491
4006
  type Permission =
3492
4007
  | 'balances'
3493
4008
  | 'ownership'
3494
4009
  | 'payment_method'
3495
4010
  | 'transactions';
3496
4011
 
3497
- type Prefetch = 'balances' | 'ownership' | 'transactions';
4012
+ type Prefetch =
4013
+ | 'balances'
4014
+ | 'inferred_balances'
4015
+ | 'ownership'
4016
+ | 'transactions';
3498
4017
  }
3499
4018
 
3500
4019
  interface MandateOptions {