@konplit-services/common 1.0.203 → 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;
@@ -594,12 +594,6 @@ class AppConfigs {
594
594
  if (!this.env.INTERSWITCH_CARD_BASE_URL) {
595
595
  throw new Error("INTERSWITCH_CARD_BASE_URL is required");
596
596
  }
597
- if (!this.env.INTERSWITCH_EXPONENT_KEY) {
598
- throw new Error("INTERSWITCH_EXPONENT_KEY is required");
599
- }
600
- if (!this.env.INTERSWITCH_MODulus_KEY) {
601
- throw new Error("INTERSWITCH_MODulus_KEY is required");
602
- }
603
597
  if (!this.env.INTERSWITCH_VISA_CALLBACK_URL) {
604
598
  throw new Error("INTERSWITCH_VISA_CALLBACK_URL is required");
605
599
  }
@@ -609,6 +603,12 @@ class AppConfigs {
609
603
  if (!this.env.INTERSWITCH_RECURRENT_SECRET_KEY) {
610
604
  throw new Error("INTERSWITCH_RECURRENT_SECRET_KEY is required");
611
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
+ }
612
612
  return {
613
613
  merchant_id: this.env.INTERSWITCH_MERCHANT_ID,
614
614
  pay_item_id: this.env.INTERSWITCH_PAY_ITEM_ID,
@@ -617,8 +617,8 @@ class AppConfigs {
617
617
  secret_key: this.env.INTERSWITCH_SECRET_KEY,
618
618
  access_token_url: this.env.INTERSWITCH_ACCESS_TOKEN_URL,
619
619
  card_base_url: this.env.INTERSWITCH_CARD_BASE_URL,
620
- exponent_key: this.env.INTERSWITCH_EXPONENT_KEY,
621
- modulus_key: this.env.INTERSWITCH_MODulus_KEY,
620
+ exponentKey: this.env.INTERSWITCH_DEFAULT_EXPONENT,
621
+ modulusKey: this.env.INTERSWITCH_DEFAULT_MODULUS,
622
622
  visa_callback_url: this.env.INTERSWITCH_VISA_CALLBACK_URL,
623
623
  recurrent_client_id: this.env.INTERSWITCH_RECURRENT_CLIENT_ID,
624
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.203",
3
+ "version": "1.0.204",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",