stripe 17.6.0 → 17.7.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 (179) hide show
  1. package/CHANGELOG.md +1068 -109
  2. package/OPENAPI_VERSION +1 -0
  3. package/README.md +1 -0
  4. package/VERSION +1 -1
  5. package/cjs/resources/AccountNotices.js +21 -0
  6. package/cjs/resources/Capital/FinancingOffers.js +21 -0
  7. package/cjs/resources/Capital/FinancingSummary.js +12 -0
  8. package/cjs/resources/Capital/FinancingTransactions.js +17 -0
  9. package/cjs/resources/FinancialConnections/Accounts.js +5 -0
  10. package/cjs/resources/FinancialConnections/Institutions.js +17 -0
  11. package/cjs/resources/GiftCards/Cards.js +23 -0
  12. package/cjs/resources/GiftCards/Transactions.js +33 -0
  13. package/cjs/resources/Invoices.js +17 -0
  14. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
  15. package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
  16. package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
  17. package/cjs/resources/Margins.js +22 -0
  18. package/cjs/resources/Orders.js +24 -0
  19. package/cjs/resources/PaymentAttemptRecords.js +17 -0
  20. package/cjs/resources/PaymentIntents.js +8 -0
  21. package/cjs/resources/PaymentRecords.js +29 -0
  22. package/cjs/resources/Quotes.js +32 -0
  23. package/cjs/resources/SubscriptionSchedules.js +4 -0
  24. package/cjs/resources/Tax/Associations.js +9 -0
  25. package/cjs/resources/Tax/Forms.js +20 -0
  26. package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
  27. package/cjs/resources/Terminal/Readers.js +12 -0
  28. package/cjs/resources.js +48 -10
  29. package/cjs/stripe.core.js +1 -1
  30. package/esm/resources/AccountNotices.js +18 -0
  31. package/esm/resources/Capital/FinancingOffers.js +18 -0
  32. package/esm/resources/Capital/FinancingSummary.js +9 -0
  33. package/esm/resources/Capital/FinancingTransactions.js +14 -0
  34. package/esm/resources/FinancialConnections/Accounts.js +5 -0
  35. package/esm/resources/FinancialConnections/Institutions.js +14 -0
  36. package/esm/resources/GiftCards/Cards.js +20 -0
  37. package/esm/resources/GiftCards/Transactions.js +30 -0
  38. package/esm/resources/Invoices.js +17 -0
  39. package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
  40. package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
  41. package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
  42. package/esm/resources/Margins.js +19 -0
  43. package/esm/resources/Orders.js +21 -0
  44. package/esm/resources/PaymentAttemptRecords.js +14 -0
  45. package/esm/resources/PaymentIntents.js +8 -0
  46. package/esm/resources/PaymentRecords.js +26 -0
  47. package/esm/resources/Quotes.js +32 -0
  48. package/esm/resources/SubscriptionSchedules.js +4 -0
  49. package/esm/resources/Tax/Associations.js +6 -0
  50. package/esm/resources/Tax/Forms.js +17 -0
  51. package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
  52. package/esm/resources/Terminal/Readers.js +12 -0
  53. package/esm/resources.js +33 -0
  54. package/esm/stripe.core.js +1 -1
  55. package/package.json +1 -1
  56. package/types/AccountLinksResource.d.ts +5 -1
  57. package/types/AccountNotices.d.ts +113 -0
  58. package/types/AccountNoticesResource.d.ts +98 -0
  59. package/types/AccountSessions.d.ts +45 -0
  60. package/types/AccountSessionsResource.d.ts +243 -0
  61. package/types/Accounts.d.ts +205 -1
  62. package/types/AccountsResource.d.ts +526 -2
  63. package/types/Balance.d.ts +18 -18
  64. package/types/Billing/CreditBalanceSummaryResource.d.ts +14 -0
  65. package/types/Billing/CreditGrants.d.ts +15 -1
  66. package/types/Billing/CreditGrantsResource.d.ts +14 -0
  67. package/types/Billing/MeterErrorReports.d.ts +106 -0
  68. package/types/Billing/MeterEventSummaries.d.ts +2 -0
  69. package/types/Capital/FinancingOffers.d.ts +188 -0
  70. package/types/Capital/FinancingOffersResource.d.ts +97 -0
  71. package/types/Capital/FinancingSummary.d.ts +106 -0
  72. package/types/Capital/FinancingSummaryResource.d.ts +27 -0
  73. package/types/Capital/FinancingTransactions.d.ts +135 -0
  74. package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
  75. package/types/Cards.d.ts +5 -0
  76. package/types/Charges.d.ts +151 -3
  77. package/types/ChargesResource.d.ts +1294 -0
  78. package/types/Checkout/Sessions.d.ts +362 -9
  79. package/types/Checkout/SessionsResource.d.ts +465 -5
  80. package/types/ConfirmationTokens.d.ts +103 -4
  81. package/types/Coupons.d.ts +1 -1
  82. package/types/CouponsResource.d.ts +1 -1
  83. package/types/CreditNotes.d.ts +23 -2
  84. package/types/CreditNotesResource.d.ts +51 -0
  85. package/types/CustomersResource.d.ts +7 -0
  86. package/types/EventTypes.d.ts +596 -0
  87. package/types/Events.d.ts +93 -0
  88. package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
  89. package/types/FinancialConnections/Accounts.d.ts +29 -1
  90. package/types/FinancialConnections/AccountsResource.d.ts +35 -3
  91. package/types/FinancialConnections/Institutions.d.ts +93 -0
  92. package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
  93. package/types/FinancialConnections/Sessions.d.ts +49 -1
  94. package/types/FinancialConnections/SessionsResource.d.ts +38 -1
  95. package/types/GiftCards/Cards.d.ts +118 -0
  96. package/types/GiftCards/CardsResource.d.ts +159 -0
  97. package/types/GiftCards/Transactions.d.ts +129 -0
  98. package/types/GiftCards/TransactionsResource.d.ts +201 -0
  99. package/types/InvoiceItems.d.ts +5 -0
  100. package/types/InvoiceItemsResource.d.ts +98 -0
  101. package/types/InvoiceLineItems.d.ts +28 -1
  102. package/types/InvoicePayments.d.ts +113 -0
  103. package/types/Invoices.d.ts +139 -4
  104. package/types/InvoicesResource.d.ts +4618 -933
  105. package/types/Issuing/Authorizations.d.ts +1 -0
  106. package/types/Issuing/CardholdersResource.d.ts +2 -1
  107. package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
  108. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
  109. package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
  110. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
  111. package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
  112. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
  113. package/types/Issuing/Settlements.d.ts +103 -0
  114. package/types/Issuing/Transactions.d.ts +2 -0
  115. package/types/Issuing/TransactionsResource.d.ts +5 -0
  116. package/types/LineItems.d.ts +34 -2
  117. package/types/Mandates.d.ts +77 -0
  118. package/types/Margins.d.ts +56 -0
  119. package/types/MarginsResource.d.ts +114 -0
  120. package/types/Orders.d.ts +1179 -0
  121. package/types/OrdersResource.d.ts +2961 -0
  122. package/types/PaymentAttemptRecords.d.ts +242 -0
  123. package/types/PaymentAttemptRecordsResource.d.ts +47 -0
  124. package/types/PaymentIntents.d.ts +644 -1
  125. package/types/PaymentIntentsResource.d.ts +8027 -3740
  126. package/types/PaymentLinks.d.ts +6 -0
  127. package/types/PaymentLinksResource.d.ts +12 -0
  128. package/types/PaymentMethodConfigurations.d.ts +180 -0
  129. package/types/PaymentMethodConfigurationsResource.d.ts +250 -0
  130. package/types/PaymentMethods.d.ts +103 -4
  131. package/types/PaymentMethodsResource.d.ts +133 -0
  132. package/types/PaymentRecords.d.ts +242 -0
  133. package/types/PaymentRecordsResource.d.ts +455 -0
  134. package/types/Prices.d.ts +22 -0
  135. package/types/PricesResource.d.ts +22 -0
  136. package/types/Products.d.ts +39 -0
  137. package/types/ProductsResource.d.ts +36 -0
  138. package/types/QuoteLines.d.ts +634 -0
  139. package/types/QuotePreviewInvoices.d.ts +1658 -0
  140. package/types/QuotePreviewSubscriptionSchedules.d.ts +824 -0
  141. package/types/Quotes.d.ts +597 -7
  142. package/types/QuotesResource.d.ts +2526 -194
  143. package/types/Refunds.d.ts +16 -2
  144. package/types/SetupAttempts.d.ts +38 -0
  145. package/types/SetupIntents.d.ts +111 -1
  146. package/types/SetupIntentsResource.d.ts +648 -6
  147. package/types/Sources.d.ts +29 -0
  148. package/types/SubscriptionItems.d.ts +21 -0
  149. package/types/SubscriptionItemsResource.d.ts +109 -0
  150. package/types/SubscriptionSchedules.d.ts +200 -0
  151. package/types/SubscriptionSchedulesResource.d.ts +1234 -16
  152. package/types/Subscriptions.d.ts +91 -1
  153. package/types/SubscriptionsResource.d.ts +369 -2
  154. package/types/Tax/Associations.d.ts +126 -0
  155. package/types/Tax/AssociationsResource.d.ts +29 -0
  156. package/types/Tax/CalculationLineItems.d.ts +1 -1
  157. package/types/Tax/Calculations.d.ts +1 -1
  158. package/types/Tax/Forms.d.ts +220 -0
  159. package/types/Tax/FormsResource.d.ts +107 -0
  160. package/types/Tax/Transactions.d.ts +1 -1
  161. package/types/TaxRates.d.ts +3 -3
  162. package/types/TaxRatesResource.d.ts +2 -2
  163. package/types/Terminal/ReaderCollectedData.d.ts +51 -0
  164. package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
  165. package/types/Terminal/Readers.d.ts +290 -0
  166. package/types/Terminal/ReadersResource.d.ts +215 -0
  167. package/types/TestHelpers/ConfirmationTokensResource.d.ts +104 -0
  168. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
  169. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
  170. package/types/TokensResource.d.ts +3 -1
  171. package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
  172. package/types/Treasury/FinancialAccounts.d.ts +5 -0
  173. package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
  174. package/types/Treasury/OutboundTransfers.d.ts +26 -0
  175. package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
  176. package/types/Treasury/ReceivedCredits.d.ts +26 -0
  177. package/types/Treasury/ReceivedDebits.d.ts +31 -0
  178. package/types/WebhookEndpointsResource.d.ts +70 -0
  179. package/types/index.d.ts +62 -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
  *
@@ -248,6 +257,25 @@ declare module 'stripe' {
248
257
  }
249
258
  }
250
259
 
260
+ interface AsyncWorkflows {
261
+ inputs?: AsyncWorkflows.Inputs;
262
+ }
263
+
264
+ namespace AsyncWorkflows {
265
+ interface Inputs {
266
+ tax?: Inputs.Tax;
267
+ }
268
+
269
+ namespace Inputs {
270
+ interface Tax {
271
+ /**
272
+ * The [TaxCalculation](https://stripe.com/docs/api/tax/calculations) id
273
+ */
274
+ calculation: string;
275
+ }
276
+ }
277
+ }
278
+
251
279
  interface AutomaticPaymentMethods {
252
280
  /**
253
281
  * Controls whether this PaymentIntent will accept redirect-based payment methods.
@@ -442,11 +470,15 @@ declare module 'stripe' {
442
470
  | 'email_invalid'
443
471
  | 'expired_card'
444
472
  | 'financial_connections_account_inactive'
473
+ | 'financial_connections_institution_unavailable'
445
474
  | 'financial_connections_no_successful_transaction_refresh'
446
475
  | 'forwarding_api_inactive'
447
476
  | 'forwarding_api_invalid_parameter'
448
477
  | 'forwarding_api_upstream_connection_error'
449
478
  | 'forwarding_api_upstream_connection_timeout'
479
+ | 'gift_card_balance_insufficient'
480
+ | 'gift_card_code_exists'
481
+ | 'gift_card_inactive'
450
482
  | 'idempotency_key_in_use'
451
483
  | 'incorrect_address'
452
484
  | 'incorrect_cvc'
@@ -536,6 +568,7 @@ declare module 'stripe' {
536
568
  | 'return_intent_already_processed'
537
569
  | 'routing_number_invalid'
538
570
  | 'secret_key_required'
571
+ | 'sensitive_data_access_expired'
539
572
  | 'sepa_unsupported_account'
540
573
  | 'setup_attempt_failed'
541
574
  | 'setup_intent_authentication_failure'
@@ -553,6 +586,7 @@ declare module 'stripe' {
553
586
  | 'taxes_calculation_failed'
554
587
  | 'terminal_location_country_unsupported'
555
588
  | 'terminal_reader_busy'
589
+ | 'terminal_reader_collected_data_invalid'
556
590
  | 'terminal_reader_hardware_fault'
557
591
  | 'terminal_reader_invalid_location_for_activation'
558
592
  | 'terminal_reader_invalid_location_for_payment'
@@ -1329,6 +1363,289 @@ declare module 'stripe' {
1329
1363
  }
1330
1364
  }
1331
1365
 
1366
+ interface PaymentDetails {
1367
+ car_rental?: PaymentDetails.CarRental;
1368
+
1369
+ event_details?: PaymentDetails.EventDetails;
1370
+
1371
+ subscription?: PaymentDetails.Subscription;
1372
+ }
1373
+
1374
+ namespace PaymentDetails {
1375
+ interface CarRental {
1376
+ affiliate?: CarRental.Affiliate;
1377
+
1378
+ /**
1379
+ * The booking number associated with the car rental.
1380
+ */
1381
+ booking_number: string;
1382
+
1383
+ /**
1384
+ * Class code of the car.
1385
+ */
1386
+ car_class_code?: string;
1387
+
1388
+ /**
1389
+ * Make of the car.
1390
+ */
1391
+ car_make?: string;
1392
+
1393
+ /**
1394
+ * Model of the car.
1395
+ */
1396
+ car_model?: string;
1397
+
1398
+ /**
1399
+ * The name of the rental car company.
1400
+ */
1401
+ company?: string;
1402
+
1403
+ /**
1404
+ * The customer service phone number of the car rental company.
1405
+ */
1406
+ customer_service_phone_number?: string;
1407
+
1408
+ /**
1409
+ * Number of days the car is being rented.
1410
+ */
1411
+ days_rented: number;
1412
+
1413
+ delivery?: CarRental.Delivery;
1414
+
1415
+ /**
1416
+ * The details of the drivers associated with the trip.
1417
+ */
1418
+ drivers?: Array<CarRental.Driver>;
1419
+
1420
+ /**
1421
+ * List of additional charges being billed.
1422
+ */
1423
+ extra_charges?: Array<CarRental.ExtraCharge>;
1424
+
1425
+ /**
1426
+ * Indicates if the customer did not keep nor cancel their booking.
1427
+ */
1428
+ no_show?: boolean;
1429
+
1430
+ pickup_address?: Stripe.Address;
1431
+
1432
+ /**
1433
+ * Car pick-up time. Measured in seconds since the Unix epoch.
1434
+ */
1435
+ pickup_at: number;
1436
+
1437
+ /**
1438
+ * Rental rate.
1439
+ */
1440
+ rate_amount?: number;
1441
+
1442
+ /**
1443
+ * The frequency at which the rate amount is applied. One of `day`, `week` or `month`
1444
+ */
1445
+ rate_interval?: CarRental.RateInterval;
1446
+
1447
+ /**
1448
+ * The full name of the person or entity renting the car.
1449
+ */
1450
+ renter_name?: string;
1451
+
1452
+ return_address?: Stripe.Address;
1453
+
1454
+ /**
1455
+ * Car return time. Measured in seconds since the Unix epoch.
1456
+ */
1457
+ return_at: number;
1458
+
1459
+ /**
1460
+ * Indicates whether the goods or services are tax-exempt or tax is not collected.
1461
+ */
1462
+ tax_exempt?: boolean;
1463
+ }
1464
+
1465
+ namespace CarRental {
1466
+ interface Affiliate {
1467
+ /**
1468
+ * The name of the affiliate that originated the purchase.
1469
+ */
1470
+ name?: string;
1471
+ }
1472
+
1473
+ interface Delivery {
1474
+ /**
1475
+ * The delivery method for the payment
1476
+ */
1477
+ mode?: Delivery.Mode;
1478
+
1479
+ recipient?: Delivery.Recipient;
1480
+ }
1481
+
1482
+ namespace Delivery {
1483
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1484
+
1485
+ interface Recipient {
1486
+ /**
1487
+ * The email of the recipient the ticket is delivered to.
1488
+ */
1489
+ email?: string;
1490
+
1491
+ /**
1492
+ * The name of the recipient the ticket is delivered to.
1493
+ */
1494
+ name?: string;
1495
+
1496
+ /**
1497
+ * The phone number of the recipient the ticket is delivered to.
1498
+ */
1499
+ phone?: string;
1500
+ }
1501
+ }
1502
+
1503
+ interface Driver {
1504
+ /**
1505
+ * Full name of the driver on the reservation.
1506
+ */
1507
+ name?: string;
1508
+ }
1509
+
1510
+ type ExtraCharge =
1511
+ | 'extra_mileage'
1512
+ | 'gas'
1513
+ | 'late_return'
1514
+ | 'one_way_service'
1515
+ | 'parking_violation';
1516
+
1517
+ type RateInterval = 'day' | 'month' | 'week';
1518
+ }
1519
+
1520
+ interface EventDetails {
1521
+ /**
1522
+ * Indicates if the tickets are digitally checked when entering the venue.
1523
+ */
1524
+ access_controlled_venue?: boolean;
1525
+
1526
+ address?: Stripe.Address;
1527
+
1528
+ affiliate?: EventDetails.Affiliate;
1529
+
1530
+ /**
1531
+ * The name of the company
1532
+ */
1533
+ company?: string;
1534
+
1535
+ delivery?: EventDetails.Delivery;
1536
+
1537
+ /**
1538
+ * Event end time. Measured in seconds since the Unix epoch.
1539
+ */
1540
+ ends_at?: number;
1541
+
1542
+ /**
1543
+ * Type of the event entertainment (concert, sports event etc)
1544
+ */
1545
+ genre?: string;
1546
+
1547
+ /**
1548
+ * The name of the event.
1549
+ */
1550
+ name?: string;
1551
+
1552
+ /**
1553
+ * Event start time. Measured in seconds since the Unix epoch.
1554
+ */
1555
+ starts_at?: number;
1556
+ }
1557
+
1558
+ namespace EventDetails {
1559
+ interface Affiliate {
1560
+ /**
1561
+ * The name of the affiliate that originated the purchase.
1562
+ */
1563
+ name?: string;
1564
+ }
1565
+
1566
+ interface Delivery {
1567
+ /**
1568
+ * The delivery method for the payment
1569
+ */
1570
+ mode?: Delivery.Mode;
1571
+
1572
+ recipient?: Delivery.Recipient;
1573
+ }
1574
+
1575
+ namespace Delivery {
1576
+ type Mode = 'email' | 'phone' | 'pickup' | 'post';
1577
+
1578
+ interface Recipient {
1579
+ /**
1580
+ * The email of the recipient the ticket is delivered to.
1581
+ */
1582
+ email?: string;
1583
+
1584
+ /**
1585
+ * The name of the recipient the ticket is delivered to.
1586
+ */
1587
+ name?: string;
1588
+
1589
+ /**
1590
+ * The phone number of the recipient the ticket is delivered to.
1591
+ */
1592
+ phone?: string;
1593
+ }
1594
+ }
1595
+ }
1596
+
1597
+ interface Subscription {
1598
+ affiliate?: Subscription.Affiliate;
1599
+
1600
+ /**
1601
+ * Info whether the subscription will be auto renewed upon expiry.
1602
+ */
1603
+ auto_renewal?: boolean;
1604
+
1605
+ billing_interval?: Subscription.BillingInterval;
1606
+
1607
+ /**
1608
+ * Subscription end time. Measured in seconds since the Unix epoch.
1609
+ */
1610
+ ends_at?: number;
1611
+
1612
+ /**
1613
+ * Name of the product on subscription. e.g. Apple Music Subscription.
1614
+ */
1615
+ name?: string;
1616
+
1617
+ /**
1618
+ * Subscription start time. Measured in seconds since the Unix epoch.
1619
+ */
1620
+ starts_at?: number;
1621
+ }
1622
+
1623
+ namespace Subscription {
1624
+ interface Affiliate {
1625
+ /**
1626
+ * The name of the affiliate that originated the purchase.
1627
+ */
1628
+ name?: string;
1629
+ }
1630
+
1631
+ interface BillingInterval {
1632
+ /**
1633
+ * The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
1634
+ */
1635
+ count?: number;
1636
+
1637
+ /**
1638
+ * Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
1639
+ */
1640
+ interval?: BillingInterval.Interval;
1641
+ }
1642
+
1643
+ namespace BillingInterval {
1644
+ type Interval = 'day' | 'month' | 'week' | 'year';
1645
+ }
1646
+ }
1647
+ }
1648
+
1332
1649
  interface PaymentMethodConfigurationDetails {
1333
1650
  /**
1334
1651
  * ID of the payment method configuration used.
@@ -1378,8 +1695,12 @@ declare module 'stripe' {
1378
1695
 
1379
1696
  giropay?: PaymentMethodOptions.Giropay;
1380
1697
 
1698
+ gopay?: PaymentMethodOptions.Gopay;
1699
+
1381
1700
  grabpay?: PaymentMethodOptions.Grabpay;
1382
1701
 
1702
+ id_bank_transfer?: PaymentMethodOptions.IdBankTransfer;
1703
+
1383
1704
  ideal?: PaymentMethodOptions.Ideal;
1384
1705
 
1385
1706
  interac_present?: PaymentMethodOptions.InteracPresent;
@@ -1394,6 +1715,8 @@ declare module 'stripe' {
1394
1715
 
1395
1716
  link?: PaymentMethodOptions.Link;
1396
1717
 
1718
+ mb_way?: PaymentMethodOptions.MbWay;
1719
+
1397
1720
  mobilepay?: PaymentMethodOptions.Mobilepay;
1398
1721
 
1399
1722
  multibanco?: PaymentMethodOptions.Multibanco;
@@ -1412,16 +1735,24 @@ declare module 'stripe' {
1412
1735
 
1413
1736
  paypal?: PaymentMethodOptions.Paypal;
1414
1737
 
1738
+ payto?: PaymentMethodOptions.Payto;
1739
+
1415
1740
  pix?: PaymentMethodOptions.Pix;
1416
1741
 
1417
1742
  promptpay?: PaymentMethodOptions.Promptpay;
1418
1743
 
1744
+ qris?: PaymentMethodOptions.Qris;
1745
+
1746
+ rechnung?: PaymentMethodOptions.Rechnung;
1747
+
1419
1748
  revolut_pay?: PaymentMethodOptions.RevolutPay;
1420
1749
 
1421
1750
  samsung_pay?: PaymentMethodOptions.SamsungPay;
1422
1751
 
1423
1752
  sepa_debit?: PaymentMethodOptions.SepaDebit;
1424
1753
 
1754
+ shopeepay?: PaymentMethodOptions.Shopeepay;
1755
+
1425
1756
  sofort?: PaymentMethodOptions.Sofort;
1426
1757
 
1427
1758
  swish?: PaymentMethodOptions.Swish;
@@ -1708,6 +2039,11 @@ declare module 'stripe' {
1708
2039
  */
1709
2040
  network: Card.Network | null;
1710
2041
 
2042
+ /**
2043
+ * Request ability to [decrement the authorization](https://stripe.com/docs/payments/decremental-authorization) for this PaymentIntent.
2044
+ */
2045
+ request_decremental_authorization?: Card.RequestDecrementalAuthorization;
2046
+
1711
2047
  /**
1712
2048
  * Request ability to [capture beyond the standard authorization validity window](https://stripe.com/docs/payments/extended-authorization) for this PaymentIntent.
1713
2049
  */
@@ -1728,6 +2064,11 @@ declare module 'stripe' {
1728
2064
  */
1729
2065
  request_overcapture?: Card.RequestOvercapture;
1730
2066
 
2067
+ /**
2068
+ * Request partial authorization on this PaymentIntent.
2069
+ */
2070
+ request_partial_authorization?: Card.RequestPartialAuthorization;
2071
+
1731
2072
  /**
1732
2073
  * 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.
1733
2074
  */
@@ -1758,6 +2099,8 @@ declare module 'stripe' {
1758
2099
  * 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.
1759
2100
  */
1760
2101
  statement_descriptor_suffix_kanji?: string;
2102
+
2103
+ statement_details?: Card.StatementDetails;
1761
2104
  }
1762
2105
 
1763
2106
  namespace Card {
@@ -1884,6 +2227,8 @@ declare module 'stripe' {
1884
2227
  | 'unknown'
1885
2228
  | 'visa';
1886
2229
 
2230
+ type RequestDecrementalAuthorization = 'if_available' | 'never';
2231
+
1887
2232
  type RequestExtendedAuthorization = 'if_available' | 'never';
1888
2233
 
1889
2234
  type RequestIncrementalAuthorization = 'if_available' | 'never';
@@ -1892,9 +2237,54 @@ declare module 'stripe' {
1892
2237
 
1893
2238
  type RequestOvercapture = 'if_available' | 'never';
1894
2239
 
2240
+ type RequestPartialAuthorization = 'if_available' | 'never';
2241
+
1895
2242
  type RequestThreeDSecure = 'any' | 'automatic' | 'challenge';
1896
2243
 
1897
2244
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2245
+
2246
+ interface StatementDetails {
2247
+ address?: StatementDetails.Address;
2248
+
2249
+ /**
2250
+ * Phone number
2251
+ */
2252
+ phone?: string;
2253
+ }
2254
+
2255
+ namespace StatementDetails {
2256
+ interface Address {
2257
+ /**
2258
+ * City, district, suburb, town, or village.
2259
+ */
2260
+ city?: string;
2261
+
2262
+ /**
2263
+ * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)).
2264
+ */
2265
+ country?: string;
2266
+
2267
+ /**
2268
+ * Address line 1 (e.g., street, PO Box, or company name).
2269
+ */
2270
+ line1?: string;
2271
+
2272
+ /**
2273
+ * Address line 2 (e.g., apartment, suite, unit, or building).
2274
+ */
2275
+ line2?: string;
2276
+
2277
+ /**
2278
+ * ZIP or postal code.
2279
+ */
2280
+ postal_code?: string;
2281
+
2282
+ /**
2283
+ * State, county, province, or region.
2284
+ */
2285
+ state?: string;
2286
+ }
2287
+ }
1898
2288
  }
1899
2289
 
1900
2290
  interface CardPresent {
@@ -2052,6 +2442,19 @@ declare module 'stripe' {
2052
2442
  setup_future_usage?: 'none';
2053
2443
  }
2054
2444
 
2445
+ interface Gopay {
2446
+ /**
2447
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2448
+ *
2449
+ * 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.
2450
+ *
2451
+ * 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.
2452
+ *
2453
+ * 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).
2454
+ */
2455
+ setup_future_usage?: 'none';
2456
+ }
2457
+
2055
2458
  interface Grabpay {
2056
2459
  /**
2057
2460
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2065,6 +2468,29 @@ declare module 'stripe' {
2065
2468
  setup_future_usage?: 'none';
2066
2469
  }
2067
2470
 
2471
+ interface IdBankTransfer {
2472
+ /**
2473
+ * The UNIX timestamp until which the virtual bank account is valid. Permitted range is from now till 2678400 seconds (31 days) from now.
2474
+ */
2475
+ expires_after?: number | null;
2476
+
2477
+ /**
2478
+ * 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.
2479
+ */
2480
+ expires_at: number | null;
2481
+
2482
+ /**
2483
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2484
+ *
2485
+ * 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.
2486
+ *
2487
+ * 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.
2488
+ *
2489
+ * 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).
2490
+ */
2491
+ setup_future_usage?: 'none';
2492
+ }
2493
+
2068
2494
  interface Ideal {
2069
2495
  /**
2070
2496
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
@@ -2212,6 +2638,19 @@ declare module 'stripe' {
2212
2638
  type SetupFutureUsage = 'none' | 'off_session';
2213
2639
  }
2214
2640
 
2641
+ interface MbWay {
2642
+ /**
2643
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2644
+ *
2645
+ * 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.
2646
+ *
2647
+ * 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.
2648
+ *
2649
+ * 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).
2650
+ */
2651
+ setup_future_usage?: 'none';
2652
+ }
2653
+
2215
2654
  interface Mobilepay {
2216
2655
  /**
2217
2656
  * Controls when the funds will be captured from the customer's account.
@@ -2309,6 +2748,11 @@ declare module 'stripe' {
2309
2748
  */
2310
2749
  capture_method?: 'manual';
2311
2750
 
2751
+ /**
2752
+ * The line items purchased by the customer.
2753
+ */
2754
+ line_items?: Array<Paypal.LineItem>;
2755
+
2312
2756
  /**
2313
2757
  * Preferred locale of the PayPal checkout page that the customer is redirected to.
2314
2758
  */
@@ -2319,6 +2763,11 @@ declare module 'stripe' {
2319
2763
  */
2320
2764
  reference: string | null;
2321
2765
 
2766
+ /**
2767
+ * 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.
2768
+ */
2769
+ reference_id?: string | null;
2770
+
2322
2771
  /**
2323
2772
  * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2324
2773
  *
@@ -2329,9 +2778,151 @@ declare module 'stripe' {
2329
2778
  * 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).
2330
2779
  */
2331
2780
  setup_future_usage?: Paypal.SetupFutureUsage;
2781
+
2782
+ /**
2783
+ * 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.
2784
+ */
2785
+ subsellers?: Array<string>;
2332
2786
  }
2333
2787
 
2334
2788
  namespace Paypal {
2789
+ interface LineItem {
2790
+ /**
2791
+ * Type of the line item.
2792
+ */
2793
+ category?: LineItem.Category;
2794
+
2795
+ /**
2796
+ * Description of the line item.
2797
+ */
2798
+ description?: string;
2799
+
2800
+ /**
2801
+ * Descriptive name of the line item.
2802
+ */
2803
+ name: string;
2804
+
2805
+ /**
2806
+ * Quantity of the line item. Cannot be a negative number.
2807
+ */
2808
+ quantity: number;
2809
+
2810
+ /**
2811
+ * Client facing stock keeping unit, article number or similar.
2812
+ */
2813
+ sku?: string;
2814
+
2815
+ /**
2816
+ * 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).
2817
+ */
2818
+ sold_by?: string;
2819
+
2820
+ tax?: LineItem.Tax;
2821
+
2822
+ /**
2823
+ * Price for a single unit of the line item in minor units. Cannot be a negative number.
2824
+ */
2825
+ unit_amount: number;
2826
+ }
2827
+
2828
+ namespace LineItem {
2829
+ type Category = 'digital_goods' | 'donation' | 'physical_goods';
2830
+
2831
+ interface Tax {
2832
+ /**
2833
+ * The tax for a single unit of the line item in minor units. Cannot be a negative number.
2834
+ */
2835
+ amount: number;
2836
+
2837
+ /**
2838
+ * The tax behavior for the line item.
2839
+ */
2840
+ behavior: Tax.Behavior;
2841
+ }
2842
+
2843
+ namespace Tax {
2844
+ type Behavior = 'exclusive' | 'inclusive';
2845
+ }
2846
+ }
2847
+
2848
+ type SetupFutureUsage = 'none' | 'off_session';
2849
+ }
2850
+
2851
+ interface Payto {
2852
+ mandate_options?: Payto.MandateOptions;
2853
+
2854
+ /**
2855
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2856
+ *
2857
+ * 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.
2858
+ *
2859
+ * 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.
2860
+ *
2861
+ * 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).
2862
+ */
2863
+ setup_future_usage?: Payto.SetupFutureUsage;
2864
+ }
2865
+
2866
+ namespace Payto {
2867
+ interface MandateOptions {
2868
+ /**
2869
+ * Amount that will be collected. It is required when `amount_type` is `fixed`.
2870
+ */
2871
+ amount: number | null;
2872
+
2873
+ /**
2874
+ * 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.
2875
+ */
2876
+ amount_type: MandateOptions.AmountType | null;
2877
+
2878
+ /**
2879
+ * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date.
2880
+ */
2881
+ end_date: string | null;
2882
+
2883
+ /**
2884
+ * The periodicity at which payments will be collected.
2885
+ */
2886
+ payment_schedule: MandateOptions.PaymentSchedule | null;
2887
+
2888
+ /**
2889
+ * 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.
2890
+ */
2891
+ payments_per_period: number | null;
2892
+
2893
+ /**
2894
+ * The purpose for which payments are made. Defaults to retail.
2895
+ */
2896
+ purpose: MandateOptions.Purpose | null;
2897
+ }
2898
+
2899
+ namespace MandateOptions {
2900
+ type AmountType = 'fixed' | 'maximum';
2901
+
2902
+ type PaymentSchedule =
2903
+ | 'adhoc'
2904
+ | 'annual'
2905
+ | 'daily'
2906
+ | 'fortnightly'
2907
+ | 'monthly'
2908
+ | 'quarterly'
2909
+ | 'semi_annual'
2910
+ | 'weekly';
2911
+
2912
+ type Purpose =
2913
+ | 'dependant_support'
2914
+ | 'government'
2915
+ | 'loan'
2916
+ | 'mortgage'
2917
+ | 'other'
2918
+ | 'pension'
2919
+ | 'personal'
2920
+ | 'retail'
2921
+ | 'salary'
2922
+ | 'tax'
2923
+ | 'utility';
2924
+ }
2925
+
2335
2926
  type SetupFutureUsage = 'none' | 'off_session';
2336
2927
  }
2337
2928
 
@@ -2371,6 +2962,21 @@ declare module 'stripe' {
2371
2962
  setup_future_usage?: 'none';
2372
2963
  }
2373
2964
 
2965
+ interface Qris {
2966
+ /**
2967
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2968
+ *
2969
+ * 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.
2970
+ *
2971
+ * 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.
2972
+ *
2973
+ * 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).
2974
+ */
2975
+ setup_future_usage?: 'none';
2976
+ }
2977
+
2978
+ interface Rechnung {}
2979
+
2374
2980
  interface RevolutPay {
2375
2981
  /**
2376
2982
  * Controls when the funds will be captured from the customer's account.
@@ -2426,6 +3032,19 @@ declare module 'stripe' {
2426
3032
  type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2427
3033
  }
2428
3034
 
3035
+ interface Shopeepay {
3036
+ /**
3037
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
3038
+ *
3039
+ * 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.
3040
+ *
3041
+ * 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.
3042
+ *
3043
+ * 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).
3044
+ */
3045
+ setup_future_usage?: 'none';
3046
+ }
3047
+
2429
3048
  interface Sofort {
2430
3049
  /**
2431
3050
  * Preferred language of the SOFORT authorization page that the customer is redirected to.
@@ -2519,6 +3138,8 @@ declare module 'stripe' {
2519
3138
  interface FinancialConnections {
2520
3139
  filters?: FinancialConnections.Filters;
2521
3140
 
3141
+ manual_entry?: FinancialConnections.ManualEntry;
3142
+
2522
3143
  /**
2523
3144
  * The list of permissions to request. The `payment_method` permission must be included.
2524
3145
  */
@@ -2541,19 +3162,39 @@ declare module 'stripe' {
2541
3162
  * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
2542
3163
  */
2543
3164
  account_subcategories?: Array<Filters.AccountSubcategory>;
3165
+
3166
+ /**
3167
+ * The institution to use to filter for possible accounts to link.
3168
+ */
3169
+ institution?: string;
2544
3170
  }
2545
3171
 
2546
3172
  namespace Filters {
2547
3173
  type AccountSubcategory = 'checking' | 'savings';
2548
3174
  }
2549
3175
 
3176
+ interface ManualEntry {
3177
+ /**
3178
+ * Settings for configuring manual entry of account details.
3179
+ */
3180
+ mode?: ManualEntry.Mode;
3181
+ }
3182
+
3183
+ namespace ManualEntry {
3184
+ type Mode = 'automatic' | 'custom';
3185
+ }
3186
+
2550
3187
  type Permission =
2551
3188
  | 'balances'
2552
3189
  | 'ownership'
2553
3190
  | 'payment_method'
2554
3191
  | 'transactions';
2555
3192
 
2556
- type Prefetch = 'balances' | 'ownership' | 'transactions';
3193
+ type Prefetch =
3194
+ | 'balances'
3195
+ | 'inferred_balances'
3196
+ | 'ownership'
3197
+ | 'transactions';
2557
3198
  }
2558
3199
 
2559
3200
  interface MandateOptions {
@@ -2640,6 +3281,8 @@ declare module 'stripe' {
2640
3281
  }
2641
3282
  }
2642
3283
 
3284
+ type SecretKeyConfirmation = 'optional' | 'required';
3285
+
2643
3286
  type SetupFutureUsage = 'off_session' | 'on_session';
2644
3287
 
2645
3288
  interface Shipping {