@konplit-services/common 1.0.280 → 1.0.282

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.
@@ -219,6 +219,7 @@ declare class AppConfigs {
219
219
  getDBURI(): string;
220
220
  getActivityLogDBURI(): string;
221
221
  getAccountDBURI(): string;
222
+ getCardPaymentDBURI(): string;
222
223
  getMerchantDBURI(): string;
223
224
  getMonoDBURI(): string;
224
225
  getRevenueDBURI(): string;
@@ -41,6 +41,12 @@ class AppConfigs {
41
41
  }
42
42
  return this.env.MONGO_URI_ACCOUNT;
43
43
  }
44
+ getCardPaymentDBURI() {
45
+ if (!this.env.MONGO_URI_CARD_PAYMENT) {
46
+ throw new Error("MONGO_URI_CARD_PAYMENT is required");
47
+ }
48
+ return this.env.MONGO_URI_CARD_PAYMENT;
49
+ }
44
50
  getMerchantDBURI() {
45
51
  if (!this.env.MONGO_URI_MERCHANT) {
46
52
  throw new Error("MONGO_URI_MERCHANT is required");
@@ -12,7 +12,6 @@ export interface JWT_Data {
12
12
  userType: USER_TYPES;
13
13
  accountId?: string;
14
14
  adminId?: string;
15
- businessName: string;
16
15
  iat?: string;
17
16
  exp?: number;
18
17
  }
@@ -24,6 +23,7 @@ export interface TRANSACTION_JWT_DATA {
24
23
  amount: number;
25
24
  payee: "merchant" | "customer";
26
25
  usage: Usage;
26
+ businessName: string;
27
27
  iat?: string;
28
28
  exp?: number;
29
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.280",
3
+ "version": "1.0.282",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",