@konplit-services/common 1.29.2 → 1.29.4
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/app.configs.d.ts +1 -0
- package/build/app.configs.js +6 -0
- package/build/events/Settlements-events/interfaces/settlement-created.interface.d.ts +2 -0
- package/build/events/subjects.d.ts +1 -0
- package/build/events/subjects.js +1 -0
- package/build/events/transaction-events/interfaces/index.d.ts +1 -0
- package/build/events/transaction-events/interfaces/index.js +1 -0
- package/build/events/transaction-events/interfaces/tax-report.interface.d.ts +10 -0
- package/build/events/transaction-events/interfaces/tax-report.interface.js +2 -0
- package/build/helper/disputes.d.ts +5 -5
- package/build/helper/disputes.js +5 -5
- package/package.json +1 -1
package/build/app.configs.d.ts
CHANGED
package/build/app.configs.js
CHANGED
|
@@ -1050,6 +1050,12 @@ class AppConfigs {
|
|
|
1050
1050
|
}
|
|
1051
1051
|
return this.env.COMPLIANCE_EMAIL;
|
|
1052
1052
|
}
|
|
1053
|
+
getComplianceRiskEmail() {
|
|
1054
|
+
if (!this.env.COMPLIANCE_RISK_EMAIL) {
|
|
1055
|
+
throw new Error("COMPLIANCE_RISK_EMAIL is required");
|
|
1056
|
+
}
|
|
1057
|
+
return this.env.COMPLIANCE_RISK_EMAIL;
|
|
1058
|
+
}
|
|
1053
1059
|
}
|
|
1054
1060
|
// make sure all keys are available on startup
|
|
1055
1061
|
const appConfigs = new AppConfigs(process.env);
|
|
@@ -122,6 +122,7 @@ export declare enum Subjects {
|
|
|
122
122
|
TransactionDeclined = "events.transaction.declined",
|
|
123
123
|
TransactionWebhook = "events.transaction.webhook",
|
|
124
124
|
TransactionFIRSNotification = "events.transaction.firs.created",
|
|
125
|
+
TransactionTaxNotification = "events.transaction.tax.report",
|
|
125
126
|
TransactionDailyResetAmountCreated = "events.transaction.daily.reset.created",
|
|
126
127
|
TransactionAmountUpdateSyncCreated = "events.transaction.amount.update.sync.created",
|
|
127
128
|
TransactionExpiryDelayCreated = "events.transaction.expiry.delay.created",
|
package/build/events/subjects.js
CHANGED
|
@@ -149,6 +149,7 @@ var Subjects;
|
|
|
149
149
|
Subjects["TransactionDeclined"] = "events.transaction.declined";
|
|
150
150
|
Subjects["TransactionWebhook"] = "events.transaction.webhook";
|
|
151
151
|
Subjects["TransactionFIRSNotification"] = "events.transaction.firs.created";
|
|
152
|
+
Subjects["TransactionTaxNotification"] = "events.transaction.tax.report";
|
|
152
153
|
Subjects["TransactionDailyResetAmountCreated"] = "events.transaction.daily.reset.created";
|
|
153
154
|
Subjects["TransactionAmountUpdateSyncCreated"] = "events.transaction.amount.update.sync.created";
|
|
154
155
|
Subjects["TransactionExpiryDelayCreated"] = "events.transaction.expiry.delay.created";
|
|
@@ -26,3 +26,4 @@ __exportStar(require("./expiry-delay-timer.interface"), exports);
|
|
|
26
26
|
__exportStar(require("./expiry-delay-timer.update.interface"), exports);
|
|
27
27
|
__exportStar(require("./transaction-webhook.interface"), exports);
|
|
28
28
|
__exportStar(require("./firs-notification-created.interface"), exports);
|
|
29
|
+
__exportStar(require("./tax-report.interface"), exports);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StreamEvent, StreamName, Subjects } from "../../subjects";
|
|
2
|
+
export interface TransactionTaxNotificationEvent {
|
|
3
|
+
subject: Subjects.TransactionTaxNotification;
|
|
4
|
+
streamName: StreamName.name;
|
|
5
|
+
streamEvents: StreamEvent.Event;
|
|
6
|
+
data: {
|
|
7
|
+
message: string;
|
|
8
|
+
notification_date: string | Date;
|
|
9
|
+
};
|
|
10
|
+
}
|
|
@@ -27,9 +27,9 @@ export declare enum DISPUTE_WEBHOOK_TYPES {
|
|
|
27
27
|
auto_accepted = "dispute.auto_accepted"
|
|
28
28
|
}
|
|
29
29
|
export declare enum DisputeReasonCode {
|
|
30
|
-
FRAUD = "10.4",
|
|
31
|
-
NON_DELIVERED = "13.1",
|
|
32
|
-
DUPLICATE = "12.6",
|
|
33
|
-
NOT_AUTHORIZED = "10.5",
|
|
34
|
-
OTHER = "
|
|
30
|
+
FRAUD = "FRAUD",//"10.4",
|
|
31
|
+
NON_DELIVERED = "NON_DELIVERED",// "13.1",
|
|
32
|
+
DUPLICATE = "DUPLICATE",// "12.6",
|
|
33
|
+
NOT_AUTHORIZED = "NOT_AUTHORIZED",//"10.5",
|
|
34
|
+
OTHER = "OTHER"
|
|
35
35
|
}
|
package/build/helper/disputes.js
CHANGED
|
@@ -34,9 +34,9 @@ var DISPUTE_WEBHOOK_TYPES;
|
|
|
34
34
|
})(DISPUTE_WEBHOOK_TYPES || (exports.DISPUTE_WEBHOOK_TYPES = DISPUTE_WEBHOOK_TYPES = {}));
|
|
35
35
|
var DisputeReasonCode;
|
|
36
36
|
(function (DisputeReasonCode) {
|
|
37
|
-
DisputeReasonCode["FRAUD"] = "
|
|
38
|
-
DisputeReasonCode["NON_DELIVERED"] = "
|
|
39
|
-
DisputeReasonCode["DUPLICATE"] = "
|
|
40
|
-
DisputeReasonCode["NOT_AUTHORIZED"] = "
|
|
41
|
-
DisputeReasonCode["OTHER"] = "
|
|
37
|
+
DisputeReasonCode["FRAUD"] = "FRAUD";
|
|
38
|
+
DisputeReasonCode["NON_DELIVERED"] = "NON_DELIVERED";
|
|
39
|
+
DisputeReasonCode["DUPLICATE"] = "DUPLICATE";
|
|
40
|
+
DisputeReasonCode["NOT_AUTHORIZED"] = "NOT_AUTHORIZED";
|
|
41
|
+
DisputeReasonCode["OTHER"] = "OTHER";
|
|
42
42
|
})(DisputeReasonCode || (exports.DisputeReasonCode = DisputeReasonCode = {}));
|