@konplit-services/common 1.0.184 → 1.0.188
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.
- package/build/events/index.d.ts +2 -0
- package/build/events/index.js +2 -0
- package/build/events/interswitch-events/interfaces/card-payment-initiation.interface.d.ts +30 -0
- package/build/events/interswitch-events/interfaces/card-payment-initiation.interface.js +2 -0
- package/build/events/interswitch-events/interfaces/index.d.ts +1 -0
- package/build/events/interswitch-events/interfaces/index.js +17 -0
- package/build/events/opay-events/interfaces/cachier-create-event-interface.d.ts +19 -0
- package/build/events/opay-events/interfaces/cachier-create-event-interface.js +2 -0
- package/build/events/opay-events/interfaces/index.d.ts +1 -0
- package/build/events/opay-events/interfaces/index.js +17 -0
- package/build/events/subjects.d.ts +3 -1
- package/build/events/subjects.js +4 -0
- package/package.json +1 -1
package/build/events/index.d.ts
CHANGED
|
@@ -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";
|
package/build/events/index.js
CHANGED
|
@@ -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 @@
|
|
|
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,19 @@
|
|
|
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
|
+
email: string;
|
|
11
|
+
business_name: string;
|
|
12
|
+
};
|
|
13
|
+
transaction: {
|
|
14
|
+
transactionId: string;
|
|
15
|
+
description: string;
|
|
16
|
+
amount: number;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
@@ -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
|
}
|
package/build/events/subjects.js
CHANGED
|
@@ -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 = {}));
|