@konplit-services/common 1.0.183 → 1.0.187

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.
@@ -10,5 +10,7 @@ export * from "./Settlements-events/interfaces";
10
10
  export * from "./transfers-events/interfaces";
11
11
  export * from "./mono-events/interfaces";
12
12
  export * from "./qrpayments-events/interfaces";
13
+ export * from "./interswitch-events/interfaces";
14
+ export * from "./opay-events/interfaces";
13
15
  export * from "./base-events";
14
16
  export * from "./types";
@@ -26,5 +26,7 @@ __exportStar(require("./Settlements-events/interfaces"), exports);
26
26
  __exportStar(require("./transfers-events/interfaces"), exports);
27
27
  __exportStar(require("./mono-events/interfaces"), exports);
28
28
  __exportStar(require("./qrpayments-events/interfaces"), exports);
29
+ __exportStar(require("./interswitch-events/interfaces"), exports);
30
+ __exportStar(require("./opay-events/interfaces"), exports);
29
31
  __exportStar(require("./base-events"), exports);
30
32
  __exportStar(require("./types"), exports);
@@ -0,0 +1,30 @@
1
+ import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
2
+ import { ResSubjects } from "../../subjects";
3
+ export interface CardInitiationEvent {
4
+ subject: ResSubjects.CardInitiationTransaction;
5
+ data: {
6
+ merchantId: string;
7
+ accountId: string;
8
+ transactionType: TRANSACTION_CHARGES_TYPE;
9
+ customer: {
10
+ firstname: string;
11
+ middlename: string;
12
+ surname: string;
13
+ dob: string;
14
+ gender: string;
15
+ title: string;
16
+ address1: string;
17
+ city: string;
18
+ state: string;
19
+ country: string;
20
+ email: string;
21
+ phone: string;
22
+ business_name: string;
23
+ };
24
+ transaction: {
25
+ transactionId: string;
26
+ description: string;
27
+ amount: number;
28
+ };
29
+ };
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./card-payment-initiation.interface";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./card-payment-initiation.interface"), exports);
@@ -0,0 +1,30 @@
1
+ import { TRANSACTION_CHARGES_TYPE } from "../../../helper";
2
+ import { ResSubjects } from "../../subjects";
3
+ export interface OpayCashierCreatedEvent {
4
+ subject: ResSubjects.CashierInitiation;
5
+ data: {
6
+ merchantId: string;
7
+ accountId: string;
8
+ transactionType: TRANSACTION_CHARGES_TYPE;
9
+ customer: {
10
+ firstname: string;
11
+ middlename: string;
12
+ surname: string;
13
+ dob: string;
14
+ gender: string;
15
+ title: string;
16
+ address1: string;
17
+ city: string;
18
+ state: string;
19
+ country: string;
20
+ email: string;
21
+ phone: string;
22
+ business_name: string;
23
+ };
24
+ transaction: {
25
+ transactionId: string;
26
+ description: string;
27
+ amount: number;
28
+ };
29
+ };
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export * from "./cachier-create-event-interface";
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./cachier-create-event-interface"), exports);
@@ -70,5 +70,7 @@ export declare enum ResSubjects {
70
70
  BankAccountNameCreated = "res.bank.account.name.created",
71
71
  MonoInitiationTransaction = "res.mono.initiation",
72
72
  NIBSSInstitutions = "res.nibss.institution.list",
73
- QRDynamicCodeCreated = "res.dynamic.code.created"
73
+ QRDynamicCodeCreated = "res.dynamic.code.created",
74
+ CardInitiationTransaction = "res.card.initiation.transaction",
75
+ CashierInitiation = "res.cashier.initiation"
74
76
  }
@@ -101,4 +101,8 @@ var ResSubjects;
101
101
  //NIBSS
102
102
  ResSubjects["NIBSSInstitutions"] = "res.nibss.institution.list";
103
103
  ResSubjects["QRDynamicCodeCreated"] = "res.dynamic.code.created";
104
+ //Interswitch
105
+ ResSubjects["CardInitiationTransaction"] = "res.card.initiation.transaction";
106
+ //Opay
107
+ ResSubjects["CashierInitiation"] = "res.cashier.initiation";
104
108
  })(ResSubjects = exports.ResSubjects || (exports.ResSubjects = {}));
@@ -10,13 +10,13 @@ declare const hashingKey: (secret: string) => Buffer;
10
10
  * @param data - the data to sign
11
11
  * @returns MD5 hash of the data
12
12
  */
13
- declare const generateSignMD5: (data: Record<string, string>) => string;
13
+ declare const generateSignMD5: (data: Record<string, any>) => string;
14
14
  /**
15
15
  * Generates an Hmac signatur
16
16
  * @param data - the data to sign
17
17
  * @returns MD5 hash of the data
18
18
  */
19
- declare const generateOpaySign: (data: Record<string, string>) => string;
19
+ declare const generateOpaySign: (data: Record<string, any>) => string;
20
20
  /**
21
21
  * Generates an MD5 signature for Fidelity transactions
22
22
  * @param request_ref - the request reference
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.183",
3
+ "version": "1.0.187",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",