stripe 16.8.0 → 16.9.0-beta.2

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