stripe 16.4.0 → 16.6.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 (167) hide show
  1. package/CHANGELOG.md +794 -109
  2. package/README.md +33 -0
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +66 -5
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +2 -1
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/AccountNotices.js +21 -0
  9. package/cjs/resources/Billing/Alerts.js +27 -0
  10. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  11. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  12. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  13. package/cjs/resources/Checkout/Sessions.js +4 -0
  14. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  15. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  16. package/cjs/resources/GiftCards/Cards.js +23 -0
  17. package/cjs/resources/GiftCards/Transactions.js +33 -0
  18. package/cjs/resources/Invoices.js +13 -0
  19. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  20. package/cjs/resources/Margins.js +22 -0
  21. package/cjs/resources/OAuth.js +1 -1
  22. package/cjs/resources/Orders.js +24 -0
  23. package/cjs/resources/PaymentIntents.js +4 -0
  24. package/cjs/resources/QuotePhases.js +22 -0
  25. package/cjs/resources/Quotes.js +32 -0
  26. package/cjs/resources/SubscriptionSchedules.js +4 -0
  27. package/cjs/resources/Tax/Associations.js +9 -0
  28. package/cjs/resources/Tax/Forms.js +20 -0
  29. package/cjs/resources/Terminal/Readers.js +12 -0
  30. package/cjs/resources.js +42 -10
  31. package/cjs/stripe.core.js +6 -3
  32. package/cjs/utils.js +30 -3
  33. package/esm/RequestSender.js +67 -6
  34. package/esm/StripeResource.js +2 -2
  35. package/esm/apiVersion.js +1 -0
  36. package/esm/multipart.js +2 -2
  37. package/esm/resources/AccountNotices.js +18 -0
  38. package/esm/resources/Billing/Alerts.js +24 -0
  39. package/esm/resources/Capital/FinancingOffers.js +18 -0
  40. package/esm/resources/Capital/FinancingSummary.js +9 -0
  41. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  42. package/esm/resources/Checkout/Sessions.js +4 -0
  43. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  44. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  45. package/esm/resources/GiftCards/Cards.js +20 -0
  46. package/esm/resources/GiftCards/Transactions.js +30 -0
  47. package/esm/resources/Invoices.js +13 -0
  48. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  49. package/esm/resources/Margins.js +19 -0
  50. package/esm/resources/OAuth.js +2 -2
  51. package/esm/resources/Orders.js +21 -0
  52. package/esm/resources/PaymentIntents.js +4 -0
  53. package/esm/resources/QuotePhases.js +19 -0
  54. package/esm/resources/Quotes.js +32 -0
  55. package/esm/resources/SubscriptionSchedules.js +4 -0
  56. package/esm/resources/Tax/Associations.js +6 -0
  57. package/esm/resources/Tax/Forms.js +17 -0
  58. package/esm/resources/Terminal/Readers.js +12 -0
  59. package/esm/resources.js +28 -0
  60. package/esm/stripe.core.js +6 -3
  61. package/esm/utils.js +27 -1
  62. package/package.json +1 -1
  63. package/types/AccountLinksResource.d.ts +5 -1
  64. package/types/AccountNotices.d.ts +113 -0
  65. package/types/AccountNoticesResource.d.ts +98 -0
  66. package/types/AccountSessions.d.ts +45 -0
  67. package/types/AccountSessionsResource.d.ts +205 -0
  68. package/types/Accounts.d.ts +109 -4
  69. package/types/AccountsResource.d.ts +272 -26
  70. package/types/Billing/AlertTriggereds.d.ts +42 -0
  71. package/types/Billing/Alerts.d.ts +80 -0
  72. package/types/Billing/AlertsResource.d.ts +176 -0
  73. package/types/Capital/FinancingOffers.d.ts +188 -0
  74. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  75. package/types/Capital/FinancingSummary.d.ts +106 -0
  76. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  77. package/types/Capital/FinancingTransactions.d.ts +135 -0
  78. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  79. package/types/Charges.d.ts +106 -3
  80. package/types/ChargesResource.d.ts +1294 -0
  81. package/types/Checkout/Sessions.d.ts +28 -1
  82. package/types/Checkout/SessionsResource.d.ts +36 -1
  83. package/types/ConfirmationTokens.d.ts +80 -0
  84. package/types/Coupons.d.ts +1 -1
  85. package/types/CouponsResource.d.ts +1 -1
  86. package/types/CreditNotes.d.ts +21 -0
  87. package/types/CreditNotesResource.d.ts +51 -0
  88. package/types/CustomersResource.d.ts +2 -0
  89. package/types/Disputes.d.ts +177 -0
  90. package/types/DisputesResource.d.ts +120 -0
  91. package/types/EventTypes.d.ts +477 -0
  92. package/types/Events.d.ts +86 -0
  93. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  94. package/types/FinancialConnections/Accounts.d.ts +29 -1
  95. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  96. package/types/FinancialConnections/Institutions.d.ts +93 -0
  97. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  98. package/types/FinancialConnections/Sessions.d.ts +49 -1
  99. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  100. package/types/GiftCards/Cards.d.ts +118 -0
  101. package/types/GiftCards/CardsResource.d.ts +159 -0
  102. package/types/GiftCards/Transactions.d.ts +129 -0
  103. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  104. package/types/InvoiceItems.d.ts +5 -0
  105. package/types/InvoiceItemsResource.d.ts +98 -0
  106. package/types/InvoiceLineItems.d.ts +22 -0
  107. package/types/InvoicePayments.d.ts +138 -0
  108. package/types/Invoices.d.ts +116 -1
  109. package/types/InvoicesResource.d.ts +5395 -1818
  110. package/types/Issuing/CardholdersResource.d.ts +2 -1
  111. package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
  112. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
  113. package/types/LineItems.d.ts +7 -0
  114. package/types/Mandates.d.ts +77 -0
  115. package/types/Margins.d.ts +56 -0
  116. package/types/MarginsResource.d.ts +114 -0
  117. package/types/Orders.d.ts +1057 -0
  118. package/types/OrdersResource.d.ts +2711 -0
  119. package/types/PaymentIntents.d.ts +491 -2
  120. package/types/PaymentIntentsResource.d.ts +6884 -3356
  121. package/types/PaymentMethodConfigurations.d.ts +72 -0
  122. package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
  123. package/types/PaymentMethods.d.ts +80 -0
  124. package/types/PaymentMethodsResource.d.ts +110 -0
  125. package/types/Prices.d.ts +22 -0
  126. package/types/PricesResource.d.ts +22 -0
  127. package/types/Products.d.ts +39 -0
  128. package/types/ProductsResource.d.ts +36 -0
  129. package/types/QuoteLines.d.ts +634 -0
  130. package/types/QuotePhases.d.ts +198 -0
  131. package/types/QuotePhasesResource.d.ts +67 -0
  132. package/types/QuotePreviewInvoices.d.ts +1528 -0
  133. package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
  134. package/types/Quotes.d.ts +578 -1
  135. package/types/QuotesResource.d.ts +3174 -265
  136. package/types/RefundsResource.d.ts +1 -1
  137. package/types/SetupAttempts.d.ts +9 -0
  138. package/types/SetupIntents.d.ts +110 -1
  139. package/types/SetupIntentsResource.d.ts +498 -3
  140. package/types/Sources.d.ts +23 -0
  141. package/types/SubscriptionItems.d.ts +21 -0
  142. package/types/SubscriptionItemsResource.d.ts +109 -0
  143. package/types/SubscriptionSchedules.d.ts +164 -0
  144. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  145. package/types/Subscriptions.d.ts +46 -1
  146. package/types/SubscriptionsResource.d.ts +347 -2
  147. package/types/Tax/Associations.d.ts +126 -0
  148. package/types/Tax/AssociationsResource.d.ts +29 -0
  149. package/types/Tax/Calculations.d.ts +1 -1
  150. package/types/Tax/CalculationsResource.d.ts +1 -3
  151. package/types/Tax/Forms.d.ts +133 -0
  152. package/types/Tax/FormsResource.d.ts +90 -0
  153. package/types/Terminal/Readers.d.ts +278 -0
  154. package/types/Terminal/ReadersResource.d.ts +208 -0
  155. package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
  156. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  157. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  158. package/types/TokensResource.d.ts +7 -7
  159. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  160. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  161. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  162. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  163. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  164. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  165. package/types/WebhookEndpointsResource.d.ts +56 -0
  166. package/types/index.d.ts +71 -0
  167. package/types/lib.d.ts +12 -0
@@ -334,6 +334,11 @@ 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
+
337
342
  /**
338
343
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
339
344
  */
@@ -349,6 +354,11 @@ declare module 'stripe' {
349
354
  */
350
355
  radar_options?: PaymentMethodData.RadarOptions;
351
356
 
357
+ /**
358
+ * If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
359
+ */
360
+ rechnung?: PaymentMethodData.Rechnung;
361
+
352
362
  /**
353
363
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
354
364
  */
@@ -673,6 +683,23 @@ declare module 'stripe' {
673
683
 
674
684
  interface Paypal {}
675
685
 
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
+
676
703
  interface Pix {}
677
704
 
678
705
  interface Promptpay {}
@@ -684,6 +711,32 @@ declare module 'stripe' {
684
711
  session?: string;
685
712
  }
686
713
 
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
+
687
740
  interface RevolutPay {}
688
741
 
689
742
  interface SepaDebit {
@@ -735,8 +788,10 @@ declare module 'stripe' {
735
788
  | 'p24'
736
789
  | 'paynow'
737
790
  | 'paypal'
791
+ | 'payto'
738
792
  | 'pix'
739
793
  | 'promptpay'
794
+ | 'rechnung'
740
795
  | 'revolut_pay'
741
796
  | 'sepa_debit'
742
797
  | 'sofort'
@@ -815,6 +870,11 @@ declare module 'stripe' {
815
870
  */
816
871
  paypal?: PaymentMethodOptions.Paypal;
817
872
 
873
+ /**
874
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
875
+ */
876
+ payto?: PaymentMethodOptions.Payto;
877
+
818
878
  /**
819
879
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
820
880
  */
@@ -1098,6 +1158,86 @@ declare module 'stripe' {
1098
1158
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
1099
1159
  */
1100
1160
  billing_agreement_id?: string;
1161
+
1162
+ currency?: string;
1163
+
1164
+ /**
1165
+ * 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.
1166
+ */
1167
+ subsellers?: Array<string>;
1168
+ }
1169
+
1170
+ interface Payto {
1171
+ /**
1172
+ * Additional fields for Mandate creation.
1173
+ */
1174
+ mandate_options?: Payto.MandateOptions;
1175
+ }
1176
+
1177
+ namespace Payto {
1178
+ interface MandateOptions {
1179
+ /**
1180
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
1181
+ */
1182
+ amount?: number;
1183
+
1184
+ /**
1185
+ * 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.
1186
+ */
1187
+ amount_type?: MandateOptions.AmountType;
1188
+
1189
+ /**
1190
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
1191
+ */
1192
+ end_date?: string;
1193
+
1194
+ /**
1195
+ * The periodicity at which payments will be collected.
1196
+ */
1197
+ payment_schedule?: MandateOptions.PaymentSchedule;
1198
+
1199
+ /**
1200
+ * 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.
1201
+ */
1202
+ payments_per_period?: number;
1203
+
1204
+ /**
1205
+ * The purpose for which payments are made. Defaults to retail.
1206
+ */
1207
+ purpose?: MandateOptions.Purpose;
1208
+
1209
+ /**
1210
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
1211
+ */
1212
+ start_date?: string;
1213
+ }
1214
+
1215
+ namespace MandateOptions {
1216
+ type AmountType = 'fixed' | 'maximum';
1217
+
1218
+ type PaymentSchedule =
1219
+ | 'adhoc'
1220
+ | 'annual'
1221
+ | 'daily'
1222
+ | 'fortnightly'
1223
+ | 'monthly'
1224
+ | 'quarterly'
1225
+ | 'semi_annual'
1226
+ | 'weekly';
1227
+
1228
+ type Purpose =
1229
+ | 'dependant_support'
1230
+ | 'government'
1231
+ | 'loan'
1232
+ | 'mortgage'
1233
+ | 'other'
1234
+ | 'pension'
1235
+ | 'personal'
1236
+ | 'retail'
1237
+ | 'salary'
1238
+ | 'tax'
1239
+ | 'utility';
1240
+ }
1101
1241
  }
1102
1242
 
1103
1243
  interface SepaDebit {
@@ -1140,6 +1280,11 @@ declare module 'stripe' {
1140
1280
  */
1141
1281
  filters?: FinancialConnections.Filters;
1142
1282
 
1283
+ /**
1284
+ * Customize manual entry behavior
1285
+ */
1286
+ manual_entry?: FinancialConnections.ManualEntry;
1287
+
1143
1288
  /**
1144
1289
  * 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`.
1145
1290
  */
@@ -1162,19 +1307,39 @@ declare module 'stripe' {
1162
1307
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
1163
1308
  */
1164
1309
  account_subcategories?: Array<Filters.AccountSubcategory>;
1310
+
1311
+ /**
1312
+ * ID of the institution to use to filter for selectable accounts.
1313
+ */
1314
+ institution?: string;
1165
1315
  }
1166
1316
 
1167
1317
  namespace Filters {
1168
1318
  type AccountSubcategory = 'checking' | 'savings';
1169
1319
  }
1170
1320
 
1321
+ interface ManualEntry {
1322
+ /**
1323
+ * Settings for configuring manual entry of account details.
1324
+ */
1325
+ mode: ManualEntry.Mode;
1326
+ }
1327
+
1328
+ namespace ManualEntry {
1329
+ type Mode = 'automatic' | 'custom';
1330
+ }
1331
+
1171
1332
  type Permission =
1172
1333
  | 'balances'
1173
1334
  | 'ownership'
1174
1335
  | 'payment_method'
1175
1336
  | 'transactions';
1176
1337
 
1177
- type Prefetch = 'balances' | 'ownership' | 'transactions';
1338
+ type Prefetch =
1339
+ | 'balances'
1340
+ | 'inferred_balances'
1341
+ | 'ownership'
1342
+ | 'transactions';
1178
1343
  }
1179
1344
 
1180
1345
  interface MandateOptions {
@@ -1444,6 +1609,11 @@ declare module 'stripe' {
1444
1609
  */
1445
1610
  paypal?: PaymentMethodData.Paypal;
1446
1611
 
1612
+ /**
1613
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
1614
+ */
1615
+ payto?: PaymentMethodData.Payto;
1616
+
1447
1617
  /**
1448
1618
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
1449
1619
  */
@@ -1459,6 +1629,11 @@ declare module 'stripe' {
1459
1629
  */
1460
1630
  radar_options?: PaymentMethodData.RadarOptions;
1461
1631
 
1632
+ /**
1633
+ * If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
1634
+ */
1635
+ rechnung?: PaymentMethodData.Rechnung;
1636
+
1462
1637
  /**
1463
1638
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
1464
1639
  */
@@ -1783,6 +1958,23 @@ declare module 'stripe' {
1783
1958
 
1784
1959
  interface Paypal {}
1785
1960
 
1961
+ interface Payto {
1962
+ /**
1963
+ * The account number for the bank account.
1964
+ */
1965
+ account_number?: string;
1966
+
1967
+ /**
1968
+ * Bank-State-Branch number of the bank account.
1969
+ */
1970
+ bsb_number?: string;
1971
+
1972
+ /**
1973
+ * The PayID alias for the bank account.
1974
+ */
1975
+ pay_id?: string;
1976
+ }
1977
+
1786
1978
  interface Pix {}
1787
1979
 
1788
1980
  interface Promptpay {}
@@ -1794,6 +1986,32 @@ declare module 'stripe' {
1794
1986
  session?: string;
1795
1987
  }
1796
1988
 
1989
+ interface Rechnung {
1990
+ /**
1991
+ * Customer's date of birth
1992
+ */
1993
+ dob: Rechnung.Dob;
1994
+ }
1995
+
1996
+ namespace Rechnung {
1997
+ interface Dob {
1998
+ /**
1999
+ * The day of birth, between 1 and 31.
2000
+ */
2001
+ day: number;
2002
+
2003
+ /**
2004
+ * The month of birth, between 1 and 12.
2005
+ */
2006
+ month: number;
2007
+
2008
+ /**
2009
+ * The four-digit year of birth.
2010
+ */
2011
+ year: number;
2012
+ }
2013
+ }
2014
+
1797
2015
  interface RevolutPay {}
1798
2016
 
1799
2017
  interface SepaDebit {
@@ -1845,8 +2063,10 @@ declare module 'stripe' {
1845
2063
  | 'p24'
1846
2064
  | 'paynow'
1847
2065
  | 'paypal'
2066
+ | 'payto'
1848
2067
  | 'pix'
1849
2068
  | 'promptpay'
2069
+ | 'rechnung'
1850
2070
  | 'revolut_pay'
1851
2071
  | 'sepa_debit'
1852
2072
  | 'sofort'
@@ -1925,6 +2145,11 @@ declare module 'stripe' {
1925
2145
  */
1926
2146
  paypal?: PaymentMethodOptions.Paypal;
1927
2147
 
2148
+ /**
2149
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
2150
+ */
2151
+ payto?: PaymentMethodOptions.Payto;
2152
+
1928
2153
  /**
1929
2154
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
1930
2155
  */
@@ -2208,6 +2433,86 @@ declare module 'stripe' {
2208
2433
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
2209
2434
  */
2210
2435
  billing_agreement_id?: string;
2436
+
2437
+ currency?: string;
2438
+
2439
+ /**
2440
+ * 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.
2441
+ */
2442
+ subsellers?: Array<string>;
2443
+ }
2444
+
2445
+ interface Payto {
2446
+ /**
2447
+ * Additional fields for Mandate creation.
2448
+ */
2449
+ mandate_options?: Payto.MandateOptions;
2450
+ }
2451
+
2452
+ namespace Payto {
2453
+ interface MandateOptions {
2454
+ /**
2455
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2456
+ */
2457
+ amount?: number;
2458
+
2459
+ /**
2460
+ * 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.
2461
+ */
2462
+ amount_type?: MandateOptions.AmountType;
2463
+
2464
+ /**
2465
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2466
+ */
2467
+ end_date?: string;
2468
+
2469
+ /**
2470
+ * The periodicity at which payments will be collected.
2471
+ */
2472
+ payment_schedule?: MandateOptions.PaymentSchedule;
2473
+
2474
+ /**
2475
+ * 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.
2476
+ */
2477
+ payments_per_period?: number;
2478
+
2479
+ /**
2480
+ * The purpose for which payments are made. Defaults to retail.
2481
+ */
2482
+ purpose?: MandateOptions.Purpose;
2483
+
2484
+ /**
2485
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
2486
+ */
2487
+ start_date?: string;
2488
+ }
2489
+
2490
+ namespace MandateOptions {
2491
+ type AmountType = 'fixed' | 'maximum';
2492
+
2493
+ type PaymentSchedule =
2494
+ | 'adhoc'
2495
+ | 'annual'
2496
+ | 'daily'
2497
+ | 'fortnightly'
2498
+ | 'monthly'
2499
+ | 'quarterly'
2500
+ | 'semi_annual'
2501
+ | 'weekly';
2502
+
2503
+ type Purpose =
2504
+ | 'dependant_support'
2505
+ | 'government'
2506
+ | 'loan'
2507
+ | 'mortgage'
2508
+ | 'other'
2509
+ | 'pension'
2510
+ | 'personal'
2511
+ | 'retail'
2512
+ | 'salary'
2513
+ | 'tax'
2514
+ | 'utility';
2515
+ }
2211
2516
  }
2212
2517
 
2213
2518
  interface SepaDebit {
@@ -2250,6 +2555,11 @@ declare module 'stripe' {
2250
2555
  */
2251
2556
  filters?: FinancialConnections.Filters;
2252
2557
 
2558
+ /**
2559
+ * Customize manual entry behavior
2560
+ */
2561
+ manual_entry?: FinancialConnections.ManualEntry;
2562
+
2253
2563
  /**
2254
2564
  * 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`.
2255
2565
  */
@@ -2272,19 +2582,39 @@ declare module 'stripe' {
2272
2582
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
2273
2583
  */
2274
2584
  account_subcategories?: Array<Filters.AccountSubcategory>;
2585
+
2586
+ /**
2587
+ * ID of the institution to use to filter for selectable accounts.
2588
+ */
2589
+ institution?: string;
2275
2590
  }
2276
2591
 
2277
2592
  namespace Filters {
2278
2593
  type AccountSubcategory = 'checking' | 'savings';
2279
2594
  }
2280
2595
 
2596
+ interface ManualEntry {
2597
+ /**
2598
+ * Settings for configuring manual entry of account details.
2599
+ */
2600
+ mode: ManualEntry.Mode;
2601
+ }
2602
+
2603
+ namespace ManualEntry {
2604
+ type Mode = 'automatic' | 'custom';
2605
+ }
2606
+
2281
2607
  type Permission =
2282
2608
  | 'balances'
2283
2609
  | 'ownership'
2284
2610
  | 'payment_method'
2285
2611
  | 'transactions';
2286
2612
 
2287
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2613
+ type Prefetch =
2614
+ | 'balances'
2615
+ | 'inferred_balances'
2616
+ | 'ownership'
2617
+ | 'transactions';
2288
2618
  }
2289
2619
 
2290
2620
  interface MandateOptions {
@@ -2603,6 +2933,11 @@ declare module 'stripe' {
2603
2933
  */
2604
2934
  paypal?: PaymentMethodData.Paypal;
2605
2935
 
2936
+ /**
2937
+ * If this is a `payto` PaymentMethod, this hash contains details about the PayTo payment method.
2938
+ */
2939
+ payto?: PaymentMethodData.Payto;
2940
+
2606
2941
  /**
2607
2942
  * If this is a `pix` PaymentMethod, this hash contains details about the Pix payment method.
2608
2943
  */
@@ -2618,6 +2953,11 @@ declare module 'stripe' {
2618
2953
  */
2619
2954
  radar_options?: PaymentMethodData.RadarOptions;
2620
2955
 
2956
+ /**
2957
+ * If this is a Rechnung PaymentMethod, this hash contains details about the Rechnung payment method.
2958
+ */
2959
+ rechnung?: PaymentMethodData.Rechnung;
2960
+
2621
2961
  /**
2622
2962
  * If this is a `Revolut Pay` PaymentMethod, this hash contains details about the Revolut Pay payment method.
2623
2963
  */
@@ -2942,6 +3282,23 @@ declare module 'stripe' {
2942
3282
 
2943
3283
  interface Paypal {}
2944
3284
 
3285
+ interface Payto {
3286
+ /**
3287
+ * The account number for the bank account.
3288
+ */
3289
+ account_number?: string;
3290
+
3291
+ /**
3292
+ * Bank-State-Branch number of the bank account.
3293
+ */
3294
+ bsb_number?: string;
3295
+
3296
+ /**
3297
+ * The PayID alias for the bank account.
3298
+ */
3299
+ pay_id?: string;
3300
+ }
3301
+
2945
3302
  interface Pix {}
2946
3303
 
2947
3304
  interface Promptpay {}
@@ -2953,6 +3310,32 @@ declare module 'stripe' {
2953
3310
  session?: string;
2954
3311
  }
2955
3312
 
3313
+ interface Rechnung {
3314
+ /**
3315
+ * Customer's date of birth
3316
+ */
3317
+ dob: Rechnung.Dob;
3318
+ }
3319
+
3320
+ namespace Rechnung {
3321
+ interface Dob {
3322
+ /**
3323
+ * The day of birth, between 1 and 31.
3324
+ */
3325
+ day: number;
3326
+
3327
+ /**
3328
+ * The month of birth, between 1 and 12.
3329
+ */
3330
+ month: number;
3331
+
3332
+ /**
3333
+ * The four-digit year of birth.
3334
+ */
3335
+ year: number;
3336
+ }
3337
+ }
3338
+
2956
3339
  interface RevolutPay {}
2957
3340
 
2958
3341
  interface SepaDebit {
@@ -3004,8 +3387,10 @@ declare module 'stripe' {
3004
3387
  | 'p24'
3005
3388
  | 'paynow'
3006
3389
  | 'paypal'
3390
+ | 'payto'
3007
3391
  | 'pix'
3008
3392
  | 'promptpay'
3393
+ | 'rechnung'
3009
3394
  | 'revolut_pay'
3010
3395
  | 'sepa_debit'
3011
3396
  | 'sofort'
@@ -3084,6 +3469,11 @@ declare module 'stripe' {
3084
3469
  */
3085
3470
  paypal?: PaymentMethodOptions.Paypal;
3086
3471
 
3472
+ /**
3473
+ * If this is a `payto` SetupIntent, this sub-hash contains details about the PayTo payment method options.
3474
+ */
3475
+ payto?: PaymentMethodOptions.Payto;
3476
+
3087
3477
  /**
3088
3478
  * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options.
3089
3479
  */
@@ -3367,6 +3757,86 @@ declare module 'stripe' {
3367
3757
  * The PayPal Billing Agreement ID (BAID). This is an ID generated by PayPal which represents the mandate between the merchant and the customer.
3368
3758
  */
3369
3759
  billing_agreement_id?: string;
3760
+
3761
+ currency?: string;
3762
+
3763
+ /**
3764
+ * 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.
3765
+ */
3766
+ subsellers?: Array<string>;
3767
+ }
3768
+
3769
+ interface Payto {
3770
+ /**
3771
+ * Additional fields for Mandate creation.
3772
+ */
3773
+ mandate_options?: Payto.MandateOptions;
3774
+ }
3775
+
3776
+ namespace Payto {
3777
+ interface MandateOptions {
3778
+ /**
3779
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
3780
+ */
3781
+ amount?: number;
3782
+
3783
+ /**
3784
+ * 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.
3785
+ */
3786
+ amount_type?: MandateOptions.AmountType;
3787
+
3788
+ /**
3789
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
3790
+ */
3791
+ end_date?: string;
3792
+
3793
+ /**
3794
+ * The periodicity at which payments will be collected.
3795
+ */
3796
+ payment_schedule?: MandateOptions.PaymentSchedule;
3797
+
3798
+ /**
3799
+ * 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.
3800
+ */
3801
+ payments_per_period?: number;
3802
+
3803
+ /**
3804
+ * The purpose for which payments are made. Defaults to retail.
3805
+ */
3806
+ purpose?: MandateOptions.Purpose;
3807
+
3808
+ /**
3809
+ * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time.
3810
+ */
3811
+ start_date?: string;
3812
+ }
3813
+
3814
+ namespace MandateOptions {
3815
+ type AmountType = 'fixed' | 'maximum';
3816
+
3817
+ type PaymentSchedule =
3818
+ | 'adhoc'
3819
+ | 'annual'
3820
+ | 'daily'
3821
+ | 'fortnightly'
3822
+ | 'monthly'
3823
+ | 'quarterly'
3824
+ | 'semi_annual'
3825
+ | 'weekly';
3826
+
3827
+ type Purpose =
3828
+ | 'dependant_support'
3829
+ | 'government'
3830
+ | 'loan'
3831
+ | 'mortgage'
3832
+ | 'other'
3833
+ | 'pension'
3834
+ | 'personal'
3835
+ | 'retail'
3836
+ | 'salary'
3837
+ | 'tax'
3838
+ | 'utility';
3839
+ }
3370
3840
  }
3371
3841
 
3372
3842
  interface SepaDebit {
@@ -3409,6 +3879,11 @@ declare module 'stripe' {
3409
3879
  */
3410
3880
  filters?: FinancialConnections.Filters;
3411
3881
 
3882
+ /**
3883
+ * Customize manual entry behavior
3884
+ */
3885
+ manual_entry?: FinancialConnections.ManualEntry;
3886
+
3412
3887
  /**
3413
3888
  * 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`.
3414
3889
  */
@@ -3431,19 +3906,39 @@ declare module 'stripe' {
3431
3906
  * The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
3432
3907
  */
3433
3908
  account_subcategories?: Array<Filters.AccountSubcategory>;
3909
+
3910
+ /**
3911
+ * ID of the institution to use to filter for selectable accounts.
3912
+ */
3913
+ institution?: string;
3434
3914
  }
3435
3915
 
3436
3916
  namespace Filters {
3437
3917
  type AccountSubcategory = 'checking' | 'savings';
3438
3918
  }
3439
3919
 
3920
+ interface ManualEntry {
3921
+ /**
3922
+ * Settings for configuring manual entry of account details.
3923
+ */
3924
+ mode: ManualEntry.Mode;
3925
+ }
3926
+
3927
+ namespace ManualEntry {
3928
+ type Mode = 'automatic' | 'custom';
3929
+ }
3930
+
3440
3931
  type Permission =
3441
3932
  | 'balances'
3442
3933
  | 'ownership'
3443
3934
  | 'payment_method'
3444
3935
  | 'transactions';
3445
3936
 
3446
- type Prefetch = 'balances' | 'ownership' | 'transactions';
3937
+ type Prefetch =
3938
+ | 'balances'
3939
+ | 'inferred_balances'
3940
+ | 'ownership'
3941
+ | 'transactions';
3447
3942
  }
3448
3943
 
3449
3944
  interface MandateOptions {