@konplit-services/common 1.0.218 → 1.0.220

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.
@@ -0,0 +1,18 @@
1
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
+ export interface MerchantRepBVNValidationCreatedEvent {
3
+ subject: Subjects.MerchantRepBVNValidationCreated;
4
+ streamName: StreamName.name;
5
+ streamEvents: StreamEvent.Event;
6
+ data: {
7
+ id: string;
8
+ accountId: string;
9
+ merchantId: string;
10
+ dob: string;
11
+ firstName: string;
12
+ lastName: string;
13
+ address?: any[];
14
+ bvn: string;
15
+ isBvnvalid?: boolean;
16
+ version?: number;
17
+ };
18
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { StreamEvent, StreamName, Subjects } from "../../subjects";
2
+ export interface MerchantRepBVNValidationUpdatedEvent {
3
+ subject: Subjects.MerchantRepBVNValidationUpdated;
4
+ streamName: StreamName.name;
5
+ streamEvents: StreamEvent.Event;
6
+ data: {
7
+ id: string;
8
+ accountId: string;
9
+ merchantId: string;
10
+ bvn: string;
11
+ isBvnvalid: boolean;
12
+ version?: number;
13
+ };
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -17,3 +17,5 @@ export * from "./bank-account-name-verify.interface";
17
17
  export * from "./subaccount-created.interface";
18
18
  export * from "./subaccount-updated.interface";
19
19
  export * from "./subaccount-deleted.interface";
20
+ export * from "./bvn-validation-created.interface";
21
+ export * from "./bvn-validation-updated.interface";
@@ -35,3 +35,6 @@ __exportStar(require("./bank-account-name-verify.interface"), exports);
35
35
  __exportStar(require("./subaccount-created.interface"), exports);
36
36
  __exportStar(require("./subaccount-updated.interface"), exports);
37
37
  __exportStar(require("./subaccount-deleted.interface"), exports);
38
+ //BVN validation
39
+ __exportStar(require("./bvn-validation-created.interface"), exports);
40
+ __exportStar(require("./bvn-validation-updated.interface"), exports);
@@ -13,6 +13,8 @@ export declare enum Subjects {
13
13
  MerchantUpdated = "events.merchant.updated",
14
14
  MerchantKeyUpdated = "events.merchant.key.updated",
15
15
  MerchantLogCreated = "events.merchant.Log.created",
16
+ MerchantRepBVNValidationCreated = "events.rep.bvn.validation.created",
17
+ MerchantRepBVNValidationUpdated = "events.rep.bvn.validation.updated",
16
18
  TransferCreated = "events.transfer.created",
17
19
  TransferUpdated = "events.transfer.updated",
18
20
  PermissionCreated = "events.permission.created",
@@ -22,6 +22,9 @@ var Subjects;
22
22
  Subjects["MerchantUpdated"] = "events.merchant.updated";
23
23
  Subjects["MerchantKeyUpdated"] = "events.merchant.key.updated";
24
24
  Subjects["MerchantLogCreated"] = "events.merchant.Log.created";
25
+ //Merchants Rep BVN Validation
26
+ Subjects["MerchantRepBVNValidationCreated"] = "events.rep.bvn.validation.created";
27
+ Subjects["MerchantRepBVNValidationUpdated"] = "events.rep.bvn.validation.updated";
25
28
  //Transfer Subjects
26
29
  Subjects["TransferCreated"] = "events.transfer.created";
27
30
  Subjects["TransferUpdated"] = "events.transfer.updated";
@@ -6,3 +6,4 @@ var ACCOUNT_BALANCE_TYPE;
6
6
  ACCOUNT_BALANCE_TYPE["ledger"] = "ledger";
7
7
  ACCOUNT_BALANCE_TYPE["main"] = "main";
8
8
  })(ACCOUNT_BALANCE_TYPE = exports.ACCOUNT_BALANCE_TYPE || (exports.ACCOUNT_BALANCE_TYPE = {}));
9
+ // commit
@@ -13,15 +13,15 @@ const configureSwagger = (app, paths) => {
13
13
  info: {
14
14
  title: "Valuepay Payment System Documentation",
15
15
  version: "1.0.0",
16
- description: "This is a complete API definition for the Valuepay payment system documented with Swagger",
16
+ description: "This is a complete API definition for the Valuepay payment system documented with Swagger UI",
17
17
  license: {
18
18
  name: "IEC Code Components End-user licence agreement",
19
19
  url: "https://spdx.org/licenses/IEC-Code-Components-EULA.html",
20
20
  },
21
21
  contact: {
22
- name: "Konplit",
23
- url: "https://konplit.com",
24
- email: "info@konplit.com",
22
+ name: "Valuepay",
23
+ url: "https://valuepayng.com",
24
+ email: "info@valuepay.ng",
25
25
  },
26
26
  },
27
27
  servers: [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.218",
3
+ "version": "1.0.220",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",