stripe 16.9.0-beta.1 → 16.9.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 (174) hide show
  1. package/CHANGELOG.md +132 -809
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  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/Invoices.js +0 -17
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources.js +10 -40
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +4 -33
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -17
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -26
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +2 -30
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +2 -6
  34. package/types/AccountSessions.d.ts +0 -45
  35. package/types/AccountSessionsResource.d.ts +0 -260
  36. package/types/Accounts.d.ts +1 -106
  37. package/types/AccountsResource.d.ts +0 -246
  38. package/types/Charges.d.ts +3 -68
  39. package/types/ChargesResource.d.ts +6 -1296
  40. package/types/Checkout/Sessions.d.ts +6 -186
  41. package/types/Checkout/SessionsResource.d.ts +9 -351
  42. package/types/ConfirmationTokens.d.ts +0 -62
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomerSessions.d.ts +4 -0
  48. package/types/CustomersResource.d.ts +4 -4
  49. package/types/Disputes.d.ts +0 -158
  50. package/types/DisputesResource.d.ts +0 -120
  51. package/types/EventTypes.d.ts +0 -460
  52. package/types/Events.d.ts +0 -85
  53. package/types/FileLinksResource.d.ts +1 -1
  54. package/types/Files.d.ts +1 -0
  55. package/types/FilesResource.d.ts +3 -1
  56. package/types/FinancialConnections/Accounts.d.ts +1 -29
  57. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  58. package/types/FinancialConnections/Sessions.d.ts +1 -49
  59. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  60. package/types/InvoiceItems.d.ts +0 -5
  61. package/types/InvoiceItemsResource.d.ts +0 -98
  62. package/types/InvoiceLineItems.d.ts +3 -23
  63. package/types/Invoices.d.ts +3 -117
  64. package/types/InvoicesResource.d.ts +1759 -5414
  65. package/types/Issuing/CardholdersResource.d.ts +1 -2
  66. package/types/Issuing/Cards.d.ts +1 -1
  67. package/types/LineItems.d.ts +1 -8
  68. package/types/Mandates.d.ts +0 -77
  69. package/types/PaymentIntents.d.ts +4 -488
  70. package/types/PaymentIntentsResource.d.ts +3460 -6970
  71. package/types/PaymentLinks.d.ts +0 -1
  72. package/types/PaymentLinksResource.d.ts +8 -6
  73. package/types/PaymentMethodConfigurations.d.ts +0 -36
  74. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  75. package/types/PaymentMethods.d.ts +0 -62
  76. package/types/PaymentMethodsResource.d.ts +0 -110
  77. package/types/Prices.d.ts +0 -22
  78. package/types/PricesResource.d.ts +0 -22
  79. package/types/Products.d.ts +0 -39
  80. package/types/ProductsResource.d.ts +0 -36
  81. package/types/Quotes.d.ts +1 -596
  82. package/types/QuotesResource.d.ts +266 -3175
  83. package/types/SetupAttempts.d.ts +0 -9
  84. package/types/SetupIntents.d.ts +1 -110
  85. package/types/SetupIntentsResource.d.ts +3 -498
  86. package/types/Sources.d.ts +0 -23
  87. package/types/SubscriptionItems.d.ts +0 -21
  88. package/types/SubscriptionItemsResource.d.ts +0 -109
  89. package/types/SubscriptionSchedules.d.ts +0 -200
  90. package/types/SubscriptionSchedulesResource.d.ts +15 -1233
  91. package/types/Subscriptions.d.ts +1 -82
  92. package/types/SubscriptionsResource.d.ts +4 -349
  93. package/types/Tax/Calculations.d.ts +2 -1
  94. package/types/Tax/CalculationsResource.d.ts +3 -2
  95. package/types/Tax/Transactions.d.ts +2 -1
  96. package/types/TaxIds.d.ts +2 -1
  97. package/types/TaxIdsResource.d.ts +2 -1
  98. package/types/Terminal/Readers.d.ts +0 -278
  99. package/types/Terminal/ReadersResource.d.ts +0 -208
  100. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -55
  101. package/types/TestHelpers/TestClocks.d.ts +15 -0
  102. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  103. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  104. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  105. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  106. package/types/Treasury/InboundTransfers.d.ts +3 -1
  107. package/types/Treasury/OutboundPayments.d.ts +3 -1
  108. package/types/Treasury/OutboundTransfers.d.ts +3 -27
  109. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  110. package/types/Treasury/ReceivedCredits.d.ts +3 -27
  111. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  112. package/types/Treasury/TransactionEntries.d.ts +9 -3
  113. package/types/Treasury/Transactions.d.ts +9 -3
  114. package/types/WebhookEndpointsResource.d.ts +0 -54
  115. package/types/Webhooks.d.ts +37 -28
  116. package/types/index.d.ts +0 -67
  117. package/types/lib.d.ts +0 -12
  118. package/cjs/resources/AccountNotices.js +0 -21
  119. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  120. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  121. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  122. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  123. package/cjs/resources/GiftCards/Cards.js +0 -23
  124. package/cjs/resources/GiftCards/Transactions.js +0 -33
  125. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  126. package/cjs/resources/Margins.js +0 -22
  127. package/cjs/resources/Orders.js +0 -24
  128. package/cjs/resources/QuotePhases.js +0 -22
  129. package/cjs/resources/Tax/Associations.js +0 -9
  130. package/cjs/resources/Tax/Forms.js +0 -20
  131. package/esm/resources/AccountNotices.js +0 -18
  132. package/esm/resources/Capital/FinancingOffers.js +0 -18
  133. package/esm/resources/Capital/FinancingSummary.js +0 -9
  134. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  135. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  136. package/esm/resources/GiftCards/Cards.js +0 -20
  137. package/esm/resources/GiftCards/Transactions.js +0 -30
  138. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  139. package/esm/resources/Margins.js +0 -19
  140. package/esm/resources/Orders.js +0 -21
  141. package/esm/resources/QuotePhases.js +0 -19
  142. package/esm/resources/Tax/Associations.js +0 -6
  143. package/esm/resources/Tax/Forms.js +0 -17
  144. package/types/AccountNotices.d.ts +0 -113
  145. package/types/AccountNoticesResource.d.ts +0 -98
  146. package/types/Capital/FinancingOffers.d.ts +0 -188
  147. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  148. package/types/Capital/FinancingSummary.d.ts +0 -106
  149. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  150. package/types/Capital/FinancingTransactions.d.ts +0 -135
  151. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  152. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  153. package/types/FinancialConnections/Institutions.d.ts +0 -93
  154. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  155. package/types/GiftCards/Cards.d.ts +0 -118
  156. package/types/GiftCards/CardsResource.d.ts +0 -159
  157. package/types/GiftCards/Transactions.d.ts +0 -129
  158. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  159. package/types/InvoicePayments.d.ts +0 -138
  160. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  161. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  162. package/types/Margins.d.ts +0 -56
  163. package/types/MarginsResource.d.ts +0 -114
  164. package/types/Orders.d.ts +0 -1083
  165. package/types/OrdersResource.d.ts +0 -2763
  166. package/types/QuoteLines.d.ts +0 -634
  167. package/types/QuotePhases.d.ts +0 -198
  168. package/types/QuotePhasesResource.d.ts +0 -67
  169. package/types/QuotePreviewInvoices.d.ts +0 -1530
  170. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  171. package/types/Tax/Associations.d.ts +0 -126
  172. package/types/Tax/AssociationsResource.d.ts +0 -29
  173. package/types/Tax/Forms.d.ts +0 -133
  174. package/types/Tax/FormsResource.d.ts +0 -90
@@ -334,11 +334,6 @@ declare module 'stripe' {
334
334
  */
335
335
  paypal?: PaymentMethodData.Paypal;
336
336
 
337
- /**
338
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
339
- */
340
- payto?: PaymentMethodData.Payto;
341
-
342
337
  /**
343
338
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
344
339
  */
@@ -354,11 +349,6 @@ declare module 'stripe' {
354
349
  */
355
350
  radar_options?: PaymentMethodData.RadarOptions;
356
351
 
357
- /**
358
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
359
- */
360
- rechnung?: PaymentMethodData.Rechnung;
361
-
362
352
  /**
363
353
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
364
354
  */
@@ -683,23 +673,6 @@ declare module 'stripe' {
683
673
 
684
674
  interface Paypal {}
685
675
 
686
- interface Payto {
687
- /**
688
- * The account number for the bank account.
689
- */
690
- account_number?: string;
691
-
692
- /**
693
- * Bank-State-Branch number of the bank account.
694
- */
695
- bsb_number?: string;
696
-
697
- /**
698
- * The PayID alias for the bank account.
699
- */
700
- pay_id?: string;
701
- }
702
-
703
676
  interface Pix {}
704
677
 
705
678
  interface Promptpay {}
@@ -711,32 +684,6 @@ declare module 'stripe' {
711
684
  session?: string;
712
685
  }
713
686
 
714
- interface Rechnung {
715
- /**
716
- * Customer's date of birth
717
- */
718
- dob: Rechnung.Dob;
719
- }
720
-
721
- namespace Rechnung {
722
- interface Dob {
723
- /**
724
- * The day of birth, between 1 and 31.
725
- */
726
- day: number;
727
-
728
- /**
729
- * The month of birth, between 1 and 12.
730
- */
731
- month: number;
732
-
733
- /**
734
- * The four-digit year of birth.
735
- */
736
- year: number;
737
- }
738
- }
739
-
740
687
  interface RevolutPay {}
741
688
 
742
689
  interface SepaDebit {
@@ -788,10 +735,8 @@ declare module 'stripe' {
788
735
  | 'p24'
789
736
  | 'paynow'
790
737
  | 'paypal'
791
- | 'payto'
792
738
  | 'pix'
793
739
  | 'promptpay'
794
- | 'rechnung'
795
740
  | 'revolut_pay'
796
741
  | 'sepa_debit'
797
742
  | 'sofort'
@@ -875,11 +820,6 @@ declare module 'stripe' {
875
820
  */
876
821
  paypal?: PaymentMethodOptions.Paypal;
877
822
 
878
- /**
879
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
880
- */
881
- payto?: PaymentMethodOptions.Payto;
882
-
883
823
  /**
884
824
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
885
825
  */
@@ -1175,86 +1115,6 @@ declare module 'stripe' {
1175
1115
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1176
1116
  */
1177
1117
  billing_agreement_id?: string;
1178
-
1179
- currency?: string;
1180
-
1181
- /**
1182
- * 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.
1183
- */
1184
- subsellers?: Array<string>;
1185
- }
1186
-
1187
- interface Payto {
1188
- /**
1189
- * Additional fields for Mandate creation.
1190
- */
1191
- mandate_options?: Payto.MandateOptions;
1192
- }
1193
-
1194
- namespace Payto {
1195
- interface MandateOptions {
1196
- /**
1197
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
1198
- */
1199
- amount?: number;
1200
-
1201
- /**
1202
- * 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.
1203
- */
1204
- amount_type?: MandateOptions.AmountType;
1205
-
1206
- /**
1207
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1208
- */
1209
- end_date?: string;
1210
-
1211
- /**
1212
- * The periodicity at which payments will be collected.
1213
- */
1214
- payment_schedule?: MandateOptions.PaymentSchedule;
1215
-
1216
- /**
1217
- * 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.
1218
- */
1219
- payments_per_period?: number;
1220
-
1221
- /**
1222
- * The purpose for which payments are made. Defaults to retail.
1223
- */
1224
- purpose?: MandateOptions.Purpose;
1225
-
1226
- /**
1227
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1228
- */
1229
- start_date?: string;
1230
- }
1231
-
1232
- namespace MandateOptions {
1233
- type AmountType = 'fixed' | 'maximum';
1234
-
1235
- type PaymentSchedule =
1236
- | 'adhoc'
1237
- | 'annual'
1238
- | 'daily'
1239
- | 'fortnightly'
1240
- | 'monthly'
1241
- | 'quarterly'
1242
- | 'semi_annual'
1243
- | 'weekly';
1244
-
1245
- type Purpose =
1246
- | 'dependant_support'
1247
- | 'government'
1248
- | 'loan'
1249
- | 'mortgage'
1250
- | 'other'
1251
- | 'pension'
1252
- | 'personal'
1253
- | 'retail'
1254
- | 'salary'
1255
- | 'tax'
1256
- | 'utility';
1257
- }
1258
1118
  }
1259
1119
 
1260
1120
  interface SepaDebit {
@@ -1297,11 +1157,6 @@ declare module 'stripe' {
1297
1157
  */
1298
1158
  filters?: FinancialConnections.Filters;
1299
1159
 
1300
- /**
1301
- * Customize manual entry behavior
1302
- */
1303
- manual_entry?: FinancialConnections.ManualEntry;
1304
-
1305
1160
  /**
1306
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`.
1307
1162
  */
@@ -1324,39 +1179,19 @@ declare module 'stripe' {
1324
1179
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1325
1180
  */
1326
1181
  account_subcategories?: Array<Filters.AccountSubcategory>;
1327
-
1328
- /**
1329
- * ID of the institution to use to filter for selectable accounts.
1330
- */
1331
- institution?: string;
1332
1182
  }
1333
1183
 
1334
1184
  namespace Filters {
1335
1185
  type AccountSubcategory = 'checking' | 'savings';
1336
1186
  }
1337
1187
 
1338
- interface ManualEntry {
1339
- /**
1340
- * Settings for configuring manual entry of account details.
1341
- */
1342
- mode: ManualEntry.Mode;
1343
- }
1344
-
1345
- namespace ManualEntry {
1346
- type Mode = 'automatic' | 'custom';
1347
- }
1348
-
1349
1188
  type Permission =
1350
1189
  | 'balances'
1351
1190
  | 'ownership'
1352
1191
  | 'payment_method'
1353
1192
  | 'transactions';
1354
1193
 
1355
- type Prefetch =
1356
- | 'balances'
1357
- | 'inferred_balances'
1358
- | 'ownership'
1359
- | 'transactions';
1194
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
1360
1195
  }
1361
1196
 
1362
1197
  interface MandateOptions {
@@ -1626,11 +1461,6 @@ declare module 'stripe' {
1626
1461
  */
1627
1462
  paypal?: PaymentMethodData.Paypal;
1628
1463
 
1629
- /**
1630
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1631
- */
1632
- payto?: PaymentMethodData.Payto;
1633
-
1634
1464
  /**
1635
1465
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1636
1466
  */
@@ -1646,11 +1476,6 @@ declare module 'stripe' {
1646
1476
  */
1647
1477
  radar_options?: PaymentMethodData.RadarOptions;
1648
1478
 
1649
- /**
1650
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
1651
- */
1652
- rechnung?: PaymentMethodData.Rechnung;
1653
-
1654
1479
  /**
1655
1480
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1656
1481
  */
@@ -1975,23 +1800,6 @@ declare module 'stripe' {
1975
1800
 
1976
1801
  interface Paypal {}
1977
1802
 
1978
- interface Payto {
1979
- /**
1980
- * The account number for the bank account.
1981
- */
1982
- account_number?: string;
1983
-
1984
- /**
1985
- * Bank-State-Branch number of the bank account.
1986
- */
1987
- bsb_number?: string;
1988
-
1989
- /**
1990
- * The PayID alias for the bank account.
1991
- */
1992
- pay_id?: string;
1993
- }
1994
-
1995
1803
  interface Pix {}
1996
1804
 
1997
1805
  interface Promptpay {}
@@ -2003,32 +1811,6 @@ declare module 'stripe' {
2003
1811
  session?: string;
2004
1812
  }
2005
1813
 
2006
- interface Rechnung {
2007
- /**
2008
- * Customer's date of birth
2009
- */
2010
- dob: Rechnung.Dob;
2011
- }
2012
-
2013
- namespace Rechnung {
2014
- interface Dob {
2015
- /**
2016
- * The day of birth, between 1 and 31.
2017
- */
2018
- day: number;
2019
-
2020
- /**
2021
- * The month of birth, between 1 and 12.
2022
- */
2023
- month: number;
2024
-
2025
- /**
2026
- * The four-digit year of birth.
2027
- */
2028
- year: number;
2029
- }
2030
- }
2031
-
2032
1814
  interface RevolutPay {}
2033
1815
 
2034
1816
  interface SepaDebit {
@@ -2080,10 +1862,8 @@ declare module 'stripe' {
2080
1862
  | 'p24'
2081
1863
  | 'paynow'
2082
1864
  | 'paypal'
2083
- | 'payto'
2084
1865
  | 'pix'
2085
1866
  | 'promptpay'
2086
- | 'rechnung'
2087
1867
  | 'revolut_pay'
2088
1868
  | 'sepa_debit'
2089
1869
  | 'sofort'
@@ -2167,11 +1947,6 @@ declare module 'stripe' {
2167
1947
  */
2168
1948
  paypal?: PaymentMethodOptions.Paypal;
2169
1949
 
2170
- /**
2171
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2172
- */
2173
- payto?: PaymentMethodOptions.Payto;
2174
-
2175
1950
  /**
2176
1951
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
2177
1952
  */
@@ -2467,86 +2242,6 @@ declare module 'stripe' {
2467
2242
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2468
2243
  */
2469
2244
  billing_agreement_id?: string;
2470
-
2471
- currency?: string;
2472
-
2473
- /**
2474
- * 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.
2475
- */
2476
- subsellers?: Array<string>;
2477
- }
2478
-
2479
- interface Payto {
2480
- /**
2481
- * Additional fields for Mandate creation.
2482
- */
2483
- mandate_options?: Payto.MandateOptions;
2484
- }
2485
-
2486
- namespace Payto {
2487
- interface MandateOptions {
2488
- /**
2489
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2490
- */
2491
- amount?: number;
2492
-
2493
- /**
2494
- * 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.
2495
- */
2496
- amount_type?: MandateOptions.AmountType;
2497
-
2498
- /**
2499
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2500
- */
2501
- end_date?: string;
2502
-
2503
- /**
2504
- * The periodicity at which payments will be collected.
2505
- */
2506
- payment_schedule?: MandateOptions.PaymentSchedule;
2507
-
2508
- /**
2509
- * 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.
2510
- */
2511
- payments_per_period?: number;
2512
-
2513
- /**
2514
- * The purpose for which payments are made. Defaults to retail.
2515
- */
2516
- purpose?: MandateOptions.Purpose;
2517
-
2518
- /**
2519
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2520
- */
2521
- start_date?: string;
2522
- }
2523
-
2524
- namespace MandateOptions {
2525
- type AmountType = 'fixed' | 'maximum';
2526
-
2527
- type PaymentSchedule =
2528
- | 'adhoc'
2529
- | 'annual'
2530
- | 'daily'
2531
- | 'fortnightly'
2532
- | 'monthly'
2533
- | 'quarterly'
2534
- | 'semi_annual'
2535
- | 'weekly';
2536
-
2537
- type Purpose =
2538
- | 'dependant_support'
2539
- | 'government'
2540
- | 'loan'
2541
- | 'mortgage'
2542
- | 'other'
2543
- | 'pension'
2544
- | 'personal'
2545
- | 'retail'
2546
- | 'salary'
2547
- | 'tax'
2548
- | 'utility';
2549
- }
2550
2245
  }
2551
2246
 
2552
2247
  interface SepaDebit {
@@ -2589,11 +2284,6 @@ declare module 'stripe' {
2589
2284
  */
2590
2285
  filters?: FinancialConnections.Filters;
2591
2286
 
2592
- /**
2593
- * Customize manual entry behavior
2594
- */
2595
- manual_entry?: FinancialConnections.ManualEntry;
2596
-
2597
2287
  /**
2598
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`.
2599
2289
  */
@@ -2616,39 +2306,19 @@ declare module 'stripe' {
2616
2306
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2617
2307
  */
2618
2308
  account_subcategories?: Array<Filters.AccountSubcategory>;
2619
-
2620
- /**
2621
- * ID of the institution to use to filter for selectable accounts.
2622
- */
2623
- institution?: string;
2624
2309
  }
2625
2310
 
2626
2311
  namespace Filters {
2627
2312
  type AccountSubcategory = 'checking' | 'savings';
2628
2313
  }
2629
2314
 
2630
- interface ManualEntry {
2631
- /**
2632
- * Settings for configuring manual entry of account details.
2633
- */
2634
- mode: ManualEntry.Mode;
2635
- }
2636
-
2637
- namespace ManualEntry {
2638
- type Mode = 'automatic' | 'custom';
2639
- }
2640
-
2641
2315
  type Permission =
2642
2316
  | 'balances'
2643
2317
  | 'ownership'
2644
2318
  | 'payment_method'
2645
2319
  | 'transactions';
2646
2320
 
2647
- type Prefetch =
2648
- | 'balances'
2649
- | 'inferred_balances'
2650
- | 'ownership'
2651
- | 'transactions';
2321
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2652
2322
  }
2653
2323
 
2654
2324
  interface MandateOptions {
@@ -2967,11 +2637,6 @@ declare module 'stripe' {
2967
2637
  */
2968
2638
  paypal?: PaymentMethodData.Paypal;
2969
2639
 
2970
- /**
2971
- * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2972
- */
2973
- payto?: PaymentMethodData.Payto;
2974
-
2975
2640
  /**
2976
2641
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2977
2642
  */
@@ -2987,11 +2652,6 @@ declare module 'stripe' {
2987
2652
  */
2988
2653
  radar_options?: PaymentMethodData.RadarOptions;
2989
2654
 
2990
- /**
2991
- * If this is a `rechnung` PaymentMethod, this hash contains details about the Rechnung payment method.
2992
- */
2993
- rechnung?: PaymentMethodData.Rechnung;
2994
-
2995
2655
  /**
2996
2656
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2997
2657
  */
@@ -3316,23 +2976,6 @@ declare module 'stripe' {
3316
2976
 
3317
2977
  interface Paypal {}
3318
2978
 
3319
- interface Payto {
3320
- /**
3321
- * The account number for the bank account.
3322
- */
3323
- account_number?: string;
3324
-
3325
- /**
3326
- * Bank-State-Branch number of the bank account.
3327
- */
3328
- bsb_number?: string;
3329
-
3330
- /**
3331
- * The PayID alias for the bank account.
3332
- */
3333
- pay_id?: string;
3334
- }
3335
-
3336
2979
  interface Pix {}
3337
2980
 
3338
2981
  interface Promptpay {}
@@ -3344,32 +2987,6 @@ declare module 'stripe' {
3344
2987
  session?: string;
3345
2988
  }
3346
2989
 
3347
- interface Rechnung {
3348
- /**
3349
- * Customer's date of birth
3350
- */
3351
- dob: Rechnung.Dob;
3352
- }
3353
-
3354
- namespace Rechnung {
3355
- interface Dob {
3356
- /**
3357
- * The day of birth, between 1 and 31.
3358
- */
3359
- day: number;
3360
-
3361
- /**
3362
- * The month of birth, between 1 and 12.
3363
- */
3364
- month: number;
3365
-
3366
- /**
3367
- * The four-digit year of birth.
3368
- */
3369
- year: number;
3370
- }
3371
- }
3372
-
3373
2990
  interface RevolutPay {}
3374
2991
 
3375
2992
  interface SepaDebit {
@@ -3421,10 +3038,8 @@ declare module 'stripe' {
3421
3038
  | 'p24'
3422
3039
  | 'paynow'
3423
3040
  | 'paypal'
3424
- | 'payto'
3425
3041
  | 'pix'
3426
3042
  | 'promptpay'
3427
- | 'rechnung'
3428
3043
  | 'revolut_pay'
3429
3044
  | 'sepa_debit'
3430
3045
  | 'sofort'
@@ -3508,11 +3123,6 @@ declare module 'stripe' {
3508
3123
  */
3509
3124
  paypal?: PaymentMethodOptions.Paypal;
3510
3125
 
3511
- /**
3512
- * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
3513
- */
3514
- payto?: PaymentMethodOptions.Payto;
3515
-
3516
3126
  /**
3517
3127
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3518
3128
  */
@@ -3808,86 +3418,6 @@ declare module 'stripe' {
3808
3418
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3809
3419
  */
3810
3420
  billing_agreement_id?: string;
3811
-
3812
- currency?: string;
3813
-
3814
- /**
3815
- * 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.
3816
- */
3817
- subsellers?: Array<string>;
3818
- }
3819
-
3820
- interface Payto {
3821
- /**
3822
- * Additional fields for Mandate creation.
3823
- */
3824
- mandate_options?: Payto.MandateOptions;
3825
- }
3826
-
3827
- namespace Payto {
3828
- interface MandateOptions {
3829
- /**
3830
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
3831
- */
3832
- amount?: number;
3833
-
3834
- /**
3835
- * 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.
3836
- */
3837
- amount_type?: MandateOptions.AmountType;
3838
-
3839
- /**
3840
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3841
- */
3842
- end_date?: string;
3843
-
3844
- /**
3845
- * The periodicity at which payments will be collected.
3846
- */
3847
- payment_schedule?: MandateOptions.PaymentSchedule;
3848
-
3849
- /**
3850
- * 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.
3851
- */
3852
- payments_per_period?: number;
3853
-
3854
- /**
3855
- * The purpose for which payments are made. Defaults to retail.
3856
- */
3857
- purpose?: MandateOptions.Purpose;
3858
-
3859
- /**
3860
- * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
3861
- */
3862
- start_date?: string;
3863
- }
3864
-
3865
- namespace MandateOptions {
3866
- type AmountType = 'fixed' | 'maximum';
3867
-
3868
- type PaymentSchedule =
3869
- | 'adhoc'
3870
- | 'annual'
3871
- | 'daily'
3872
- | 'fortnightly'
3873
- | 'monthly'
3874
- | 'quarterly'
3875
- | 'semi_annual'
3876
- | 'weekly';
3877
-
3878
- type Purpose =
3879
- | 'dependant_support'
3880
- | 'government'
3881
- | 'loan'
3882
- | 'mortgage'
3883
- | 'other'
3884
- | 'pension'
3885
- | 'personal'
3886
- | 'retail'
3887
- | 'salary'
3888
- | 'tax'
3889
- | 'utility';
3890
- }
3891
3421
  }
3892
3422
 
3893
3423
  interface SepaDebit {
@@ -3930,11 +3460,6 @@ declare module 'stripe' {
3930
3460
  */
3931
3461
  filters?: FinancialConnections.Filters;
3932
3462
 
3933
- /**
3934
- * Customize manual entry behavior
3935
- */
3936
- manual_entry?: FinancialConnections.ManualEntry;
3937
-
3938
3463
  /**
3939
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`.
3940
3465
  */
@@ -3957,39 +3482,19 @@ declare module 'stripe' {
3957
3482
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3958
3483
  */
3959
3484
  account_subcategories?: Array<Filters.AccountSubcategory>;
3960
-
3961
- /**
3962
- * ID of the institution to use to filter for selectable accounts.
3963
- */
3964
- institution?: string;
3965
3485
  }
3966
3486
 
3967
3487
  namespace Filters {
3968
3488
  type AccountSubcategory = 'checking' | 'savings';
3969
3489
  }
3970
3490
 
3971
- interface ManualEntry {
3972
- /**
3973
- * Settings for configuring manual entry of account details.
3974
- */
3975
- mode: ManualEntry.Mode;
3976
- }
3977
-
3978
- namespace ManualEntry {
3979
- type Mode = 'automatic' | 'custom';
3980
- }
3981
-
3982
3491
  type Permission =
3983
3492
  | 'balances'
3984
3493
  | 'ownership'
3985
3494
  | 'payment_method'
3986
3495
  | 'transactions';
3987
3496
 
3988
- type Prefetch =
3989
- | 'balances'
3990
- | 'inferred_balances'
3991
- | 'ownership'
3992
- | 'transactions';
3497
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
3993
3498
  }
3994
3499
 
3995
3500
  interface MandateOptions {