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..c79319b 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';