@konplit-services/common 1.0.228 → 1.0.230

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.
@@ -86,6 +86,7 @@ interface BVN {
86
86
  valuePayRedirect: string;
87
87
  bvnBaseUrl: string;
88
88
  token_url: string;
89
+ auth_url: string;
89
90
  }
90
91
  interface NQRCode {
91
92
  nqrBaseUrl: string;
@@ -533,6 +533,9 @@ class AppConfigs {
533
533
  if (!this.env.NIBSS_BVN_RESET_URL) {
534
534
  throw new Error("NIBSS_BVN_RESET_URL is required");
535
535
  }
536
+ if (!this.env.NIBSS_BVN_AUTH_URL) {
537
+ throw new Error("NIBSS_BVN_AUTH_URL is required");
538
+ }
536
539
  return {
537
540
  easyPay: {
538
541
  base_url: this.env.NIBSS_EASYPAY_BASE_URL,
@@ -560,6 +563,7 @@ class AppConfigs {
560
563
  valuePayRedirect: this.env.NIBSS_BVN_VALUEPART_REDIRECT,
561
564
  bvnBaseUrl: this.env.NIBSS_BVN_BASE_URL,
562
565
  token_url: this.env.NIBSS_BVN_TOKEN_URL,
566
+ auth_url: this.env.NIBSS_BVN_AUTH_URL,
563
567
  },
564
568
  resetURL: this.env.NIBSS_BVN_RESET_URL,
565
569
  };
@@ -15,6 +15,7 @@ export * from "./bank-account-deleted.interface";
15
15
  export * from "./bank-account-verify-update.interface";
16
16
  export * from "./bank-list-created.interface";
17
17
  export * from "./bank-account-name-verify.interface";
18
+ export * from "./nibss-bank-name.verify.interface";
18
19
  export * from "./subaccount-created.interface";
19
20
  export * from "./subaccount-updated.interface";
20
21
  export * from "./subaccount-deleted.interface";
@@ -33,6 +33,7 @@ __exportStar(require("./bank-account-deleted.interface"), exports);
33
33
  __exportStar(require("./bank-account-verify-update.interface"), exports);
34
34
  __exportStar(require("./bank-list-created.interface"), exports);
35
35
  __exportStar(require("./bank-account-name-verify.interface"), exports);
36
+ __exportStar(require("./nibss-bank-name.verify.interface"), exports);
36
37
  //SubAccounts
37
38
  __exportStar(require("./subaccount-created.interface"), exports);
38
39
  __exportStar(require("./subaccount-updated.interface"), exports);
@@ -0,0 +1,8 @@
1
+ import { ResSubjects } from "../../subjects";
2
+ export interface NIBSSBankAccountNameVerifyEvent {
3
+ subject: ResSubjects.NIBSSBankAccountNameCreated;
4
+ data: {
5
+ accountNumber: string;
6
+ bankCode: string;
7
+ };
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -77,6 +77,7 @@ export declare enum ResSubjects {
77
77
  VirtualDynamicAccountCreatedEvent = "res.virtual.dynamicaccount.created",
78
78
  BankListCreated = "res.bank.list.created",
79
79
  BankAccountNameCreated = "res.bank.account.name.created",
80
+ NIBSSBankAccountNameCreated = "res.nibss.bank.name.created",
80
81
  MonoInitiationTransaction = "res.mono.initiation",
81
82
  NIBSSInstitutions = "res.nibss.institution.list",
82
83
  QRDynamicCodeCreated = "res.dynamic.code.created",
@@ -109,6 +109,7 @@ var ResSubjects;
109
109
  // BanksAccounts
110
110
  ResSubjects["BankListCreated"] = "res.bank.list.created";
111
111
  ResSubjects["BankAccountNameCreated"] = "res.bank.account.name.created";
112
+ ResSubjects["NIBSSBankAccountNameCreated"] = "res.nibss.bank.name.created";
112
113
  //Mono
113
114
  ResSubjects["MonoInitiationTransaction"] = "res.mono.initiation";
114
115
  //NIBSS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.228",
3
+ "version": "1.0.230",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",