stripe 17.7.0 → 18.0.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 (99) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/InvoicePayments.js +17 -0
  6. package/cjs/resources/Invoices.js +0 -9
  7. package/cjs/resources/SubscriptionItems.js +0 -9
  8. package/cjs/resources.js +4 -2
  9. package/cjs/stripe.core.js +3 -14
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/InvoicePayments.js +14 -0
  12. package/esm/resources/Invoices.js +0 -9
  13. package/esm/resources/SubscriptionItems.js +0 -9
  14. package/esm/resources.js +1 -0
  15. package/esm/stripe.core.js +3 -14
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +47 -6
  18. package/types/AccountsResource.d.ts +110 -3
  19. package/types/ApplicationFees.d.ts +1 -1
  20. package/types/BalanceTransactions.d.ts +3 -1
  21. package/types/BalanceTransactionsResource.d.ts +1 -1
  22. package/types/BankAccounts.d.ts +9 -1
  23. package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
  24. package/types/Billing/CreditGrants.d.ts +2 -2
  25. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  26. package/types/Billing/Meters.d.ts +1 -1
  27. package/types/Billing/MetersResource.d.ts +2 -2
  28. package/types/Capabilities.d.ts +8 -0
  29. package/types/Cards.d.ts +1 -4
  30. package/types/Charges.d.ts +56 -5
  31. package/types/ChargesResource.d.ts +1 -1
  32. package/types/Checkout/Sessions.d.ts +77 -53
  33. package/types/Checkout/SessionsResource.d.ts +232 -15
  34. package/types/ConfirmationTokens.d.ts +50 -0
  35. package/types/CreditNoteLineItems.d.ts +24 -22
  36. package/types/CreditNotes.d.ts +39 -15
  37. package/types/CreditNotesResource.d.ts +48 -12
  38. package/types/CustomerBalanceTransactions.d.ts +8 -1
  39. package/types/Customers.d.ts +3 -3
  40. package/types/CustomersResource.d.ts +3 -14
  41. package/types/EventTypes.d.ts +138 -2
  42. package/types/Events.d.ts +9 -1
  43. package/types/Identity/VerificationSessions.d.ts +1 -1
  44. package/types/Identity/VerificationSessionsResource.d.ts +1 -1
  45. package/types/InvoiceItems.d.ts +60 -26
  46. package/types/InvoiceItemsResource.d.ts +26 -22
  47. package/types/InvoiceLineItems.d.ts +160 -70
  48. package/types/InvoicePayments.d.ts +99 -0
  49. package/types/InvoicePaymentsResource.d.ts +74 -0
  50. package/types/Invoices.d.ts +97 -83
  51. package/types/InvoicesResource.d.ts +239 -2846
  52. package/types/Issuing/Authorizations.d.ts +2 -1
  53. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  54. package/types/Mandates.d.ts +8 -0
  55. package/types/PaymentIntents.d.ts +59 -8
  56. package/types/PaymentIntentsResource.d.ts +293 -8
  57. package/types/PaymentLinks.d.ts +49 -0
  58. package/types/PaymentLinksResource.d.ts +77 -0
  59. package/types/PaymentMethodConfigurations.d.ts +108 -0
  60. package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
  61. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  62. package/types/PaymentMethods.d.ts +50 -0
  63. package/types/PaymentMethodsResource.d.ts +54 -16
  64. package/types/Persons.d.ts +17 -9
  65. package/types/Plans.d.ts +0 -7
  66. package/types/PlansResource.d.ts +0 -7
  67. package/types/Prices.d.ts +0 -11
  68. package/types/PricesResource.d.ts +2 -13
  69. package/types/QuotesResource.d.ts +2 -2
  70. package/types/Refunds.d.ts +18 -0
  71. package/types/Reviews.d.ts +3 -2
  72. package/types/SetupAttempts.d.ts +15 -0
  73. package/types/SetupIntents.d.ts +2 -0
  74. package/types/SetupIntentsResource.d.ts +155 -0
  75. package/types/SubscriptionItems.d.ts +9 -13
  76. package/types/SubscriptionItemsResource.d.ts +2 -94
  77. package/types/SubscriptionSchedules.d.ts +0 -51
  78. package/types/SubscriptionSchedulesResource.d.ts +4 -110
  79. package/types/Subscriptions.d.ts +3 -33
  80. package/types/SubscriptionsResource.d.ts +8 -86
  81. package/types/Tax/Calculations.d.ts +1 -1
  82. package/types/Tax/RegistrationsResource.d.ts +1 -1
  83. package/types/TaxRates.d.ts +1 -1
  84. package/types/Terminal/Configurations.d.ts +86 -3
  85. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +51 -0
  87. package/types/TokensResource.d.ts +6 -1
  88. package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
  89. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  90. package/types/V2/Core/EventsResource.d.ts +0 -5
  91. package/types/V2/EventDestinations.d.ts +1 -1
  92. package/types/V2/Events.d.ts +1 -1
  93. package/types/WebhookEndpointsResource.d.ts +21 -3
  94. package/types/index.d.ts +3 -3
  95. package/types/lib.d.ts +1 -1
  96. package/types/test/typescriptTest.ts +3 -6
  97. package/types/Deprecations.d.ts +0 -215
  98. package/types/UsageRecordSummaries.d.ts +0 -56
  99. package/types/UsageRecords.d.ts +0 -45
@@ -48,12 +48,14 @@ declare module 'stripe' {
48
48
  tipping?: Configuration.Tipping;
49
49
 
50
50
  verifone_p400?: Configuration.VerifoneP400;
51
+
52
+ wifi?: Configuration.Wifi;
51
53
  }
52
54
 
53
55
  namespace Configuration {
54
56
  interface BbposWiseposE {
55
57
  /**
56
- * A File ID representing an image you would like displayed on the reader.
58
+ * A File ID representing an image to display on the reader
57
59
  */
58
60
  splashscreen?: string | Stripe.File;
59
61
  }
@@ -79,7 +81,7 @@ declare module 'stripe' {
79
81
 
80
82
  interface StripeS700 {
81
83
  /**
82
- * A File ID representing an image you would like displayed on the reader.
84
+ * A File ID representing an image to display on the reader
83
85
  */
84
86
  splashscreen?: string | Stripe.File;
85
87
  }
@@ -394,10 +396,91 @@ declare module 'stripe' {
394
396
 
395
397
  interface VerifoneP400 {
396
398
  /**
397
- * A File ID representing an image you would like displayed on the reader.
399
+ * A File ID representing an image to display on the reader
398
400
  */
399
401
  splashscreen?: string | Stripe.File;
400
402
  }
403
+
404
+ interface Wifi {
405
+ enterprise_eap_peap?: Wifi.EnterpriseEapPeap;
406
+
407
+ enterprise_eap_tls?: Wifi.EnterpriseEapTls;
408
+
409
+ personal_psk?: Wifi.PersonalPsk;
410
+
411
+ /**
412
+ * Security type of the WiFi network. The hash with the corresponding name contains the credentials for this security type.
413
+ */
414
+ type: Wifi.Type;
415
+ }
416
+
417
+ namespace Wifi {
418
+ interface EnterpriseEapPeap {
419
+ /**
420
+ * A File ID representing a PEM file containing the server certificate
421
+ */
422
+ ca_certificate_file?: string;
423
+
424
+ /**
425
+ * Password for connecting to the WiFi network
426
+ */
427
+ password: string;
428
+
429
+ /**
430
+ * Name of the WiFi network
431
+ */
432
+ ssid: string;
433
+
434
+ /**
435
+ * Username for connecting to the WiFi network
436
+ */
437
+ username: string;
438
+ }
439
+
440
+ interface EnterpriseEapTls {
441
+ /**
442
+ * A File ID representing a PEM file containing the server certificate
443
+ */
444
+ ca_certificate_file?: string;
445
+
446
+ /**
447
+ * A File ID representing a PEM file containing the client certificate
448
+ */
449
+ client_certificate_file: string;
450
+
451
+ /**
452
+ * A File ID representing a PEM file containing the client RSA private key
453
+ */
454
+ private_key_file: string;
455
+
456
+ /**
457
+ * Password for the private key file
458
+ */
459
+ private_key_file_password?: string;
460
+
461
+ /**
462
+ * Name of the WiFi network
463
+ */
464
+ ssid: string;
465
+ }
466
+
467
+ interface PersonalPsk {
468
+ /**
469
+ * Password for connecting to the WiFi network
470
+ */
471
+ password: string;
472
+
473
+ /**
474
+ * Name of the WiFi network
475
+ */
476
+ ssid: string;
477
+ }
478
+
479
+ type Type =
480
+ | 'enterprise_eap_peap'
481
+ | 'enterprise_eap_tls'
482
+ | 'personal_psk';
483
+ }
401
484
  }
402
485
 
403
486
  /**
@@ -43,12 +43,17 @@ declare module 'stripe' {
43
43
  * An object containing device type specific settings for Verifone P400 readers
44
44
  */
45
45
  verifone_p400?: ConfigurationCreateParams.VerifoneP400;
46
+
47
+ /**
48
+ * Configurations for connecting to a WiFi network.
49
+ */
50
+ wifi?: Stripe.Emptyable<ConfigurationCreateParams.Wifi>;
46
51
  }
47
52
 
48
53
  namespace ConfigurationCreateParams {
49
54
  interface BbposWiseposE {
50
55
  /**
51
- * A File ID representing an image you would like displayed on the reader.
56
+ * A File ID representing an image to display on the reader
52
57
  */
53
58
  splashscreen?: Stripe.Emptyable<string>;
54
59
  }
@@ -441,6 +446,96 @@ declare module 'stripe' {
441
446
  */
442
447
  splashscreen?: Stripe.Emptyable<string>;
443
448
  }
449
+
450
+ interface Wifi {
451
+ /**
452
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
453
+ */
454
+ enterprise_eap_peap?: Wifi.EnterpriseEapPeap;
455
+
456
+ /**
457
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
458
+ */
459
+ enterprise_eap_tls?: Wifi.EnterpriseEapTls;
460
+
461
+ /**
462
+ * Credentials for a WPA-Personal WiFi network.
463
+ */
464
+ personal_psk?: Wifi.PersonalPsk;
465
+
466
+ /**
467
+ * Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
468
+ */
469
+ type: Wifi.Type;
470
+ }
471
+
472
+ namespace Wifi {
473
+ interface EnterpriseEapPeap {
474
+ /**
475
+ * A File ID representing a PEM file containing the server certificate
476
+ */
477
+ ca_certificate_file?: string;
478
+
479
+ /**
480
+ * Password for connecting to the WiFi network
481
+ */
482
+ password: string;
483
+
484
+ /**
485
+ * Name of the WiFi network
486
+ */
487
+ ssid: string;
488
+
489
+ /**
490
+ * Username for connecting to the WiFi network
491
+ */
492
+ username: string;
493
+ }
494
+
495
+ interface EnterpriseEapTls {
496
+ /**
497
+ * A File ID representing a PEM file containing the server certificate
498
+ */
499
+ ca_certificate_file?: string;
500
+
501
+ /**
502
+ * A File ID representing a PEM file containing the client certificate
503
+ */
504
+ client_certificate_file: string;
505
+
506
+ /**
507
+ * A File ID representing a PEM file containing the client RSA private key
508
+ */
509
+ private_key_file: string;
510
+
511
+ /**
512
+ * Password for the private key file
513
+ */
514
+ private_key_file_password?: string;
515
+
516
+ /**
517
+ * Name of the WiFi network
518
+ */
519
+ ssid: string;
520
+ }
521
+
522
+ interface PersonalPsk {
523
+ /**
524
+ * Password for connecting to the WiFi network
525
+ */
526
+ password: string;
527
+
528
+ /**
529
+ * Name of the WiFi network
530
+ */
531
+ ssid: string;
532
+ }
533
+
534
+ type Type =
535
+ | 'enterprise_eap_peap'
536
+ | 'enterprise_eap_tls'
537
+ | 'personal_psk';
538
+ }
444
539
  }
445
540
 
446
541
  interface ConfigurationRetrieveParams {
@@ -496,12 +591,17 @@ declare module 'stripe' {
496
591
  verifone_p400?: Stripe.Emptyable<
497
592
  ConfigurationUpdateParams.VerifoneP400
498
593
  >;
594
+
595
+ /**
596
+ * Configurations for connecting to a WiFi network.
597
+ */
598
+ wifi?: Stripe.Emptyable<ConfigurationUpdateParams.Wifi>;
499
599
  }
500
600
 
501
601
  namespace ConfigurationUpdateParams {
502
602
  interface BbposWiseposE {
503
603
  /**
504
- * A File ID representing an image you would like displayed on the reader.
604
+ * A File ID representing an image to display on the reader
505
605
  */
506
606
  splashscreen?: Stripe.Emptyable<string>;
507
607
  }
@@ -894,6 +994,96 @@ declare module 'stripe' {
894
994
  */
895
995
  splashscreen?: Stripe.Emptyable<string>;
896
996
  }
997
+
998
+ interface Wifi {
999
+ /**
1000
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
1001
+ */
1002
+ enterprise_eap_peap?: Wifi.EnterpriseEapPeap;
1003
+
1004
+ /**
1005
+ * Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
1006
+ */
1007
+ enterprise_eap_tls?: Wifi.EnterpriseEapTls;
1008
+
1009
+ /**
1010
+ * Credentials for a WPA-Personal WiFi network.
1011
+ */
1012
+ personal_psk?: Wifi.PersonalPsk;
1013
+
1014
+ /**
1015
+ * Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
1016
+ */
1017
+ type: Wifi.Type;
1018
+ }
1019
+
1020
+ namespace Wifi {
1021
+ interface EnterpriseEapPeap {
1022
+ /**
1023
+ * A File ID representing a PEM file containing the server certificate
1024
+ */
1025
+ ca_certificate_file?: string;
1026
+
1027
+ /**
1028
+ * Password for connecting to the WiFi network
1029
+ */
1030
+ password: string;
1031
+
1032
+ /**
1033
+ * Name of the WiFi network
1034
+ */
1035
+ ssid: string;
1036
+
1037
+ /**
1038
+ * Username for connecting to the WiFi network
1039
+ */
1040
+ username: string;
1041
+ }
1042
+
1043
+ interface EnterpriseEapTls {
1044
+ /**
1045
+ * A File ID representing a PEM file containing the server certificate
1046
+ */
1047
+ ca_certificate_file?: string;
1048
+
1049
+ /**
1050
+ * A File ID representing a PEM file containing the client certificate
1051
+ */
1052
+ client_certificate_file: string;
1053
+
1054
+ /**
1055
+ * A File ID representing a PEM file containing the client RSA private key
1056
+ */
1057
+ private_key_file: string;
1058
+
1059
+ /**
1060
+ * Password for the private key file
1061
+ */
1062
+ private_key_file_password?: string;
1063
+
1064
+ /**
1065
+ * Name of the WiFi network
1066
+ */
1067
+ ssid: string;
1068
+ }
1069
+
1070
+ interface PersonalPsk {
1071
+ /**
1072
+ * Password for connecting to the WiFi network
1073
+ */
1074
+ password: string;
1075
+
1076
+ /**
1077
+ * Name of the WiFi network
1078
+ */
1079
+ ssid: string;
1080
+ }
1081
+
1082
+ type Type =
1083
+ | 'enterprise_eap_peap'
1084
+ | 'enterprise_eap_tls'
1085
+ | 'personal_psk';
1086
+ }
897
1087
  }
898
1088
 
899
1089
  interface ConfigurationListParams extends PaginationParams {
@@ -89,6 +89,11 @@ declare module 'stripe' {
89
89
  */
90
90
  bancontact?: PaymentMethodData.Bancontact;
91
91
 
92
+ /**
93
+ * If this is a `billie` PaymentMethod, this hash contains details about the billie payment method.
94
+ */
95
+ billie?: PaymentMethodData.Billie;
96
+
92
97
  /**
93
98
  * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods.
94
99
  */
@@ -189,6 +194,11 @@ declare module 'stripe' {
189
194
  */
190
195
  naver_pay?: PaymentMethodData.NaverPay;
191
196
 
197
+ /**
198
+ * If this is an nz_bank_account PaymentMethod, this hash contains details about the nz_bank_account payment method.
199
+ */
200
+ nz_bank_account?: PaymentMethodData.NzBankAccount;
201
+
192
202
  /**
193
203
  * If this is an `oxxo` PaymentMethod, this hash contains details about the OXXO payment method.
194
204
  */
@@ -244,6 +254,11 @@ declare module 'stripe' {
244
254
  */
245
255
  samsung_pay?: PaymentMethodData.SamsungPay;
246
256
 
257
+ /**
258
+ * If this is a `satispay` PaymentMethod, this hash contains details about the satispay payment method.
259
+ */
260
+ satispay?: PaymentMethodData.Satispay;
261
+
247
262
  /**
248
263
  * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account.
249
264
  */
@@ -341,6 +356,8 @@ declare module 'stripe' {
341
356
 
342
357
  interface Bancontact {}
343
358
 
359
+ interface Billie {}
360
+
344
361
  interface BillingDetails {
345
362
  /**
346
363
  * Billing address.
@@ -537,6 +554,35 @@ declare module 'stripe' {
537
554
  type Funding = 'card' | 'points';
538
555
  }
539
556
 
557
+ interface NzBankAccount {
558
+ /**
559
+ * The name on the bank account. Only required if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details.
560
+ */
561
+ account_holder_name?: string;
562
+
563
+ /**
564
+ * The account number for the bank account.
565
+ */
566
+ account_number: string;
567
+
568
+ /**
569
+ * The numeric code for the bank account's bank.
570
+ */
571
+ bank_code: string;
572
+
573
+ /**
574
+ * The numeric code for the bank account's bank branch.
575
+ */
576
+ branch_code: string;
577
+
578
+ reference?: string;
579
+
580
+ /**
581
+ * The suffix of the bank account number.
582
+ */
583
+ suffix: string;
584
+ }
585
+
540
586
  interface Oxxo {}
541
587
 
542
588
  interface P24 {
@@ -599,6 +645,8 @@ declare module 'stripe' {
599
645
 
600
646
  interface SamsungPay {}
601
647
 
648
+ interface Satispay {}
649
+
602
650
  interface SepaDebit {
603
651
  /**
604
652
  * IBAN of the bank account.
@@ -631,6 +679,7 @@ declare module 'stripe' {
631
679
  | 'au_becs_debit'
632
680
  | 'bacs_debit'
633
681
  | 'bancontact'
682
+ | 'billie'
634
683
  | 'blik'
635
684
  | 'boleto'
636
685
  | 'cashapp'
@@ -648,6 +697,7 @@ declare module 'stripe' {
648
697
  | 'mobilepay'
649
698
  | 'multibanco'
650
699
  | 'naver_pay'
700
+ | 'nz_bank_account'
651
701
  | 'oxxo'
652
702
  | 'p24'
653
703
  | 'pay_by_bank'
@@ -658,6 +708,7 @@ declare module 'stripe' {
658
708
  | 'promptpay'
659
709
  | 'revolut_pay'
660
710
  | 'samsung_pay'
711
+ | 'satispay'
661
712
  | 'sepa_debit'
662
713
  | 'sofort'
663
714
  | 'swish'
@@ -145,6 +145,9 @@ declare module 'stripe' {
145
145
  */
146
146
  ownership_declaration_shown_and_signed?: boolean;
147
147
 
148
+ /**
149
+ * This value is used to determine if a business is exempt from providing ultimate beneficial owners. See [this support article](https://support.stripe.com/questions/exemption-from-providing-ownership-details) and [changelog](https://docs.stripe.com/changelog/acacia/2025-01-27/ownership-exemption-reason-accounts-api) for more details.
150
+ */
148
151
  ownership_exemption_reason?: Stripe.Emptyable<
149
152
  Company.OwnershipExemptionReason
150
153
  >;
@@ -719,7 +722,7 @@ declare module 'stripe' {
719
722
  /**
720
723
  * Indicates if the person or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction.
721
724
  */
722
- political_exposure?: string;
725
+ political_exposure?: Person.PoliticalExposure;
723
726
 
724
727
  /**
725
728
  * The person's registered address.
@@ -826,6 +829,8 @@ declare module 'stripe' {
826
829
  }
827
830
  }
828
831
 
832
+ type PoliticalExposure = 'existing' | 'none';
833
+
829
834
  interface Relationship {
830
835
  /**
831
836
  * Whether the person is the authorizer of the account's representative.
@@ -640,7 +640,7 @@ declare module 'stripe' {
640
640
 
641
641
  class FinancialAccountsResource {
642
642
  /**
643
- * Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.
643
+ * Creates a new FinancialAccount. Each connected account can have up to three FinancialAccounts by default.
644
644
  */
645
645
  create(
646
646
  params: FinancialAccountCreateParams,
@@ -156,11 +156,6 @@ declare module 'stripe' {
156
156
  * The page size.
157
157
  */
158
158
  limit?: number;
159
-
160
- /**
161
- * The requested page.
162
- */
163
- page?: string;
164
159
  }
165
160
  }
166
161
 
@@ -20,11 +20,6 @@ declare module 'stripe' {
20
20
  * The page size.
21
21
  */
22
22
  limit?: number;
23
-
24
- /**
25
- * The requested page.
26
- */
27
- page?: string;
28
23
  }
29
24
  }
30
25
 
@@ -4,7 +4,7 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace V2 {
6
6
  /**
7
- * The EventDestination object.
7
+ * Set up an event destination to receive events from Stripe across multiple destination types, including [webhook endpoints](https://docs.stripe.com/webhooks) and [Amazon EventBridge](https://docs.stripe.com/event-destinations/eventbridge). Event destinations support receiving [thin events](https://docs.stripe.com/api/v2/events) and [snapshot events](https://docs.stripe.com/api/events).
8
8
  */
9
9
  interface EventDestination {
10
10
  /**
@@ -32,7 +32,7 @@ declare module 'stripe' {
32
32
  }
33
33
 
34
34
  /**
35
- * The Event object.
35
+ * Events are generated to keep you informed of activity in your business account. APIs in the /v2 namespace generate [thin events](https://docs.stripe.com/event-destinations#benefits-of-thin-events) which have small, unversioned payloads that include a reference to the ID of the object that has changed. The Events v2 API returns these new thin events. [Retrieve the event object](https://docs.stripe.com/event-destinations#fetch-data) for additional data about the event. Use the related object ID in the event payload to [fetch the API resource](https://docs.stripe.com/event-destinations#retrieve-the-object-associated-with-thin-events) of the object associated with the event. Comparatively, events generated by most API v1 include a versioned snapshot of an API object in their payload.
36
36
  */
37
37
  interface EventBase {
38
38
  /**
@@ -148,7 +148,9 @@ declare module 'stripe' {
148
148
  | '2024-11-20.acacia'
149
149
  | '2024-12-18.acacia'
150
150
  | '2025-01-27.acacia'
151
- | '2025-02-24.acacia';
151
+ | '2025-02-24.acacia'
152
+ | '2025-03-01.dashboard'
153
+ | '2025-03-31.basil';
152
154
 
153
155
  type EnabledEvent =
154
156
  | '*'
@@ -241,6 +243,7 @@ declare module 'stripe' {
241
243
  | 'invoice.finalized'
242
244
  | 'invoice.marked_uncollectible'
243
245
  | 'invoice.overdue'
246
+ | 'invoice.overpaid'
244
247
  | 'invoice.paid'
245
248
  | 'invoice.payment_action_required'
246
249
  | 'invoice.payment_failed'
@@ -390,7 +393,14 @@ declare module 'stripe' {
390
393
  | 'treasury.received_credit.created'
391
394
  | 'treasury.received_credit.failed'
392
395
  | 'treasury.received_credit.succeeded'
393
- | 'treasury.received_debit.created';
396
+ | 'treasury.received_debit.created'
397
+ | 'billing.credit_balance_transaction.created'
398
+ | 'billing.credit_grant.created'
399
+ | 'billing.credit_grant.updated'
400
+ | 'billing.meter.created'
401
+ | 'billing.meter.deactivated'
402
+ | 'billing.meter.reactivated'
403
+ | 'billing.meter.updated';
394
404
  }
395
405
 
396
406
  interface WebhookEndpointRetrieveParams {
@@ -524,6 +534,7 @@ declare module 'stripe' {
524
534
  | 'invoice.finalized'
525
535
  | 'invoice.marked_uncollectible'
526
536
  | 'invoice.overdue'
537
+ | 'invoice.overpaid'
527
538
  | 'invoice.paid'
528
539
  | 'invoice.payment_action_required'
529
540
  | 'invoice.payment_failed'
@@ -673,7 +684,14 @@ declare module 'stripe' {
673
684
  | 'treasury.received_credit.created'
674
685
  | 'treasury.received_credit.failed'
675
686
  | 'treasury.received_credit.succeeded'
676
- | 'treasury.received_debit.created';
687
+ | 'treasury.received_debit.created'
688
+ | 'billing.credit_balance_transaction.created'
689
+ | 'billing.credit_grant.created'
690
+ | 'billing.credit_grant.updated'
691
+ | 'billing.meter.created'
692
+ | 'billing.meter.deactivated'
693
+ | 'billing.meter.reactivated'
694
+ | 'billing.meter.updated';
677
695
  }
678
696
 
679
697
  interface WebhookEndpointListParams extends PaginationParams {
package/types/index.d.ts CHANGED
@@ -7,7 +7,6 @@
7
7
  ///<reference path='./Webhooks.d.ts' />
8
8
  ///<reference path='./EventTypes.d.ts' />
9
9
  ///<reference path='./UpcomingInvoices.d.ts' />
10
- ///<reference path='./Deprecations.d.ts' />
11
10
  ///<reference path='./ThinEvent.d.ts' />
12
11
  ///<reference path='./crypto/crypto.d.ts' />
13
12
  // Imports: The beginning of the section generated from our OpenAPI spec
@@ -54,6 +53,7 @@
54
53
  ///<reference path='./Identity/VerificationReportsResource.d.ts' />
55
54
  ///<reference path='./Identity/VerificationSessionsResource.d.ts' />
56
55
  ///<reference path='./InvoiceItemsResource.d.ts' />
56
+ ///<reference path='./InvoicePaymentsResource.d.ts' />
57
57
  ///<reference path='./InvoiceRenderingTemplatesResource.d.ts' />
58
58
  ///<reference path='./InvoicesResource.d.ts' />
59
59
  ///<reference path='./Issuing/AuthorizationsResource.d.ts' />
@@ -200,6 +200,7 @@
200
200
  ///<reference path='./Identity/VerificationSessions.d.ts' />
201
201
  ///<reference path='./InvoiceItems.d.ts' />
202
202
  ///<reference path='./InvoiceLineItems.d.ts' />
203
+ ///<reference path='./InvoicePayments.d.ts' />
203
204
  ///<reference path='./InvoiceRenderingTemplates.d.ts' />
204
205
  ///<reference path='./Invoices.d.ts' />
205
206
  ///<reference path='./Issuing/Authorizations.d.ts' />
@@ -274,8 +275,6 @@
274
275
  ///<reference path='./Treasury/ReceivedDebits.d.ts' />
275
276
  ///<reference path='./Treasury/TransactionEntries.d.ts' />
276
277
  ///<reference path='./Treasury/Transactions.d.ts' />
277
- ///<reference path='./UsageRecordSummaries.d.ts' />
278
- ///<reference path='./UsageRecords.d.ts' />
279
278
  ///<reference path='./V2/Billing/MeterEventAdjustments.d.ts' />
280
279
  ///<reference path='./V2/Billing/MeterEventSessions.d.ts' />
281
280
  ///<reference path='./V2/Billing/MeterEvents.d.ts' />
@@ -323,6 +322,7 @@ declare module 'stripe' {
323
322
  fileLinks: Stripe.FileLinksResource;
324
323
  files: Stripe.FilesResource;
325
324
  invoiceItems: Stripe.InvoiceItemsResource;
325
+ invoicePayments: Stripe.InvoicePaymentsResource;
326
326
  invoiceRenderingTemplates: Stripe.InvoiceRenderingTemplatesResource;
327
327
  invoices: Stripe.InvoicesResource;
328
328
  mandates: Stripe.MandatesResource;
package/types/lib.d.ts CHANGED
@@ -27,7 +27,7 @@ declare module 'stripe' {
27
27
  }): (...args: any[]) => Response<ResponseObject>; //eslint-disable-line @typescript-eslint/no-explicit-any
28
28
  static MAX_BUFFERED_REQUEST_METRICS: number;
29
29
  }
30
- export type LatestApiVersion = '2025-02-24.acacia';
30
+ export type LatestApiVersion = '2025-03-31.basil';
31
31
  export type HttpAgent = Agent;
32
32
  export type HttpProtocol = 'http' | 'https';
33
33
 
@@ -9,7 +9,7 @@
9
9
  import Stripe from 'stripe';
10
10
 
11
11
  let stripe = new Stripe('sk_test_123', {
12
- apiVersion: '2025-02-24.acacia',
12
+ apiVersion: '2025-03-31.basil',
13
13
  });
14
14
 
15
15
  stripe = new Stripe('sk_test_123');
@@ -26,7 +26,7 @@ stripe = new Stripe('sk_test_123', {
26
26
 
27
27
  // Check config object.
28
28
  stripe = new Stripe('sk_test_123', {
29
- apiVersion: '2025-02-24.acacia',
29
+ apiVersion: '2025-03-31.basil',
30
30
  typescript: true,
31
31
  maxNetworkRetries: 1,
32
32
  timeout: 1000,
@@ -44,7 +44,7 @@ stripe = new Stripe('sk_test_123', {
44
44
  description: 'test',
45
45
  };
46
46
  const opts: Stripe.RequestOptions = {
47
- apiVersion: '2025-02-24.acacia',
47
+ apiVersion: '2025-03-31.basil',
48
48
  };
49
49
  const customer: Stripe.Customer = await stripe.customers.create(params, opts);
50
50
 
@@ -303,6 +303,3 @@ stripe.files.create({
303
303
  },
304
304
  file_link_data: {create: true},
305
305
  });
306
-
307
- // Test deprecated parameters still work
308
- const param: Stripe.UsageRecordSummaryListParams = {expand: []};