stripe 16.11.0-beta.1 → 16.11.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 (170) hide show
  1. package/CHANGELOG.md +124 -831
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +2 -2
  6. package/cjs/apiVersion.js +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/InvoiceRenderingTemplates.js +25 -0
  10. package/cjs/resources/Invoices.js +0 -17
  11. package/cjs/resources/OAuth.js +1 -1
  12. package/cjs/resources/PaymentIntents.js +0 -4
  13. package/cjs/resources/Quotes.js +0 -32
  14. package/cjs/resources/SubscriptionSchedules.js +0 -4
  15. package/cjs/resources/Terminal/Readers.js +0 -12
  16. package/cjs/resources.js +12 -42
  17. package/cjs/stripe.core.js +3 -6
  18. package/cjs/utils.js +3 -30
  19. package/esm/RequestSender.js +6 -67
  20. package/esm/StripeResource.js +3 -3
  21. package/esm/apiVersion.js +0 -1
  22. package/esm/multipart.js +2 -2
  23. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  24. package/esm/resources/InvoiceRenderingTemplates.js +22 -0
  25. package/esm/resources/Invoices.js +0 -17
  26. package/esm/resources/OAuth.js +2 -2
  27. package/esm/resources/PaymentIntents.js +0 -4
  28. package/esm/resources/Quotes.js +0 -32
  29. package/esm/resources/SubscriptionSchedules.js +0 -4
  30. package/esm/resources/Terminal/Readers.js +0 -12
  31. package/esm/resources.js +1 -28
  32. package/esm/stripe.core.js +3 -6
  33. package/esm/utils.js +1 -27
  34. package/package.json +1 -1
  35. package/types/AccountLinksResource.d.ts +1 -5
  36. package/types/AccountSessions.d.ts +0 -45
  37. package/types/AccountSessionsResource.d.ts +0 -278
  38. package/types/Accounts.d.ts +1 -113
  39. package/types/AccountsResource.d.ts +0 -270
  40. package/types/Charges.d.ts +0 -71
  41. package/types/ChargesResource.d.ts +0 -1294
  42. package/types/Checkout/Sessions.d.ts +13 -296
  43. package/types/Checkout/SessionsResource.d.ts +14 -350
  44. package/types/ConfirmationTokens.d.ts +0 -67
  45. package/types/Coupons.d.ts +1 -1
  46. package/types/CouponsResource.d.ts +1 -1
  47. package/types/CreditNotes.d.ts +0 -21
  48. package/types/CreditNotesResource.d.ts +0 -51
  49. package/types/Customers.d.ts +5 -0
  50. package/types/CustomersResource.d.ts +10 -3
  51. package/types/Disputes.d.ts +0 -152
  52. package/types/DisputesResource.d.ts +0 -120
  53. package/types/EventTypes.d.ts +0 -477
  54. package/types/Events.d.ts +0 -86
  55. package/types/FinancialConnections/Accounts.d.ts +1 -29
  56. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  57. package/types/FinancialConnections/Sessions.d.ts +1 -49
  58. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  59. package/types/InvoiceItems.d.ts +0 -5
  60. package/types/InvoiceItemsResource.d.ts +0 -98
  61. package/types/InvoiceLineItems.d.ts +2 -24
  62. package/types/{Margins.d.ts → InvoiceRenderingTemplates.d.ts} +13 -15
  63. package/types/InvoiceRenderingTemplatesResource.d.ts +93 -0
  64. package/types/Invoices.d.ts +11 -117
  65. package/types/InvoicesResource.d.ts +1855 -5493
  66. package/types/Issuing/CardholdersResource.d.ts +1 -2
  67. package/types/Issuing/Cards.d.ts +2 -1
  68. package/types/LineItems.d.ts +0 -7
  69. package/types/Mandates.d.ts +0 -77
  70. package/types/PaymentIntents.d.ts +1 -503
  71. package/types/PaymentIntentsResource.d.ts +3464 -7064
  72. package/types/PaymentLinks.d.ts +6 -2
  73. package/types/PaymentLinksResource.d.ts +18 -4
  74. package/types/PaymentMethodConfigurations.d.ts +0 -36
  75. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  76. package/types/PaymentMethods.d.ts +0 -67
  77. package/types/PaymentMethodsResource.d.ts +0 -88
  78. package/types/Prices.d.ts +0 -22
  79. package/types/PricesResource.d.ts +0 -22
  80. package/types/Products.d.ts +0 -39
  81. package/types/ProductsResource.d.ts +0 -36
  82. package/types/Quotes.d.ts +1 -596
  83. package/types/QuotesResource.d.ts +200 -2532
  84. package/types/SetupAttempts.d.ts +0 -10
  85. package/types/SetupIntents.d.ts +1 -111
  86. package/types/SetupIntentsResource.d.ts +3 -522
  87. package/types/Sources.d.ts +0 -23
  88. package/types/SubscriptionItems.d.ts +0 -21
  89. package/types/SubscriptionItemsResource.d.ts +0 -109
  90. package/types/SubscriptionSchedules.d.ts +0 -200
  91. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  92. package/types/Subscriptions.d.ts +1 -82
  93. package/types/SubscriptionsResource.d.ts +8 -347
  94. package/types/Terminal/LocationsResource.d.ts +1 -1
  95. package/types/Terminal/Readers.d.ts +0 -278
  96. package/types/Terminal/ReadersResource.d.ts +0 -208
  97. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
  98. package/types/TestHelpers/TestClocks.d.ts +1 -1
  99. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  100. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  101. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  102. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  103. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  104. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  105. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  106. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  107. package/types/WebhookEndpointsResource.d.ts +0 -56
  108. package/types/index.d.ts +3 -71
  109. package/types/lib.d.ts +0 -12
  110. package/cjs/resources/AccountNotices.js +0 -21
  111. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  112. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  113. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  114. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  115. package/cjs/resources/GiftCards/Cards.js +0 -23
  116. package/cjs/resources/GiftCards/Transactions.js +0 -33
  117. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  118. package/cjs/resources/Margins.js +0 -22
  119. package/cjs/resources/Orders.js +0 -24
  120. package/cjs/resources/QuotePhases.js +0 -22
  121. package/cjs/resources/Tax/Associations.js +0 -9
  122. package/cjs/resources/Tax/Forms.js +0 -20
  123. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  124. package/esm/resources/AccountNotices.js +0 -18
  125. package/esm/resources/Capital/FinancingOffers.js +0 -18
  126. package/esm/resources/Capital/FinancingSummary.js +0 -9
  127. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  128. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  129. package/esm/resources/GiftCards/Cards.js +0 -20
  130. package/esm/resources/GiftCards/Transactions.js +0 -30
  131. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  132. package/esm/resources/Margins.js +0 -19
  133. package/esm/resources/Orders.js +0 -21
  134. package/esm/resources/QuotePhases.js +0 -19
  135. package/esm/resources/Tax/Associations.js +0 -6
  136. package/esm/resources/Tax/Forms.js +0 -17
  137. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  138. package/types/AccountNotices.d.ts +0 -113
  139. package/types/AccountNoticesResource.d.ts +0 -98
  140. package/types/Billing/MeterErrorReports.d.ts +0 -106
  141. package/types/Capital/FinancingOffers.d.ts +0 -188
  142. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  143. package/types/Capital/FinancingSummary.d.ts +0 -106
  144. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  145. package/types/Capital/FinancingTransactions.d.ts +0 -135
  146. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  147. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  148. package/types/FinancialConnections/Institutions.d.ts +0 -93
  149. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  150. package/types/GiftCards/Cards.d.ts +0 -118
  151. package/types/GiftCards/CardsResource.d.ts +0 -159
  152. package/types/GiftCards/Transactions.d.ts +0 -129
  153. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  154. package/types/InvoicePayments.d.ts +0 -138
  155. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  156. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  157. package/types/MarginsResource.d.ts +0 -114
  158. package/types/Orders.d.ts +0 -1084
  159. package/types/OrdersResource.d.ts +0 -2765
  160. package/types/QuoteLines.d.ts +0 -634
  161. package/types/QuotePhases.d.ts +0 -198
  162. package/types/QuotePhasesResource.d.ts +0 -67
  163. package/types/QuotePreviewInvoices.d.ts +0 -1532
  164. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  165. package/types/Tax/Associations.d.ts +0 -126
  166. package/types/Tax/AssociationsResource.d.ts +0 -29
  167. package/types/Tax/Forms.d.ts +0 -133
  168. package/types/Tax/FormsResource.d.ts +0 -90
  169. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  170. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -299,11 +299,6 @@ 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
-
307
302
  /**
308
303
  * 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`.
309
304
  */
@@ -339,11 +334,6 @@ declare module 'stripe' {
339
334
  */
340
335
  paypal?: PaymentMethodData.Paypal;
341
336
 
342
- /**
343
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
344
- */
345
- payto?: PaymentMethodData.Payto;
346
-
347
337
  /**
348
338
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
349
339
  */
@@ -359,11 +349,6 @@ declare module 'stripe' {
359
349
  */
360
350
  radar_options?: PaymentMethodData.RadarOptions;
361
351
 
362
- /**
363
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
364
- */
365
- rechnung?: PaymentMethodData.Rechnung;
366
-
367
352
  /**
368
353
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
369
354
  */
@@ -641,8 +626,6 @@ declare module 'stripe' {
641
626
 
642
627
  interface Link {}
643
628
 
644
- interface MbWay {}
645
-
646
629
  interface Mobilepay {}
647
630
 
648
631
  interface Multibanco {}
@@ -690,23 +673,6 @@ declare module 'stripe' {
690
673
 
691
674
  interface Paypal {}
692
675
 
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
-
710
676
  interface Pix {}
711
677
 
712
678
  interface Promptpay {}
@@ -718,32 +684,6 @@ declare module 'stripe' {
718
684
  session?: string;
719
685
  }
720
686
 
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
-
747
687
  interface RevolutPay {}
748
688
 
749
689
  interface SepaDebit {
@@ -789,17 +729,14 @@ declare module 'stripe' {
789
729
  | 'klarna'
790
730
  | 'konbini'
791
731
  | 'link'
792
- | 'mb_way'
793
732
  | 'mobilepay'
794
733
  | 'multibanco'
795
734
  | 'oxxo'
796
735
  | 'p24'
797
736
  | 'paynow'
798
737
  | 'paypal'
799
- | 'payto'
800
738
  | 'pix'
801
739
  | 'promptpay'
802
- | 'rechnung'
803
740
  | 'revolut_pay'
804
741
  | 'sepa_debit'
805
742
  | 'sofort'
@@ -883,11 +820,6 @@ declare module 'stripe' {
883
820
  */
884
821
  paypal?: PaymentMethodOptions.Paypal;
885
822
 
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
-
891
823
  /**
892
824
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
893
825
  */
@@ -1183,86 +1115,6 @@ declare module 'stripe' {
1183
1115
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1184
1116
  */
1185
1117
  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
- }
1266
1118
  }
1267
1119
 
1268
1120
  interface SepaDebit {
@@ -1305,11 +1157,6 @@ declare module 'stripe' {
1305
1157
  */
1306
1158
  filters?: FinancialConnections.Filters;
1307
1159
 
1308
- /**
1309
- * Customize manual entry behavior
1310
- */
1311
- manual_entry?: FinancialConnections.ManualEntry;
1312
-
1313
1160
  /**
1314
1161
  * 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`.
1315
1162
  */
@@ -1332,39 +1179,19 @@ declare module 'stripe' {
1332
1179
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1333
1180
  */
1334
1181
  account_subcategories?: Array<Filters.AccountSubcategory>;
1335
-
1336
- /**
1337
- * ID of the institution to use to filter for selectable accounts.
1338
- */
1339
- institution?: string;
1340
1182
  }
1341
1183
 
1342
1184
  namespace Filters {
1343
1185
  type AccountSubcategory = 'checking' | 'savings';
1344
1186
  }
1345
1187
 
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
-
1357
1188
  type Permission =
1358
1189
  | 'balances'
1359
1190
  | 'ownership'
1360
1191
  | 'payment_method'
1361
1192
  | 'transactions';
1362
1193
 
1363
- type Prefetch =
1364
- | 'balances'
1365
- | 'inferred_balances'
1366
- | 'ownership'
1367
- | 'transactions';
1194
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1368
1195
  }
1369
1196
 
1370
1197
  interface MandateOptions {
@@ -1599,11 +1426,6 @@ declare module 'stripe' {
1599
1426
  */
1600
1427
  link?: PaymentMethodData.Link;
1601
1428
 
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
-
1607
1429
  /**
1608
1430
  * 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`.
1609
1431
  */
@@ -1639,11 +1461,6 @@ declare module 'stripe' {
1639
1461
  */
1640
1462
  paypal?: PaymentMethodData.Paypal;
1641
1463
 
1642
- /**
1643
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1644
- */
1645
- payto?: PaymentMethodData.Payto;
1646
-
1647
1464
  /**
1648
1465
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1649
1466
  */
@@ -1659,11 +1476,6 @@ declare module 'stripe' {
1659
1476
  */
1660
1477
  radar_options?: PaymentMethodData.RadarOptions;
1661
1478
 
1662
- /**
1663
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1664
- */
1665
- rechnung?: PaymentMethodData.Rechnung;
1666
-
1667
1479
  /**
1668
1480
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1669
1481
  */
@@ -1941,8 +1753,6 @@ declare module 'stripe' {
1941
1753
 
1942
1754
  interface Link {}
1943
1755
 
1944
- interface MbWay {}
1945
-
1946
1756
  interface Mobilepay {}
1947
1757
 
1948
1758
  interface Multibanco {}
@@ -1990,23 +1800,6 @@ declare module 'stripe' {
1990
1800
 
1991
1801
  interface Paypal {}
1992
1802
 
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
-
2010
1803
  interface Pix {}
2011
1804
 
2012
1805
  interface Promptpay {}
@@ -2018,32 +1811,6 @@ declare module 'stripe' {
2018
1811
  session?: string;
2019
1812
  }
2020
1813
 
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
-
2047
1814
  interface RevolutPay {}
2048
1815
 
2049
1816
  interface SepaDebit {
@@ -2089,17 +1856,14 @@ declare module 'stripe' {
2089
1856
  | 'klarna'
2090
1857
  | 'konbini'
2091
1858
  | 'link'
2092
- | 'mb_way'
2093
1859
  | 'mobilepay'
2094
1860
  | 'multibanco'
2095
1861
  | 'oxxo'
2096
1862
  | 'p24'
2097
1863
  | 'paynow'
2098
1864
  | 'paypal'
2099
- | 'payto'
2100
1865
  | 'pix'
2101
1866
  | 'promptpay'
2102
- | 'rechnung'
2103
1867
  | 'revolut_pay'
2104
1868
  | 'sepa_debit'
2105
1869
  | 'sofort'
@@ -2183,11 +1947,6 @@ declare module 'stripe' {
2183
1947
  */
2184
1948
  paypal?: PaymentMethodOptions.Paypal;
2185
1949
 
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
-
2191
1950
  /**
2192
1951
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2193
1952
  */
@@ -2483,86 +2242,6 @@ declare module 'stripe' {
2483
2242
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2484
2243
  */
2485
2244
  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
- }
2566
2245
  }
2567
2246
 
2568
2247
  interface SepaDebit {
@@ -2605,11 +2284,6 @@ declare module 'stripe' {
2605
2284
  */
2606
2285
  filters?: FinancialConnections.Filters;
2607
2286
 
2608
- /**
2609
- * Customize manual entry behavior
2610
- */
2611
- manual_entry?: FinancialConnections.ManualEntry;
2612
-
2613
2287
  /**
2614
2288
  * 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`.
2615
2289
  */
@@ -2632,39 +2306,19 @@ declare module 'stripe' {
2632
2306
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2633
2307
  */
2634
2308
  account_subcategories?: Array<Filters.AccountSubcategory>;
2635
-
2636
- /**
2637
- * ID of the institution to use to filter for selectable accounts.
2638
- */
2639
- institution?: string;
2640
2309
  }
2641
2310
 
2642
2311
  namespace Filters {
2643
2312
  type AccountSubcategory = 'checking' | 'savings';
2644
2313
  }
2645
2314
 
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
-
2657
2315
  type Permission =
2658
2316
  | 'balances'
2659
2317
  | 'ownership'
2660
2318
  | 'payment_method'
2661
2319
  | 'transactions';
2662
2320
 
2663
- type Prefetch =
2664
- | 'balances'
2665
- | 'inferred_balances'
2666
- | 'ownership'
2667
- | 'transactions';
2321
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2668
2322
  }
2669
2323
 
2670
2324
  interface MandateOptions {
@@ -2948,11 +2602,6 @@ declare module 'stripe' {
2948
2602
  */
2949
2603
  link?: PaymentMethodData.Link;
2950
2604
 
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
-
2956
2605
  /**
2957
2606
  * 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`.
2958
2607
  */
@@ -2988,11 +2637,6 @@ declare module 'stripe' {
2988
2637
  */
2989
2638
  paypal?: PaymentMethodData.Paypal;
2990
2639
 
2991
- /**
2992
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2993
- */
2994
- payto?: PaymentMethodData.Payto;
2995
-
2996
2640
  /**
2997
2641
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2998
2642
  */
@@ -3008,11 +2652,6 @@ declare module 'stripe' {
3008
2652
  */
3009
2653
  radar_options?: PaymentMethodData.RadarOptions;
3010
2654
 
3011
- /**
3012
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
3013
- */
3014
- rechnung?: PaymentMethodData.Rechnung;
3015
-
3016
2655
  /**
3017
2656
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
3018
2657
  */
@@ -3290,8 +2929,6 @@ declare module 'stripe' {
3290
2929
 
3291
2930
  interface Link {}
3292
2931
 
3293
- interface MbWay {}
3294
-
3295
2932
  interface Mobilepay {}
3296
2933
 
3297
2934
  interface Multibanco {}
@@ -3339,23 +2976,6 @@ declare module 'stripe' {
3339
2976
 
3340
2977
  interface Paypal {}
3341
2978
 
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
-
3359
2979
  interface Pix {}
3360
2980
 
3361
2981
  interface Promptpay {}
@@ -3367,32 +2987,6 @@ declare module 'stripe' {
3367
2987
  session?: string;
3368
2988
  }
3369
2989
 
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
-
3396
2990
  interface RevolutPay {}
3397
2991
 
3398
2992
  interface SepaDebit {
@@ -3438,17 +3032,14 @@ declare module 'stripe' {
3438
3032
  | 'klarna'
3439
3033
  | 'konbini'
3440
3034
  | 'link'
3441
- | 'mb_way'
3442
3035
  | 'mobilepay'
3443
3036
  | 'multibanco'
3444
3037
  | 'oxxo'
3445
3038
  | 'p24'
3446
3039
  | 'paynow'
3447
3040
  | 'paypal'
3448
- | 'payto'
3449
3041
  | 'pix'
3450
3042
  | 'promptpay'
3451
- | 'rechnung'
3452
3043
  | 'revolut_pay'
3453
3044
  | 'sepa_debit'
3454
3045
  | 'sofort'
@@ -3532,11 +3123,6 @@ declare module 'stripe' {
3532
3123
  */
3533
3124
  paypal?: PaymentMethodOptions.Paypal;
3534
3125
 
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
-
3540
3126
  /**
3541
3127
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3542
3128
  */
@@ -3832,86 +3418,6 @@ declare module 'stripe' {
3832
3418
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3833
3419
  */
3834
3420
  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
- }
3915
3421
  }
3916
3422
 
3917
3423
  interface SepaDebit {
@@ -3954,11 +3460,6 @@ declare module 'stripe' {
3954
3460
  */
3955
3461
  filters?: FinancialConnections.Filters;
3956
3462
 
3957
- /**
3958
- * Customize manual entry behavior
3959
- */
3960
- manual_entry?: FinancialConnections.ManualEntry;
3961
-
3962
3463
  /**
3963
3464
  * 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`.
3964
3465
  */
@@ -3981,39 +3482,19 @@ declare module 'stripe' {
3981
3482
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3982
3483
  */
3983
3484
  account_subcategories?: Array<Filters.AccountSubcategory>;
3984
-
3985
- /**
3986
- * ID of the institution to use to filter for selectable accounts.
3987
- */
3988
- institution?: string;
3989
3485
  }
3990
3486
 
3991
3487
  namespace Filters {
3992
3488
  type AccountSubcategory = 'checking' | 'savings';
3993
3489
  }
3994
3490
 
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
-
4006
3491
  type Permission =
4007
3492
  | 'balances'
4008
3493
  | 'ownership'
4009
3494
  | 'payment_method'
4010
3495
  | 'transactions';
4011
3496
 
4012
- type Prefetch =
4013
- | 'balances'
4014
- | 'inferred_balances'
4015
- | 'ownership'
4016
- | 'transactions';
3497
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
4017
3498
  }
4018
3499
 
4019
3500
  interface MandateOptions {