stripe 16.9.0-beta.2 → 16.9.0

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 (164) hide show
  1. package/CHANGELOG.md +123 -822
  2. package/README.md +0 -33
  3. package/VERSION +1 -1
  4. package/cjs/RequestSender.js +5 -66
  5. package/cjs/StripeResource.js +1 -1
  6. package/cjs/apiVersion.js +1 -2
  7. package/cjs/multipart.js +1 -1
  8. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  9. package/cjs/resources/Invoices.js +0 -17
  10. package/cjs/resources/OAuth.js +1 -1
  11. package/cjs/resources/PaymentIntents.js +0 -4
  12. package/cjs/resources/Quotes.js +0 -32
  13. package/cjs/resources/SubscriptionSchedules.js +0 -4
  14. package/cjs/resources/Terminal/Readers.js +0 -12
  15. package/cjs/resources.js +10 -40
  16. package/cjs/stripe.core.js +3 -6
  17. package/cjs/utils.js +3 -30
  18. package/esm/RequestSender.js +6 -67
  19. package/esm/StripeResource.js +2 -2
  20. package/esm/apiVersion.js +0 -1
  21. package/esm/multipart.js +2 -2
  22. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  23. package/esm/resources/Invoices.js +0 -17
  24. package/esm/resources/OAuth.js +2 -2
  25. package/esm/resources/PaymentIntents.js +0 -4
  26. package/esm/resources/Quotes.js +0 -32
  27. package/esm/resources/SubscriptionSchedules.js +0 -4
  28. package/esm/resources/Terminal/Readers.js +0 -12
  29. package/esm/resources.js +0 -26
  30. package/esm/stripe.core.js +3 -6
  31. package/esm/utils.js +1 -27
  32. package/package.json +1 -1
  33. package/types/AccountLinksResource.d.ts +2 -6
  34. package/types/AccountSessions.d.ts +0 -45
  35. package/types/AccountSessionsResource.d.ts +0 -260
  36. package/types/Accounts.d.ts +1 -113
  37. package/types/AccountsResource.d.ts +0 -270
  38. package/types/Charges.d.ts +0 -71
  39. package/types/ChargesResource.d.ts +0 -1294
  40. package/types/Checkout/Sessions.d.ts +4 -185
  41. package/types/Checkout/SessionsResource.d.ts +5 -349
  42. package/types/ConfirmationTokens.d.ts +0 -67
  43. package/types/Coupons.d.ts +1 -1
  44. package/types/CouponsResource.d.ts +1 -1
  45. package/types/CreditNotes.d.ts +0 -21
  46. package/types/CreditNotesResource.d.ts +0 -51
  47. package/types/CustomersResource.d.ts +0 -3
  48. package/types/Disputes.d.ts +0 -152
  49. package/types/DisputesResource.d.ts +0 -120
  50. package/types/EventTypes.d.ts +0 -460
  51. package/types/Events.d.ts +0 -85
  52. package/types/FileLinksResource.d.ts +1 -1
  53. package/types/Files.d.ts +1 -0
  54. package/types/FilesResource.d.ts +3 -1
  55. package/types/FinancialConnections/Accounts.d.ts +1 -29
  56. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  57. package/types/FinancialConnections/Sessions.d.ts +1 -49
  58. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  59. package/types/InvoiceItems.d.ts +0 -5
  60. package/types/InvoiceItemsResource.d.ts +0 -98
  61. package/types/InvoiceLineItems.d.ts +3 -23
  62. package/types/Invoices.d.ts +1 -116
  63. package/types/InvoicesResource.d.ts +1835 -5493
  64. package/types/Issuing/CardholdersResource.d.ts +1 -2
  65. package/types/Issuing/Cards.d.ts +1 -1
  66. package/types/LineItems.d.ts +1 -8
  67. package/types/Mandates.d.ts +0 -77
  68. package/types/PaymentIntents.d.ts +1 -502
  69. package/types/PaymentIntentsResource.d.ts +3464 -7064
  70. package/types/PaymentLinks.d.ts +0 -1
  71. package/types/PaymentLinksResource.d.ts +0 -2
  72. package/types/PaymentMethodConfigurations.d.ts +0 -36
  73. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  74. package/types/PaymentMethods.d.ts +0 -67
  75. package/types/PaymentMethodsResource.d.ts +0 -119
  76. package/types/Prices.d.ts +0 -22
  77. package/types/PricesResource.d.ts +0 -22
  78. package/types/Products.d.ts +0 -39
  79. package/types/ProductsResource.d.ts +0 -36
  80. package/types/Quotes.d.ts +1 -596
  81. package/types/QuotesResource.d.ts +199 -2531
  82. package/types/SetupAttempts.d.ts +0 -9
  83. package/types/SetupIntents.d.ts +1 -110
  84. package/types/SetupIntentsResource.d.ts +3 -522
  85. package/types/Sources.d.ts +0 -23
  86. package/types/SubscriptionItems.d.ts +0 -21
  87. package/types/SubscriptionItemsResource.d.ts +0 -109
  88. package/types/SubscriptionSchedules.d.ts +0 -200
  89. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  90. package/types/Subscriptions.d.ts +1 -82
  91. package/types/SubscriptionsResource.d.ts +2 -347
  92. package/types/Tax/CalculationsResource.d.ts +1 -1
  93. package/types/Terminal/Readers.d.ts +0 -278
  94. package/types/Terminal/ReadersResource.d.ts +0 -208
  95. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -63
  96. package/types/TestHelpers/TestClocks.d.ts +15 -0
  97. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  98. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  99. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  100. package/types/Treasury/FinancialAccountsResource.d.ts +0 -10
  101. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  102. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  103. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  104. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  105. package/types/WebhookEndpointsResource.d.ts +0 -54
  106. package/types/index.d.ts +0 -67
  107. package/types/lib.d.ts +0 -12
  108. package/cjs/resources/AccountNotices.js +0 -21
  109. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  110. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  111. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  112. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  113. package/cjs/resources/GiftCards/Cards.js +0 -23
  114. package/cjs/resources/GiftCards/Transactions.js +0 -33
  115. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  116. package/cjs/resources/Margins.js +0 -22
  117. package/cjs/resources/Orders.js +0 -24
  118. package/cjs/resources/QuotePhases.js +0 -22
  119. package/cjs/resources/Tax/Associations.js +0 -9
  120. package/cjs/resources/Tax/Forms.js +0 -20
  121. package/esm/resources/AccountNotices.js +0 -18
  122. package/esm/resources/Capital/FinancingOffers.js +0 -18
  123. package/esm/resources/Capital/FinancingSummary.js +0 -9
  124. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  125. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  126. package/esm/resources/GiftCards/Cards.js +0 -20
  127. package/esm/resources/GiftCards/Transactions.js +0 -30
  128. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  129. package/esm/resources/Margins.js +0 -19
  130. package/esm/resources/Orders.js +0 -21
  131. package/esm/resources/QuotePhases.js +0 -19
  132. package/esm/resources/Tax/Associations.js +0 -6
  133. package/esm/resources/Tax/Forms.js +0 -17
  134. package/types/AccountNotices.d.ts +0 -113
  135. package/types/AccountNoticesResource.d.ts +0 -98
  136. package/types/Capital/FinancingOffers.d.ts +0 -188
  137. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  138. package/types/Capital/FinancingSummary.d.ts +0 -106
  139. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  140. package/types/Capital/FinancingTransactions.d.ts +0 -135
  141. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  142. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  143. package/types/FinancialConnections/Institutions.d.ts +0 -93
  144. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  145. package/types/GiftCards/Cards.d.ts +0 -118
  146. package/types/GiftCards/CardsResource.d.ts +0 -159
  147. package/types/GiftCards/Transactions.d.ts +0 -129
  148. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  149. package/types/InvoicePayments.d.ts +0 -138
  150. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -446
  151. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1017
  152. package/types/Margins.d.ts +0 -56
  153. package/types/MarginsResource.d.ts +0 -114
  154. package/types/Orders.d.ts +0 -1084
  155. package/types/OrdersResource.d.ts +0 -2765
  156. package/types/QuoteLines.d.ts +0 -634
  157. package/types/QuotePhases.d.ts +0 -198
  158. package/types/QuotePhasesResource.d.ts +0 -67
  159. package/types/QuotePreviewInvoices.d.ts +0 -1531
  160. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  161. package/types/Tax/Associations.d.ts +0 -126
  162. package/types/Tax/AssociationsResource.d.ts +0 -29
  163. package/types/Tax/Forms.d.ts +0 -133
  164. package/types/Tax/FormsResource.d.ts +0 -90
@@ -53,8 +53,6 @@ declare module 'stripe' {
53
53
  */
54
54
  application_fee_amount: number | null;
55
55
 
56
- async_workflows?: PaymentIntent.AsyncWorkflows;
57
-
58
56
  /**
59
57
  * Settings to configure compatible payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods)
60
58
  */
@@ -148,8 +146,6 @@ declare module 'stripe' {
148
146
  */
149
147
  on_behalf_of: string | Stripe.Account | null;
150
148
 
151
- payment_details?: PaymentIntent.PaymentDetails;
152
-
153
149
  /**
154
150
  * ID of the payment method used in this PaymentIntent.
155
151
  */
@@ -185,11 +181,6 @@ declare module 'stripe' {
185
181
  */
186
182
  review: string | Stripe.Review | null;
187
183
 
188
- /**
189
- * Indicates whether confirmation for this PaymentIntent using a secret key is `required` or `optional`.
190
- */
191
- secret_key_confirmation?: PaymentIntent.SecretKeyConfirmation;
192
-
193
184
  /**
194
185
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
195
186
  *
@@ -257,25 +248,6 @@ declare module 'stripe' {
257
248
  }
258
249
  }
259
250
 
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
-
279
251
  interface AutomaticPaymentMethods {
280
252
  /**
281
253
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -455,15 +427,11 @@ declare module 'stripe' {
455
427
  | 'email_invalid'
456
428
  | 'expired_card'
457
429
  | 'financial_connections_account_inactive'
458
- | 'financial_connections_institution_unavailable'
459
430
  | 'financial_connections_no_successful_transaction_refresh'
460
431
  | 'forwarding_api_inactive'
461
432
  | 'forwarding_api_invalid_parameter'
462
433
  | 'forwarding_api_upstream_connection_error'
463
434
  | 'forwarding_api_upstream_connection_timeout'
464
- | 'gift_card_balance_insufficient'
465
- | 'gift_card_code_exists'
466
- | 'gift_card_inactive'
467
435
  | 'idempotency_key_in_use'
468
436
  | 'incorrect_address'
469
437
  | 'incorrect_cvc'
@@ -553,7 +521,6 @@ declare module 'stripe' {
553
521
  | 'return_intent_already_processed'
554
522
  | 'routing_number_invalid'
555
523
  | 'secret_key_required'
556
- | 'sensitive_data_access_expired'
557
524
  | 'sepa_unsupported_account'
558
525
  | 'setup_attempt_failed'
559
526
  | 'setup_intent_authentication_failure'
@@ -1297,289 +1264,6 @@ declare module 'stripe' {
1297
1264
  }
1298
1265
  }
1299
1266
 
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
-
1583
1267
  interface PaymentMethodConfigurationDetails {
1584
1268
  /**
1585
1269
  * ID of the payment method configuration used.
@@ -1639,8 +1323,6 @@ declare module 'stripe' {
1639
1323
 
1640
1324
  link?: PaymentMethodOptions.Link;
1641
1325
 
1642
- mb_way?: PaymentMethodOptions.MbWay;
1643
-
1644
1326
  mobilepay?: PaymentMethodOptions.Mobilepay;
1645
1327
 
1646
1328
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1653,14 +1335,10 @@ declare module 'stripe' {
1653
1335
 
1654
1336
  paypal?: PaymentMethodOptions.Paypal;
1655
1337
 
1656
- payto?: PaymentMethodOptions.Payto;
1657
-
1658
1338
  pix?: PaymentMethodOptions.Pix;
1659
1339
 
1660
1340
  promptpay?: PaymentMethodOptions.Promptpay;
1661
1341
 
1662
- rechnung?: PaymentMethodOptions.Rechnung;
1663
-
1664
1342
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1665
1343
 
1666
1344
  sepa_debit?: PaymentMethodOptions.SepaDebit;
@@ -1939,11 +1617,6 @@ declare module 'stripe' {
1939
1617
  */
1940
1618
  network: Card.Network | null;
1941
1619
 
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
-
1947
1620
  /**
1948
1621
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1949
1622
  */
@@ -1994,8 +1667,6 @@ declare module 'stripe' {
1994
1667
  * 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.
1995
1668
  */
1996
1669
  statement_descriptor_suffix_kanji?: string;
1997
-
1998
- statement_details?: Card.StatementDetails;
1999
1670
  }
2000
1671
 
2001
1672
  namespace Card {
@@ -2121,8 +1792,6 @@ declare module 'stripe' {
2121
1792
  | 'unknown'
2122
1793
  | 'visa';
2123
1794
 
2124
- type RequestDecrementalAuthorization = 'if_available' | 'never';
2125
-
2126
1795
  type RequestExtendedAuthorization = 'if_available' | 'never';
2127
1796
 
2128
1797
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2134,49 +1803,6 @@ declare module 'stripe' {
2134
1803
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
2135
1804
 
2136
1805
  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
- }
2180
1806
  }
2181
1807
 
2182
1808
  interface CardPresent {
@@ -2450,19 +2076,6 @@ declare module 'stripe' {
2450
2076
  type SetupFutureUsage = 'none' | 'off_session';
2451
2077
  }
2452
2078
 
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
-
2466
2079
  interface Mobilepay {
2467
2080
  /**
2468
2081
  * Controls when the funds will be captured from the customer's account.
@@ -2554,11 +2167,6 @@ declare module 'stripe' {
2554
2167
  */
2555
2168
  reference: string | null;
2556
2169
 
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
-
2562
2170
  /**
2563
2171
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2564
2172
  *
@@ -2569,95 +2177,12 @@ declare module 'stripe' {
2569
2177
  * 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).
2570
2178
  */
2571
2179
  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>;
2577
2180
  }
2578
2181
 
2579
2182
  namespace Paypal {
2580
2183
  type SetupFutureUsage = 'none' | 'off_session';
2581
2184
  }
2582
2185
 
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
-
2661
2186
  interface Pix {
2662
2187
  /**
2663
2188
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire.
@@ -2694,8 +2219,6 @@ declare module 'stripe' {
2694
2219
  setup_future_usage?: 'none';
2695
2220
  }
2696
2221
 
2697
- interface Rechnung {}
2698
-
2699
2222
  interface RevolutPay {
2700
2223
  /**
2701
2224
  * Controls when the funds will be captured from the customer's account.
@@ -2832,8 +2355,6 @@ declare module 'stripe' {
2832
2355
  interface FinancialConnections {
2833
2356
  filters?: FinancialConnections.Filters;
2834
2357
 
2835
- manual_entry?: FinancialConnections.ManualEntry;
2836
-
2837
2358
  /**
2838
2359
  * The list of permissions to request. The `payment_method` permission must be included.
2839
2360
  */
@@ -2856,39 +2377,19 @@ declare module 'stripe' {
2856
2377
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2857
2378
  */
2858
2379
  account_subcategories?: Array<Filters.AccountSubcategory>;
2859
-
2860
- /**
2861
- * The institution to use to filter for possible accounts to link.
2862
- */
2863
- institution?: string;
2864
2380
  }
2865
2381
 
2866
2382
  namespace Filters {
2867
2383
  type AccountSubcategory = 'checking' | 'savings';
2868
2384
  }
2869
2385
 
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
-
2881
2386
  type Permission =
2882
2387
  | 'balances'
2883
2388
  | 'ownership'
2884
2389
  | 'payment_method'
2885
2390
  | 'transactions';
2886
2391
 
2887
- type Prefetch =
2888
- | 'balances'
2889
- | 'inferred_balances'
2890
- | 'ownership'
2891
- | 'transactions';
2392
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
2892
2393
  }
2893
2394
 
2894
2395
  interface MandateOptions {
@@ -2975,8 +2476,6 @@ declare module 'stripe' {
2975
2476
  }
2976
2477
  }
2977
2478
 
2978
- type SecretKeyConfirmation = 'optional' | 'required';
2979
-
2980
2479
  type SetupFutureUsage = 'off_session' | 'on_session';
2981
2480
 
2982
2481
  interface Shipping {