@konplit-services/common 1.0.171 → 1.0.172

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.
@@ -39,6 +39,7 @@ interface InterswitchTransfer {
39
39
  client_id: string;
40
40
  secret_key: string;
41
41
  access_token_url: string;
42
+ requestPrefix: string;
42
43
  base_url: string;
43
44
  }
44
45
  interface ValuePaySenderTransfer {
@@ -579,8 +579,12 @@ class AppConfigs {
579
579
  if (!this.env.INTERSWITCH_BASE_URL) {
580
580
  throw new Error("INTERSWITCH_BASE_URL is required");
581
581
  }
582
+ if (!this.env.INTERSWITCH_TRANSFER_REQUESTPREFIX) {
583
+ throw new Error("INTERSWITCH_TRANSFER_REQUESTPREFIX is required");
584
+ }
582
585
  return {
583
586
  client_id: this.env.INTERSWITCH_TRANSFER_CLIENT_ID,
587
+ requestPrefix: this.env.INTERSWITCH_TRANSFER_REQUESTPREFIX,
584
588
  secret_key: this.env.INTERSWITCH_TRANSFER_SECRET_KEY,
585
589
  access_token_url: this.env.INTERSWITCH_ACCESS_TOKEN_URL,
586
590
  base_url: this.env.INTERSWITCH_BASE_URL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.171",
3
+ "version": "1.0.172",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",