From bcb04aa2e13fa697bc0498468dad5675f164c306 Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Fri, 16 Jan 2026 16:02:07 -0500 Subject: [PATCH 1/2] adds baseURL override --- src/configuration.ts | 3 ++- src/resources/Webhook/index.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/configuration.ts b/src/configuration.ts index e130694..ae8e3c0 100644 --- a/src/configuration.ts +++ b/src/configuration.ts @@ -63,6 +63,7 @@ export interface IConfigurationOpts { onRequest?: TOnRequest; onResponse?: TOnResponse; axiosRetryConfig?: IAxiosRetryConfig; + baseURL?: string; }; export default class Configuration { @@ -76,7 +77,7 @@ export default class Configuration { constructor(opts: IConfigurationOpts) { Configuration._validateConfiguration(opts); - this.baseURL = `https://${opts.env}.methodfi.com`; + this.baseURL = opts.baseURL || `https://${opts.env}.methodfi.com`; this.apiKey = opts.apiKey; this.httpsAgent = opts.httpsAgent || null; this.onRequest = opts.onRequest || null; diff --git a/src/resources/Webhook/index.ts b/src/resources/Webhook/index.ts index 12e55f9..8d16a7f 100644 --- a/src/resources/Webhook/index.ts +++ b/src/resources/Webhook/index.ts @@ -64,3 +64,5 @@ export default class Webhook extends Resource { return super._delete>(whk_id); } }; + +export * from './types'; \ No newline at end of file From ad66eedf2097dda49d24696380d9ff9824e946c1 Mon Sep 17 00:00:00 2001 From: Michael Ossig Date: Fri, 16 Jan 2026 16:03:39 -0500 Subject: [PATCH 2/2] nit --- src/resources/Webhook/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resources/Webhook/index.ts b/src/resources/Webhook/index.ts index 8d16a7f..c79319b 100644 --- a/src/resources/Webhook/index.ts +++ b/src/resources/Webhook/index.ts @@ -65,4 +65,4 @@ export default class Webhook extends Resource { } }; -export * from './types'; \ No newline at end of file +export * from './types';