stripe 16.2.0 → 16.3.0-beta.1

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