stripe 16.1.0 → 16.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/CHANGELOG.md +753 -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/Capital/FinancingOffers.js +21 -0
  10. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  11. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  12. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  13. package/cjs/resources/GiftCards/Cards.js +23 -0
  14. package/cjs/resources/GiftCards/Transactions.js +33 -0
  15. package/cjs/resources/Invoices.js +25 -0
  16. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/OAuth.js +1 -1
  19. package/cjs/resources/Orders.js +24 -0
  20. package/cjs/resources/PaymentIntents.js +4 -0
  21. package/cjs/resources/QuotePhases.js +22 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Forms.js +20 -0
  25. package/cjs/resources/Terminal/Readers.js +12 -0
  26. package/cjs/resources.js +36 -10
  27. package/cjs/stripe.core.js +6 -3
  28. package/cjs/utils.js +30 -3
  29. package/esm/RequestSender.js +67 -6
  30. package/esm/StripeResource.js +2 -2
  31. package/esm/apiVersion.js +1 -0
  32. package/esm/multipart.js +2 -2
  33. package/esm/resources/AccountNotices.js +18 -0
  34. package/esm/resources/Capital/FinancingOffers.js +18 -0
  35. package/esm/resources/Capital/FinancingSummary.js +9 -0
  36. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  37. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  38. package/esm/resources/GiftCards/Cards.js +20 -0
  39. package/esm/resources/GiftCards/Transactions.js +30 -0
  40. package/esm/resources/Invoices.js +25 -0
  41. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  42. package/esm/resources/Margins.js +19 -0
  43. package/esm/resources/OAuth.js +2 -2
  44. package/esm/resources/Orders.js +21 -0
  45. package/esm/resources/PaymentIntents.js +4 -0
  46. package/esm/resources/QuotePhases.js +19 -0
  47. package/esm/resources/Quotes.js +32 -0
  48. package/esm/resources/SubscriptionSchedules.js +4 -0
  49. package/esm/resources/Tax/Forms.js +17 -0
  50. package/esm/resources/Terminal/Readers.js +12 -0
  51. package/esm/resources.js +22 -0
  52. package/esm/stripe.core.js +6 -3
  53. package/esm/utils.js +27 -1
  54. package/package.json +1 -1
  55. package/types/AccountLinksResource.d.ts +5 -1
  56. package/types/AccountNotices.d.ts +110 -0
  57. package/types/AccountNoticesResource.d.ts +98 -0
  58. package/types/AccountSessions.d.ts +15 -0
  59. package/types/AccountSessionsResource.d.ts +205 -0
  60. package/types/Accounts.d.ts +88 -1
  61. package/types/AccountsResource.d.ts +204 -0
  62. package/types/Capital/FinancingOffers.d.ts +188 -0
  63. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  64. package/types/Capital/FinancingSummary.d.ts +106 -0
  65. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  66. package/types/Capital/FinancingTransactions.d.ts +135 -0
  67. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  68. package/types/Charges.d.ts +67 -0
  69. package/types/ChargesResource.d.ts +1294 -0
  70. package/types/Checkout/Sessions.d.ts +23 -1
  71. package/types/Checkout/SessionsResource.d.ts +15 -1
  72. package/types/ConfirmationTokens.d.ts +83 -0
  73. package/types/Coupons.d.ts +1 -1
  74. package/types/CouponsResource.d.ts +1 -1
  75. package/types/CreditNotes.d.ts +21 -0
  76. package/types/CreditNotesResource.d.ts +51 -0
  77. package/types/CustomerSessions.d.ts +48 -0
  78. package/types/CustomerSessionsResource.d.ts +48 -0
  79. package/types/CustomersResource.d.ts +2 -0
  80. package/types/Disputes.d.ts +167 -0
  81. package/types/DisputesResource.d.ts +120 -0
  82. package/types/EventTypes.d.ts +426 -0
  83. package/types/Events.d.ts +83 -0
  84. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  85. package/types/FinancialConnections/Accounts.d.ts +29 -1
  86. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  87. package/types/FinancialConnections/Sessions.d.ts +44 -1
  88. package/types/FinancialConnections/SessionsResource.d.ts +33 -1
  89. package/types/GiftCards/Cards.d.ts +118 -0
  90. package/types/GiftCards/CardsResource.d.ts +159 -0
  91. package/types/GiftCards/Transactions.d.ts +129 -0
  92. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  93. package/types/InvoiceItems.d.ts +5 -0
  94. package/types/InvoiceItemsResource.d.ts +98 -0
  95. package/types/InvoiceLineItems.d.ts +22 -0
  96. package/types/InvoicePayments.d.ts +91 -0
  97. package/types/Invoices.d.ts +110 -1
  98. package/types/InvoicesResource.d.ts +6404 -2261
  99. package/types/Issuing/CardholdersResource.d.ts +2 -1
  100. package/types/Issuing/Cards.d.ts +34 -0
  101. package/types/Issuing/CardsResource.d.ts +125 -0
  102. package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
  103. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
  104. package/types/LineItems.d.ts +7 -0
  105. package/types/Mandates.d.ts +77 -0
  106. package/types/Margins.d.ts +56 -0
  107. package/types/MarginsResource.d.ts +114 -0
  108. package/types/Orders.d.ts +1057 -0
  109. package/types/OrdersResource.d.ts +2711 -0
  110. package/types/PaymentIntents.d.ts +463 -1
  111. package/types/PaymentIntentsResource.d.ts +6682 -3349
  112. package/types/PaymentMethods.d.ts +62 -0
  113. package/types/PaymentMethodsResource.d.ts +110 -0
  114. package/types/Prices.d.ts +22 -0
  115. package/types/PricesResource.d.ts +22 -0
  116. package/types/Products.d.ts +39 -0
  117. package/types/ProductsResource.d.ts +36 -0
  118. package/types/QuoteLines.d.ts +634 -0
  119. package/types/QuotePhases.d.ts +198 -0
  120. package/types/QuotePhasesResource.d.ts +67 -0
  121. package/types/QuotePreviewInvoices.d.ts +1528 -0
  122. package/types/QuotePreviewSubscriptionSchedules.d.ts +778 -0
  123. package/types/Quotes.d.ts +578 -1
  124. package/types/QuotesResource.d.ts +3174 -265
  125. package/types/SetupAttempts.d.ts +8 -0
  126. package/types/SetupIntents.d.ts +104 -1
  127. package/types/SetupIntentsResource.d.ts +483 -3
  128. package/types/Sources.d.ts +23 -0
  129. package/types/SubscriptionItems.d.ts +21 -0
  130. package/types/SubscriptionItemsResource.d.ts +109 -0
  131. package/types/SubscriptionSchedules.d.ts +164 -0
  132. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  133. package/types/Subscriptions.d.ts +41 -1
  134. package/types/SubscriptionsResource.d.ts +337 -2
  135. package/types/Tax/Forms.d.ts +133 -0
  136. package/types/Tax/FormsResource.d.ts +90 -0
  137. package/types/Terminal/Readers.d.ts +278 -0
  138. package/types/Terminal/ReadersResource.d.ts +208 -0
  139. package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
  140. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  141. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  142. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  143. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  144. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  145. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  146. package/types/WebhookEndpointsResource.d.ts +50 -0
  147. package/types/index.d.ts +61 -0
  148. package/types/lib.d.ts +12 -0
@@ -146,6 +146,8 @@ declare module 'stripe' {
146
146
  */
147
147
  on_behalf_of: string | Stripe.Account | null;
148
148
 
149
+ payment_details?: PaymentIntent.PaymentDetails;
150
+
149
151
  /**
150
152
  * ID of the payment method used in this PaymentIntent.
151
153
  */
@@ -181,6 +183,11 @@ declare module 'stripe' {
181
183
  */
182
184
  review: string | Stripe.Review | null;
183
185
 
186
+ /**
187
+ * Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
188
+ */
189
+ secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
190
+
184
191
  /**
185
192
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
186
193
  *
@@ -431,6 +438,9 @@ declare module 'stripe' {
431
438
  | 'forwarding_api_invalid_parameter'
432
439
  | 'forwarding_api_upstream_connection_error'
433
440
  | 'forwarding_api_upstream_connection_timeout'
441
+ | 'gift_card_balance_insufficient'
442
+ | 'gift_card_code_exists'
443
+ | 'gift_card_inactive'
434
444
  | 'idempotency_key_in_use'
435
445
  | 'incorrect_address'
436
446
  | 'incorrect_cvc'
@@ -519,6 +529,7 @@ declare module 'stripe' {
519
529
  | 'return_intent_already_processed'
520
530
  | 'routing_number_invalid'
521
531
  | 'secret_key_required'
532
+ | 'sensitive_data_access_expired'
522
533
  | 'sepa_unsupported_account'
523
534
  | 'setup_attempt_failed'
524
535
  | 'setup_intent_authentication_failure'
@@ -1262,6 +1273,289 @@ declare module 'stripe' {
1262
1273
  }
1263
1274
  }
1264
1275
 
1276
+ interface PaymentDetails {
1277
+ car_rental?: PaymentDetails.CarRental;
1278
+
1279
+ event_details?: PaymentDetails.EventDetails;
1280
+
1281
+ subscription?: PaymentDetails.Subscription;
1282
+ }
1283
+
1284
+ namespace PaymentDetails {
1285
+ interface CarRental {
1286
+ affiliate?: CarRental.Affiliate;
1287
+
1288
+ /**
1289
+ * The booking number associated with the car rental.
1290
+ */
1291
+ booking_number: string;
1292
+
1293
+ /**
1294
+ * Class code of the car.
1295
+ */
1296
+ car_class_code?: string;
1297
+
1298
+ /**
1299
+ * Make of the car.
1300
+ */
1301
+ car_make?: string;
1302
+
1303
+ /**
1304
+ * Model of the car.
1305
+ */
1306
+ car_model?: string;
1307
+
1308
+ /**
1309
+ * The name of the rental car company.
1310
+ */
1311
+ company?: string;
1312
+
1313
+ /**
1314
+ * The customer service phone number of the car rental company.
1315
+ */
1316
+ customer_service_phone_number?: string;
1317
+
1318
+ /**
1319
+ * Number of days the car is being rented.
1320
+ */
1321
+ days_rented: number;
1322
+
1323
+ delivery?: CarRental.Delivery;
1324
+
1325
+ /**
1326
+ * The details of the drivers associated with the trip.
1327
+ */
1328
+ drivers?: Array<CarRental.Driver>;
1329
+
1330
+ /**
1331
+ * List of additional charges being billed.
1332
+ */
1333
+ extra_charges?: Array<CarRental.ExtraCharge>;
1334
+
1335
+ /**
1336
+ * Indicates if the customer did not keep nor cancel their booking.
1337
+ */
1338
+ no_show?: boolean;
1339
+
1340
+ pickup_address?: Stripe.Address;
1341
+
1342
+ /**
1343
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1344
+ */
1345
+ pickup_at: number;
1346
+
1347
+ /**
1348
+ * Rental rate.
1349
+ */
1350
+ rate_amount?: number;
1351
+
1352
+ /**
1353
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1354
+ */
1355
+ rate_interval?: CarRental.RateInterval;
1356
+
1357
+ /**
1358
+ * The full name of the person or entity renting the car.
1359
+ */
1360
+ renter_name?: string;
1361
+
1362
+ return_address?: Stripe.Address;
1363
+
1364
+ /**
1365
+ * Car return time. Measured in seconds since the Unix epoch.
1366
+ */
1367
+ return_at: number;
1368
+
1369
+ /**
1370
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1371
+ */
1372
+ tax_exempt?: boolean;
1373
+ }
1374
+
1375
+ namespace CarRental {
1376
+ interface Affiliate {
1377
+ /**
1378
+ * The name of the affiliate that originated the purchase.
1379
+ */
1380
+ name?: string;
1381
+ }
1382
+
1383
+ interface Delivery {
1384
+ /**
1385
+ * The delivery method for the payment
1386
+ */
1387
+ mode?: Delivery.Mode;
1388
+
1389
+ recipient?: Delivery.Recipient;
1390
+ }
1391
+
1392
+ namespace Delivery {
1393
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1394
+
1395
+ interface Recipient {
1396
+ /**
1397
+ * The email of the recipient the ticket is delivered to.
1398
+ */
1399
+ email?: string;
1400
+
1401
+ /**
1402
+ * The name of the recipient the ticket is delivered to.
1403
+ */
1404
+ name?: string;
1405
+
1406
+ /**
1407
+ * The phone number of the recipient the ticket is delivered to.
1408
+ */
1409
+ phone?: string;
1410
+ }
1411
+ }
1412
+
1413
+ interface Driver {
1414
+ /**
1415
+ * Full name of the driver on the reservation.
1416
+ */
1417
+ name?: string;
1418
+ }
1419
+
1420
+ type ExtraCharge =
1421
+ | 'extra_mileage'
1422
+ | 'gas'
1423
+ | 'late_return'
1424
+ | 'one_way_service'
1425
+ | 'parking_violation';
1426
+
1427
+ type RateInterval = 'day' | 'month' | 'week';
1428
+ }
1429
+
1430
+ interface EventDetails {
1431
+ /**
1432
+ * Indicates if the tickets are digitally checked when entering the venue.
1433
+ */
1434
+ access_controlled_venue?: boolean;
1435
+
1436
+ address?: Stripe.Address;
1437
+
1438
+ affiliate?: EventDetails.Affiliate;
1439
+
1440
+ /**
1441
+ * The name of the company
1442
+ */
1443
+ company?: string;
1444
+
1445
+ delivery?: EventDetails.Delivery;
1446
+
1447
+ /**
1448
+ * Event end time. Measured in seconds since the Unix epoch.
1449
+ */
1450
+ ends_at?: number;
1451
+
1452
+ /**
1453
+ * Type of the event entertainment (concert, sports event etc)
1454
+ */
1455
+ genre?: string;
1456
+
1457
+ /**
1458
+ * The name of the event.
1459
+ */
1460
+ name?: string;
1461
+
1462
+ /**
1463
+ * Event start time. Measured in seconds since the Unix epoch.
1464
+ */
1465
+ starts_at?: number;
1466
+ }
1467
+
1468
+ namespace EventDetails {
1469
+ interface Affiliate {
1470
+ /**
1471
+ * The name of the affiliate that originated the purchase.
1472
+ */
1473
+ name?: string;
1474
+ }
1475
+
1476
+ interface Delivery {
1477
+ /**
1478
+ * The delivery method for the payment
1479
+ */
1480
+ mode?: Delivery.Mode;
1481
+
1482
+ recipient?: Delivery.Recipient;
1483
+ }
1484
+
1485
+ namespace Delivery {
1486
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1487
+
1488
+ interface Recipient {
1489
+ /**
1490
+ * The email of the recipient the ticket is delivered to.
1491
+ */
1492
+ email?: string;
1493
+
1494
+ /**
1495
+ * The name of the recipient the ticket is delivered to.
1496
+ */
1497
+ name?: string;
1498
+
1499
+ /**
1500
+ * The phone number of the recipient the ticket is delivered to.
1501
+ */
1502
+ phone?: string;
1503
+ }
1504
+ }
1505
+ }
1506
+
1507
+ interface Subscription {
1508
+ affiliate?: Subscription.Affiliate;
1509
+
1510
+ /**
1511
+ * Info whether the subscription will be auto renewed upon expiry.
1512
+ */
1513
+ auto_renewal?: boolean;
1514
+
1515
+ billing_interval?: Subscription.BillingInterval;
1516
+
1517
+ /**
1518
+ * Subscription end time. Measured in seconds since the Unix epoch.
1519
+ */
1520
+ ends_at?: number;
1521
+
1522
+ /**
1523
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1524
+ */
1525
+ name?: string;
1526
+
1527
+ /**
1528
+ * Subscription start time. Measured in seconds since the Unix epoch.
1529
+ */
1530
+ starts_at?: number;
1531
+ }
1532
+
1533
+ namespace Subscription {
1534
+ interface Affiliate {
1535
+ /**
1536
+ * The name of the affiliate that originated the purchase.
1537
+ */
1538
+ name?: string;
1539
+ }
1540
+
1541
+ interface BillingInterval {
1542
+ /**
1543
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1544
+ */
1545
+ count?: number;
1546
+
1547
+ /**
1548
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1549
+ */
1550
+ interval?: BillingInterval.Interval;
1551
+ }
1552
+
1553
+ namespace BillingInterval {
1554
+ type Interval = 'day' | 'month' | 'week' | 'year';
1555
+ }
1556
+ }
1557
+ }
1558
+
1265
1559
  interface PaymentMethodConfigurationDetails {
1266
1560
  /**
1267
1561
  * ID of the payment method configuration used.
@@ -1333,10 +1627,14 @@ declare module 'stripe' {
1333
1627
 
1334
1628
  paypal?: PaymentMethodOptions.Paypal;
1335
1629
 
1630
+ payto?: PaymentMethodOptions.Payto;
1631
+
1336
1632
  pix?: PaymentMethodOptions.Pix;
1337
1633
 
1338
1634
  promptpay?: PaymentMethodOptions.Promptpay;
1339
1635
 
1636
+ rechnung?: PaymentMethodOptions.Rechnung;
1637
+
1340
1638
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1341
1639
 
1342
1640
  sepa_debit?: PaymentMethodOptions.SepaDebit;
@@ -1591,6 +1889,11 @@ declare module 'stripe' {
1591
1889
  */
1592
1890
  network: Card.Network | null;
1593
1891
 
1892
+ /**
1893
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
1894
+ */
1895
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1896
+
1594
1897
  /**
1595
1898
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1596
1899
  */
@@ -1639,6 +1942,8 @@ declare module 'stripe' {
1639
1942
  * Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters.
1640
1943
  */
1641
1944
  statement_descriptor_suffix_kanji?: string;
1945
+
1946
+ statement_details?: Card.StatementDetails;
1642
1947
  }
1643
1948
 
1644
1949
  namespace Card {
@@ -1763,6 +2068,8 @@ declare module 'stripe' {
1763
2068
  | 'unknown'
1764
2069
  | 'visa';
1765
2070
 
2071
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2072
+
1766
2073
  type RequestExtendedAuthorization = 'if_available' | 'never';
1767
2074
 
1768
2075
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1774,6 +2081,49 @@ declare module 'stripe' {
1774
2081
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1775
2082
 
1776
2083
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2084
+
2085
+ interface StatementDetails {
2086
+ address?: StatementDetails.Address;
2087
+
2088
+ /**
2089
+ * Phone number
2090
+ */
2091
+ phone?: string;
2092
+ }
2093
+
2094
+ namespace StatementDetails {
2095
+ interface Address {
2096
+ /**
2097
+ * City, district, suburb, town, or village.
2098
+ */
2099
+ city?: string;
2100
+
2101
+ /**
2102
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2103
+ */
2104
+ country?: string;
2105
+
2106
+ /**
2107
+ * Address line 1 (e.g., street, PO Box, or company name).
2108
+ */
2109
+ line1?: string;
2110
+
2111
+ /**
2112
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2113
+ */
2114
+ line2?: string;
2115
+
2116
+ /**
2117
+ * ZIP or postal code.
2118
+ */
2119
+ postal_code?: string;
2120
+
2121
+ /**
2122
+ * State, county, province, or region.
2123
+ */
2124
+ state?: string;
2125
+ }
2126
+ }
1777
2127
  }
1778
2128
 
1779
2129
  interface CardPresent {
@@ -2108,6 +2458,11 @@ declare module 'stripe' {
2108
2458
  */
2109
2459
  reference: string | null;
2110
2460
 
2461
+ /**
2462
+ * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID.
2463
+ */
2464
+ reference_id?: string | null;
2465
+
2111
2466
  /**
2112
2467
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2113
2468
  *
@@ -2116,12 +2471,93 @@ declare module 'stripe' {
2116
2471
  * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
2117
2472
  */
2118
2473
  setup_future_usage?: Paypal.SetupFutureUsage;
2474
+
2475
+ /**
2476
+ * 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.
2477
+ */
2478
+ subsellers?: Array<string>;
2119
2479
  }
2120
2480
 
2121
2481
  namespace Paypal {
2122
2482
  type SetupFutureUsage = 'none' | 'off_session';
2123
2483
  }
2124
2484
 
2485
+ interface Payto {
2486
+ mandate_options?: Payto.MandateOptions;
2487
+
2488
+ /**
2489
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2490
+ *
2491
+ * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes.
2492
+ *
2493
+ * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication).
2494
+ */
2495
+ setup_future_usage?: Payto.SetupFutureUsage;
2496
+ }
2497
+
2498
+ namespace Payto {
2499
+ interface MandateOptions {
2500
+ /**
2501
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2502
+ */
2503
+ amount: number | null;
2504
+
2505
+ /**
2506
+ * 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.
2507
+ */
2508
+ amount_type: MandateOptions.AmountType | null;
2509
+
2510
+ /**
2511
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2512
+ */
2513
+ end_date: string | null;
2514
+
2515
+ /**
2516
+ * The periodicity at which payments will be collected.
2517
+ */
2518
+ payment_schedule: MandateOptions.PaymentSchedule | null;
2519
+
2520
+ /**
2521
+ * 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.
2522
+ */
2523
+ payments_per_period: number | null;
2524
+
2525
+ /**
2526
+ * The purpose for which payments are made. Defaults to retail.
2527
+ */
2528
+ purpose: MandateOptions.Purpose | null;
2529
+ }
2530
+
2531
+ namespace MandateOptions {
2532
+ type AmountType = 'fixed' | 'maximum';
2533
+
2534
+ type PaymentSchedule =
2535
+ | 'adhoc'
2536
+ | 'annual'
2537
+ | 'daily'
2538
+ | 'fortnightly'
2539
+ | 'monthly'
2540
+ | 'quarterly'
2541
+ | 'semi_annual'
2542
+ | 'weekly';
2543
+
2544
+ type Purpose =
2545
+ | 'dependant_support'
2546
+ | 'government'
2547
+ | 'loan'
2548
+ | 'mortgage'
2549
+ | 'other'
2550
+ | 'pension'
2551
+ | 'personal'
2552
+ | 'retail'
2553
+ | 'salary'
2554
+ | 'tax'
2555
+ | 'utility';
2556
+ }
2557
+
2558
+ type SetupFutureUsage = 'none' | 'off_session';
2559
+ }
2560
+
2125
2561
  interface Pix {
2126
2562
  /**
2127
2563
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
@@ -2154,6 +2590,13 @@ declare module 'stripe' {
2154
2590
  setup_future_usage?: 'none';
2155
2591
  }
2156
2592
 
2593
+ interface Rechnung {
2594
+ /**
2595
+ * A unique identifier that correlates each transaction with the collected risk data.
2596
+ */
2597
+ risk_correlation_id: string | null;
2598
+ }
2599
+
2157
2600
  interface RevolutPay {
2158
2601
  /**
2159
2602
  * Controls when the funds will be captured from the customer's account.
@@ -2278,6 +2721,8 @@ declare module 'stripe' {
2278
2721
  interface FinancialConnections {
2279
2722
  filters?: FinancialConnections.Filters;
2280
2723
 
2724
+ manual_entry?: FinancialConnections.ManualEntry;
2725
+
2281
2726
  /**
2282
2727
  * The list of permissions to request. The `payment_method` permission must be included.
2283
2728
  */
@@ -2306,13 +2751,28 @@ declare module 'stripe' {
2306
2751
  type AccountSubcategory = 'checking' | 'savings';
2307
2752
  }
2308
2753
 
2754
+ interface ManualEntry {
2755
+ /**
2756
+ * Settings for configuring manual entry of account details.
2757
+ */
2758
+ mode?: ManualEntry.Mode;
2759
+ }
2760
+
2761
+ namespace ManualEntry {
2762
+ type Mode = 'automatic' | 'custom';
2763
+ }
2764
+
2309
2765
  type Permission =
2310
2766
  | 'balances'
2311
2767
  | 'ownership'
2312
2768
  | 'payment_method'
2313
2769
  | 'transactions';
2314
2770
 
2315
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2771
+ type Prefetch =
2772
+ | 'balances'
2773
+ | 'inferred_balances'
2774
+ | 'ownership'
2775
+ | 'transactions';
2316
2776
  }
2317
2777
 
2318
2778
  interface MandateOptions {
@@ -2395,6 +2855,8 @@ declare module 'stripe' {
2395
2855
  }
2396
2856
  }
2397
2857
 
2858
+ type SecretKeyConfirmation = 'optional' | 'required';
2859
+
2398
2860
  type SetupFutureUsage = 'off_session' | 'on_session';
2399
2861
 
2400
2862
  interface Shipping {