@konplit-services/common 1.0.366 → 1.0.368
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/Settlements-events/interfaces/settlement-created.interface.d.ts +2 -1
- package/build/events/merchants-events/interfaces/bank-account-created.interface.d.ts +3 -1
- package/build/events/merchants-events/interfaces/bank-account-updated.interface.d.ts +3 -1
- package/build/helper/bank-account-types.d.ts +4 -0
- package/build/helper/bank-account-types.js +8 -0
- package/build/helper/index.d.ts +1 -0
- package/build/helper/index.js +1 -0
- package/build/helper/settlement.d.ts +4 -0
- package/build/helper/settlement.js +6 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CURRENCY_TYPE, Settlement_TYPES } from "../../../helper";
|
|
1
|
+
import { CURRENCY_TYPE, Settlement_TYPES, SettlementSchedule } from "../../../helper";
|
|
2
2
|
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
3
|
export interface SettlementCreatedEvent {
|
|
4
4
|
subject: Subjects.SettlementCreated;
|
|
@@ -14,6 +14,7 @@ export interface SettlementCreatedEvent {
|
|
|
14
14
|
charges: number;
|
|
15
15
|
settlementType: Settlement_TYPES;
|
|
16
16
|
transactionDate: Date;
|
|
17
|
+
schedule: SettlementSchedule;
|
|
17
18
|
currency?: CURRENCY_TYPE;
|
|
18
19
|
};
|
|
19
20
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CURRENCY_TYPE } from "../../../helper";
|
|
1
|
+
import { BANK_ACCOUNT_TYPE, CURRENCY_TYPE, SettlementSchedule } from "../../../helper";
|
|
2
2
|
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
3
|
export interface BankAccountCreatedEvent {
|
|
4
4
|
subject: Subjects.BANKACCOUNT_CREATED;
|
|
@@ -11,6 +11,8 @@ export interface BankAccountCreatedEvent {
|
|
|
11
11
|
bankName: string;
|
|
12
12
|
accountNumber: string;
|
|
13
13
|
accountName: string;
|
|
14
|
+
bankAccountType: BANK_ACCOUNT_TYPE;
|
|
15
|
+
schedule: SettlementSchedule;
|
|
14
16
|
bankId: string;
|
|
15
17
|
currency?: CURRENCY_TYPE;
|
|
16
18
|
bvn?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CURRENCY_TYPE } from "../../../helper";
|
|
1
|
+
import { BANK_ACCOUNT_TYPE, CURRENCY_TYPE, SettlementSchedule } from "../../../helper";
|
|
2
2
|
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
3
3
|
export interface BankAccountUpdatedEvent {
|
|
4
4
|
subject: Subjects.BANKACCOUNT_UPDATED;
|
|
@@ -11,6 +11,8 @@ export interface BankAccountUpdatedEvent {
|
|
|
11
11
|
bankName: string;
|
|
12
12
|
accountNumber: string;
|
|
13
13
|
accountName: string;
|
|
14
|
+
bankAccountType: BANK_ACCOUNT_TYPE;
|
|
15
|
+
schedule: SettlementSchedule;
|
|
14
16
|
bankId: string;
|
|
15
17
|
currency?: CURRENCY_TYPE;
|
|
16
18
|
bvn?: string;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BANK_ACCOUNT_TYPE = void 0;
|
|
4
|
+
var BANK_ACCOUNT_TYPE;
|
|
5
|
+
(function (BANK_ACCOUNT_TYPE) {
|
|
6
|
+
BANK_ACCOUNT_TYPE["main"] = "main";
|
|
7
|
+
BANK_ACCOUNT_TYPE["sub"] = "sub";
|
|
8
|
+
})(BANK_ACCOUNT_TYPE = exports.BANK_ACCOUNT_TYPE || (exports.BANK_ACCOUNT_TYPE = {}));
|
package/build/helper/index.d.ts
CHANGED
package/build/helper/index.js
CHANGED
|
@@ -64,3 +64,4 @@ __exportStar(require("./wallet-transaction.types"), exports);
|
|
|
64
64
|
__exportStar(require("./generate-query-params"), exports);
|
|
65
65
|
__exportStar(require("./subscription-cron-expression"), exports);
|
|
66
66
|
__exportStar(require("./encryptions"), exports);
|
|
67
|
+
__exportStar(require("./bank-account-types"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Settlement_Status = exports.Settlement_TYPES = exports.SettlementActions = void 0;
|
|
3
|
+
exports.SettlementSchedule = exports.Settlement_Status = exports.Settlement_TYPES = exports.SettlementActions = void 0;
|
|
4
4
|
var SettlementActions;
|
|
5
5
|
(function (SettlementActions) {
|
|
6
6
|
SettlementActions["ADD"] = "ADD";
|
|
@@ -19,3 +19,8 @@ var Settlement_Status;
|
|
|
19
19
|
Settlement_Status["SETTLED"] = "SETTLED";
|
|
20
20
|
Settlement_Status["PROCESSING"] = "PROCESSING";
|
|
21
21
|
})(Settlement_Status = exports.Settlement_Status || (exports.Settlement_Status = {}));
|
|
22
|
+
var SettlementSchedule;
|
|
23
|
+
(function (SettlementSchedule) {
|
|
24
|
+
SettlementSchedule["auto"] = "auto";
|
|
25
|
+
SettlementSchedule["manual"] = "manual";
|
|
26
|
+
})(SettlementSchedule = exports.SettlementSchedule || (exports.SettlementSchedule = {}));
|