@munlib/common 1.0.161 → 1.0.163
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.
|
@@ -136,8 +136,8 @@ exports.errorCodes = {
|
|
|
136
136
|
"ERR_CANCELED": "La solicitud fue cancelada antes de completarse.",
|
|
137
137
|
//Errores Especificos PARA EL USURIO
|
|
138
138
|
"MIDDLEWARE": "Error interno de Sistema. Inténtelo nuevamente más tarde.",
|
|
139
|
-
"
|
|
140
|
-
"
|
|
139
|
+
"USER": "",
|
|
140
|
+
"SINTAX": "Hemos encontrado un problema al procesar su solicitud. Inténtelo nuevamente más tarde.",
|
|
141
141
|
"SUCCESS": "",
|
|
142
142
|
};
|
|
143
143
|
exports.statusCodeMapping = {
|
|
@@ -3,6 +3,7 @@ export type EstadoSolPagoType = "ING" | "FPAG" | "INST" | "DEB" | "BANE" | "MPAG
|
|
|
3
3
|
export type EntidadExterna = "PIMUNICI";
|
|
4
4
|
export type FormaPago = "EFE";
|
|
5
5
|
export type EstadoPagoType = "PAG" | "TRAN" | "TCOMP" | "ERRING" | "NOTC" | "MON" | "CTA" | "INST" | "AUT" | "REV" | "ECAN";
|
|
6
|
+
export declare const etapaConsultasExcluidas: string[];
|
|
6
7
|
export declare enum CanalTransacionalOptionsEnum {
|
|
7
8
|
VENT = "VENT",
|
|
8
9
|
NDAU = "NDAU",
|
|
@@ -25,8 +26,11 @@ export declare enum EstadoSolPagoTypeEnum {
|
|
|
25
26
|
CLIR = "CLIR",
|
|
26
27
|
ECAN = "ECAN"
|
|
27
28
|
}
|
|
28
|
-
export declare enum
|
|
29
|
-
|
|
29
|
+
export declare enum ErrorCategories {
|
|
30
|
+
MIDDLEWARE = "MIDDLEWARE",
|
|
31
|
+
USER = "USER",
|
|
32
|
+
SINTAX = "SINTAX",
|
|
33
|
+
SUCCESS = "SUCCESS"
|
|
30
34
|
}
|
|
31
35
|
export declare enum FormaPagoEnum {
|
|
32
36
|
EFE = "EFE"
|
|
@@ -45,7 +49,7 @@ export declare enum EstadoPagoTypeEnum {
|
|
|
45
49
|
ECAN = "ECAN"
|
|
46
50
|
}
|
|
47
51
|
export interface EtapaSolPagosEntries {
|
|
48
|
-
Ientidadexterna:
|
|
52
|
+
Ientidadexterna: string;
|
|
49
53
|
Icuentabancaria: string;
|
|
50
54
|
Iformapago: FormaPago;
|
|
51
55
|
Icanaltransacional: CanalTransacionalOptions;
|
|
@@ -58,7 +62,7 @@ export interface EtapaSolPagosOutput {
|
|
|
58
62
|
oNumTransaccion: number;
|
|
59
63
|
}
|
|
60
64
|
export interface EtapaConfirmarPagoEntries {
|
|
61
|
-
Ientidadexterna:
|
|
65
|
+
Ientidadexterna: string;
|
|
62
66
|
Icuentabancaria?: string;
|
|
63
67
|
Iformapago: FormaPago;
|
|
64
68
|
Icanaltransacional: CanalTransacionalOptions;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EstadoPagoTypeEnum = exports.FormaPagoEnum = exports.
|
|
3
|
+
exports.EstadoPagoTypeEnum = exports.FormaPagoEnum = exports.ErrorCategories = exports.EstadoSolPagoTypeEnum = exports.CanalTransacionalOptionsEnum = exports.etapaConsultasExcluidas = void 0;
|
|
4
|
+
exports.etapaConsultasExcluidas = ["ERROR", "FPAG", "INST", "DEB", "BANE", "SMAN", "EMI", "CLIR"];
|
|
4
5
|
var CanalTransacionalOptionsEnum;
|
|
5
6
|
(function (CanalTransacionalOptionsEnum) {
|
|
6
7
|
CanalTransacionalOptionsEnum["VENT"] = "VENT";
|
|
@@ -25,10 +26,13 @@ var EstadoSolPagoTypeEnum;
|
|
|
25
26
|
EstadoSolPagoTypeEnum["CLIR"] = "CLIR";
|
|
26
27
|
EstadoSolPagoTypeEnum["ECAN"] = "ECAN";
|
|
27
28
|
})(EstadoSolPagoTypeEnum || (exports.EstadoSolPagoTypeEnum = EstadoSolPagoTypeEnum = {}));
|
|
28
|
-
var
|
|
29
|
-
(function (
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
var ErrorCategories;
|
|
30
|
+
(function (ErrorCategories) {
|
|
31
|
+
ErrorCategories["MIDDLEWARE"] = "MIDDLEWARE";
|
|
32
|
+
ErrorCategories["USER"] = "USER";
|
|
33
|
+
ErrorCategories["SINTAX"] = "SINTAX";
|
|
34
|
+
ErrorCategories["SUCCESS"] = "SUCCESS";
|
|
35
|
+
})(ErrorCategories || (exports.ErrorCategories = ErrorCategories = {}));
|
|
32
36
|
var FormaPagoEnum;
|
|
33
37
|
(function (FormaPagoEnum) {
|
|
34
38
|
FormaPagoEnum["EFE"] = "EFE";
|
|
@@ -6,16 +6,14 @@ var erroresStatus_1 = require("../errors/erroresStatus");
|
|
|
6
6
|
var errorHandler = function (err, req, res, next) {
|
|
7
7
|
var statusCode = 500; // Código de estado por defecto para errores genéricos
|
|
8
8
|
if (err instanceof custom_error_1.CustomError) {
|
|
9
|
-
console.log("ENTRA A CUSTOM ERROR******");
|
|
10
9
|
return res.status(err.statusCode).send(err.serializeErrors());
|
|
11
10
|
}
|
|
12
|
-
console.log("NO===> ENTRA A CUSTOM ERROR");
|
|
13
11
|
res.status(statusCode).send({
|
|
14
|
-
status: erroresStatus_1.ErrorController.getGeneralStatus(statusCode.toString()),
|
|
12
|
+
status: erroresStatus_1.ErrorController.getGeneralStatus(statusCode.toString()) || "error",
|
|
15
13
|
msg: err.message, // Agregar el código de estado al objeto de errores
|
|
16
14
|
code: statusCode,
|
|
17
|
-
typeError: "
|
|
18
|
-
userMsg: ""
|
|
15
|
+
typeError: "MIDDLEWARE",
|
|
16
|
+
userMsg: erroresStatus_1.ErrorController.getErrorMessage("MIDDLEWARE")
|
|
19
17
|
});
|
|
20
18
|
};
|
|
21
19
|
exports.errorHandler = errorHandler;
|