@konplit-services/common 1.0.202 → 1.0.204

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.
@@ -29,8 +29,8 @@ interface Interswitch {
29
29
  secret_key: string;
30
30
  access_token_url: string;
31
31
  card_base_url: string;
32
- exponent_key: string;
33
- modulus_key: string;
32
+ exponentKey: string;
33
+ modulusKey: string;
34
34
  visa_callback_url: string;
35
35
  recurrent_client_id: string;
36
36
  recurrent_secret_key: string;
@@ -119,6 +119,7 @@ declare class AppConfigs {
119
119
  getWebsiteDBURI(): string;
120
120
  getSettlementDBURI(): string;
121
121
  getOpayDBURI(): string;
122
+ getKoreDBURI(): string;
122
123
  getNATSPassword(): string;
123
124
  getNATSUsername(): string;
124
125
  getSettlementInterval(): string;
@@ -95,6 +95,12 @@ class AppConfigs {
95
95
  }
96
96
  return this.env.MONGO_OPAY_URI;
97
97
  }
98
+ getKoreDBURI() {
99
+ if (!this.env.MONGO_KORE_URI) {
100
+ throw new Error("MONGO_KORE_URI is required");
101
+ }
102
+ return this.env.MONGO_KORE_URI;
103
+ }
98
104
  getNATSPassword() {
99
105
  if (!this.env.NATS_PASSWORD) {
100
106
  throw new Error("NATS_PASSWORD is required");
@@ -588,12 +594,6 @@ class AppConfigs {
588
594
  if (!this.env.INTERSWITCH_CARD_BASE_URL) {
589
595
  throw new Error("INTERSWITCH_CARD_BASE_URL is required");
590
596
  }
591
- if (!this.env.INTERSWITCH_EXPONENT_KEY) {
592
- throw new Error("INTERSWITCH_EXPONENT_KEY is required");
593
- }
594
- if (!this.env.INTERSWITCH_MODulus_KEY) {
595
- throw new Error("INTERSWITCH_MODulus_KEY is required");
596
- }
597
597
  if (!this.env.INTERSWITCH_VISA_CALLBACK_URL) {
598
598
  throw new Error("INTERSWITCH_VISA_CALLBACK_URL is required");
599
599
  }
@@ -603,6 +603,12 @@ class AppConfigs {
603
603
  if (!this.env.INTERSWITCH_RECURRENT_SECRET_KEY) {
604
604
  throw new Error("INTERSWITCH_RECURRENT_SECRET_KEY is required");
605
605
  }
606
+ if (!this.env.INTERSWITCH_DEFAULT_MODULUS) {
607
+ throw new Error("INTERSWITCH_DEFAULT_MODULUS is required");
608
+ }
609
+ if (!this.env.INTERSWITCH_DEFAULT_EXPONENT) {
610
+ throw new Error("INTERSWITCH_DEFAULT_EXPONENT is required");
611
+ }
606
612
  return {
607
613
  merchant_id: this.env.INTERSWITCH_MERCHANT_ID,
608
614
  pay_item_id: this.env.INTERSWITCH_PAY_ITEM_ID,
@@ -611,8 +617,8 @@ class AppConfigs {
611
617
  secret_key: this.env.INTERSWITCH_SECRET_KEY,
612
618
  access_token_url: this.env.INTERSWITCH_ACCESS_TOKEN_URL,
613
619
  card_base_url: this.env.INTERSWITCH_CARD_BASE_URL,
614
- exponent_key: this.env.INTERSWITCH_EXPONENT_KEY,
615
- modulus_key: this.env.INTERSWITCH_MODulus_KEY,
620
+ exponentKey: this.env.INTERSWITCH_DEFAULT_EXPONENT,
621
+ modulusKey: this.env.INTERSWITCH_DEFAULT_MODULUS,
616
622
  visa_callback_url: this.env.INTERSWITCH_VISA_CALLBACK_URL,
617
623
  recurrent_client_id: this.env.INTERSWITCH_RECURRENT_CLIENT_ID,
618
624
  recurrent_secret_key: this.env.INTERSWITCH_RECURRENT_SECRET_KEY,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.202",
3
+ "version": "1.0.204",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",