stripe 17.5.0-beta.3 → 17.5.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 (175) hide show
  1. package/CHANGELOG.md +131 -1005
  2. package/README.md +33 -1
  3. package/VERSION +1 -1
  4. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  5. package/cjs/resources/Invoices.js +0 -17
  6. package/cjs/resources/PaymentIntents.js +0 -8
  7. package/cjs/resources/Quotes.js +0 -32
  8. package/cjs/resources/SubscriptionSchedules.js +0 -4
  9. package/cjs/resources/Terminal/Readers.js +0 -12
  10. package/cjs/resources.js +10 -48
  11. package/cjs/stripe.core.js +1 -1
  12. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  13. package/esm/resources/Invoices.js +0 -17
  14. package/esm/resources/PaymentIntents.js +0 -8
  15. package/esm/resources/Quotes.js +0 -32
  16. package/esm/resources/SubscriptionSchedules.js +0 -4
  17. package/esm/resources/Terminal/Readers.js +0 -12
  18. package/esm/resources.js +0 -33
  19. package/esm/stripe.core.js +1 -1
  20. package/package.json +1 -1
  21. package/types/AccountLinksResource.d.ts +1 -5
  22. package/types/AccountSessions.d.ts +0 -45
  23. package/types/AccountSessionsResource.d.ts +0 -355
  24. package/types/Accounts.d.ts +1 -190
  25. package/types/AccountsResource.d.ts +0 -520
  26. package/types/Charges.d.ts +0 -138
  27. package/types/ChargesResource.d.ts +0 -1294
  28. package/types/Checkout/Sessions.d.ts +6 -340
  29. package/types/Checkout/SessionsResource.d.ts +5 -445
  30. package/types/ConfirmationTokens.d.ts +0 -99
  31. package/types/Coupons.d.ts +1 -1
  32. package/types/CouponsResource.d.ts +1 -1
  33. package/types/CreditNotes.d.ts +0 -21
  34. package/types/CreditNotesResource.d.ts +0 -51
  35. package/types/CustomersResource.d.ts +4 -9
  36. package/types/Disputes.d.ts +2 -2
  37. package/types/DisputesResource.d.ts +2 -2
  38. package/types/EventTypes.d.ts +0 -596
  39. package/types/Events.d.ts +0 -93
  40. package/types/FinancialConnections/Accounts.d.ts +1 -29
  41. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  42. package/types/FinancialConnections/Sessions.d.ts +1 -49
  43. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  44. package/types/InvoiceItems.d.ts +0 -5
  45. package/types/InvoiceItemsResource.d.ts +0 -98
  46. package/types/InvoiceLineItems.d.ts +1 -28
  47. package/types/Invoices.d.ts +4 -138
  48. package/types/InvoicesResource.d.ts +1886 -5568
  49. package/types/Issuing/Authorizations.d.ts +0 -1
  50. package/types/Issuing/CardholdersResource.d.ts +1 -2
  51. package/types/Issuing/Transactions.d.ts +0 -2
  52. package/types/Issuing/TransactionsResource.d.ts +0 -5
  53. package/types/LineItems.d.ts +0 -32
  54. package/types/Mandates.d.ts +0 -77
  55. package/types/PaymentIntents.d.ts +1 -644
  56. package/types/PaymentIntentsResource.d.ts +3768 -8055
  57. package/types/PaymentLinks.d.ts +0 -6
  58. package/types/PaymentLinksResource.d.ts +0 -12
  59. package/types/PaymentMethodConfigurations.d.ts +0 -180
  60. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  61. package/types/PaymentMethods.d.ts +0 -99
  62. package/types/PaymentMethodsResource.d.ts +0 -133
  63. package/types/Prices.d.ts +0 -22
  64. package/types/PricesResource.d.ts +0 -22
  65. package/types/Products.d.ts +0 -39
  66. package/types/ProductsResource.d.ts +0 -36
  67. package/types/Quotes.d.ts +1 -591
  68. package/types/QuotesResource.d.ts +199 -2531
  69. package/types/Refunds.d.ts +0 -14
  70. package/types/SetupAttempts.d.ts +0 -38
  71. package/types/SetupIntents.d.ts +1 -111
  72. package/types/SetupIntentsResource.d.ts +3 -645
  73. package/types/Sources.d.ts +0 -23
  74. package/types/SubscriptionItems.d.ts +0 -21
  75. package/types/SubscriptionItemsResource.d.ts +0 -109
  76. package/types/SubscriptionSchedules.d.ts +0 -200
  77. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  78. package/types/Subscriptions.d.ts +1 -91
  79. package/types/SubscriptionsResource.d.ts +2 -369
  80. package/types/Tax/Calculations.d.ts +2 -1
  81. package/types/Tax/CalculationsResource.d.ts +2 -1
  82. package/types/Tax/Registrations.d.ts +189 -0
  83. package/types/Tax/RegistrationsResource.d.ts +252 -0
  84. package/types/Tax/Transactions.d.ts +2 -1
  85. package/types/TaxIds.d.ts +2 -1
  86. package/types/TaxIdsResource.d.ts +2 -1
  87. package/types/Terminal/Readers.d.ts +0 -310
  88. package/types/Terminal/ReadersResource.d.ts +0 -215
  89. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  90. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  91. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  92. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  93. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  94. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  95. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  96. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  97. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  98. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  99. package/types/WebhookEndpointsResource.d.ts +0 -70
  100. package/types/index.d.ts +0 -62
  101. package/cjs/resources/AccountNotices.js +0 -21
  102. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  103. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  104. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  105. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  106. package/cjs/resources/GiftCards/Cards.js +0 -23
  107. package/cjs/resources/GiftCards/Transactions.js +0 -33
  108. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  109. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  110. package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
  111. package/cjs/resources/Margins.js +0 -22
  112. package/cjs/resources/Orders.js +0 -24
  113. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  114. package/cjs/resources/PaymentRecords.js +0 -29
  115. package/cjs/resources/Tax/Associations.js +0 -9
  116. package/cjs/resources/Tax/Forms.js +0 -20
  117. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  118. package/esm/resources/AccountNotices.js +0 -18
  119. package/esm/resources/Capital/FinancingOffers.js +0 -18
  120. package/esm/resources/Capital/FinancingSummary.js +0 -9
  121. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  122. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  123. package/esm/resources/GiftCards/Cards.js +0 -20
  124. package/esm/resources/GiftCards/Transactions.js +0 -30
  125. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  126. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  127. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  128. package/esm/resources/Margins.js +0 -19
  129. package/esm/resources/Orders.js +0 -21
  130. package/esm/resources/PaymentAttemptRecords.js +0 -14
  131. package/esm/resources/PaymentRecords.js +0 -26
  132. package/esm/resources/Tax/Associations.js +0 -6
  133. package/esm/resources/Tax/Forms.js +0 -17
  134. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  135. package/types/AccountNotices.d.ts +0 -113
  136. package/types/AccountNoticesResource.d.ts +0 -98
  137. package/types/Billing/MeterErrorReports.d.ts +0 -106
  138. package/types/Capital/FinancingOffers.d.ts +0 -188
  139. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  140. package/types/Capital/FinancingSummary.d.ts +0 -106
  141. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  142. package/types/Capital/FinancingTransactions.d.ts +0 -135
  143. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  144. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  145. package/types/FinancialConnections/Institutions.d.ts +0 -93
  146. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  147. package/types/GiftCards/Cards.d.ts +0 -118
  148. package/types/GiftCards/CardsResource.d.ts +0 -159
  149. package/types/GiftCards/Transactions.d.ts +0 -129
  150. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  151. package/types/InvoicePayments.d.ts +0 -113
  152. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  153. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  154. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  155. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  156. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  157. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  158. package/types/Issuing/Settlements.d.ts +0 -103
  159. package/types/Margins.d.ts +0 -56
  160. package/types/MarginsResource.d.ts +0 -114
  161. package/types/Orders.d.ts +0 -1178
  162. package/types/OrdersResource.d.ts +0 -2959
  163. package/types/PaymentAttemptRecords.d.ts +0 -242
  164. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  165. package/types/PaymentRecords.d.ts +0 -242
  166. package/types/PaymentRecordsResource.d.ts +0 -455
  167. package/types/QuoteLines.d.ts +0 -634
  168. package/types/QuotePreviewInvoices.d.ts +0 -1652
  169. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  170. package/types/Tax/Associations.d.ts +0 -126
  171. package/types/Tax/AssociationsResource.d.ts +0 -29
  172. package/types/Tax/Forms.d.ts +0 -220
  173. package/types/Tax/FormsResource.d.ts +0 -107
  174. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  175. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
@@ -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.
@@ -465,15 +437,11 @@ declare module 'stripe' {
465
437
  | 'email_invalid'
466
438
  | 'expired_card'
467
439
  | 'financial_connections_account_inactive'
468
- | 'financial_connections_institution_unavailable'
469
440
  | 'financial_connections_no_successful_transaction_refresh'
470
441
  | 'forwarding_api_inactive'
471
442
  | 'forwarding_api_invalid_parameter'
472
443
  | 'forwarding_api_upstream_connection_error'
473
444
  | 'forwarding_api_upstream_connection_timeout'
474
- | 'gift_card_balance_insufficient'
475
- | 'gift_card_code_exists'
476
- | 'gift_card_inactive'
477
445
  | 'idempotency_key_in_use'
478
446
  | 'incorrect_address'
479
447
  | 'incorrect_cvc'
@@ -563,7 +531,6 @@ declare module 'stripe' {
563
531
  | 'return_intent_already_processed'
564
532
  | 'routing_number_invalid'
565
533
  | 'secret_key_required'
566
- | 'sensitive_data_access_expired'
567
534
  | 'sepa_unsupported_account'
568
535
  | 'setup_attempt_failed'
569
536
  | 'setup_intent_authentication_failure'
@@ -581,7 +548,6 @@ declare module 'stripe' {
581
548
  | 'taxes_calculation_failed'
582
549
  | 'terminal_location_country_unsupported'
583
550
  | 'terminal_reader_busy'
584
- | 'terminal_reader_collected_data_invalid'
585
551
  | 'terminal_reader_hardware_fault'
586
552
  | 'terminal_reader_invalid_location_for_activation'
587
553
  | 'terminal_reader_invalid_location_for_payment'
@@ -1358,289 +1324,6 @@ declare module 'stripe' {
1358
1324
  }
1359
1325
  }
1360
1326
 
1361
- interface PaymentDetails {
1362
- car_rental?: PaymentDetails.CarRental;
1363
-
1364
- event_details?: PaymentDetails.EventDetails;
1365
-
1366
- subscription?: PaymentDetails.Subscription;
1367
- }
1368
-
1369
- namespace PaymentDetails {
1370
- interface CarRental {
1371
- affiliate?: CarRental.Affiliate;
1372
-
1373
- /**
1374
- * The booking number associated with the car rental.
1375
- */
1376
- booking_number: string;
1377
-
1378
- /**
1379
- * Class code of the car.
1380
- */
1381
- car_class_code?: string;
1382
-
1383
- /**
1384
- * Make of the car.
1385
- */
1386
- car_make?: string;
1387
-
1388
- /**
1389
- * Model of the car.
1390
- */
1391
- car_model?: string;
1392
-
1393
- /**
1394
- * The name of the rental car company.
1395
- */
1396
- company?: string;
1397
-
1398
- /**
1399
- * The customer service phone number of the car rental company.
1400
- */
1401
- customer_service_phone_number?: string;
1402
-
1403
- /**
1404
- * Number of days the car is being rented.
1405
- */
1406
- days_rented: number;
1407
-
1408
- delivery?: CarRental.Delivery;
1409
-
1410
- /**
1411
- * The details of the drivers associated with the trip.
1412
- */
1413
- drivers?: Array<CarRental.Driver>;
1414
-
1415
- /**
1416
- * List of additional charges being billed.
1417
- */
1418
- extra_charges?: Array<CarRental.ExtraCharge>;
1419
-
1420
- /**
1421
- * Indicates if the customer did not keep nor cancel their booking.
1422
- */
1423
- no_show?: boolean;
1424
-
1425
- pickup_address?: Stripe.Address;
1426
-
1427
- /**
1428
- * Car pick-up time. Measured in seconds since the Unix epoch.
1429
- */
1430
- pickup_at: number;
1431
-
1432
- /**
1433
- * Rental rate.
1434
- */
1435
- rate_amount?: number;
1436
-
1437
- /**
1438
- * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1439
- */
1440
- rate_interval?: CarRental.RateInterval;
1441
-
1442
- /**
1443
- * The full name of the person or entity renting the car.
1444
- */
1445
- renter_name?: string;
1446
-
1447
- return_address?: Stripe.Address;
1448
-
1449
- /**
1450
- * Car return time. Measured in seconds since the Unix epoch.
1451
- */
1452
- return_at: number;
1453
-
1454
- /**
1455
- * Indicates whether the goods or services are tax-exempt or tax is not collected.
1456
- */
1457
- tax_exempt?: boolean;
1458
- }
1459
-
1460
- namespace CarRental {
1461
- interface Affiliate {
1462
- /**
1463
- * The name of the affiliate that originated the purchase.
1464
- */
1465
- name?: string;
1466
- }
1467
-
1468
- interface Delivery {
1469
- /**
1470
- * The delivery method for the payment
1471
- */
1472
- mode?: Delivery.Mode;
1473
-
1474
- recipient?: Delivery.Recipient;
1475
- }
1476
-
1477
- namespace Delivery {
1478
- type Mode = 'email' | 'phone' | 'pickup' | 'post';
1479
-
1480
- interface Recipient {
1481
- /**
1482
- * The email of the recipient the ticket is delivered to.
1483
- */
1484
- email?: string;
1485
-
1486
- /**
1487
- * The name of the recipient the ticket is delivered to.
1488
- */
1489
- name?: string;
1490
-
1491
- /**
1492
- * The phone number of the recipient the ticket is delivered to.
1493
- */
1494
- phone?: string;
1495
- }
1496
- }
1497
-
1498
- interface Driver {
1499
- /**
1500
- * Full name of the driver on the reservation.
1501
- */
1502
- name?: string;
1503
- }
1504
-
1505
- type ExtraCharge =
1506
- | 'extra_mileage'
1507
- | 'gas'
1508
- | 'late_return'
1509
- | 'one_way_service'
1510
- | 'parking_violation';
1511
-
1512
- type RateInterval = 'day' | 'month' | 'week';
1513
- }
1514
-
1515
- interface EventDetails {
1516
- /**
1517
- * Indicates if the tickets are digitally checked when entering the venue.
1518
- */
1519
- access_controlled_venue?: boolean;
1520
-
1521
- address?: Stripe.Address;
1522
-
1523
- affiliate?: EventDetails.Affiliate;
1524
-
1525
- /**
1526
- * The name of the company
1527
- */
1528
- company?: string;
1529
-
1530
- delivery?: EventDetails.Delivery;
1531
-
1532
- /**
1533
- * Event end time. Measured in seconds since the Unix epoch.
1534
- */
1535
- ends_at?: number;
1536
-
1537
- /**
1538
- * Type of the event entertainment (concert, sports event etc)
1539
- */
1540
- genre?: string;
1541
-
1542
- /**
1543
- * The name of the event.
1544
- */
1545
- name?: string;
1546
-
1547
- /**
1548
- * Event start time. Measured in seconds since the Unix epoch.
1549
- */
1550
- starts_at?: number;
1551
- }
1552
-
1553
- namespace EventDetails {
1554
- interface Affiliate {
1555
- /**
1556
- * The name of the affiliate that originated the purchase.
1557
- */
1558
- name?: string;
1559
- }
1560
-
1561
- interface Delivery {
1562
- /**
1563
- * The delivery method for the payment
1564
- */
1565
- mode?: Delivery.Mode;
1566
-
1567
- recipient?: Delivery.Recipient;
1568
- }
1569
-
1570
- namespace Delivery {
1571
- type Mode = 'email' | 'phone' | 'pickup' | 'post';
1572
-
1573
- interface Recipient {
1574
- /**
1575
- * The email of the recipient the ticket is delivered to.
1576
- */
1577
- email?: string;
1578
-
1579
- /**
1580
- * The name of the recipient the ticket is delivered to.
1581
- */
1582
- name?: string;
1583
-
1584
- /**
1585
- * The phone number of the recipient the ticket is delivered to.
1586
- */
1587
- phone?: string;
1588
- }
1589
- }
1590
- }
1591
-
1592
- interface Subscription {
1593
- affiliate?: Subscription.Affiliate;
1594
-
1595
- /**
1596
- * Info whether the subscription will be auto renewed upon expiry.
1597
- */
1598
- auto_renewal?: boolean;
1599
-
1600
- billing_interval?: Subscription.BillingInterval;
1601
-
1602
- /**
1603
- * Subscription end time. Measured in seconds since the Unix epoch.
1604
- */
1605
- ends_at?: number;
1606
-
1607
- /**
1608
- * Name of the product on subscription. e.g. Apple Music Subscription.
1609
- */
1610
- name?: string;
1611
-
1612
- /**
1613
- * Subscription start time. Measured in seconds since the Unix epoch.
1614
- */
1615
- starts_at?: number;
1616
- }
1617
-
1618
- namespace Subscription {
1619
- interface Affiliate {
1620
- /**
1621
- * The name of the affiliate that originated the purchase.
1622
- */
1623
- name?: string;
1624
- }
1625
-
1626
- interface BillingInterval {
1627
- /**
1628
- * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1629
- */
1630
- count?: number;
1631
-
1632
- /**
1633
- * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1634
- */
1635
- interval?: BillingInterval.Interval;
1636
- }
1637
-
1638
- namespace BillingInterval {
1639
- type Interval = 'day' | 'month' | 'week' | 'year';
1640
- }
1641
- }
1642
- }
1643
-
1644
1327
  interface PaymentMethodConfigurationDetails {
1645
1328
  /**
1646
1329
  * ID of the payment method configuration used.
@@ -1690,12 +1373,8 @@ declare module 'stripe' {
1690
1373
 
1691
1374
  giropay?: PaymentMethodOptions.Giropay;
1692
1375
 
1693
- gopay?: PaymentMethodOptions.Gopay;
1694
-
1695
1376
  grabpay?: PaymentMethodOptions.Grabpay;
1696
1377
 
1697
- id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1698
-
1699
1378
  ideal?: PaymentMethodOptions.Ideal;
1700
1379
 
1701
1380
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -1710,8 +1389,6 @@ declare module 'stripe' {
1710
1389
 
1711
1390
  link?: PaymentMethodOptions.Link;
1712
1391
 
1713
- mb_way?: PaymentMethodOptions.MbWay;
1714
-
1715
1392
  mobilepay?: PaymentMethodOptions.Mobilepay;
1716
1393
 
1717
1394
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1728,24 +1405,16 @@ declare module 'stripe' {
1728
1405
 
1729
1406
  paypal?: PaymentMethodOptions.Paypal;
1730
1407
 
1731
- payto?: PaymentMethodOptions.Payto;
1732
-
1733
1408
  pix?: PaymentMethodOptions.Pix;
1734
1409
 
1735
1410
  promptpay?: PaymentMethodOptions.Promptpay;
1736
1411
 
1737
- qris?: PaymentMethodOptions.Qris;
1738
-
1739
- rechnung?: PaymentMethodOptions.Rechnung;
1740
-
1741
1412
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1742
1413
 
1743
1414
  samsung_pay?: PaymentMethodOptions.SamsungPay;
1744
1415
 
1745
1416
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1746
1417
 
1747
- shopeepay?: PaymentMethodOptions.Shopeepay;
1748
-
1749
1418
  sofort?: PaymentMethodOptions.Sofort;
1750
1419
 
1751
1420
  swish?: PaymentMethodOptions.Swish;
@@ -2032,11 +1701,6 @@ declare module 'stripe' {
2032
1701
  */
2033
1702
  network: Card.Network | null;
2034
1703
 
2035
- /**
2036
- * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2037
- */
2038
- request_decremental_authorization?: Card.RequestDecrementalAuthorization;
2039
-
2040
1704
  /**
2041
1705
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
2042
1706
  */
@@ -2057,11 +1721,6 @@ declare module 'stripe' {
2057
1721
  */
2058
1722
  request_overcapture?: Card.RequestOvercapture;
2059
1723
 
2060
- /**
2061
- * Request partial authorization on this PaymentIntent.
2062
- */
2063
- request_partial_authorization?: Card.RequestPartialAuthorization;
2064
-
2065
1724
  /**
2066
1725
  * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://stripe.com/docs/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://stripe.com/docs/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine.
2067
1726
  */
@@ -2092,8 +1751,6 @@ declare module 'stripe' {
2092
1751
  * 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.
2093
1752
  */
2094
1753
  statement_descriptor_suffix_kanji?: string;
2095
-
2096
- statement_details?: Card.StatementDetails;
2097
1754
  }
2098
1755
 
2099
1756
  namespace Card {
@@ -2220,8 +1877,6 @@ declare module 'stripe' {
2220
1877
  | 'unknown'
2221
1878
  | 'visa';
2222
1879
 
2223
- type RequestDecrementalAuthorization = 'if_available' | 'never';
2224
-
2225
1880
  type RequestExtendedAuthorization = 'if_available' | 'never';
2226
1881
 
2227
1882
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -2230,54 +1885,9 @@ declare module 'stripe' {
2230
1885
 
2231
1886
  type RequestOvercapture = 'if_available' | 'never';
2232
1887
 
2233
- type RequestPartialAuthorization = 'if_available' | 'never';
2234
-
2235
1888
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
2236
1889
 
2237
1890
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2238
-
2239
- interface StatementDetails {
2240
- address?: StatementDetails.Address;
2241
-
2242
- /**
2243
- * Phone number
2244
- */
2245
- phone?: string;
2246
- }
2247
-
2248
- namespace StatementDetails {
2249
- interface Address {
2250
- /**
2251
- * City, district, suburb, town, or village.
2252
- */
2253
- city?: string;
2254
-
2255
- /**
2256
- * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2257
- */
2258
- country?: string;
2259
-
2260
- /**
2261
- * Address line 1 (e.g., street, PO Box, or company name).
2262
- */
2263
- line1?: string;
2264
-
2265
- /**
2266
- * Address line 2 (e.g., apartment, suite, unit, or building).
2267
- */
2268
- line2?: string;
2269
-
2270
- /**
2271
- * ZIP or postal code.
2272
- */
2273
- postal_code?: string;
2274
-
2275
- /**
2276
- * State, county, province, or region.
2277
- */
2278
- state?: string;
2279
- }
2280
- }
2281
1891
  }
2282
1892
 
2283
1893
  interface CardPresent {
@@ -2435,19 +2045,6 @@ declare module 'stripe' {
2435
2045
  setup_future_usage?: 'none';
2436
2046
  }
2437
2047
 
2438
- interface Gopay {
2439
- /**
2440
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2441
- *
2442
- * 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.
2443
- *
2444
- * 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.
2445
- *
2446
- * 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).
2447
- */
2448
- setup_future_usage?: 'none';
2449
- }
2450
-
2451
2048
  interface Grabpay {
2452
2049
  /**
2453
2050
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2461,29 +2058,6 @@ declare module 'stripe' {
2461
2058
  setup_future_usage?: 'none';
2462
2059
  }
2463
2060
 
2464
- interface IdBankTransfer {
2465
- /**
2466
- * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2467
- */
2468
- expires_after?: number | null;
2469
-
2470
- /**
2471
- * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now until 30 days from now. If unset, it defaults to 1 days from now.
2472
- */
2473
- expires_at: number | null;
2474
-
2475
- /**
2476
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2477
- *
2478
- * 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.
2479
- *
2480
- * 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.
2481
- *
2482
- * 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).
2483
- */
2484
- setup_future_usage?: 'none';
2485
- }
2486
-
2487
2061
  interface Ideal {
2488
2062
  /**
2489
2063
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2631,19 +2205,6 @@ declare module 'stripe' {
2631
2205
  type SetupFutureUsage = 'none' | 'off_session';
2632
2206
  }
2633
2207
 
2634
- interface MbWay {
2635
- /**
2636
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2637
- *
2638
- * 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.
2639
- *
2640
- * 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.
2641
- *
2642
- * 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).
2643
- */
2644
- setup_future_usage?: 'none';
2645
- }
2646
-
2647
2208
  interface Mobilepay {
2648
2209
  /**
2649
2210
  * Controls when the funds will be captured from the customer's account.
@@ -2739,11 +2300,6 @@ declare module 'stripe' {
2739
2300
  */
2740
2301
  capture_method?: 'manual';
2741
2302
 
2742
- /**
2743
- * The line items purchased by the customer.
2744
- */
2745
- line_items?: Array<Paypal.LineItem>;
2746
-
2747
2303
  /**
2748
2304
  * Preferred locale of the PayPal checkout page that the customer is redirected to.
2749
2305
  */
@@ -2754,11 +2310,6 @@ declare module 'stripe' {
2754
2310
  */
2755
2311
  reference: string | null;
2756
2312
 
2757
- /**
2758
- * 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.
2759
- */
2760
- reference_id?: string | null;
2761
-
2762
2313
  /**
2763
2314
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2764
2315
  *
@@ -2769,151 +2320,9 @@ declare module 'stripe' {
2769
2320
  * 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).
2770
2321
  */
2771
2322
  setup_future_usage?: Paypal.SetupFutureUsage;
2772
-
2773
- /**
2774
- * 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.
2775
- */
2776
- subsellers?: Array<string>;
2777
2323
  }
2778
2324
 
2779
2325
  namespace Paypal {
2780
- interface LineItem {
2781
- /**
2782
- * Type of the line item.
2783
- */
2784
- category?: LineItem.Category;
2785
-
2786
- /**
2787
- * Description of the line item.
2788
- */
2789
- description?: string;
2790
-
2791
- /**
2792
- * Descriptive name of the line item.
2793
- */
2794
- name: string;
2795
-
2796
- /**
2797
- * Quantity of the line item. Cannot be a negative number.
2798
- */
2799
- quantity: number;
2800
-
2801
- /**
2802
- * Client facing stock keeping unit, article number or similar.
2803
- */
2804
- sku?: string;
2805
-
2806
- /**
2807
- * The Stripe account ID of the connected account that sells the item. This is only needed when using [Separate Charges and Transfers](https://docs.stripe.com/connect/separate-charges-and-transfers).
2808
- */
2809
- sold_by?: string;
2810
-
2811
- tax?: LineItem.Tax;
2812
-
2813
- /**
2814
- * Price for a single unit of the line item in minor units. Cannot be a negative number.
2815
- */
2816
- unit_amount: number;
2817
- }
2818
-
2819
- namespace LineItem {
2820
- type Category = 'digital_goods' | 'donation' | 'physical_goods';
2821
-
2822
- interface Tax {
2823
- /**
2824
- * The tax for a single unit of the line item in minor units. Cannot be a negative number.
2825
- */
2826
- amount: number;
2827
-
2828
- /**
2829
- * The tax behavior for the line item.
2830
- */
2831
- behavior: Tax.Behavior;
2832
- }
2833
-
2834
- namespace Tax {
2835
- type Behavior = 'exclusive' | 'inclusive';
2836
- }
2837
- }
2838
-
2839
- type SetupFutureUsage = 'none' | 'off_session';
2840
- }
2841
-
2842
- interface Payto {
2843
- mandate_options?: Payto.MandateOptions;
2844
-
2845
- /**
2846
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2847
- *
2848
- * 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.
2849
- *
2850
- * 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.
2851
- *
2852
- * 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).
2853
- */
2854
- setup_future_usage?: Payto.SetupFutureUsage;
2855
- }
2856
-
2857
- namespace Payto {
2858
- interface MandateOptions {
2859
- /**
2860
- * Amount that will be collected. It is required when `amount_type` is `fixed`.
2861
- */
2862
- amount: number | null;
2863
-
2864
- /**
2865
- * 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.
2866
- */
2867
- amount_type: MandateOptions.AmountType | null;
2868
-
2869
- /**
2870
- * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2871
- */
2872
- end_date: string | null;
2873
-
2874
- /**
2875
- * The periodicity at which payments will be collected.
2876
- */
2877
- payment_schedule: MandateOptions.PaymentSchedule | null;
2878
-
2879
- /**
2880
- * 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.
2881
- */
2882
- payments_per_period: number | null;
2883
-
2884
- /**
2885
- * The purpose for which payments are made. Defaults to retail.
2886
- */
2887
- purpose: MandateOptions.Purpose | null;
2888
- }
2889
-
2890
- namespace MandateOptions {
2891
- type AmountType = 'fixed' | 'maximum';
2892
-
2893
- type PaymentSchedule =
2894
- | 'adhoc'
2895
- | 'annual'
2896
- | 'daily'
2897
- | 'fortnightly'
2898
- | 'monthly'
2899
- | 'quarterly'
2900
- | 'semi_annual'
2901
- | 'weekly';
2902
-
2903
- type Purpose =
2904
- | 'dependant_support'
2905
- | 'government'
2906
- | 'loan'
2907
- | 'mortgage'
2908
- | 'other'
2909
- | 'pension'
2910
- | 'personal'
2911
- | 'retail'
2912
- | 'salary'
2913
- | 'tax'
2914
- | 'utility';
2915
- }
2916
-
2917
2326
  type SetupFutureUsage = 'none' | 'off_session';
2918
2327
  }
2919
2328
 
@@ -2953,21 +2362,6 @@ declare module 'stripe' {
2953
2362
  setup_future_usage?: 'none';
2954
2363
  }
2955
2364
 
2956
- interface Qris {
2957
- /**
2958
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2959
- *
2960
- * 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.
2961
- *
2962
- * 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.
2963
- *
2964
- * 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).
2965
- */
2966
- setup_future_usage?: 'none';
2967
- }
2968
-
2969
- interface Rechnung {}
2970
-
2971
2365
  interface RevolutPay {
2972
2366
  /**
2973
2367
  * Controls when the funds will be captured from the customer's account.
@@ -3023,19 +2417,6 @@ declare module 'stripe' {
3023
2417
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
3024
2418
  }
3025
2419
 
3026
- interface Shopeepay {
3027
- /**
3028
- * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3029
- *
3030
- * 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.
3031
- *
3032
- * 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.
3033
- *
3034
- * 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).
3035
- */
3036
- setup_future_usage?: 'none';
3037
- }
3038
-
3039
2420
  interface Sofort {
3040
2421
  /**
3041
2422
  * Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -3129,8 +2510,6 @@ declare module 'stripe' {
3129
2510
  interface FinancialConnections {
3130
2511
  filters?: FinancialConnections.Filters;
3131
2512
 
3132
- manual_entry?: FinancialConnections.ManualEntry;
3133
-
3134
2513
  /**
3135
2514
  * The list of permissions to request. The `payment_method` permission must be included.
3136
2515
  */
@@ -3153,39 +2532,19 @@ declare module 'stripe' {
3153
2532
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
3154
2533
  */
3155
2534
  account_subcategories?: Array<Filters.AccountSubcategory>;
3156
-
3157
- /**
3158
- * The institution to use to filter for possible accounts to link.
3159
- */
3160
- institution?: string;
3161
2535
  }
3162
2536
 
3163
2537
  namespace Filters {
3164
2538
  type AccountSubcategory = 'checking' | 'savings';
3165
2539
  }
3166
2540
 
3167
- interface ManualEntry {
3168
- /**
3169
- * Settings for configuring manual entry of account details.
3170
- */
3171
- mode?: ManualEntry.Mode;
3172
- }
3173
-
3174
- namespace ManualEntry {
3175
- type Mode = 'automatic' | 'custom';
3176
- }
3177
-
3178
2541
  type Permission =
3179
2542
  | 'balances'
3180
2543
  | 'ownership'
3181
2544
  | 'payment_method'
3182
2545
  | 'transactions';
3183
2546
 
3184
- type Prefetch =
3185
- | 'balances'
3186
- | 'inferred_balances'
3187
- | 'ownership'
3188
- | 'transactions';
2547
+ type Prefetch = 'balances' | 'ownership' | 'transactions';
3189
2548
  }
3190
2549
 
3191
2550
  interface MandateOptions {
@@ -3272,8 +2631,6 @@ declare module 'stripe' {
3272
2631
  }
3273
2632
  }
3274
2633
 
3275
- type SecretKeyConfirmation = 'optional' | 'required';
3276
-
3277
2634
  type SetupFutureUsage = 'off_session' | 'on_session';
3278
2635
 
3279
2636
  interface Shipping {