@konplit-services/common 1.0.229 → 1.0.231

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.
@@ -86,6 +86,7 @@ interface BVN {
86
86
  valuePayRedirect: string;
87
87
  bvnBaseUrl: string;
88
88
  token_url: string;
89
+ auth_url: string;
89
90
  }
90
91
  interface NQRCode {
91
92
  nqrBaseUrl: string;
@@ -93,6 +94,7 @@ interface NQRCode {
93
94
  nqrpluSecret: string;
94
95
  nqrInstitutionId: string;
95
96
  nqrApiKey: string;
97
+ nqrAuthKey: string;
96
98
  }
97
99
  interface NIBSS {
98
100
  easyPay: EasyPay;
@@ -515,6 +515,9 @@ class AppConfigs {
515
515
  if (!this.env.NIBSS_NQRCODE_API_KEY) {
516
516
  throw new Error("NIBSS_NQRCODE_API_KEY is required");
517
517
  }
518
+ if (!this.env.NIBSS_NQRCODE_AUTH_API_KEY) {
519
+ throw new Error("NIBSS_NQRCODE_AUTH_API_KEY is required");
520
+ }
518
521
  if (!this.env.NIBSS_BVN_CLIENT_ID) {
519
522
  throw new Error("NIBSS_BVN_CLIENT_ID is required");
520
523
  }
@@ -533,6 +536,9 @@ class AppConfigs {
533
536
  if (!this.env.NIBSS_BVN_RESET_URL) {
534
537
  throw new Error("NIBSS_BVN_RESET_URL is required");
535
538
  }
539
+ if (!this.env.NIBSS_BVN_AUTH_URL) {
540
+ throw new Error("NIBSS_BVN_AUTH_URL is required");
541
+ }
536
542
  return {
537
543
  easyPay: {
538
544
  base_url: this.env.NIBSS_EASYPAY_BASE_URL,
@@ -552,6 +558,7 @@ class AppConfigs {
552
558
  nqrclientid: this.env.NIBSS_NQRCODE_CLIENT_ID,
553
559
  nqrpluSecret: this.env.NIBSS_NQRCODE_SECRET,
554
560
  nqrInstitutionId: this.env.NIBSS_NQRCODE_INSTITUTION_ID,
561
+ nqrAuthKey: this.env.NIBSS_NQRCODE_AUTH_API_KEY,
555
562
  nqrApiKey: this.env.NIBSS_NQRCODE_API_KEY,
556
563
  },
557
564
  bvn: {
@@ -560,6 +567,7 @@ class AppConfigs {
560
567
  valuePayRedirect: this.env.NIBSS_BVN_VALUEPART_REDIRECT,
561
568
  bvnBaseUrl: this.env.NIBSS_BVN_BASE_URL,
562
569
  token_url: this.env.NIBSS_BVN_TOKEN_URL,
570
+ auth_url: this.env.NIBSS_BVN_AUTH_URL,
563
571
  },
564
572
  resetURL: this.env.NIBSS_BVN_RESET_URL,
565
573
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.229",
3
+ "version": "1.0.231",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",