stripe 16.7.0 → 16.8.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 (161) hide show
  1. package/CHANGELOG.md +799 -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 +30 -3
  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 +27 -1
  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 +215 -0
  64. package/types/Accounts.d.ts +106 -1
  65. package/types/AccountsResource.d.ts +247 -1
  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 +72 -0
  73. package/types/ChargesResource.d.ts +1294 -0
  74. package/types/Checkout/Sessions.d.ts +116 -4
  75. package/types/Checkout/SessionsResource.d.ts +111 -5
  76. package/types/ConfirmationTokens.d.ts +62 -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/CustomersResource.d.ts +2 -0
  82. package/types/Disputes.d.ts +158 -0
  83. package/types/DisputesResource.d.ts +120 -0
  84. package/types/EventTypes.d.ts +460 -0
  85. package/types/Events.d.ts +85 -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 +138 -0
  101. package/types/Invoices.d.ts +116 -1
  102. package/types/InvoicesResource.d.ts +5455 -1797
  103. package/types/Issuing/CardholdersResource.d.ts +2 -1
  104. package/types/Issuing/CreditUnderwritingRecords.d.ts +446 -0
  105. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1017 -0
  106. package/types/LineItems.d.ts +7 -0
  107. package/types/Mandates.d.ts +77 -0
  108. package/types/Margins.d.ts +56 -0
  109. package/types/MarginsResource.d.ts +114 -0
  110. package/types/Orders.d.ts +1083 -0
  111. package/types/OrdersResource.d.ts +2763 -0
  112. package/types/PaymentIntents.d.ts +491 -1
  113. package/types/PaymentIntentsResource.d.ts +7001 -3464
  114. package/types/PaymentLinks.d.ts +1 -0
  115. package/types/PaymentLinksResource.d.ts +2 -0
  116. package/types/PaymentMethodConfigurations.d.ts +36 -0
  117. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  118. package/types/PaymentMethods.d.ts +62 -0
  119. package/types/PaymentMethodsResource.d.ts +110 -0
  120. package/types/Prices.d.ts +22 -0
  121. package/types/PricesResource.d.ts +22 -0
  122. package/types/Products.d.ts +39 -0
  123. package/types/ProductsResource.d.ts +36 -0
  124. package/types/QuoteLines.d.ts +634 -0
  125. package/types/QuotePhases.d.ts +198 -0
  126. package/types/QuotePhasesResource.d.ts +67 -0
  127. package/types/QuotePreviewInvoices.d.ts +1530 -0
  128. package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
  129. package/types/Quotes.d.ts +596 -1
  130. package/types/QuotesResource.d.ts +3174 -265
  131. package/types/SetupAttempts.d.ts +9 -0
  132. package/types/SetupIntents.d.ts +120 -1
  133. package/types/SetupIntentsResource.d.ts +546 -3
  134. package/types/Sources.d.ts +23 -0
  135. package/types/SubscriptionItems.d.ts +21 -0
  136. package/types/SubscriptionItemsResource.d.ts +109 -0
  137. package/types/SubscriptionSchedules.d.ts +200 -0
  138. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  139. package/types/Subscriptions.d.ts +82 -1
  140. package/types/SubscriptionsResource.d.ts +347 -2
  141. package/types/Tax/Associations.d.ts +126 -0
  142. package/types/Tax/AssociationsResource.d.ts +29 -0
  143. package/types/Tax/Forms.d.ts +133 -0
  144. package/types/Tax/FormsResource.d.ts +90 -0
  145. package/types/Terminal/Readers.d.ts +278 -0
  146. package/types/Terminal/ReadersResource.d.ts +208 -0
  147. package/types/TestHelpers/ConfirmationTokensResource.d.ts +55 -0
  148. package/types/TestHelpers/Treasury/OutboundPaymentsResource.d.ts +5 -0
  149. package/types/TestHelpers/Treasury/OutboundTransfersResource.d.ts +5 -0
  150. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  151. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  152. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  153. package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
  154. package/types/Treasury/OutboundPayments.d.ts +6 -1
  155. package/types/Treasury/OutboundTransfers.d.ts +32 -1
  156. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  157. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  158. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  159. package/types/WebhookEndpointsResource.d.ts +54 -0
  160. package/types/index.d.ts +67 -0
  161. 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
  *
@@ -246,6 +255,25 @@ declare module 'stripe' {
246
255
  }
247
256
  }
248
257
 
258
+ interface AsyncWorkflows {
259
+ inputs?: AsyncWorkflows.Inputs;
260
+ }
261
+
262
+ namespace AsyncWorkflows {
263
+ interface Inputs {
264
+ tax?: Inputs.Tax;
265
+ }
266
+
267
+ namespace Inputs {
268
+ interface Tax {
269
+ /**
270
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
271
+ */
272
+ calculation: string;
273
+ }
274
+ }
275
+ }
276
+
249
277
  interface AutomaticPaymentMethods {
250
278
  /**
251
279
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -425,11 +453,15 @@ declare module 'stripe' {
425
453
  | 'email_invalid'
426
454
  | 'expired_card'
427
455
  | 'financial_connections_account_inactive'
456
+ | 'financial_connections_institution_unavailable'
428
457
  | 'financial_connections_no_successful_transaction_refresh'
429
458
  | 'forwarding_api_inactive'
430
459
  | 'forwarding_api_invalid_parameter'
431
460
  | 'forwarding_api_upstream_connection_error'
432
461
  | 'forwarding_api_upstream_connection_timeout'
462
+ | 'gift_card_balance_insufficient'
463
+ | 'gift_card_code_exists'
464
+ | 'gift_card_inactive'
433
465
  | 'idempotency_key_in_use'
434
466
  | 'incorrect_address'
435
467
  | 'incorrect_cvc'
@@ -519,6 +551,7 @@ declare module 'stripe' {
519
551
  | 'return_intent_already_processed'
520
552
  | 'routing_number_invalid'
521
553
  | 'secret_key_required'
554
+ | 'sensitive_data_access_expired'
522
555
  | 'sepa_unsupported_account'
523
556
  | 'setup_attempt_failed'
524
557
  | 'setup_intent_authentication_failure'
@@ -1262,6 +1295,289 @@ declare module 'stripe' {
1262
1295
  }
1263
1296
  }
1264
1297
 
1298
+ interface PaymentDetails {
1299
+ car_rental?: PaymentDetails.CarRental;
1300
+
1301
+ event_details?: PaymentDetails.EventDetails;
1302
+
1303
+ subscription?: PaymentDetails.Subscription;
1304
+ }
1305
+
1306
+ namespace PaymentDetails {
1307
+ interface CarRental {
1308
+ affiliate?: CarRental.Affiliate;
1309
+
1310
+ /**
1311
+ * The booking number associated with the car rental.
1312
+ */
1313
+ booking_number: string;
1314
+
1315
+ /**
1316
+ * Class code of the car.
1317
+ */
1318
+ car_class_code?: string;
1319
+
1320
+ /**
1321
+ * Make of the car.
1322
+ */
1323
+ car_make?: string;
1324
+
1325
+ /**
1326
+ * Model of the car.
1327
+ */
1328
+ car_model?: string;
1329
+
1330
+ /**
1331
+ * The name of the rental car company.
1332
+ */
1333
+ company?: string;
1334
+
1335
+ /**
1336
+ * The customer service phone number of the car rental company.
1337
+ */
1338
+ customer_service_phone_number?: string;
1339
+
1340
+ /**
1341
+ * Number of days the car is being rented.
1342
+ */
1343
+ days_rented: number;
1344
+
1345
+ delivery?: CarRental.Delivery;
1346
+
1347
+ /**
1348
+ * The details of the drivers associated with the trip.
1349
+ */
1350
+ drivers?: Array<CarRental.Driver>;
1351
+
1352
+ /**
1353
+ * List of additional charges being billed.
1354
+ */
1355
+ extra_charges?: Array<CarRental.ExtraCharge>;
1356
+
1357
+ /**
1358
+ * Indicates if the customer did not keep nor cancel their booking.
1359
+ */
1360
+ no_show?: boolean;
1361
+
1362
+ pickup_address?: Stripe.Address;
1363
+
1364
+ /**
1365
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1366
+ */
1367
+ pickup_at: number;
1368
+
1369
+ /**
1370
+ * Rental rate.
1371
+ */
1372
+ rate_amount?: number;
1373
+
1374
+ /**
1375
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1376
+ */
1377
+ rate_interval?: CarRental.RateInterval;
1378
+
1379
+ /**
1380
+ * The full name of the person or entity renting the car.
1381
+ */
1382
+ renter_name?: string;
1383
+
1384
+ return_address?: Stripe.Address;
1385
+
1386
+ /**
1387
+ * Car return time. Measured in seconds since the Unix epoch.
1388
+ */
1389
+ return_at: number;
1390
+
1391
+ /**
1392
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1393
+ */
1394
+ tax_exempt?: boolean;
1395
+ }
1396
+
1397
+ namespace CarRental {
1398
+ interface Affiliate {
1399
+ /**
1400
+ * The name of the affiliate that originated the purchase.
1401
+ */
1402
+ name?: string;
1403
+ }
1404
+
1405
+ interface Delivery {
1406
+ /**
1407
+ * The delivery method for the payment
1408
+ */
1409
+ mode?: Delivery.Mode;
1410
+
1411
+ recipient?: Delivery.Recipient;
1412
+ }
1413
+
1414
+ namespace Delivery {
1415
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1416
+
1417
+ interface Recipient {
1418
+ /**
1419
+ * The email of the recipient the ticket is delivered to.
1420
+ */
1421
+ email?: string;
1422
+
1423
+ /**
1424
+ * The name of the recipient the ticket is delivered to.
1425
+ */
1426
+ name?: string;
1427
+
1428
+ /**
1429
+ * The phone number of the recipient the ticket is delivered to.
1430
+ */
1431
+ phone?: string;
1432
+ }
1433
+ }
1434
+
1435
+ interface Driver {
1436
+ /**
1437
+ * Full name of the driver on the reservation.
1438
+ */
1439
+ name?: string;
1440
+ }
1441
+
1442
+ type ExtraCharge =
1443
+ | 'extra_mileage'
1444
+ | 'gas'
1445
+ | 'late_return'
1446
+ | 'one_way_service'
1447
+ | 'parking_violation';
1448
+
1449
+ type RateInterval = 'day' | 'month' | 'week';
1450
+ }
1451
+
1452
+ interface EventDetails {
1453
+ /**
1454
+ * Indicates if the tickets are digitally checked when entering the venue.
1455
+ */
1456
+ access_controlled_venue?: boolean;
1457
+
1458
+ address?: Stripe.Address;
1459
+
1460
+ affiliate?: EventDetails.Affiliate;
1461
+
1462
+ /**
1463
+ * The name of the company
1464
+ */
1465
+ company?: string;
1466
+
1467
+ delivery?: EventDetails.Delivery;
1468
+
1469
+ /**
1470
+ * Event end time. Measured in seconds since the Unix epoch.
1471
+ */
1472
+ ends_at?: number;
1473
+
1474
+ /**
1475
+ * Type of the event entertainment (concert, sports event etc)
1476
+ */
1477
+ genre?: string;
1478
+
1479
+ /**
1480
+ * The name of the event.
1481
+ */
1482
+ name?: string;
1483
+
1484
+ /**
1485
+ * Event start time. Measured in seconds since the Unix epoch.
1486
+ */
1487
+ starts_at?: number;
1488
+ }
1489
+
1490
+ namespace EventDetails {
1491
+ interface Affiliate {
1492
+ /**
1493
+ * The name of the affiliate that originated the purchase.
1494
+ */
1495
+ name?: string;
1496
+ }
1497
+
1498
+ interface Delivery {
1499
+ /**
1500
+ * The delivery method for the payment
1501
+ */
1502
+ mode?: Delivery.Mode;
1503
+
1504
+ recipient?: Delivery.Recipient;
1505
+ }
1506
+
1507
+ namespace Delivery {
1508
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1509
+
1510
+ interface Recipient {
1511
+ /**
1512
+ * The email of the recipient the ticket is delivered to.
1513
+ */
1514
+ email?: string;
1515
+
1516
+ /**
1517
+ * The name of the recipient the ticket is delivered to.
1518
+ */
1519
+ name?: string;
1520
+
1521
+ /**
1522
+ * The phone number of the recipient the ticket is delivered to.
1523
+ */
1524
+ phone?: string;
1525
+ }
1526
+ }
1527
+ }
1528
+
1529
+ interface Subscription {
1530
+ affiliate?: Subscription.Affiliate;
1531
+
1532
+ /**
1533
+ * Info whether the subscription will be auto renewed upon expiry.
1534
+ */
1535
+ auto_renewal?: boolean;
1536
+
1537
+ billing_interval?: Subscription.BillingInterval;
1538
+
1539
+ /**
1540
+ * Subscription end time. Measured in seconds since the Unix epoch.
1541
+ */
1542
+ ends_at?: number;
1543
+
1544
+ /**
1545
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1546
+ */
1547
+ name?: string;
1548
+
1549
+ /**
1550
+ * Subscription start time. Measured in seconds since the Unix epoch.
1551
+ */
1552
+ starts_at?: number;
1553
+ }
1554
+
1555
+ namespace Subscription {
1556
+ interface Affiliate {
1557
+ /**
1558
+ * The name of the affiliate that originated the purchase.
1559
+ */
1560
+ name?: string;
1561
+ }
1562
+
1563
+ interface BillingInterval {
1564
+ /**
1565
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1566
+ */
1567
+ count?: number;
1568
+
1569
+ /**
1570
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1571
+ */
1572
+ interval?: BillingInterval.Interval;
1573
+ }
1574
+
1575
+ namespace BillingInterval {
1576
+ type Interval = 'day' | 'month' | 'week' | 'year';
1577
+ }
1578
+ }
1579
+ }
1580
+
1265
1581
  interface PaymentMethodConfigurationDetails {
1266
1582
  /**
1267
1583
  * ID of the payment method configuration used.
@@ -1333,10 +1649,14 @@ declare module 'stripe' {
1333
1649
 
1334
1650
  paypal?: PaymentMethodOptions.Paypal;
1335
1651
 
1652
+ payto?: PaymentMethodOptions.Payto;
1653
+
1336
1654
  pix?: PaymentMethodOptions.Pix;
1337
1655
 
1338
1656
  promptpay?: PaymentMethodOptions.Promptpay;
1339
1657
 
1658
+ rechnung?: PaymentMethodOptions.Rechnung;
1659
+
1340
1660
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1341
1661
 
1342
1662
  sepa_debit?: PaymentMethodOptions.SepaDebit;
@@ -1513,6 +1833,8 @@ declare module 'stripe' {
1513
1833
  }
1514
1834
 
1515
1835
  interface BacsDebit {
1836
+ mandate_options?: BacsDebit.MandateOptions;
1837
+
1516
1838
  /**
1517
1839
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
1518
1840
  *
@@ -1526,6 +1848,8 @@ declare module 'stripe' {
1526
1848
  }
1527
1849
 
1528
1850
  namespace BacsDebit {
1851
+ interface MandateOptions {}
1852
+
1529
1853
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1530
1854
  }
1531
1855
 
@@ -1611,6 +1935,11 @@ declare module 'stripe' {
1611
1935
  */
1612
1936
  network: Card.Network | null;
1613
1937
 
1938
+ /**
1939
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
1940
+ */
1941
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
1942
+
1614
1943
  /**
1615
1944
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1616
1945
  */
@@ -1661,6 +1990,8 @@ declare module 'stripe' {
1661
1990
  * 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.
1662
1991
  */
1663
1992
  statement_descriptor_suffix_kanji?: string;
1993
+
1994
+ statement_details?: Card.StatementDetails;
1664
1995
  }
1665
1996
 
1666
1997
  namespace Card {
@@ -1786,6 +2117,8 @@ declare module 'stripe' {
1786
2117
  | 'unknown'
1787
2118
  | 'visa';
1788
2119
 
2120
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2121
+
1789
2122
  type RequestExtendedAuthorization = 'if_available' | 'never';
1790
2123
 
1791
2124
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1797,6 +2130,49 @@ declare module 'stripe' {
1797
2130
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1798
2131
 
1799
2132
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2133
+
2134
+ interface StatementDetails {
2135
+ address?: StatementDetails.Address;
2136
+
2137
+ /**
2138
+ * Phone number
2139
+ */
2140
+ phone?: string;
2141
+ }
2142
+
2143
+ namespace StatementDetails {
2144
+ interface Address {
2145
+ /**
2146
+ * City, district, suburb, town, or village.
2147
+ */
2148
+ city?: string;
2149
+
2150
+ /**
2151
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2152
+ */
2153
+ country?: string;
2154
+
2155
+ /**
2156
+ * Address line 1 (e.g., street, PO Box, or company name).
2157
+ */
2158
+ line1?: string;
2159
+
2160
+ /**
2161
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2162
+ */
2163
+ line2?: string;
2164
+
2165
+ /**
2166
+ * ZIP or postal code.
2167
+ */
2168
+ postal_code?: string;
2169
+
2170
+ /**
2171
+ * State, county, province, or region.
2172
+ */
2173
+ state?: string;
2174
+ }
2175
+ }
1800
2176
  }
1801
2177
 
1802
2178
  interface CardPresent {
@@ -2161,6 +2537,11 @@ declare module 'stripe' {
2161
2537
  */
2162
2538
  reference: string | null;
2163
2539
 
2540
+ /**
2541
+ * 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.
2542
+ */
2543
+ reference_id?: string | null;
2544
+
2164
2545
  /**
2165
2546
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2166
2547
  *
@@ -2171,12 +2552,95 @@ declare module 'stripe' {
2171
2552
  * 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).
2172
2553
  */
2173
2554
  setup_future_usage?: Paypal.SetupFutureUsage;
2555
+
2556
+ /**
2557
+ * 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.
2558
+ */
2559
+ subsellers?: Array<string>;
2174
2560
  }
2175
2561
 
2176
2562
  namespace Paypal {
2177
2563
  type SetupFutureUsage = 'none' | 'off_session';
2178
2564
  }
2179
2565
 
2566
+ interface Payto {
2567
+ mandate_options?: Payto.MandateOptions;
2568
+
2569
+ /**
2570
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2571
+ *
2572
+ * 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.
2573
+ *
2574
+ * 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.
2575
+ *
2576
+ * 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).
2577
+ */
2578
+ setup_future_usage?: Payto.SetupFutureUsage;
2579
+ }
2580
+
2581
+ namespace Payto {
2582
+ interface MandateOptions {
2583
+ /**
2584
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2585
+ */
2586
+ amount: number | null;
2587
+
2588
+ /**
2589
+ * 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.
2590
+ */
2591
+ amount_type: MandateOptions.AmountType | null;
2592
+
2593
+ /**
2594
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2595
+ */
2596
+ end_date: string | null;
2597
+
2598
+ /**
2599
+ * The periodicity at which payments will be collected.
2600
+ */
2601
+ payment_schedule: MandateOptions.PaymentSchedule | null;
2602
+
2603
+ /**
2604
+ * 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.
2605
+ */
2606
+ payments_per_period: number | null;
2607
+
2608
+ /**
2609
+ * The purpose for which payments are made. Defaults to retail.
2610
+ */
2611
+ purpose: MandateOptions.Purpose | null;
2612
+ }
2613
+
2614
+ namespace MandateOptions {
2615
+ type AmountType = 'fixed' | 'maximum';
2616
+
2617
+ type PaymentSchedule =
2618
+ | 'adhoc'
2619
+ | 'annual'
2620
+ | 'daily'
2621
+ | 'fortnightly'
2622
+ | 'monthly'
2623
+ | 'quarterly'
2624
+ | 'semi_annual'
2625
+ | 'weekly';
2626
+
2627
+ type Purpose =
2628
+ | 'dependant_support'
2629
+ | 'government'
2630
+ | 'loan'
2631
+ | 'mortgage'
2632
+ | 'other'
2633
+ | 'pension'
2634
+ | 'personal'
2635
+ | 'retail'
2636
+ | 'salary'
2637
+ | 'tax'
2638
+ | 'utility';
2639
+ }
2640
+
2641
+ type SetupFutureUsage = 'none' | 'off_session';
2642
+ }
2643
+
2180
2644
  interface Pix {
2181
2645
  /**
2182
2646
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
@@ -2213,6 +2677,8 @@ declare module 'stripe' {
2213
2677
  setup_future_usage?: 'none';
2214
2678
  }
2215
2679
 
2680
+ interface Rechnung {}
2681
+
2216
2682
  interface RevolutPay {
2217
2683
  /**
2218
2684
  * Controls when the funds will be captured from the customer's account.
@@ -2349,6 +2815,8 @@ declare module 'stripe' {
2349
2815
  interface FinancialConnections {
2350
2816
  filters?: FinancialConnections.Filters;
2351
2817
 
2818
+ manual_entry?: FinancialConnections.ManualEntry;
2819
+
2352
2820
  /**
2353
2821
  * The list of permissions to request. The `payment_method` permission must be included.
2354
2822
  */
@@ -2371,19 +2839,39 @@ declare module 'stripe' {
2371
2839
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2372
2840
  */
2373
2841
  account_subcategories?: Array<Filters.AccountSubcategory>;
2842
+
2843
+ /**
2844
+ * The institution to use to filter for possible accounts to link.
2845
+ */
2846
+ institution?: string;
2374
2847
  }
2375
2848
 
2376
2849
  namespace Filters {
2377
2850
  type AccountSubcategory = 'checking' | 'savings';
2378
2851
  }
2379
2852
 
2853
+ interface ManualEntry {
2854
+ /**
2855
+ * Settings for configuring manual entry of account details.
2856
+ */
2857
+ mode?: ManualEntry.Mode;
2858
+ }
2859
+
2860
+ namespace ManualEntry {
2861
+ type Mode = 'automatic' | 'custom';
2862
+ }
2863
+
2380
2864
  type Permission =
2381
2865
  | 'balances'
2382
2866
  | 'ownership'
2383
2867
  | 'payment_method'
2384
2868
  | 'transactions';
2385
2869
 
2386
- type Prefetch = 'balances' | 'ownership' | 'transactions';
2870
+ type Prefetch =
2871
+ | 'balances'
2872
+ | 'inferred_balances'
2873
+ | 'ownership'
2874
+ | 'transactions';
2387
2875
  }
2388
2876
 
2389
2877
  interface MandateOptions {
@@ -2470,6 +2958,8 @@ declare module 'stripe' {
2470
2958
  }
2471
2959
  }
2472
2960
 
2961
+ type SecretKeyConfirmation = 'optional' | 'required';
2962
+
2473
2963
  type SetupFutureUsage = 'off_session' | 'on_session';
2474
2964
 
2475
2965
  interface Shipping {