@konplit-services/common 1.0.265 → 1.0.267
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
CHANGED
|
@@ -215,6 +215,7 @@ declare class AppConfigs {
|
|
|
215
215
|
constructor(processEnv: typeof env);
|
|
216
216
|
getAppName(): string;
|
|
217
217
|
getJWTKEY(): string;
|
|
218
|
+
getTransactionJWTKEY(): string;
|
|
218
219
|
getDBURI(): string;
|
|
219
220
|
getActivityLogDBURI(): string;
|
|
220
221
|
getAccountDBURI(): string;
|
|
@@ -249,6 +250,7 @@ declare class AppConfigs {
|
|
|
249
250
|
refresh_in: string;
|
|
250
251
|
access_in: string;
|
|
251
252
|
};
|
|
253
|
+
getTransactionTokenAccessTime(): string;
|
|
252
254
|
getAPIPrivateKey(): string;
|
|
253
255
|
getEmailVendor(): string;
|
|
254
256
|
getZeptoMailAPIKey(): string;
|
package/build/app.configs.js
CHANGED
|
@@ -17,6 +17,12 @@ class AppConfigs {
|
|
|
17
17
|
}
|
|
18
18
|
return this.env.JWT_KEY;
|
|
19
19
|
}
|
|
20
|
+
getTransactionJWTKEY() {
|
|
21
|
+
if (!this.env.TRANSACTION_JWT_KEY) {
|
|
22
|
+
throw new Error("TRANSACTION_JWT_KEY is required");
|
|
23
|
+
}
|
|
24
|
+
return this.env.TRANSACTION_JWT_KEY;
|
|
25
|
+
}
|
|
20
26
|
getDBURI() {
|
|
21
27
|
if (!this.env.Mongo_URI) {
|
|
22
28
|
throw new Error("Mongo_URI is required");
|
|
@@ -193,6 +199,12 @@ class AppConfigs {
|
|
|
193
199
|
access_in: this.env.ACCESS_TOKEN_IN,
|
|
194
200
|
};
|
|
195
201
|
}
|
|
202
|
+
getTransactionTokenAccessTime() {
|
|
203
|
+
if (!this.env.ACCESS_TRANSACTION_TOKEN_IN) {
|
|
204
|
+
throw new Error("ACCESS_TRANSACTION_TOKEN_IN is required");
|
|
205
|
+
}
|
|
206
|
+
return this.env.ACCESS_TRANSACTION_TOKEN_IN;
|
|
207
|
+
}
|
|
196
208
|
getAPIPrivateKey() {
|
|
197
209
|
if (!this.env.API_PRIVATE_KEY) {
|
|
198
210
|
throw new Error("API_PRIVATE_KEY is required");
|
|
@@ -18,6 +18,10 @@ export declare enum RecieptUserType {
|
|
|
18
18
|
merchant = "merchant",
|
|
19
19
|
customer = "customer"
|
|
20
20
|
}
|
|
21
|
+
export declare enum TransactionCharge {
|
|
22
|
+
merchant = "merchant",
|
|
23
|
+
customer = "customer"
|
|
24
|
+
}
|
|
21
25
|
export declare enum SettlementType {
|
|
22
26
|
bankaccount = "bankaccount",
|
|
23
27
|
wallet = "wallet"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RejectActions = exports.SettlementType = exports.RecieptUserType = exports.NotificationChannel = void 0;
|
|
3
|
+
exports.RejectActions = exports.SettlementType = exports.TransactionCharge = exports.RecieptUserType = exports.NotificationChannel = void 0;
|
|
4
4
|
var NotificationChannel;
|
|
5
5
|
(function (NotificationChannel) {
|
|
6
6
|
NotificationChannel["sms"] = "sms";
|
|
@@ -12,6 +12,11 @@ var RecieptUserType;
|
|
|
12
12
|
RecieptUserType["merchant"] = "merchant";
|
|
13
13
|
RecieptUserType["customer"] = "customer";
|
|
14
14
|
})(RecieptUserType = exports.RecieptUserType || (exports.RecieptUserType = {}));
|
|
15
|
+
var TransactionCharge;
|
|
16
|
+
(function (TransactionCharge) {
|
|
17
|
+
TransactionCharge["merchant"] = "merchant";
|
|
18
|
+
TransactionCharge["customer"] = "customer";
|
|
19
|
+
})(TransactionCharge = exports.TransactionCharge || (exports.TransactionCharge = {}));
|
|
15
20
|
var SettlementType;
|
|
16
21
|
(function (SettlementType) {
|
|
17
22
|
SettlementType["bankaccount"] = "bankaccount";
|