@konplit-services/common 1.0.154 → 1.0.155
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.
- package/build/app.configs.d.ts +7 -0
- package/build/app.configs.js +22 -0
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
|
@@ -35,6 +35,12 @@ interface Interswitch {
|
|
|
35
35
|
recurrent_client_id: string;
|
|
36
36
|
recurrent_secret_key: string;
|
|
37
37
|
}
|
|
38
|
+
interface InterswitchTransfer {
|
|
39
|
+
client_id: string;
|
|
40
|
+
secret_key: string;
|
|
41
|
+
access_token_url: string;
|
|
42
|
+
base_url: string;
|
|
43
|
+
}
|
|
38
44
|
interface MessageQueue {
|
|
39
45
|
sendMail: string;
|
|
40
46
|
Payment: string;
|
|
@@ -156,6 +162,7 @@ declare class AppConfigs {
|
|
|
156
162
|
account_mode: string;
|
|
157
163
|
};
|
|
158
164
|
getInterswitchDetails(): Interswitch;
|
|
165
|
+
getInterswitchTransferDetails(): InterswitchTransfer;
|
|
159
166
|
getMonoDetails(): {
|
|
160
167
|
base_url: string;
|
|
161
168
|
public_key: string;
|
package/build/app.configs.js
CHANGED
|
@@ -546,6 +546,28 @@ class AppConfigs {
|
|
|
546
546
|
recurrent_secret_key: this.env.INTERSWITCH_RECURRENT_SECRET_KEY,
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
|
+
// Interswitch
|
|
550
|
+
getInterswitchTransferDetails() {
|
|
551
|
+
// Interswitch
|
|
552
|
+
if (!this.env.INTERSWITCH_TRANSFER_CLIENT_ID) {
|
|
553
|
+
throw new Error("INTERSWITCH_TRANSFER_CLIENT_ID is required");
|
|
554
|
+
}
|
|
555
|
+
if (!this.env.INTERSWITCH_TRANSFER_SECRET_KEY) {
|
|
556
|
+
throw new Error("INTERSWITCH_TRANSFER_SECRET_KEY is required");
|
|
557
|
+
}
|
|
558
|
+
if (!this.env.INTERSWITCH_ACCESS_TOKEN_URL) {
|
|
559
|
+
throw new Error("INTERSWITCH_ACCESS_TOKEN_URL is required");
|
|
560
|
+
}
|
|
561
|
+
if (!this.env.INTERSWITCH_BASE_URL) {
|
|
562
|
+
throw new Error("INTERSWITCH_BASE_URL is required");
|
|
563
|
+
}
|
|
564
|
+
return {
|
|
565
|
+
client_id: this.env.INTERSWITCH_TRANSFER_CLIENT_ID,
|
|
566
|
+
secret_key: this.env.INTERSWITCH_TRANSFER_SECRET_KEY,
|
|
567
|
+
access_token_url: this.env.INTERSWITCH_ACCESS_TOKEN_URL,
|
|
568
|
+
base_url: this.env.INTERSWITCH_BASE_URL,
|
|
569
|
+
};
|
|
570
|
+
}
|
|
549
571
|
// MONO MOBILE MONEY
|
|
550
572
|
getMonoDetails() {
|
|
551
573
|
if (!this.env.MONO_BASE_URL) {
|