@konplit-services/common 1.0.223 → 1.0.225

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.
@@ -125,6 +125,7 @@ declare class AppConfigs {
125
125
  getKoreDBURI(): string;
126
126
  getNATSPassword(): string;
127
127
  getNATSUsername(): string;
128
+ getBVNEnvironment(): string;
128
129
  getSettlementInterval(): string;
129
130
  getNodeMAilDetails(): {
130
131
  host: string;
@@ -113,6 +113,12 @@ class AppConfigs {
113
113
  }
114
114
  return this.env.NATS_USERNAME;
115
115
  }
116
+ getBVNEnvironment() {
117
+ if (!this.env.BVN_ENVIRONMENT) {
118
+ throw new Error("BVN_ENVIRONMENT is required");
119
+ }
120
+ return this.env.BVN_ENVIRONMENT;
121
+ }
116
122
  getSettlementInterval() {
117
123
  if (!this.env.SETTLEMENT_INTERVAL) {
118
124
  throw new Error("SETTLEMENT_INTERVAL is required");
@@ -713,13 +719,13 @@ class AppConfigs {
713
719
  getNODE_ENV() {
714
720
  return this.env.NODE_ENV;
715
721
  }
716
- //DNS Secret Keys for ALL 14 Services
722
+ //DNS Secret Keys for ALL 14 Services
717
723
  getDSN_Key() {
718
724
  if (!this.env.SENTRY_LOG_DNS) {
719
725
  throw new Error("SENTRY_LOG_DNS is required");
720
726
  }
721
727
  return {
722
- dsn: this.env.SENTRY_LOG_DNS
728
+ dsn: this.env.SENTRY_LOG_DNS,
723
729
  };
724
730
  }
725
731
  }
@@ -9,6 +9,7 @@ export interface MerchantRepBVNValidationUpdatedEvent {
9
9
  merchantId: string;
10
10
  bvn: string;
11
11
  isBvnvalid: boolean;
12
+ message?: string;
12
13
  version?: number;
13
14
  };
14
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.223",
3
+ "version": "1.0.225",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",