Skip to content

Commit bf7a776

Browse files
Export API_Version string in Stripe class (#2365)
1 parent 6b75504 commit bf7a776

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/stripe.core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export function createStripe(
6060
requestSender: RequestSenderFactory = defaultRequestSenderFactory
6161
): typeof Stripe {
6262
Stripe.PACKAGE_VERSION = '18.3.0';
63+
Stripe.API_VERSION = ApiVersion;
6364
Stripe.USER_AGENT = {
6465
bindings_version: Stripe.PACKAGE_VERSION,
6566
lang: 'node',

types/lib.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ declare module 'stripe' {
2828
static MAX_BUFFERED_REQUEST_METRICS: number;
2929
}
3030
export type LatestApiVersion = '2025-06-30.basil';
31+
export const API_VERSION: string;
3132
export type HttpAgent = Agent;
3233
export type HttpProtocol = 'http' | 'https';
3334

0 commit comments

Comments
 (0)