@konplit-services/common 1.0.404 → 1.0.406

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.
@@ -233,6 +233,7 @@ declare class AppConfigs {
233
233
  getCardPaymentDBURI(): string;
234
234
  getMerchantDBURI(): string;
235
235
  getMonoDBURI(): string;
236
+ getUssdDBURI(): string;
236
237
  getRevenueDBURI(): string;
237
238
  getQRPaymentDBURI(): string;
238
239
  getTransferDBURI(): string;
@@ -59,6 +59,12 @@ class AppConfigs {
59
59
  }
60
60
  return this.env.MONGO_URI_MONO;
61
61
  }
62
+ getUssdDBURI() {
63
+ if (!this.env.MONGO_URI_USSD_PAYMENT) {
64
+ throw new Error("MONGO_URI_USSD_PAYMENT is required");
65
+ }
66
+ return this.env.MONGO_URI_USSD_PAYMENT;
67
+ }
62
68
  getRevenueDBURI() {
63
69
  if (!this.env.MONGO_REVENUE_URI) {
64
70
  throw new Error("MONGO_REVENUE_URI is required");
@@ -5,5 +5,7 @@ export interface USSDTransactionStatusEvent {
5
5
  streamEvents: StreamEvent.Event;
6
6
  data: {
7
7
  transactionId: string;
8
+ statusId: string;
9
+ bankCode: string;
8
10
  };
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.404",
3
+ "version": "1.0.406",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",