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
@@ -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
  */
@@ -122,7 +124,7 @@ declare module 'stripe' {
122
124
  last_payment_error: PaymentIntent.LastPaymentError | null;
123
125
 
124
126
  /**
125
- * The latest charge created by this PaymentIntent.
127
+ * ID of the latest [Charge object](https://stripe.com/docs/api/charges) created by this PaymentIntent. This property is `null` until PaymentIntent confirmation is attempted.
126
128
  */
127
129
  latest_charge: string | Stripe.Charge | null;
128
130
 
@@ -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
  *
@@ -244,6 +253,25 @@ declare module 'stripe' {
244
253
  }
245
254
  }
246
255
 
256
+ interface AsyncWorkflows {
257
+ inputs?: AsyncWorkflows.Inputs;
258
+ }
259
+
260
+ namespace AsyncWorkflows {
261
+ interface Inputs {
262
+ tax?: Inputs.Tax;
263
+ }
264
+
265
+ namespace Inputs {
266
+ interface Tax {
267
+ /**
268
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
269
+ */
270
+ calculation: string;
271
+ }
272
+ }
273
+ }
274
+
247
275
  interface AutomaticPaymentMethods {
248
276
  /**
249
277
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -422,11 +450,15 @@ declare module 'stripe' {
422
450
  | 'email_invalid'
423
451
  | 'expired_card'
424
452
  | 'financial_connections_account_inactive'
453
+ | 'financial_connections_institution_unavailable'
425
454
  | 'financial_connections_no_successful_transaction_refresh'
426
455
  | 'forwarding_api_inactive'
427
456
  | 'forwarding_api_invalid_parameter'
428
457
  | 'forwarding_api_upstream_connection_error'
429
458
  | 'forwarding_api_upstream_connection_timeout'
459
+ | 'gift_card_balance_insufficient'
460
+ | 'gift_card_code_exists'
461
+ | 'gift_card_inactive'
430
462
  | 'idempotency_key_in_use'
431
463
  | 'incorrect_address'
432
464
  | 'incorrect_cvc'
@@ -515,6 +547,7 @@ declare module 'stripe' {
515
547
  | 'return_intent_already_processed'
516
548
  | 'routing_number_invalid'
517
549
  | 'secret_key_required'
550
+ | 'sensitive_data_access_expired'
518
551
  | 'sepa_unsupported_account'
519
552
  | 'setup_attempt_failed'
520
553
  | 'setup_intent_authentication_failure'
@@ -1258,6 +1291,289 @@ declare module 'stripe' {
1258
1291
  }
1259
1292
  }
1260
1293
 
1294
+ interface PaymentDetails {
1295
+ car_rental?: PaymentDetails.CarRental;
1296
+
1297
+ event_details?: PaymentDetails.EventDetails;
1298
+
1299
+ subscription?: PaymentDetails.Subscription;
1300
+ }
1301
+
1302
+ namespace PaymentDetails {
1303
+ interface CarRental {
1304
+ affiliate?: CarRental.Affiliate;
1305
+
1306
+ /**
1307
+ * The booking number associated with the car rental.
1308
+ */
1309
+ booking_number: string;
1310
+
1311
+ /**
1312
+ * Class code of the car.
1313
+ */
1314
+ car_class_code?: string;
1315
+
1316
+ /**
1317
+ * Make of the car.
1318
+ */
1319
+ car_make?: string;
1320
+
1321
+ /**
1322
+ * Model of the car.
1323
+ */
1324
+ car_model?: string;
1325
+
1326
+ /**
1327
+ * The name of the rental car company.
1328
+ */
1329
+ company?: string;
1330
+
1331
+ /**
1332
+ * The customer service phone number of the car rental company.
1333
+ */
1334
+ customer_service_phone_number?: string;
1335
+
1336
+ /**
1337
+ * Number of days the car is being rented.
1338
+ */
1339
+ days_rented: number;
1340
+
1341
+ delivery?: CarRental.Delivery;
1342
+
1343
+ /**
1344
+ * The details of the drivers associated with the trip.
1345
+ */
1346
+ drivers?: Array<CarRental.Driver>;
1347
+
1348
+ /**
1349
+ * List of additional charges being billed.
1350
+ */
1351
+ extra_charges?: Array<CarRental.ExtraCharge>;
1352
+
1353
+ /**
1354
+ * Indicates if the customer did not keep nor cancel their booking.
1355
+ */
1356
+ no_show?: boolean;
1357
+
1358
+ pickup_address?: Stripe.Address;
1359
+
1360
+ /**
1361
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1362
+ */
1363
+ pickup_at: number;
1364
+
1365
+ /**
1366
+ * Rental rate.
1367
+ */
1368
+ rate_amount?: number;
1369
+
1370
+ /**
1371
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1372
+ */
1373
+ rate_interval?: CarRental.RateInterval;
1374
+
1375
+ /**
1376
+ * The full name of the person or entity renting the car.
1377
+ */
1378
+ renter_name?: string;
1379
+
1380
+ return_address?: Stripe.Address;
1381
+
1382
+ /**
1383
+ * Car return time. Measured in seconds since the Unix epoch.
1384
+ */
1385
+ return_at: number;
1386
+
1387
+ /**
1388
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1389
+ */
1390
+ tax_exempt?: boolean;
1391
+ }
1392
+
1393
+ namespace CarRental {
1394
+ interface Affiliate {
1395
+ /**
1396
+ * The name of the affiliate that originated the purchase.
1397
+ */
1398
+ name?: string;
1399
+ }
1400
+
1401
+ interface Delivery {
1402
+ /**
1403
+ * The delivery method for the payment
1404
+ */
1405
+ mode?: Delivery.Mode;
1406
+
1407
+ recipient?: Delivery.Recipient;
1408
+ }
1409
+
1410
+ namespace Delivery {
1411
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1412
+
1413
+ interface Recipient {
1414
+ /**
1415
+ * The email of the recipient the ticket is delivered to.
1416
+ */
1417
+ email?: string;
1418
+
1419
+ /**
1420
+ * The name of the recipient the ticket is delivered to.
1421
+ */
1422
+ name?: string;
1423
+
1424
+ /**
1425
+ * The phone number of the recipient the ticket is delivered to.
1426
+ */
1427
+ phone?: string;
1428
+ }
1429
+ }
1430
+
1431
+ interface Driver {
1432
+ /**
1433
+ * Full name of the driver on the reservation.
1434
+ */
1435
+ name?: string;
1436
+ }
1437
+
1438
+ type ExtraCharge =
1439
+ | 'extra_mileage'
1440
+ | 'gas'
1441
+ | 'late_return'
1442
+ | 'one_way_service'
1443
+ | 'parking_violation';
1444
+
1445
+ type RateInterval = 'day' | 'month' | 'week';
1446
+ }
1447
+
1448
+ interface EventDetails {
1449
+ /**
1450
+ * Indicates if the tickets are digitally checked when entering the venue.
1451
+ */
1452
+ access_controlled_venue?: boolean;
1453
+
1454
+ address?: Stripe.Address;
1455
+
1456
+ affiliate?: EventDetails.Affiliate;
1457
+
1458
+ /**
1459
+ * The name of the company
1460
+ */
1461
+ company?: string;
1462
+
1463
+ delivery?: EventDetails.Delivery;
1464
+
1465
+ /**
1466
+ * Event end time. Measured in seconds since the Unix epoch.
1467
+ */
1468
+ ends_at?: number;
1469
+
1470
+ /**
1471
+ * Type of the event entertainment (concert, sports event etc)
1472
+ */
1473
+ genre?: string;
1474
+
1475
+ /**
1476
+ * The name of the event.
1477
+ */
1478
+ name?: string;
1479
+
1480
+ /**
1481
+ * Event start time. Measured in seconds since the Unix epoch.
1482
+ */
1483
+ starts_at?: number;
1484
+ }
1485
+
1486
+ namespace EventDetails {
1487
+ interface Affiliate {
1488
+ /**
1489
+ * The name of the affiliate that originated the purchase.
1490
+ */
1491
+ name?: string;
1492
+ }
1493
+
1494
+ interface Delivery {
1495
+ /**
1496
+ * The delivery method for the payment
1497
+ */
1498
+ mode?: Delivery.Mode;
1499
+
1500
+ recipient?: Delivery.Recipient;
1501
+ }
1502
+
1503
+ namespace Delivery {
1504
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1505
+
1506
+ interface Recipient {
1507
+ /**
1508
+ * The email of the recipient the ticket is delivered to.
1509
+ */
1510
+ email?: string;
1511
+
1512
+ /**
1513
+ * The name of the recipient the ticket is delivered to.
1514
+ */
1515
+ name?: string;
1516
+
1517
+ /**
1518
+ * The phone number of the recipient the ticket is delivered to.
1519
+ */
1520
+ phone?: string;
1521
+ }
1522
+ }
1523
+ }
1524
+
1525
+ interface Subscription {
1526
+ affiliate?: Subscription.Affiliate;
1527
+
1528
+ /**
1529
+ * Info whether the subscription will be auto renewed upon expiry.
1530
+ */
1531
+ auto_renewal?: boolean;
1532
+
1533
+ billing_interval?: Subscription.BillingInterval;
1534
+
1535
+ /**
1536
+ * Subscription end time. Measured in seconds since the Unix epoch.
1537
+ */
1538
+ ends_at?: number;
1539
+
1540
+ /**
1541
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1542
+ */
1543
+ name?: string;
1544
+
1545
+ /**
1546
+ * Subscription start time. Measured in seconds since the Unix epoch.
1547
+ */
1548
+ starts_at?: number;
1549
+ }
1550
+
1551
+ namespace Subscription {
1552
+ interface Affiliate {
1553
+ /**
1554
+ * The name of the affiliate that originated the purchase.
1555
+ */
1556
+ name?: string;
1557
+ }
1558
+
1559
+ interface BillingInterval {
1560
+ /**
1561
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1562
+ */
1563
+ count?: number;
1564
+
1565
+ /**
1566
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1567
+ */
1568
+ interval?: BillingInterval.Interval;
1569
+ }
1570
+
1571
+ namespace BillingInterval {
1572
+ type Interval = 'day' | 'month' | 'week' | 'year';
1573
+ }
1574
+ }
1575
+ }
1576
+
1261
1577
  interface PaymentMethodConfigurationDetails {
1262
1578
  /**
1263
1579
  * ID of the payment method configuration used.
@@ -1329,10 +1645,14 @@ declare module 'stripe' {
1329
1645
 
1330
1646
  paypal?: PaymentMethodOptions.Paypal;
1331
1647
 
1648
+ payto?: PaymentMethodOptions.Payto;
1649
+
1332
1650
  pix?: PaymentMethodOptions.Pix;
1333
1651
 
1334
1652
  promptpay?: PaymentMethodOptions.Promptpay;
1335
1653
 
1654
+ rechnung?: PaymentMethodOptions.Rechnung;
1655
+
1336
1656
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1337
1657
 
1338
1658
  sepa_debit?: PaymentMethodOptions.SepaDebit;
@@ -1587,6 +1907,11 @@ declare module 'stripe' {
1587
1907
  */
1588
1908
  network: Card.Network | null;
1589
1909
 
1910
+ /**
1911
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
1912
+ */
1913
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1914
+
1590
1915
  /**
1591
1916
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1592
1917
  */
@@ -1635,6 +1960,8 @@ declare module 'stripe' {
1635
1960
  * 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.
1636
1961
  */
1637
1962
  statement_descriptor_suffix_kanji?: string;
1963
+
1964
+ statement_details?: Card.StatementDetails;
1638
1965
  }
1639
1966
 
1640
1967
  namespace Card {
@@ -1759,6 +2086,8 @@ declare module 'stripe' {
1759
2086
  | 'unknown'
1760
2087
  | 'visa';
1761
2088
 
2089
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2090
+
1762
2091
  type RequestExtendedAuthorization = 'if_available' | 'never';
1763
2092
 
1764
2093
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1770,6 +2099,49 @@ declare module 'stripe' {
1770
2099
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1771
2100
 
1772
2101
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2102
+
2103
+ interface StatementDetails {
2104
+ address?: StatementDetails.Address;
2105
+
2106
+ /**
2107
+ * Phone number
2108
+ */
2109
+ phone?: string;
2110
+ }
2111
+
2112
+ namespace StatementDetails {
2113
+ interface Address {
2114
+ /**
2115
+ * City, district, suburb, town, or village.
2116
+ */
2117
+ city?: string;
2118
+
2119
+ /**
2120
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2121
+ */
2122
+ country?: string;
2123
+
2124
+ /**
2125
+ * Address line 1 (e.g., street, PO Box, or company name).
2126
+ */
2127
+ line1?: string;
2128
+
2129
+ /**
2130
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2131
+ */
2132
+ line2?: string;
2133
+
2134
+ /**
2135
+ * ZIP or postal code.
2136
+ */
2137
+ postal_code?: string;
2138
+
2139
+ /**
2140
+ * State, county, province, or region.
2141
+ */
2142
+ state?: string;
2143
+ }
2144
+ }
1773
2145
  }
1774
2146
 
1775
2147
  interface CardPresent {
@@ -2104,6 +2476,11 @@ declare module 'stripe' {
2104
2476
  */
2105
2477
  reference: string | null;
2106
2478
 
2479
+ /**
2480
+ * 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.
2481
+ */
2482
+ reference_id?: string | null;
2483
+
2107
2484
  /**
2108
2485
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2109
2486
  *
@@ -2112,12 +2489,93 @@ declare module 'stripe' {
2112
2489
  * 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).
2113
2490
  */
2114
2491
  setup_future_usage?: Paypal.SetupFutureUsage;
2492
+
2493
+ /**
2494
+ * 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.
2495
+ */
2496
+ subsellers?: Array<string>;
2115
2497
  }
2116
2498
 
2117
2499
  namespace Paypal {
2118
2500
  type SetupFutureUsage = 'none' | 'off_session';
2119
2501
  }
2120
2502
 
2503
+ interface Payto {
2504
+ mandate_options?: Payto.MandateOptions;
2505
+
2506
+ /**
2507
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2508
+ *
2509
+ * 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.
2510
+ *
2511
+ * 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).
2512
+ */
2513
+ setup_future_usage?: Payto.SetupFutureUsage;
2514
+ }
2515
+
2516
+ namespace Payto {
2517
+ interface MandateOptions {
2518
+ /**
2519
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2520
+ */
2521
+ amount: number | null;
2522
+
2523
+ /**
2524
+ * 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.
2525
+ */
2526
+ amount_type: MandateOptions.AmountType | null;
2527
+
2528
+ /**
2529
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2530
+ */
2531
+ end_date: string | null;
2532
+
2533
+ /**
2534
+ * The periodicity at which payments will be collected.
2535
+ */
2536
+ payment_schedule: MandateOptions.PaymentSchedule | null;
2537
+
2538
+ /**
2539
+ * 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.
2540
+ */
2541
+ payments_per_period: number | null;
2542
+
2543
+ /**
2544
+ * The purpose for which payments are made. Defaults to retail.
2545
+ */
2546
+ purpose: MandateOptions.Purpose | null;
2547
+ }
2548
+
2549
+ namespace MandateOptions {
2550
+ type AmountType = 'fixed' | 'maximum';
2551
+
2552
+ type PaymentSchedule =
2553
+ | 'adhoc'
2554
+ | 'annual'
2555
+ | 'daily'
2556
+ | 'fortnightly'
2557
+ | 'monthly'
2558
+ | 'quarterly'
2559
+ | 'semi_annual'
2560
+ | 'weekly';
2561
+
2562
+ type Purpose =
2563
+ | 'dependant_support'
2564
+ | 'government'
2565
+ | 'loan'
2566
+ | 'mortgage'
2567
+ | 'other'
2568
+ | 'pension'
2569
+ | 'personal'
2570
+ | 'retail'
2571
+ | 'salary'
2572
+ | 'tax'
2573
+ | 'utility';
2574
+ }
2575
+
2576
+ type SetupFutureUsage = 'none' | 'off_session';
2577
+ }
2578
+
2121
2579
  interface Pix {
2122
2580
  /**
2123
2581
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
@@ -2150,6 +2608,13 @@ declare module 'stripe' {
2150
2608
  setup_future_usage?: 'none';
2151
2609
  }
2152
2610
 
2611
+ interface Rechnung {
2612
+ /**
2613
+ * A unique identifier that correlates each transaction with the collected risk data.
2614
+ */
2615
+ risk_correlation_id: string | null;
2616
+ }
2617
+
2153
2618
  interface RevolutPay {
2154
2619
  /**
2155
2620
  * Controls when the funds will be captured from the customer's account.
@@ -2274,6 +2739,8 @@ declare module 'stripe' {
2274
2739
  interface FinancialConnections {
2275
2740
  filters?: FinancialConnections.Filters;
2276
2741
 
2742
+ manual_entry?: FinancialConnections.ManualEntry;
2743
+
2277
2744
  /**
2278
2745
  * The list of permissions to request. The `payment_method` permission must be included.
2279
2746
  */
@@ -2296,19 +2763,39 @@ declare module 'stripe' {
2296
2763
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2297
2764
  */
2298
2765
  account_subcategories?: Array<Filters.AccountSubcategory>;
2766
+
2767
+ /**
2768
+ * The institution to use to filter for possible accounts to link.
2769
+ */
2770
+ institution?: string;
2299
2771
  }
2300
2772
 
2301
2773
  namespace Filters {
2302
2774
  type AccountSubcategory = 'checking' | 'savings';
2303
2775
  }
2304
2776
 
2777
+ interface ManualEntry {
2778
+ /**
2779
+ * Settings for configuring manual entry of account details.
2780
+ */
2781
+ mode?: ManualEntry.Mode;
2782
+ }
2783
+
2784
+ namespace ManualEntry {
2785
+ type Mode = 'automatic' | 'custom';
2786
+ }
2787
+
2305
2788
  type Permission =
2306
2789
  | 'balances'
2307
2790
  | 'ownership'
2308
2791
  | 'payment_method'
2309
2792
  | 'transactions';
2310
2793
 
2311
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2794
+ type Prefetch =
2795
+ | 'balances'
2796
+ | 'inferred_balances'
2797
+ | 'ownership'
2798
+ | 'transactions';
2312
2799
  }
2313
2800
 
2314
2801
  interface MandateOptions {
@@ -2391,6 +2878,8 @@ declare module 'stripe' {
2391
2878
  }
2392
2879
  }
2393
2880
 
2881
+ type SecretKeyConfirmation = 'optional' | 'required';
2882
+
2394
2883
  type SetupFutureUsage = 'off_session' | 'on_session';
2395
2884
 
2396
2885
  interface Shipping {