@fiado/type-kit 3.0.9 → 3.0.10
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/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/creditEngine/dtos/CreditDetailResponse.d.ts +17 -0
- package/bin/creditEngine/dtos/CreditDetailResponse.js +9 -0
- package/bin/creditEngine/dtos/CreditOriginationRequest.d.ts +8 -0
- package/bin/creditEngine/dtos/CreditOriginationRequest.js +34 -0
- package/bin/creditEngine/dtos/CreditOriginationResponse.d.ts +9 -0
- package/bin/creditEngine/dtos/CreditOriginationResponse.js +9 -0
- package/bin/creditEngine/dtos/CreditSignatureRequest.d.ts +7 -0
- package/bin/creditEngine/dtos/CreditSignatureRequest.js +28 -0
- package/bin/creditEngine/dtos/DisbursementRequest.d.ts +10 -0
- package/bin/creditEngine/dtos/DisbursementRequest.js +44 -0
- package/bin/creditEngine/dtos/PaymentScheduleItemResponse.d.ts +13 -0
- package/bin/creditEngine/dtos/PaymentScheduleItemResponse.js +9 -0
- package/bin/creditEngine/enums/CouponStatusEnum.d.ts +15 -0
- package/bin/creditEngine/enums/CouponStatusEnum.js +19 -0
- package/bin/creditEngine/enums/CreditApplicationStatusEnum.d.ts +19 -0
- package/bin/creditEngine/enums/CreditApplicationStatusEnum.js +23 -0
- package/bin/creditEngine/enums/CreditLevelEnum.d.ts +15 -0
- package/bin/creditEngine/enums/CreditLevelEnum.js +19 -0
- package/bin/creditEngine/enums/CreditStatusEnum.d.ts +17 -0
- package/bin/creditEngine/enums/CreditStatusEnum.js +21 -0
- package/bin/creditEngine/index.d.ts +10 -0
- package/bin/creditEngine/index.js +26 -0
- package/bin/index.d.ts +1 -0
- package/bin/index.js +19 -8
- package/bin/referral-business/enums/AgentRoleEnum.d.ts +1 -2
- package/bin/referral-business/enums/AgentRoleEnum.js +0 -1
- package/package.json +1 -1
- package/src/creditEngine/dtos/CreditDetailResponse.ts +18 -0
- package/src/creditEngine/dtos/CreditOriginationRequest.ts +19 -0
- package/src/creditEngine/dtos/CreditOriginationResponse.ts +10 -0
- package/src/creditEngine/dtos/CreditSignatureRequest.ts +14 -0
- package/src/creditEngine/dtos/DisbursementRequest.ts +27 -0
- package/src/creditEngine/dtos/PaymentScheduleItemResponse.ts +14 -0
- package/src/creditEngine/enums/CouponStatusEnum.ts +16 -0
- package/src/creditEngine/enums/CreditApplicationStatusEnum.ts +20 -0
- package/src/creditEngine/enums/CreditLevelEnum.ts +16 -0
- package/src/creditEngine/enums/CreditStatusEnum.ts +18 -0
- package/src/creditEngine/index.ts +12 -0
- package/src/index.ts +1 -0
- package/src/referral-business/enums/AgentRoleEnum.ts +0 -2
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
- package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
- package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
- package/bin/services/enums/ServiceProviderEnum.js +0 -9
|
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.CardUpdateKeyConstraint = exports.IsReasonRequiredForCancelledStatusConstraint = void 0;
|
|
10
|
+
exports.IsValueValid = IsValueValid;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const Status_1 = require("../enums/Status");
|
|
12
13
|
const UpdateKey_1 = require("../enums/UpdateKey");
|
|
@@ -70,4 +71,3 @@ function IsValueValid(validationOptions) {
|
|
|
70
71
|
});
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
exports.IsValueValid = IsValueValid;
|
|
@@ -6,7 +6,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.IsPhoneNumberConstraint = void 0;
|
|
10
|
+
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
10
11
|
const class_validator_1 = require("class-validator");
|
|
11
12
|
const regex_1 = require("../../helpers/constans/regex");
|
|
12
13
|
let IsPhoneNumberConstraint = class IsPhoneNumberConstraint {
|
|
@@ -36,4 +37,3 @@ function IsPhoneNumberFiado(validationOptions) {
|
|
|
36
37
|
});
|
|
37
38
|
};
|
|
38
39
|
}
|
|
39
|
-
exports.IsPhoneNumberFiado = IsPhoneNumberFiado;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response con el detalle completo de un credito LOAN.
|
|
3
|
+
*/
|
|
4
|
+
export declare class CreditDetailResponse {
|
|
5
|
+
creditId: string;
|
|
6
|
+
applicationId: string;
|
|
7
|
+
directoryId: string;
|
|
8
|
+
amountMxn: number;
|
|
9
|
+
termWeeks: number;
|
|
10
|
+
annualRate: number;
|
|
11
|
+
weeklyPaymentMxn: number;
|
|
12
|
+
status: string;
|
|
13
|
+
nextPaymentDate: string;
|
|
14
|
+
paidCoupons: number;
|
|
15
|
+
totalCoupons: number;
|
|
16
|
+
remainingBalanceMxn: number;
|
|
17
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditDetailResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response con el detalle completo de un credito LOAN.
|
|
6
|
+
*/
|
|
7
|
+
class CreditDetailResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.CreditDetailResponse = CreditDetailResponse;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreditOriginationRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para solicitar la originacion de un credito LOAN.
|
|
16
|
+
*/
|
|
17
|
+
class CreditOriginationRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.CreditOriginationRequest = CreditOriginationRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreditOriginationRequest.prototype, "directoryId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], CreditOriginationRequest.prototype, "offerId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
(0, class_validator_1.Min)(1),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], CreditOriginationRequest.prototype, "selectedTermWeeks", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditOriginationResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response de la solicitud de originacion de un credito LOAN.
|
|
6
|
+
*/
|
|
7
|
+
class CreditOriginationResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.CreditOriginationResponse = CreditOriginationResponse;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CreditSignatureRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para firmar o rechazar un contrato de credito LOAN.
|
|
16
|
+
*/
|
|
17
|
+
class CreditSignatureRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.CreditSignatureRequest = CreditSignatureRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CreditSignatureRequest.prototype, "directoryId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], CreditSignatureRequest.prototype, "accepted", void 0);
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.DisbursementRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request para solicitar el desembolso de un credito via credit-payment-business.
|
|
16
|
+
*/
|
|
17
|
+
class DisbursementRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.DisbursementRequest = DisbursementRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], DisbursementRequest.prototype, "applicationId", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsString)(),
|
|
27
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], DisbursementRequest.prototype, "directoryId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_validator_1.IsNumber)(),
|
|
32
|
+
(0, class_validator_1.Min)(0.01),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], DisbursementRequest.prototype, "amountMxn", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], DisbursementRequest.prototype, "creditId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], DisbursementRequest.prototype, "partnerId", void 0);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response de un item individual del calendario de pagos.
|
|
3
|
+
*/
|
|
4
|
+
export declare class PaymentScheduleItemResponse {
|
|
5
|
+
couponNumber: number;
|
|
6
|
+
dueDate: string;
|
|
7
|
+
principalMxn: number;
|
|
8
|
+
interestMxn: number;
|
|
9
|
+
totalMxn: number;
|
|
10
|
+
status: string;
|
|
11
|
+
paidAmountMxn: number;
|
|
12
|
+
remainingBalanceMxn: number;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentScheduleItemResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response de un item individual del calendario de pagos.
|
|
6
|
+
*/
|
|
7
|
+
class PaymentScheduleItemResponse {
|
|
8
|
+
}
|
|
9
|
+
exports.PaymentScheduleItemResponse = PaymentScheduleItemResponse;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados posibles de un cupon del calendario de pagos.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} PENDING - Cupon pendiente de cobro
|
|
6
|
+
* @property {string} PARTIAL - Cupon parcialmente pagado
|
|
7
|
+
* @property {string} PAID - Cupon completamente pagado
|
|
8
|
+
* @property {string} OVERDUE - Cupon vencido sin pago completo
|
|
9
|
+
*/
|
|
10
|
+
export declare enum CouponStatusEnum {
|
|
11
|
+
PENDING = "PENDING",
|
|
12
|
+
PARTIAL = "PARTIAL",
|
|
13
|
+
PAID = "PAID",
|
|
14
|
+
OVERDUE = "OVERDUE"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CouponStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estados posibles de un cupon del calendario de pagos.
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} PENDING - Cupon pendiente de cobro
|
|
9
|
+
* @property {string} PARTIAL - Cupon parcialmente pagado
|
|
10
|
+
* @property {string} PAID - Cupon completamente pagado
|
|
11
|
+
* @property {string} OVERDUE - Cupon vencido sin pago completo
|
|
12
|
+
*/
|
|
13
|
+
var CouponStatusEnum;
|
|
14
|
+
(function (CouponStatusEnum) {
|
|
15
|
+
CouponStatusEnum["PENDING"] = "PENDING";
|
|
16
|
+
CouponStatusEnum["PARTIAL"] = "PARTIAL";
|
|
17
|
+
CouponStatusEnum["PAID"] = "PAID";
|
|
18
|
+
CouponStatusEnum["OVERDUE"] = "OVERDUE";
|
|
19
|
+
})(CouponStatusEnum || (exports.CouponStatusEnum = CouponStatusEnum = {}));
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados posibles de una solicitud de credito LOAN.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} CREATED - Solicitud creada, pendiente de firma
|
|
6
|
+
* @property {string} PENDING_SIGNATURE - Contrato generado, esperando firma del cliente
|
|
7
|
+
* @property {string} SIGNED - Cliente firmo el contrato
|
|
8
|
+
* @property {string} DISBURSED - Dinero desembolsado a PagoConfiado
|
|
9
|
+
* @property {string} EXPIRED - Solicitud expiro sin firma
|
|
10
|
+
* @property {string} CANCELLED - Solicitud cancelada por el cliente
|
|
11
|
+
*/
|
|
12
|
+
export declare enum CreditApplicationStatusEnum {
|
|
13
|
+
CREATED = "CREATED",
|
|
14
|
+
PENDING_SIGNATURE = "PENDING_SIGNATURE",
|
|
15
|
+
SIGNED = "SIGNED",
|
|
16
|
+
DISBURSED = "DISBURSED",
|
|
17
|
+
EXPIRED = "EXPIRED",
|
|
18
|
+
CANCELLED = "CANCELLED"
|
|
19
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditApplicationStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estados posibles de una solicitud de credito LOAN.
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} CREATED - Solicitud creada, pendiente de firma
|
|
9
|
+
* @property {string} PENDING_SIGNATURE - Contrato generado, esperando firma del cliente
|
|
10
|
+
* @property {string} SIGNED - Cliente firmo el contrato
|
|
11
|
+
* @property {string} DISBURSED - Dinero desembolsado a PagoConfiado
|
|
12
|
+
* @property {string} EXPIRED - Solicitud expiro sin firma
|
|
13
|
+
* @property {string} CANCELLED - Solicitud cancelada por el cliente
|
|
14
|
+
*/
|
|
15
|
+
var CreditApplicationStatusEnum;
|
|
16
|
+
(function (CreditApplicationStatusEnum) {
|
|
17
|
+
CreditApplicationStatusEnum["CREATED"] = "CREATED";
|
|
18
|
+
CreditApplicationStatusEnum["PENDING_SIGNATURE"] = "PENDING_SIGNATURE";
|
|
19
|
+
CreditApplicationStatusEnum["SIGNED"] = "SIGNED";
|
|
20
|
+
CreditApplicationStatusEnum["DISBURSED"] = "DISBURSED";
|
|
21
|
+
CreditApplicationStatusEnum["EXPIRED"] = "EXPIRED";
|
|
22
|
+
CreditApplicationStatusEnum["CANCELLED"] = "CANCELLED";
|
|
23
|
+
})(CreditApplicationStatusEnum || (exports.CreditApplicationStatusEnum = CreditApplicationStatusEnum = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Niveles de credito del cliente basado en su perfil financiero.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} BRONZE - Nivel basico
|
|
6
|
+
* @property {string} SILVER - Nivel intermedio
|
|
7
|
+
* @property {string} GOLD - Nivel avanzado
|
|
8
|
+
* @property {string} PLATINUM - Nivel premium
|
|
9
|
+
*/
|
|
10
|
+
export declare enum CreditLevelEnum {
|
|
11
|
+
BRONZE = "BRONZE",
|
|
12
|
+
SILVER = "SILVER",
|
|
13
|
+
GOLD = "GOLD",
|
|
14
|
+
PLATINUM = "PLATINUM"
|
|
15
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditLevelEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Niveles de credito del cliente basado en su perfil financiero.
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} BRONZE - Nivel basico
|
|
9
|
+
* @property {string} SILVER - Nivel intermedio
|
|
10
|
+
* @property {string} GOLD - Nivel avanzado
|
|
11
|
+
* @property {string} PLATINUM - Nivel premium
|
|
12
|
+
*/
|
|
13
|
+
var CreditLevelEnum;
|
|
14
|
+
(function (CreditLevelEnum) {
|
|
15
|
+
CreditLevelEnum["BRONZE"] = "BRONZE";
|
|
16
|
+
CreditLevelEnum["SILVER"] = "SILVER";
|
|
17
|
+
CreditLevelEnum["GOLD"] = "GOLD";
|
|
18
|
+
CreditLevelEnum["PLATINUM"] = "PLATINUM";
|
|
19
|
+
})(CreditLevelEnum || (exports.CreditLevelEnum = CreditLevelEnum = {}));
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados posibles de un credito LOAN activo.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} ACTIVE - Credito vigente con pagos al corriente
|
|
6
|
+
* @property {string} DELINQUENT - Credito con pagos atrasados
|
|
7
|
+
* @property {string} DEFAULTED - Credito en incumplimiento
|
|
8
|
+
* @property {string} RETURNED - Credito devuelto/castigado
|
|
9
|
+
* @property {string} PAID_OFF - Credito liquidado completamente
|
|
10
|
+
*/
|
|
11
|
+
export declare enum CreditStatusEnum {
|
|
12
|
+
ACTIVE = "ACTIVE",
|
|
13
|
+
DELINQUENT = "DELINQUENT",
|
|
14
|
+
DEFAULTED = "DEFAULTED",
|
|
15
|
+
RETURNED = "RETURNED",
|
|
16
|
+
PAID_OFF = "PAID_OFF"
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CreditStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estados posibles de un credito LOAN activo.
|
|
6
|
+
* @enum {string}
|
|
7
|
+
*
|
|
8
|
+
* @property {string} ACTIVE - Credito vigente con pagos al corriente
|
|
9
|
+
* @property {string} DELINQUENT - Credito con pagos atrasados
|
|
10
|
+
* @property {string} DEFAULTED - Credito en incumplimiento
|
|
11
|
+
* @property {string} RETURNED - Credito devuelto/castigado
|
|
12
|
+
* @property {string} PAID_OFF - Credito liquidado completamente
|
|
13
|
+
*/
|
|
14
|
+
var CreditStatusEnum;
|
|
15
|
+
(function (CreditStatusEnum) {
|
|
16
|
+
CreditStatusEnum["ACTIVE"] = "ACTIVE";
|
|
17
|
+
CreditStatusEnum["DELINQUENT"] = "DELINQUENT";
|
|
18
|
+
CreditStatusEnum["DEFAULTED"] = "DEFAULTED";
|
|
19
|
+
CreditStatusEnum["RETURNED"] = "RETURNED";
|
|
20
|
+
CreditStatusEnum["PAID_OFF"] = "PAID_OFF";
|
|
21
|
+
})(CreditStatusEnum || (exports.CreditStatusEnum = CreditStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './enums/CreditApplicationStatusEnum';
|
|
2
|
+
export * from './enums/CreditStatusEnum';
|
|
3
|
+
export * from './enums/CouponStatusEnum';
|
|
4
|
+
export * from './enums/CreditLevelEnum';
|
|
5
|
+
export * from './dtos/CreditOriginationRequest';
|
|
6
|
+
export * from './dtos/CreditOriginationResponse';
|
|
7
|
+
export * from './dtos/CreditSignatureRequest';
|
|
8
|
+
export * from './dtos/CreditDetailResponse';
|
|
9
|
+
export * from './dtos/PaymentScheduleItemResponse';
|
|
10
|
+
export * from './dtos/DisbursementRequest';
|
|
@@ -0,0 +1,26 @@
|
|
|
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("./enums/CreditApplicationStatusEnum"), exports);
|
|
18
|
+
__exportStar(require("./enums/CreditStatusEnum"), exports);
|
|
19
|
+
__exportStar(require("./enums/CouponStatusEnum"), exports);
|
|
20
|
+
__exportStar(require("./enums/CreditLevelEnum"), exports);
|
|
21
|
+
__exportStar(require("./dtos/CreditOriginationRequest"), exports);
|
|
22
|
+
__exportStar(require("./dtos/CreditOriginationResponse"), exports);
|
|
23
|
+
__exportStar(require("./dtos/CreditSignatureRequest"), exports);
|
|
24
|
+
__exportStar(require("./dtos/CreditDetailResponse"), exports);
|
|
25
|
+
__exportStar(require("./dtos/PaymentScheduleItemResponse"), exports);
|
|
26
|
+
__exportStar(require("./dtos/DisbursementRequest"), exports);
|
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -15,16 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
|
|
27
|
-
exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
|
|
37
|
+
exports.CreditEngine = exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
|
|
28
38
|
exports.Crypto = __importStar(require("./crypto"));
|
|
29
39
|
exports.Account = __importStar(require("./account"));
|
|
30
40
|
exports.Activity = __importStar(require("./activity"));
|
|
@@ -85,3 +95,4 @@ exports.ZendeskMessaging = __importStar(require("./zendeskMessaging"));
|
|
|
85
95
|
exports.ReferralBusiness = __importStar(require("./referral-business"));
|
|
86
96
|
exports.ComissionBusiness = __importStar(require("./comission-business"));
|
|
87
97
|
exports.Credit = __importStar(require("./credit"));
|
|
98
|
+
exports.CreditEngine = __importStar(require("./creditEngine"));
|
package/package.json
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Response con el detalle completo de un credito LOAN.
|
|
4
|
+
*/
|
|
5
|
+
export class CreditDetailResponse {
|
|
6
|
+
creditId!: string;
|
|
7
|
+
applicationId!: string;
|
|
8
|
+
directoryId!: string;
|
|
9
|
+
amountMxn!: number;
|
|
10
|
+
termWeeks!: number;
|
|
11
|
+
annualRate!: number;
|
|
12
|
+
weeklyPaymentMxn!: number;
|
|
13
|
+
status!: string;
|
|
14
|
+
nextPaymentDate!: string;
|
|
15
|
+
paidCoupons!: number;
|
|
16
|
+
totalCoupons!: number;
|
|
17
|
+
remainingBalanceMxn!: number;
|
|
18
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IsNotEmpty, IsNumber, IsString, Min } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para solicitar la originacion de un credito LOAN.
|
|
5
|
+
*/
|
|
6
|
+
export class CreditOriginationRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
directoryId!: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
offerId!: string;
|
|
15
|
+
|
|
16
|
+
@IsNumber()
|
|
17
|
+
@Min(1)
|
|
18
|
+
selectedTermWeeks!: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IsBoolean, IsNotEmpty, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para firmar o rechazar un contrato de credito LOAN.
|
|
5
|
+
*/
|
|
6
|
+
export class CreditSignatureRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
directoryId!: string;
|
|
11
|
+
|
|
12
|
+
@IsBoolean()
|
|
13
|
+
accepted!: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IsNotEmpty, IsNumber, IsString, Min } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para solicitar el desembolso de un credito via credit-payment-business.
|
|
5
|
+
*/
|
|
6
|
+
export class DisbursementRequest {
|
|
7
|
+
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
applicationId!: string;
|
|
11
|
+
|
|
12
|
+
@IsString()
|
|
13
|
+
@IsNotEmpty()
|
|
14
|
+
directoryId!: string;
|
|
15
|
+
|
|
16
|
+
@IsNumber()
|
|
17
|
+
@Min(0.01)
|
|
18
|
+
amountMxn!: number;
|
|
19
|
+
|
|
20
|
+
@IsString()
|
|
21
|
+
@IsNotEmpty()
|
|
22
|
+
creditId!: string;
|
|
23
|
+
|
|
24
|
+
@IsString()
|
|
25
|
+
@IsNotEmpty()
|
|
26
|
+
partnerId!: string;
|
|
27
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Response de un item individual del calendario de pagos.
|
|
4
|
+
*/
|
|
5
|
+
export class PaymentScheduleItemResponse {
|
|
6
|
+
couponNumber!: number;
|
|
7
|
+
dueDate!: string;
|
|
8
|
+
principalMxn!: number;
|
|
9
|
+
interestMxn!: number;
|
|
10
|
+
totalMxn!: number;
|
|
11
|
+
status!: string;
|
|
12
|
+
paidAmountMxn!: number;
|
|
13
|
+
remainingBalanceMxn!: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Estados posibles de un cupon del calendario de pagos.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*
|
|
6
|
+
* @property {string} PENDING - Cupon pendiente de cobro
|
|
7
|
+
* @property {string} PARTIAL - Cupon parcialmente pagado
|
|
8
|
+
* @property {string} PAID - Cupon completamente pagado
|
|
9
|
+
* @property {string} OVERDUE - Cupon vencido sin pago completo
|
|
10
|
+
*/
|
|
11
|
+
export enum CouponStatusEnum {
|
|
12
|
+
PENDING = 'PENDING',
|
|
13
|
+
PARTIAL = 'PARTIAL',
|
|
14
|
+
PAID = 'PAID',
|
|
15
|
+
OVERDUE = 'OVERDUE',
|
|
16
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Estados posibles de una solicitud de credito LOAN.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*
|
|
6
|
+
* @property {string} CREATED - Solicitud creada, pendiente de firma
|
|
7
|
+
* @property {string} PENDING_SIGNATURE - Contrato generado, esperando firma del cliente
|
|
8
|
+
* @property {string} SIGNED - Cliente firmo el contrato
|
|
9
|
+
* @property {string} DISBURSED - Dinero desembolsado a PagoConfiado
|
|
10
|
+
* @property {string} EXPIRED - Solicitud expiro sin firma
|
|
11
|
+
* @property {string} CANCELLED - Solicitud cancelada por el cliente
|
|
12
|
+
*/
|
|
13
|
+
export enum CreditApplicationStatusEnum {
|
|
14
|
+
CREATED = 'CREATED',
|
|
15
|
+
PENDING_SIGNATURE = 'PENDING_SIGNATURE',
|
|
16
|
+
SIGNED = 'SIGNED',
|
|
17
|
+
DISBURSED = 'DISBURSED',
|
|
18
|
+
EXPIRED = 'EXPIRED',
|
|
19
|
+
CANCELLED = 'CANCELLED',
|
|
20
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Niveles de credito del cliente basado en su perfil financiero.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*
|
|
6
|
+
* @property {string} BRONZE - Nivel basico
|
|
7
|
+
* @property {string} SILVER - Nivel intermedio
|
|
8
|
+
* @property {string} GOLD - Nivel avanzado
|
|
9
|
+
* @property {string} PLATINUM - Nivel premium
|
|
10
|
+
*/
|
|
11
|
+
export enum CreditLevelEnum {
|
|
12
|
+
BRONZE = 'BRONZE',
|
|
13
|
+
SILVER = 'SILVER',
|
|
14
|
+
GOLD = 'GOLD',
|
|
15
|
+
PLATINUM = 'PLATINUM',
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
* Estados posibles de un credito LOAN activo.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*
|
|
6
|
+
* @property {string} ACTIVE - Credito vigente con pagos al corriente
|
|
7
|
+
* @property {string} DELINQUENT - Credito con pagos atrasados
|
|
8
|
+
* @property {string} DEFAULTED - Credito en incumplimiento
|
|
9
|
+
* @property {string} RETURNED - Credito devuelto/castigado
|
|
10
|
+
* @property {string} PAID_OFF - Credito liquidado completamente
|
|
11
|
+
*/
|
|
12
|
+
export enum CreditStatusEnum {
|
|
13
|
+
ACTIVE = 'ACTIVE',
|
|
14
|
+
DELINQUENT = 'DELINQUENT',
|
|
15
|
+
DEFAULTED = 'DEFAULTED',
|
|
16
|
+
RETURNED = 'RETURNED',
|
|
17
|
+
PAID_OFF = 'PAID_OFF',
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export * from './enums/CreditApplicationStatusEnum';
|
|
4
|
+
export * from './enums/CreditStatusEnum';
|
|
5
|
+
export * from './enums/CouponStatusEnum';
|
|
6
|
+
export * from './enums/CreditLevelEnum';
|
|
7
|
+
export * from './dtos/CreditOriginationRequest';
|
|
8
|
+
export * from './dtos/CreditOriginationResponse';
|
|
9
|
+
export * from './dtos/CreditSignatureRequest';
|
|
10
|
+
export * from './dtos/CreditDetailResponse';
|
|
11
|
+
export * from './dtos/PaymentScheduleItemResponse';
|
|
12
|
+
export * from './dtos/DisbursementRequest';
|
package/src/index.ts
CHANGED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IdentificationDocument } from "../../identity";
|
|
2
|
-
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
-
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
-
documentInfo: IdentificationDocument;
|
|
5
|
-
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
-
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
-
}
|
|
6
|
-
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Company } from "../../company";
|
|
2
|
-
import { Provider } from "../../provider";
|
|
3
|
-
import { ServiceTypeEnum } from "../../services";
|
|
4
|
-
import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
|
|
5
|
-
export declare class GetPriceListDirectoriesResponse {
|
|
6
|
-
serviceId: string;
|
|
7
|
-
company: Company;
|
|
8
|
-
provider: Provider;
|
|
9
|
-
type: ServiceTypeEnum;
|
|
10
|
-
basePrice: number;
|
|
11
|
-
recurrence: ServiceRecurrenceEnum;
|
|
12
|
-
currencyId: string;
|
|
13
|
-
fees: any;
|
|
14
|
-
taxes: any;
|
|
15
|
-
globalDiscounts: {
|
|
16
|
-
discountType: string;
|
|
17
|
-
discountValue: number;
|
|
18
|
-
}[];
|
|
19
|
-
directories: {
|
|
20
|
-
directoryId: string;
|
|
21
|
-
appliedDiscounts: {
|
|
22
|
-
discountType: string;
|
|
23
|
-
discountValue: number;
|
|
24
|
-
source: string;
|
|
25
|
-
referenceId: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceProviderEnum = void 0;
|
|
4
|
-
var ServiceProviderEnum;
|
|
5
|
-
(function (ServiceProviderEnum) {
|
|
6
|
-
ServiceProviderEnum["CP"] = "CP";
|
|
7
|
-
ServiceProviderEnum["TERN"] = "TERN";
|
|
8
|
-
ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
|
|
9
|
-
})(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));
|