stripe 16.10.0 → 16.11.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 (163) hide show
  1. package/CHANGELOG.md +831 -113
  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 +17 -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/Associations.js +9 -0
  26. package/cjs/resources/Tax/Forms.js +20 -0
  27. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  28. package/cjs/resources/Terminal/Readers.js +12 -0
  29. package/cjs/resources.js +42 -10
  30. package/cjs/stripe.core.js +6 -3
  31. package/cjs/utils.js +30 -3
  32. package/esm/RequestSender.js +67 -6
  33. package/esm/StripeResource.js +2 -2
  34. package/esm/apiVersion.js +1 -0
  35. package/esm/multipart.js +2 -2
  36. package/esm/resources/AccountNotices.js +18 -0
  37. package/esm/resources/Capital/FinancingOffers.js +18 -0
  38. package/esm/resources/Capital/FinancingSummary.js +9 -0
  39. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  40. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  41. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  42. package/esm/resources/GiftCards/Cards.js +20 -0
  43. package/esm/resources/GiftCards/Transactions.js +30 -0
  44. package/esm/resources/Invoices.js +17 -0
  45. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  46. package/esm/resources/Margins.js +19 -0
  47. package/esm/resources/OAuth.js +2 -2
  48. package/esm/resources/Orders.js +21 -0
  49. package/esm/resources/PaymentIntents.js +4 -0
  50. package/esm/resources/QuotePhases.js +19 -0
  51. package/esm/resources/Quotes.js +32 -0
  52. package/esm/resources/SubscriptionSchedules.js +4 -0
  53. package/esm/resources/Tax/Associations.js +6 -0
  54. package/esm/resources/Tax/Forms.js +17 -0
  55. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  56. package/esm/resources/Terminal/Readers.js +12 -0
  57. package/esm/resources.js +28 -0
  58. package/esm/stripe.core.js +6 -3
  59. package/esm/utils.js +27 -1
  60. package/package.json +1 -1
  61. package/types/AccountLinksResource.d.ts +5 -1
  62. package/types/AccountNotices.d.ts +113 -0
  63. package/types/AccountNoticesResource.d.ts +98 -0
  64. package/types/AccountSessions.d.ts +45 -0
  65. package/types/AccountSessionsResource.d.ts +278 -0
  66. package/types/Accounts.d.ts +113 -1
  67. package/types/AccountsResource.d.ts +270 -0
  68. package/types/Billing/MeterErrorReports.d.ts +106 -0
  69. package/types/Capital/FinancingOffers.d.ts +188 -0
  70. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  71. package/types/Capital/FinancingSummary.d.ts +106 -0
  72. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  73. package/types/Capital/FinancingTransactions.d.ts +135 -0
  74. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  75. package/types/Charges.d.ts +71 -0
  76. package/types/ChargesResource.d.ts +1294 -0
  77. package/types/Checkout/Sessions.d.ts +296 -4
  78. package/types/Checkout/SessionsResource.d.ts +350 -5
  79. package/types/ConfirmationTokens.d.ts +67 -0
  80. package/types/Coupons.d.ts +1 -1
  81. package/types/CouponsResource.d.ts +1 -1
  82. package/types/CreditNotes.d.ts +21 -0
  83. package/types/CreditNotesResource.d.ts +51 -0
  84. package/types/CustomersResource.d.ts +3 -0
  85. package/types/Disputes.d.ts +152 -0
  86. package/types/DisputesResource.d.ts +120 -0
  87. package/types/EventTypes.d.ts +477 -0
  88. package/types/Events.d.ts +86 -0
  89. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  90. package/types/FinancialConnections/Accounts.d.ts +29 -1
  91. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  92. package/types/FinancialConnections/Institutions.d.ts +93 -0
  93. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  94. package/types/FinancialConnections/Sessions.d.ts +49 -1
  95. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  96. package/types/GiftCards/Cards.d.ts +118 -0
  97. package/types/GiftCards/CardsResource.d.ts +159 -0
  98. package/types/GiftCards/Transactions.d.ts +129 -0
  99. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  100. package/types/InvoiceItems.d.ts +5 -0
  101. package/types/InvoiceItemsResource.d.ts +98 -0
  102. package/types/InvoiceLineItems.d.ts +22 -0
  103. package/types/InvoicePayments.d.ts +138 -0
  104. package/types/Invoices.d.ts +117 -1
  105. package/types/InvoicesResource.d.ts +5454 -1796
  106. package/types/Issuing/CardholdersResource.d.ts +2 -1
  107. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  108. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  109. package/types/LineItems.d.ts +7 -0
  110. package/types/Mandates.d.ts +77 -0
  111. package/types/Margins.d.ts +56 -0
  112. package/types/MarginsResource.d.ts +114 -0
  113. package/types/Orders.d.ts +1084 -0
  114. package/types/OrdersResource.d.ts +2765 -0
  115. package/types/PaymentIntents.d.ts +503 -1
  116. package/types/PaymentIntentsResource.d.ts +7000 -3400
  117. package/types/PaymentLinks.d.ts +2 -0
  118. package/types/PaymentLinksResource.d.ts +4 -0
  119. package/types/PaymentMethodConfigurations.d.ts +36 -0
  120. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  121. package/types/PaymentMethods.d.ts +67 -0
  122. package/types/PaymentMethodsResource.d.ts +88 -0
  123. package/types/Prices.d.ts +22 -0
  124. package/types/PricesResource.d.ts +22 -0
  125. package/types/Products.d.ts +39 -0
  126. package/types/ProductsResource.d.ts +36 -0
  127. package/types/QuoteLines.d.ts +634 -0
  128. package/types/QuotePhases.d.ts +198 -0
  129. package/types/QuotePhasesResource.d.ts +67 -0
  130. package/types/QuotePreviewInvoices.d.ts +1532 -0
  131. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  132. package/types/Quotes.d.ts +596 -1
  133. package/types/QuotesResource.d.ts +2526 -194
  134. package/types/SetupAttempts.d.ts +10 -0
  135. package/types/SetupIntents.d.ts +111 -1
  136. package/types/SetupIntentsResource.d.ts +522 -3
  137. package/types/Sources.d.ts +23 -0
  138. package/types/SubscriptionItems.d.ts +21 -0
  139. package/types/SubscriptionItemsResource.d.ts +109 -0
  140. package/types/SubscriptionSchedules.d.ts +200 -0
  141. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  142. package/types/Subscriptions.d.ts +82 -1
  143. package/types/SubscriptionsResource.d.ts +347 -2
  144. package/types/Tax/Associations.d.ts +126 -0
  145. package/types/Tax/AssociationsResource.d.ts +29 -0
  146. package/types/Tax/Forms.d.ts +133 -0
  147. package/types/Tax/FormsResource.d.ts +90 -0
  148. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  149. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  150. package/types/Terminal/Readers.d.ts +278 -0
  151. package/types/Terminal/ReadersResource.d.ts +208 -0
  152. package/types/TestHelpers/ConfirmationTokensResource.d.ts +63 -0
  153. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  154. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  155. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  156. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  157. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  158. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  159. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  160. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  161. package/types/WebhookEndpointsResource.d.ts +56 -0
  162. package/types/index.d.ts +71 -0
  163. package/types/lib.d.ts +12 -0
@@ -53,6 +53,8 @@ declare module 'stripe' {
53
53
  */
54
54
  application_fee_amount: number | null;
55
55
 
56
+ async_workflows?: PaymentIntent.AsyncWorkflows;
57
+
56
58
  /**
57
59
  * Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
58
60
  */
@@ -146,6 +148,8 @@ declare module 'stripe' {
146
148
  */
147
149
  on_behalf_of: string | Stripe.Account | null;
148
150
 
151
+ payment_details?: PaymentIntent.PaymentDetails;
152
+
149
153
  /**
150
154
  * ID of the payment method used in this PaymentIntent.
151
155
  */
@@ -181,6 +185,11 @@ declare module 'stripe' {
181
185
  */
182
186
  review: string | Stripe.Review | null;
183
187
 
188
+ /**
189
+ * Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
190
+ */
191
+ secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
192
+
184
193
  /**
185
194
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
186
195
  *
@@ -248,6 +257,25 @@ declare module 'stripe' {
248
257
  }
249
258
  }
250
259
 
260
+ interface AsyncWorkflows {
261
+ inputs?: AsyncWorkflows.Inputs;
262
+ }
263
+
264
+ namespace AsyncWorkflows {
265
+ interface Inputs {
266
+ tax?: Inputs.Tax;
267
+ }
268
+
269
+ namespace Inputs {
270
+ interface Tax {
271
+ /**
272
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
273
+ */
274
+ calculation: string;
275
+ }
276
+ }
277
+ }
278
+
251
279
  interface AutomaticPaymentMethods {
252
280
  /**
253
281
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -427,11 +455,15 @@ declare module 'stripe' {
427
455
  | 'email_invalid'
428
456
  | 'expired_card'
429
457
  | 'financial_connections_account_inactive'
458
+ | 'financial_connections_institution_unavailable'
430
459
  | 'financial_connections_no_successful_transaction_refresh'
431
460
  | 'forwarding_api_inactive'
432
461
  | 'forwarding_api_invalid_parameter'
433
462
  | 'forwarding_api_upstream_connection_error'
434
463
  | 'forwarding_api_upstream_connection_timeout'
464
+ | 'gift_card_balance_insufficient'
465
+ | 'gift_card_code_exists'
466
+ | 'gift_card_inactive'
435
467
  | 'idempotency_key_in_use'
436
468
  | 'incorrect_address'
437
469
  | 'incorrect_cvc'
@@ -521,6 +553,7 @@ declare module 'stripe' {
521
553
  | 'return_intent_already_processed'
522
554
  | 'routing_number_invalid'
523
555
  | 'secret_key_required'
556
+ | 'sensitive_data_access_expired'
524
557
  | 'sepa_unsupported_account'
525
558
  | 'setup_attempt_failed'
526
559
  | 'setup_intent_authentication_failure'
@@ -538,6 +571,7 @@ declare module 'stripe' {
538
571
  | 'taxes_calculation_failed'
539
572
  | 'terminal_location_country_unsupported'
540
573
  | 'terminal_reader_busy'
574
+ | 'terminal_reader_collected_data_invalid'
541
575
  | 'terminal_reader_hardware_fault'
542
576
  | 'terminal_reader_invalid_location_for_payment'
543
577
  | 'terminal_reader_offline'
@@ -1264,6 +1298,289 @@ declare module 'stripe' {
1264
1298
  }
1265
1299
  }
1266
1300
 
1301
+ interface PaymentDetails {
1302
+ car_rental?: PaymentDetails.CarRental;
1303
+
1304
+ event_details?: PaymentDetails.EventDetails;
1305
+
1306
+ subscription?: PaymentDetails.Subscription;
1307
+ }
1308
+
1309
+ namespace PaymentDetails {
1310
+ interface CarRental {
1311
+ affiliate?: CarRental.Affiliate;
1312
+
1313
+ /**
1314
+ * The booking number associated with the car rental.
1315
+ */
1316
+ booking_number: string;
1317
+
1318
+ /**
1319
+ * Class code of the car.
1320
+ */
1321
+ car_class_code?: string;
1322
+
1323
+ /**
1324
+ * Make of the car.
1325
+ */
1326
+ car_make?: string;
1327
+
1328
+ /**
1329
+ * Model of the car.
1330
+ */
1331
+ car_model?: string;
1332
+
1333
+ /**
1334
+ * The name of the rental car company.
1335
+ */
1336
+ company?: string;
1337
+
1338
+ /**
1339
+ * The customer service phone number of the car rental company.
1340
+ */
1341
+ customer_service_phone_number?: string;
1342
+
1343
+ /**
1344
+ * Number of days the car is being rented.
1345
+ */
1346
+ days_rented: number;
1347
+
1348
+ delivery?: CarRental.Delivery;
1349
+
1350
+ /**
1351
+ * The details of the drivers associated with the trip.
1352
+ */
1353
+ drivers?: Array<CarRental.Driver>;
1354
+
1355
+ /**
1356
+ * List of additional charges being billed.
1357
+ */
1358
+ extra_charges?: Array<CarRental.ExtraCharge>;
1359
+
1360
+ /**
1361
+ * Indicates if the customer did not keep nor cancel their booking.
1362
+ */
1363
+ no_show?: boolean;
1364
+
1365
+ pickup_address?: Stripe.Address;
1366
+
1367
+ /**
1368
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1369
+ */
1370
+ pickup_at: number;
1371
+
1372
+ /**
1373
+ * Rental rate.
1374
+ */
1375
+ rate_amount?: number;
1376
+
1377
+ /**
1378
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1379
+ */
1380
+ rate_interval?: CarRental.RateInterval;
1381
+
1382
+ /**
1383
+ * The full name of the person or entity renting the car.
1384
+ */
1385
+ renter_name?: string;
1386
+
1387
+ return_address?: Stripe.Address;
1388
+
1389
+ /**
1390
+ * Car return time. Measured in seconds since the Unix epoch.
1391
+ */
1392
+ return_at: number;
1393
+
1394
+ /**
1395
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1396
+ */
1397
+ tax_exempt?: boolean;
1398
+ }
1399
+
1400
+ namespace CarRental {
1401
+ interface Affiliate {
1402
+ /**
1403
+ * The name of the affiliate that originated the purchase.
1404
+ */
1405
+ name?: string;
1406
+ }
1407
+
1408
+ interface Delivery {
1409
+ /**
1410
+ * The delivery method for the payment
1411
+ */
1412
+ mode?: Delivery.Mode;
1413
+
1414
+ recipient?: Delivery.Recipient;
1415
+ }
1416
+
1417
+ namespace Delivery {
1418
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1419
+
1420
+ interface Recipient {
1421
+ /**
1422
+ * The email of the recipient the ticket is delivered to.
1423
+ */
1424
+ email?: string;
1425
+
1426
+ /**
1427
+ * The name of the recipient the ticket is delivered to.
1428
+ */
1429
+ name?: string;
1430
+
1431
+ /**
1432
+ * The phone number of the recipient the ticket is delivered to.
1433
+ */
1434
+ phone?: string;
1435
+ }
1436
+ }
1437
+
1438
+ interface Driver {
1439
+ /**
1440
+ * Full name of the driver on the reservation.
1441
+ */
1442
+ name?: string;
1443
+ }
1444
+
1445
+ type ExtraCharge =
1446
+ | 'extra_mileage'
1447
+ | 'gas'
1448
+ | 'late_return'
1449
+ | 'one_way_service'
1450
+ | 'parking_violation';
1451
+
1452
+ type RateInterval = 'day' | 'month' | 'week';
1453
+ }
1454
+
1455
+ interface EventDetails {
1456
+ /**
1457
+ * Indicates if the tickets are digitally checked when entering the venue.
1458
+ */
1459
+ access_controlled_venue?: boolean;
1460
+
1461
+ address?: Stripe.Address;
1462
+
1463
+ affiliate?: EventDetails.Affiliate;
1464
+
1465
+ /**
1466
+ * The name of the company
1467
+ */
1468
+ company?: string;
1469
+
1470
+ delivery?: EventDetails.Delivery;
1471
+
1472
+ /**
1473
+ * Event end time. Measured in seconds since the Unix epoch.
1474
+ */
1475
+ ends_at?: number;
1476
+
1477
+ /**
1478
+ * Type of the event entertainment (concert, sports event etc)
1479
+ */
1480
+ genre?: string;
1481
+
1482
+ /**
1483
+ * The name of the event.
1484
+ */
1485
+ name?: string;
1486
+
1487
+ /**
1488
+ * Event start time. Measured in seconds since the Unix epoch.
1489
+ */
1490
+ starts_at?: number;
1491
+ }
1492
+
1493
+ namespace EventDetails {
1494
+ interface Affiliate {
1495
+ /**
1496
+ * The name of the affiliate that originated the purchase.
1497
+ */
1498
+ name?: string;
1499
+ }
1500
+
1501
+ interface Delivery {
1502
+ /**
1503
+ * The delivery method for the payment
1504
+ */
1505
+ mode?: Delivery.Mode;
1506
+
1507
+ recipient?: Delivery.Recipient;
1508
+ }
1509
+
1510
+ namespace Delivery {
1511
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1512
+
1513
+ interface Recipient {
1514
+ /**
1515
+ * The email of the recipient the ticket is delivered to.
1516
+ */
1517
+ email?: string;
1518
+
1519
+ /**
1520
+ * The name of the recipient the ticket is delivered to.
1521
+ */
1522
+ name?: string;
1523
+
1524
+ /**
1525
+ * The phone number of the recipient the ticket is delivered to.
1526
+ */
1527
+ phone?: string;
1528
+ }
1529
+ }
1530
+ }
1531
+
1532
+ interface Subscription {
1533
+ affiliate?: Subscription.Affiliate;
1534
+
1535
+ /**
1536
+ * Info whether the subscription will be auto renewed upon expiry.
1537
+ */
1538
+ auto_renewal?: boolean;
1539
+
1540
+ billing_interval?: Subscription.BillingInterval;
1541
+
1542
+ /**
1543
+ * Subscription end time. Measured in seconds since the Unix epoch.
1544
+ */
1545
+ ends_at?: number;
1546
+
1547
+ /**
1548
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1549
+ */
1550
+ name?: string;
1551
+
1552
+ /**
1553
+ * Subscription start time. Measured in seconds since the Unix epoch.
1554
+ */
1555
+ starts_at?: number;
1556
+ }
1557
+
1558
+ namespace Subscription {
1559
+ interface Affiliate {
1560
+ /**
1561
+ * The name of the affiliate that originated the purchase.
1562
+ */
1563
+ name?: string;
1564
+ }
1565
+
1566
+ interface BillingInterval {
1567
+ /**
1568
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1569
+ */
1570
+ count?: number;
1571
+
1572
+ /**
1573
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1574
+ */
1575
+ interval?: BillingInterval.Interval;
1576
+ }
1577
+
1578
+ namespace BillingInterval {
1579
+ type Interval = 'day' | 'month' | 'week' | 'year';
1580
+ }
1581
+ }
1582
+ }
1583
+
1267
1584
  interface PaymentMethodConfigurationDetails {
1268
1585
  /**
1269
1586
  * ID of the payment method configuration used.
@@ -1323,6 +1640,8 @@ declare module 'stripe' {
1323
1640
 
1324
1641
  link?: PaymentMethodOptions.Link;
1325
1642
 
1643
+ mb_way?: PaymentMethodOptions.MbWay;
1644
+
1326
1645
  mobilepay?: PaymentMethodOptions.Mobilepay;
1327
1646
 
1328
1647
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1335,10 +1654,14 @@ declare module 'stripe' {
1335
1654
 
1336
1655
  paypal?: PaymentMethodOptions.Paypal;
1337
1656
 
1657
+ payto?: PaymentMethodOptions.Payto;
1658
+
1338
1659
  pix?: PaymentMethodOptions.Pix;
1339
1660
 
1340
1661
  promptpay?: PaymentMethodOptions.Promptpay;
1341
1662
 
1663
+ rechnung?: PaymentMethodOptions.Rechnung;
1664
+
1342
1665
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1343
1666
 
1344
1667
  sepa_debit?: PaymentMethodOptions.SepaDebit;
@@ -1617,6 +1940,11 @@ declare module 'stripe' {
1617
1940
  */
1618
1941
  network: Card.Network | null;
1619
1942
 
1943
+ /**
1944
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
1945
+ */
1946
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1947
+
1620
1948
  /**
1621
1949
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1622
1950
  */
@@ -1667,6 +1995,8 @@ declare module 'stripe' {
1667
1995
  * 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.
1668
1996
  */
1669
1997
  statement_descriptor_suffix_kanji?: string;
1998
+
1999
+ statement_details?: Card.StatementDetails;
1670
2000
  }
1671
2001
 
1672
2002
  namespace Card {
@@ -1792,6 +2122,8 @@ declare module 'stripe' {
1792
2122
  | 'unknown'
1793
2123
  | 'visa';
1794
2124
 
2125
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2126
+
1795
2127
  type RequestExtendedAuthorization = 'if_available' | 'never';
1796
2128
 
1797
2129
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1803,6 +2135,49 @@ declare module 'stripe' {
1803
2135
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1804
2136
 
1805
2137
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2138
+
2139
+ interface StatementDetails {
2140
+ address?: StatementDetails.Address;
2141
+
2142
+ /**
2143
+ * Phone number
2144
+ */
2145
+ phone?: string;
2146
+ }
2147
+
2148
+ namespace StatementDetails {
2149
+ interface Address {
2150
+ /**
2151
+ * City, district, suburb, town, or village.
2152
+ */
2153
+ city?: string;
2154
+
2155
+ /**
2156
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2157
+ */
2158
+ country?: string;
2159
+
2160
+ /**
2161
+ * Address line 1 (e.g., street, PO Box, or company name).
2162
+ */
2163
+ line1?: string;
2164
+
2165
+ /**
2166
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2167
+ */
2168
+ line2?: string;
2169
+
2170
+ /**
2171
+ * ZIP or postal code.
2172
+ */
2173
+ postal_code?: string;
2174
+
2175
+ /**
2176
+ * State, county, province, or region.
2177
+ */
2178
+ state?: string;
2179
+ }
2180
+ }
1806
2181
  }
1807
2182
 
1808
2183
  interface CardPresent {
@@ -2076,6 +2451,19 @@ declare module 'stripe' {
2076
2451
  type SetupFutureUsage = 'none' | 'off_session';
2077
2452
  }
2078
2453
 
2454
+ interface MbWay {
2455
+ /**
2456
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2457
+ *
2458
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2459
+ *
2460
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2461
+ *
2462
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2463
+ */
2464
+ setup_future_usage?: 'none';
2465
+ }
2466
+
2079
2467
  interface Mobilepay {
2080
2468
  /**
2081
2469
  * Controls when the funds will be captured from the customer's account.
@@ -2167,6 +2555,11 @@ declare module 'stripe' {
2167
2555
  */
2168
2556
  reference: string | null;
2169
2557
 
2558
+ /**
2559
+ * 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.
2560
+ */
2561
+ reference_id?: string | null;
2562
+
2170
2563
  /**
2171
2564
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2172
2565
  *
@@ -2177,12 +2570,95 @@ declare module 'stripe' {
2177
2570
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2178
2571
  */
2179
2572
  setup_future_usage?: Paypal.SetupFutureUsage;
2573
+
2574
+ /**
2575
+ * 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.
2576
+ */
2577
+ subsellers?: Array<string>;
2180
2578
  }
2181
2579
 
2182
2580
  namespace Paypal {
2183
2581
  type SetupFutureUsage = 'none' | 'off_session';
2184
2582
  }
2185
2583
 
2584
+ interface Payto {
2585
+ mandate_options?: Payto.MandateOptions;
2586
+
2587
+ /**
2588
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2589
+ *
2590
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2591
+ *
2592
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2593
+ *
2594
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://stripe.com/strong-customer-authentication).
2595
+ */
2596
+ setup_future_usage?: Payto.SetupFutureUsage;
2597
+ }
2598
+
2599
+ namespace Payto {
2600
+ interface MandateOptions {
2601
+ /**
2602
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2603
+ */
2604
+ amount: number | null;
2605
+
2606
+ /**
2607
+ * 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.
2608
+ */
2609
+ amount_type: MandateOptions.AmountType | null;
2610
+
2611
+ /**
2612
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2613
+ */
2614
+ end_date: string | null;
2615
+
2616
+ /**
2617
+ * The periodicity at which payments will be collected.
2618
+ */
2619
+ payment_schedule: MandateOptions.PaymentSchedule | null;
2620
+
2621
+ /**
2622
+ * 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.
2623
+ */
2624
+ payments_per_period: number | null;
2625
+
2626
+ /**
2627
+ * The purpose for which payments are made. Defaults to retail.
2628
+ */
2629
+ purpose: MandateOptions.Purpose | null;
2630
+ }
2631
+
2632
+ namespace MandateOptions {
2633
+ type AmountType = 'fixed' | 'maximum';
2634
+
2635
+ type PaymentSchedule =
2636
+ | 'adhoc'
2637
+ | 'annual'
2638
+ | 'daily'
2639
+ | 'fortnightly'
2640
+ | 'monthly'
2641
+ | 'quarterly'
2642
+ | 'semi_annual'
2643
+ | 'weekly';
2644
+
2645
+ type Purpose =
2646
+ | 'dependant_support'
2647
+ | 'government'
2648
+ | 'loan'
2649
+ | 'mortgage'
2650
+ | 'other'
2651
+ | 'pension'
2652
+ | 'personal'
2653
+ | 'retail'
2654
+ | 'salary'
2655
+ | 'tax'
2656
+ | 'utility';
2657
+ }
2658
+
2659
+ type SetupFutureUsage = 'none' | 'off_session';
2660
+ }
2661
+
2186
2662
  interface Pix {
2187
2663
  /**
2188
2664
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
@@ -2219,6 +2695,8 @@ declare module 'stripe' {
2219
2695
  setup_future_usage?: 'none';
2220
2696
  }
2221
2697
 
2698
+ interface Rechnung {}
2699
+
2222
2700
  interface RevolutPay {
2223
2701
  /**
2224
2702
  * Controls when the funds will be captured from the customer's account.
@@ -2355,6 +2833,8 @@ declare module 'stripe' {
2355
2833
  interface FinancialConnections {
2356
2834
  filters?: FinancialConnections.Filters;
2357
2835
 
2836
+ manual_entry?: FinancialConnections.ManualEntry;
2837
+
2358
2838
  /**
2359
2839
  * The list of permissions to request. The `payment_method` permission must be included.
2360
2840
  */
@@ -2377,19 +2857,39 @@ declare module 'stripe' {
2377
2857
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2378
2858
  */
2379
2859
  account_subcategories?: Array<Filters.AccountSubcategory>;
2860
+
2861
+ /**
2862
+ * The institution to use to filter for possible accounts to link.
2863
+ */
2864
+ institution?: string;
2380
2865
  }
2381
2866
 
2382
2867
  namespace Filters {
2383
2868
  type AccountSubcategory = 'checking' | 'savings';
2384
2869
  }
2385
2870
 
2871
+ interface ManualEntry {
2872
+ /**
2873
+ * Settings for configuring manual entry of account details.
2874
+ */
2875
+ mode?: ManualEntry.Mode;
2876
+ }
2877
+
2878
+ namespace ManualEntry {
2879
+ type Mode = 'automatic' | 'custom';
2880
+ }
2881
+
2386
2882
  type Permission =
2387
2883
  | 'balances'
2388
2884
  | 'ownership'
2389
2885
  | 'payment_method'
2390
2886
  | 'transactions';
2391
2887
 
2392
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2888
+ type Prefetch =
2889
+ | 'balances'
2890
+ | 'inferred_balances'
2891
+ | 'ownership'
2892
+ | 'transactions';
2393
2893
  }
2394
2894
 
2395
2895
  interface MandateOptions {
@@ -2476,6 +2976,8 @@ declare module 'stripe' {
2476
2976
  }
2477
2977
  }
2478
2978
 
2979
+ type SecretKeyConfirmation = 'optional' | 'required';
2980
+
2479
2981
  type SetupFutureUsage = 'off_session' | 'on_session';
2480
2982
 
2481
2983
  interface Shipping {