stripe 18.3.0-beta.2 → 18.4.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 (78) hide show
  1. package/CHANGELOG.md +48 -7
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +9 -9
  5. package/cjs/RequestSender.js +1 -1
  6. package/cjs/apiVersion.js +1 -1
  7. package/cjs/stripe.core.js +1 -1
  8. package/esm/Error.js +7 -7
  9. package/esm/RequestSender.js +1 -1
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/stripe.core.js +1 -1
  12. package/package.json +1 -1
  13. package/types/AccountSessions.d.ts +31 -31
  14. package/types/AccountSessionsResource.d.ts +62 -62
  15. package/types/Accounts.d.ts +29 -1
  16. package/types/AccountsResource.d.ts +89 -0
  17. package/types/BillingPortal/Sessions.d.ts +1 -1
  18. package/types/BillingPortal/SessionsResource.d.ts +1 -1
  19. package/types/Charges.d.ts +52 -16
  20. package/types/Checkout/SessionsResource.d.ts +61 -7
  21. package/types/ConfirmationTokens.d.ts +22 -11
  22. package/types/CreditNotesResource.d.ts +9 -9
  23. package/types/CustomerSessions.d.ts +1 -1
  24. package/types/CustomerSessionsResource.d.ts +1 -1
  25. package/types/CustomersResource.d.ts +1 -0
  26. package/types/Disputes.d.ts +13 -2
  27. package/types/Errors.d.ts +6 -6
  28. package/types/Events.d.ts +1 -1
  29. package/types/Identity/VerificationSessions.d.ts +34 -0
  30. package/types/Identity/VerificationSessionsResource.d.ts +17 -0
  31. package/types/InvoiceItems.d.ts +1 -4
  32. package/types/Invoices.d.ts +1 -0
  33. package/types/InvoicesResource.d.ts +29 -7
  34. package/types/Mandates.d.ts +4 -0
  35. package/types/Orders.d.ts +5 -1
  36. package/types/OrdersResource.d.ts +174 -2
  37. package/types/PaymentAttemptRecords.d.ts +48 -19
  38. package/types/PaymentIntents.d.ts +38 -7
  39. package/types/PaymentIntentsResource.d.ts +384 -15
  40. package/types/PaymentMethods.d.ts +16 -9
  41. package/types/PaymentMethodsResource.d.ts +10 -0
  42. package/types/PaymentRecords.d.ts +48 -19
  43. package/types/QuotePreviewInvoices.d.ts +1 -0
  44. package/types/QuotePreviewSubscriptionSchedules.d.ts +17 -3
  45. package/types/Quotes.d.ts +12 -3
  46. package/types/QuotesResource.d.ts +7 -1
  47. package/types/SetupAttempts.d.ts +3 -1
  48. package/types/SetupIntents.d.ts +15 -1
  49. package/types/SetupIntentsResource.d.ts +482 -2
  50. package/types/SubscriptionItems.d.ts +0 -9
  51. package/types/SubscriptionSchedules.d.ts +17 -3
  52. package/types/SubscriptionSchedulesResource.d.ts +7 -1
  53. package/types/Subscriptions.d.ts +14 -11
  54. package/types/SubscriptionsResource.d.ts +20 -6
  55. package/types/Tax/Registrations.d.ts +9 -0
  56. package/types/Tax/RegistrationsResource.d.ts +12 -0
  57. package/types/Terminal/Configurations.d.ts +1 -0
  58. package/types/Terminal/LocationsResource.d.ts +1 -1
  59. package/types/Terminal/Readers.d.ts +6 -6
  60. package/types/Terminal/ReadersResource.d.ts +4 -4
  61. package/types/TestHelpers/ConfirmationTokensResource.d.ts +15 -2
  62. package/types/TokensResource.d.ts +3 -0
  63. package/types/Treasury/FinancialAccountsResource.d.ts +9 -0
  64. package/types/V2/Core/Accounts/PersonsResource.d.ts +10 -0
  65. package/types/V2/Core/Accounts.d.ts +130 -51
  66. package/types/V2/Core/AccountsResource.d.ts +54 -0
  67. package/types/V2/Core/Persons.d.ts +5 -0
  68. package/types/V2/EventTypes.d.ts +1 -1
  69. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +8 -4
  70. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -0
  71. package/types/V2/MoneyManagement/OutboundPayments.d.ts +1 -1
  72. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
  73. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +1 -0
  74. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +22 -3
  75. package/types/WebhookEndpointsResource.d.ts +2 -1
  76. package/types/index.d.ts +12 -12
  77. package/types/lib.d.ts +11 -1
  78. package/types/test/typescriptTest.ts +3 -3
@@ -303,6 +303,11 @@ declare module 'stripe' {
303
303
  */
304
304
  cashapp_payments?: Capabilities.CashappPayments;
305
305
 
306
+ /**
307
+ * The crypto_payments capability.
308
+ */
309
+ crypto_payments?: Capabilities.CryptoPayments;
310
+
306
311
  /**
307
312
  * The eps_payments capability.
308
313
  */
@@ -699,6 +704,13 @@ declare module 'stripe' {
699
704
  requested?: boolean;
700
705
  }
701
706
 
707
+ interface CryptoPayments {
708
+ /**
709
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
710
+ */
711
+ requested?: boolean;
712
+ }
713
+
702
714
  interface EpsPayments {
703
715
  /**
704
716
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -1163,6 +1175,9 @@ declare module 'stripe' {
1163
1175
  */
1164
1176
  phone?: string;
1165
1177
 
1178
+ /**
1179
+ * When the business was incorporated or registered.
1180
+ */
1166
1181
  registration_date?: Stripe.Emptyable<Company.RegistrationDate>;
1167
1182
 
1168
1183
  /**
@@ -1427,6 +1442,11 @@ declare module 'stripe' {
1427
1442
  */
1428
1443
  company_tax_id_verification?: Documents.CompanyTaxIdVerification;
1429
1444
 
1445
+ /**
1446
+ * One or more documents that demonstrate proof of address.
1447
+ */
1448
+ proof_of_address?: Documents.ProofOfAddress;
1449
+
1430
1450
  /**
1431
1451
  * One or more documents showing the company's proof of registration with the national business registry.
1432
1452
  */
@@ -1481,6 +1501,13 @@ declare module 'stripe' {
1481
1501
  files?: Array<string>;
1482
1502
  }
1483
1503
 
1504
+ interface ProofOfAddress {
1505
+ /**
1506
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
1507
+ */
1508
+ files?: Array<string>;
1509
+ }
1510
+
1484
1511
  interface ProofOfRegistration {
1485
1512
  /**
1486
1513
  * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
@@ -2012,10 +2039,20 @@ declare module 'stripe' {
2012
2039
  */
2013
2040
  monthly_anchor?: number;
2014
2041
 
2042
+ /**
2043
+ * The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
2044
+ */
2045
+ monthly_payout_days?: Array<number>;
2046
+
2015
2047
  /**
2016
2048
  * The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
2017
2049
  */
2018
2050
  weekly_anchor?: Schedule.WeeklyAnchor;
2051
+
2052
+ /**
2053
+ * The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
2054
+ */
2055
+ weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
2019
2056
  }
2020
2057
 
2021
2058
  namespace Schedule {
@@ -2029,6 +2066,15 @@ declare module 'stripe' {
2029
2066
  | 'thursday'
2030
2067
  | 'tuesday'
2031
2068
  | 'wednesday';
2069
+
2070
+ type WeeklyPayoutDay =
2071
+ | 'friday'
2072
+ | 'monday'
2073
+ | 'saturday'
2074
+ | 'sunday'
2075
+ | 'thursday'
2076
+ | 'tuesday'
2077
+ | 'wednesday';
2032
2078
  }
2033
2079
  }
2034
2080
 
@@ -2427,6 +2473,11 @@ declare module 'stripe' {
2427
2473
  */
2428
2474
  cashapp_payments?: Capabilities.CashappPayments;
2429
2475
 
2476
+ /**
2477
+ * The crypto_payments capability.
2478
+ */
2479
+ crypto_payments?: Capabilities.CryptoPayments;
2480
+
2430
2481
  /**
2431
2482
  * The eps_payments capability.
2432
2483
  */
@@ -2823,6 +2874,13 @@ declare module 'stripe' {
2823
2874
  requested?: boolean;
2824
2875
  }
2825
2876
 
2877
+ interface CryptoPayments {
2878
+ /**
2879
+ * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
2880
+ */
2881
+ requested?: boolean;
2882
+ }
2883
+
2826
2884
  interface EpsPayments {
2827
2885
  /**
2828
2886
  * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
@@ -3497,6 +3555,11 @@ declare module 'stripe' {
3497
3555
  */
3498
3556
  company_tax_id_verification?: Documents.CompanyTaxIdVerification;
3499
3557
 
3558
+ /**
3559
+ * One or more documents that demonstrate proof of address.
3560
+ */
3561
+ proof_of_address?: Documents.ProofOfAddress;
3562
+
3500
3563
  /**
3501
3564
  * One or more documents showing the company's proof of registration with the national business registry.
3502
3565
  */
@@ -3551,6 +3614,13 @@ declare module 'stripe' {
3551
3614
  files?: Array<string>;
3552
3615
  }
3553
3616
 
3617
+ interface ProofOfAddress {
3618
+ /**
3619
+ * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
3620
+ */
3621
+ files?: Array<string>;
3622
+ }
3623
+
3554
3624
  interface ProofOfRegistration {
3555
3625
  /**
3556
3626
  * One or more document ids returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `account_requirement`.
@@ -4050,10 +4120,20 @@ declare module 'stripe' {
4050
4120
  */
4051
4121
  monthly_anchor?: number;
4052
4122
 
4123
+ /**
4124
+ * The days of the month when available funds are paid out, specified as an array of numbers between 1--31. Payouts nominally scheduled between the 29th and 31st of the month are instead sent on the last day of a shorter month. Required and applicable only if `interval` is `monthly` and `monthly_anchor` is not set.
4125
+ */
4126
+ monthly_payout_days?: Array<number>;
4127
+
4053
4128
  /**
4054
4129
  * The day of the week when available funds are paid out, specified as `monday`, `tuesday`, etc. (required and applicable only if `interval` is `weekly`.)
4055
4130
  */
4056
4131
  weekly_anchor?: Schedule.WeeklyAnchor;
4132
+
4133
+ /**
4134
+ * The days of the week when available funds are paid out, specified as an array, e.g., [`monday`, `tuesday`]. (required and applicable only if `interval` is `weekly` and `weekly_anchor` is not set.)
4135
+ */
4136
+ weekly_payout_days?: Array<Schedule.WeeklyPayoutDay>;
4057
4137
  }
4058
4138
 
4059
4139
  namespace Schedule {
@@ -4067,6 +4147,15 @@ declare module 'stripe' {
4067
4147
  | 'thursday'
4068
4148
  | 'tuesday'
4069
4149
  | 'wednesday';
4150
+
4151
+ type WeeklyPayoutDay =
4152
+ | 'friday'
4153
+ | 'monday'
4154
+ | 'saturday'
4155
+ | 'sunday'
4156
+ | 'thursday'
4157
+ | 'tuesday'
4158
+ | 'wednesday';
4070
4159
  }
4071
4160
  }
4072
4161
 
@@ -186,7 +186,7 @@ declare module 'stripe' {
186
186
 
187
187
  interface SubscriptionUpdateConfirm {
188
188
  /**
189
- * The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
189
+ * The coupon or promotion code to apply to this subscription update.
190
190
  */
191
191
  discounts: Array<SubscriptionUpdateConfirm.Discount> | null;
192
192
 
@@ -153,7 +153,7 @@ declare module 'stripe' {
153
153
 
154
154
  interface SubscriptionUpdateConfirm {
155
155
  /**
156
- * The coupon or promotion code to apply to this subscription update. Currently, only up to one may be specified.
156
+ * The coupon or promotion code to apply to this subscription update.
157
157
  */
158
158
  discounts?: Array<SubscriptionUpdateConfirm.Discount>;
159
159
 
@@ -424,6 +424,8 @@ declare module 'stripe' {
424
424
 
425
425
  cashapp?: PaymentMethodDetails.Cashapp;
426
426
 
427
+ crypto?: PaymentMethodDetails.Crypto;
428
+
427
429
  customer_balance?: PaymentMethodDetails.CustomerBalance;
428
430
 
429
431
  eps?: PaymentMethodDetails.Eps;
@@ -898,7 +900,7 @@ declare module 'stripe' {
898
900
  incremental_authorization?: Card.IncrementalAuthorization;
899
901
 
900
902
  /**
901
- * Installment details for this payment (Mexico only).
903
+ * Installment details for this payment.
902
904
  *
903
905
  * For more information, see the [installments integration guide](https://stripe.com/docs/payments/installments).
904
906
  */
@@ -1033,9 +1035,13 @@ declare module 'stripe' {
1033
1035
  interval: 'month' | null;
1034
1036
 
1035
1037
  /**
1036
- * Type of installment plan, one of `fixed_count`.
1038
+ * Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
1037
1039
  */
1038
- type: 'fixed_count';
1040
+ type: Plan.Type;
1041
+ }
1042
+
1043
+ namespace Plan {
1044
+ type Type = 'bonus' | 'fixed_count' | 'revolving';
1039
1045
  }
1040
1046
  }
1041
1047
 
@@ -1365,7 +1371,7 @@ declare module 'stripe' {
1365
1371
  overcapture_supported: boolean;
1366
1372
 
1367
1373
  /**
1368
- * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
1374
+ * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
1369
1375
  */
1370
1376
  preferred_locales: Array<string> | null;
1371
1377
 
@@ -1409,12 +1415,12 @@ declare module 'stripe' {
1409
1415
  account_type?: Receipt.AccountType;
1410
1416
 
1411
1417
  /**
1412
- * EMV tag 9F26, cryptogram generated by the integrated circuit chip.
1418
+ * The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
1413
1419
  */
1414
1420
  application_cryptogram: string | null;
1415
1421
 
1416
1422
  /**
1417
- * Mnenomic of the Application Identifier.
1423
+ * The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
1418
1424
  */
1419
1425
  application_preferred_name: string | null;
1420
1426
 
@@ -1434,17 +1440,17 @@ declare module 'stripe' {
1434
1440
  cardholder_verification_method: string | null;
1435
1441
 
1436
1442
  /**
1437
- * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
1443
+ * Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
1438
1444
  */
1439
1445
  dedicated_file_name: string | null;
1440
1446
 
1441
1447
  /**
1442
- * The outcome of a series of EMV functions performed by the card reader.
1448
+ * A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
1443
1449
  */
1444
1450
  terminal_verification_results: string | null;
1445
1451
 
1446
1452
  /**
1447
- * An indication of various EMV functions performed during the transaction.
1453
+ * An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
1448
1454
  */
1449
1455
  transaction_status_information: string | null;
1450
1456
  }
@@ -1477,6 +1483,34 @@ declare module 'stripe' {
1477
1483
  cashtag: string | null;
1478
1484
  }
1479
1485
 
1486
+ interface Crypto {
1487
+ /**
1488
+ * The wallet address of the customer.
1489
+ */
1490
+ buyer_address?: string;
1491
+
1492
+ /**
1493
+ * The blockchain network that the transaction was sent on.
1494
+ */
1495
+ network?: Crypto.Network;
1496
+
1497
+ /**
1498
+ * The token currency that the transaction was sent with.
1499
+ */
1500
+ token_currency?: Crypto.TokenCurrency;
1501
+
1502
+ /**
1503
+ * The blockchain transaction hash of the crypto payment.
1504
+ */
1505
+ transaction_hash?: string;
1506
+ }
1507
+
1508
+ namespace Crypto {
1509
+ type Network = 'base' | 'ethereum' | 'polygon';
1510
+
1511
+ type TokenCurrency = 'usdc' | 'usdg' | 'usdp';
1512
+ }
1513
+
1480
1514
  interface CustomerBalance {}
1481
1515
 
1482
1516
  interface Eps {
@@ -1636,7 +1670,7 @@ declare module 'stripe' {
1636
1670
 
1637
1671
  interface Ideal {
1638
1672
  /**
1639
- * The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
1673
+ * The customer's bank. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
1640
1674
  */
1641
1675
  bank: Ideal.Bank | null;
1642
1676
 
@@ -1672,6 +1706,7 @@ declare module 'stripe' {
1672
1706
  | 'abn_amro'
1673
1707
  | 'asn_bank'
1674
1708
  | 'bunq'
1709
+ | 'buut'
1675
1710
  | 'handelsbanken'
1676
1711
  | 'ing'
1677
1712
  | 'knab'
@@ -1691,6 +1726,7 @@ declare module 'stripe' {
1691
1726
  | 'ASNBNL21'
1692
1727
  | 'BITSNL2A'
1693
1728
  | 'BUNQNL2A'
1729
+ | 'BUUTNL2A'
1694
1730
  | 'FVLBNL22'
1695
1731
  | 'HANDNL2A'
1696
1732
  | 'INGBNL2A'
@@ -1785,7 +1821,7 @@ declare module 'stripe' {
1785
1821
  network_transaction_id: string | null;
1786
1822
 
1787
1823
  /**
1788
- * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
1824
+ * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
1789
1825
  */
1790
1826
  preferred_locales: Array<string> | null;
1791
1827
 
@@ -1815,12 +1851,12 @@ declare module 'stripe' {
1815
1851
  account_type?: Receipt.AccountType;
1816
1852
 
1817
1853
  /**
1818
- * EMV tag 9F26, cryptogram generated by the integrated circuit chip.
1854
+ * The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
1819
1855
  */
1820
1856
  application_cryptogram: string | null;
1821
1857
 
1822
1858
  /**
1823
- * Mnenomic of the Application Identifier.
1859
+ * The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
1824
1860
  */
1825
1861
  application_preferred_name: string | null;
1826
1862
 
@@ -1840,17 +1876,17 @@ declare module 'stripe' {
1840
1876
  cardholder_verification_method: string | null;
1841
1877
 
1842
1878
  /**
1843
- * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
1879
+ * Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
1844
1880
  */
1845
1881
  dedicated_file_name: string | null;
1846
1882
 
1847
1883
  /**
1848
- * The outcome of a series of EMV functions performed by the card reader.
1884
+ * A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
1849
1885
  */
1850
1886
  terminal_verification_results: string | null;
1851
1887
 
1852
1888
  /**
1853
- * An indication of various EMV functions performed during the transaction.
1889
+ * An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
1854
1890
  */
1855
1891
  transaction_status_information: string | null;
1856
1892
  }
@@ -129,7 +129,7 @@ declare module 'stripe' {
129
129
  invoice_creation?: SessionCreateParams.InvoiceCreation;
130
130
 
131
131
  /**
132
- * A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices).
132
+ * A list of items the customer is purchasing. Use this parameter to pass one-time or recurring [Prices](https://stripe.com/docs/api/prices). The parameter is required for `payment` and `subscription` mode.
133
133
  *
134
134
  * For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen.
135
135
  *
@@ -1778,6 +1778,56 @@ declare module 'stripe' {
1778
1778
  * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
1779
1779
  */
1780
1780
  setup_future_usage?: 'none';
1781
+
1782
+ /**
1783
+ * Subscription details if the Checkout Session sets up a future subscription.
1784
+ */
1785
+ subscriptions?: Stripe.Emptyable<Array<Klarna.Subscription>>;
1786
+ }
1787
+
1788
+ namespace Klarna {
1789
+ interface Subscription {
1790
+ /**
1791
+ * Unit of time between subscription charges.
1792
+ */
1793
+ interval: Subscription.Interval;
1794
+
1795
+ /**
1796
+ * The number of intervals (specified in the `interval` attribute) between subscription charges. For example, `interval=month` and `interval_count=3` charges every 3 months.
1797
+ */
1798
+ interval_count?: number;
1799
+
1800
+ /**
1801
+ * Name for subscription.
1802
+ */
1803
+ name?: string;
1804
+
1805
+ /**
1806
+ * Describes the upcoming charge for this subscription.
1807
+ */
1808
+ next_billing: Subscription.NextBilling;
1809
+
1810
+ /**
1811
+ * A non-customer-facing reference to correlate subscription charges in the Klarna app. Use a value that persists across subscription charges.
1812
+ */
1813
+ reference: string;
1814
+ }
1815
+
1816
+ namespace Subscription {
1817
+ type Interval = 'day' | 'month' | 'week' | 'year';
1818
+
1819
+ interface NextBilling {
1820
+ /**
1821
+ * The amount of the next charge for the subscription.
1822
+ */
1823
+ amount: number;
1824
+
1825
+ /**
1826
+ * The date of the next charge for the subscription in YYYY-MM-DD format.
1827
+ */
1828
+ date: string;
1829
+ }
1830
+ }
1781
1831
  }
1782
1832
 
1783
1833
  interface Konbini {
@@ -2289,6 +2339,7 @@ declare module 'stripe' {
2289
2339
  | 'boleto'
2290
2340
  | 'card'
2291
2341
  | 'cashapp'
2342
+ | 'crypto'
2292
2343
  | 'customer_balance'
2293
2344
  | 'eps'
2294
2345
  | 'fpx'
@@ -2886,15 +2937,12 @@ declare module 'stripe' {
2886
2937
  transfer_data?: SubscriptionData.TransferData;
2887
2938
 
2888
2939
  /**
2889
- * Unix timestamp representing the end of the trial period the customer
2890
- * will get before being charged for the first time. Has to be at least
2891
- * 48 hours in the future.
2940
+ * Unix timestamp representing the end of the trial period the customer will get before being charged for the first time. Has to be at least 48 hours in the future.
2892
2941
  */
2893
2942
  trial_end?: number;
2894
2943
 
2895
2944
  /**
2896
- * Integer representing the number of trial period days before the
2897
- * customer is charged for the first time. Has to be at least 1.
2945
+ * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1.
2898
2946
  */
2899
2947
  trial_period_days?: number;
2900
2948
 
@@ -2905,7 +2953,13 @@ declare module 'stripe' {
2905
2953
  }
2906
2954
 
2907
2955
  namespace SubscriptionData {
2908
- type BillingMode = 'classic' | 'flexible';
2956
+ interface BillingMode {
2957
+ type: BillingMode.Type;
2958
+ }
2959
+
2960
+ namespace BillingMode {
2961
+ type Type = 'classic' | 'flexible';
2962
+ }
2909
2963
 
2910
2964
  interface InvoiceSettings {
2911
2965
  /**
@@ -160,9 +160,13 @@ declare module 'stripe' {
160
160
  interval: 'month' | null;
161
161
 
162
162
  /**
163
- * Type of installment plan, one of `fixed_count`.
163
+ * Type of installment plan, one of `fixed_count`, `bonus`, or `revolving`.
164
164
  */
165
- type: 'fixed_count';
165
+ type: Plan.Type;
166
+ }
167
+
168
+ namespace Plan {
169
+ type Type = 'bonus' | 'fixed_count' | 'revolving';
166
170
  }
167
171
  }
168
172
  }
@@ -206,6 +210,8 @@ declare module 'stripe' {
206
210
 
207
211
  cashapp?: PaymentMethodPreview.Cashapp;
208
212
 
213
+ crypto?: PaymentMethodPreview.Crypto;
214
+
209
215
  /**
210
216
  * The ID of the Customer to which this PaymentMethod is saved. This will not be set when the PaymentMethod has not been saved to a Customer.
211
217
  */
@@ -666,7 +672,7 @@ declare module 'stripe' {
666
672
  overcapture_supported: boolean;
667
673
 
668
674
  /**
669
- * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
675
+ * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
670
676
  */
671
677
  preferred_locales: Array<string> | null;
672
678
 
@@ -710,12 +716,12 @@ declare module 'stripe' {
710
716
  account_type?: Receipt.AccountType;
711
717
 
712
718
  /**
713
- * EMV tag 9F26, cryptogram generated by the integrated circuit chip.
719
+ * The Application Cryptogram, a unique value generated by the card to authenticate the transaction with issuers.
714
720
  */
715
721
  application_cryptogram: string | null;
716
722
 
717
723
  /**
718
- * Mnenomic of the Application Identifier.
724
+ * The Application Identifier (AID) on the card used to determine which networks are eligible to process the transaction. Referenced from EMV tag 9F12, data encoded on the card's chip.
719
725
  */
720
726
  application_preferred_name: string | null;
721
727
 
@@ -735,17 +741,17 @@ declare module 'stripe' {
735
741
  cardholder_verification_method: string | null;
736
742
 
737
743
  /**
738
- * EMV tag 84. Similar to the application identifier stored on the integrated circuit chip.
744
+ * Similar to the application_preferred_name, identifying the applications (AIDs) available on the card. Referenced from EMV tag 84.
739
745
  */
740
746
  dedicated_file_name: string | null;
741
747
 
742
748
  /**
743
- * The outcome of a series of EMV functions performed by the card reader.
749
+ * A 5-byte string that records the checks and validations that occur between the card and the terminal. These checks determine how the terminal processes the transaction and what risk tolerance is acceptable. Referenced from EMV Tag 95.
744
750
  */
745
751
  terminal_verification_results: string | null;
746
752
 
747
753
  /**
748
- * An indication of various EMV functions performed during the transaction.
754
+ * An indication of which steps were completed during the card read process. Referenced from EMV Tag 9B.
749
755
  */
750
756
  transaction_status_information: string | null;
751
757
  }
@@ -963,7 +969,7 @@ declare module 'stripe' {
963
969
  offline: CardPresent.Offline | null;
964
970
 
965
971
  /**
966
- * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
972
+ * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
967
973
  */
968
974
  preferred_locales: Array<string> | null;
969
975
 
@@ -1031,6 +1037,8 @@ declare module 'stripe' {
1031
1037
  cashtag: string | null;
1032
1038
  }
1033
1039
 
1040
+ interface Crypto {}
1041
+
1034
1042
  interface CustomerBalance {}
1035
1043
 
1036
1044
  interface Eps {
@@ -1134,7 +1142,7 @@ declare module 'stripe' {
1134
1142
 
1135
1143
  interface Ideal {
1136
1144
  /**
1137
- * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
1145
+ * The customer's bank, if provided. Can be one of `abn_amro`, `asn_bank`, `bunq`, `buut`, `handelsbanken`, `ing`, `knab`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`.
1138
1146
  */
1139
1147
  bank: Ideal.Bank | null;
1140
1148
 
@@ -1149,6 +1157,7 @@ declare module 'stripe' {
1149
1157
  | 'abn_amro'
1150
1158
  | 'asn_bank'
1151
1159
  | 'bunq'
1160
+ | 'buut'
1152
1161
  | 'handelsbanken'
1153
1162
  | 'ing'
1154
1163
  | 'knab'
@@ -1168,6 +1177,7 @@ declare module 'stripe' {
1168
1177
  | 'ASNBNL21'
1169
1178
  | 'BITSNL2A'
1170
1179
  | 'BUNQNL2A'
1180
+ | 'BUUTNL2A'
1171
1181
  | 'FVLBNL22'
1172
1182
  | 'HANDNL2A'
1173
1183
  | 'INGBNL2A'
@@ -1247,7 +1257,7 @@ declare module 'stripe' {
1247
1257
  networks: InteracPresent.Networks | null;
1248
1258
 
1249
1259
  /**
1250
- * EMV tag 5F2D. Preferred languages specified by the integrated circuit chip.
1260
+ * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip.
1251
1261
  */
1252
1262
  preferred_locales: Array<string> | null;
1253
1263
 
@@ -1630,6 +1640,7 @@ declare module 'stripe' {
1630
1640
  | 'card'
1631
1641
  | 'card_present'
1632
1642
  | 'cashapp'
1643
+ | 'crypto'
1633
1644
  | 'customer_balance'
1634
1645
  | 'eps'
1635
1646
  | 'fpx'