@fiado/type-kit 3.196.0 → 3.198.0
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/creditEngine/dtos/AnticipatedPaymentQuote.d.ts +47 -0
- package/bin/creditEngine/dtos/AnticipatedPaymentQuote.js +22 -0
- package/bin/creditEngine/index.d.ts +1 -0
- package/bin/creditEngine/index.js +1 -0
- package/bin/index.d.ts +2 -0
- package/bin/index.js +8 -1
- package/bin/loanCredit/dtos/ActivationChecklist.d.ts +11 -0
- package/bin/loanCredit/dtos/ActivationChecklist.js +42 -0
- package/bin/loanCredit/dtos/LoanBeneficiary.d.ts +8 -0
- package/bin/{platformRbac/dtos/ResendOtpRequest.js → loanCredit/dtos/LoanBeneficiary.js} +14 -12
- package/bin/loanCredit/dtos/LoanBorrower.d.ts +22 -0
- package/bin/loanCredit/dtos/LoanBorrower.js +82 -0
- package/bin/loanCredit/dtos/LoanCredit.d.ts +50 -0
- package/bin/loanCredit/dtos/LoanCredit.js +174 -0
- package/bin/loanCredit/dtos/LoanInstallment.d.ts +27 -0
- package/bin/loanCredit/dtos/LoanInstallment.js +97 -0
- package/bin/loanCredit/dtos/requests/ChangeLoanCreditStatusRequest.d.ts +12 -0
- package/bin/{platformRbac/dtos/ResendSelfRegisterOtpRequest.js → loanCredit/dtos/requests/ChangeLoanCreditStatusRequest.js} +13 -13
- package/bin/loanCredit/dtos/requests/OriginateLoanCreditRequest.d.ts +22 -0
- package/bin/loanCredit/dtos/requests/OriginateLoanCreditRequest.js +84 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
- package/bin/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.d.ts +14 -0
- package/bin/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.js +57 -0
- package/bin/loanCredit/dtos/responses/LoanBorrowerResponse.d.ts +21 -0
- package/bin/loanCredit/dtos/responses/LoanBorrowerResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanCreditResponse.d.ts +38 -0
- package/bin/loanCredit/dtos/responses/LoanCreditResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanInstallmentResponse.d.ts +17 -0
- package/bin/loanCredit/dtos/responses/LoanInstallmentResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/OriginateLoanCreditResponse.d.ts +10 -0
- package/bin/loanCredit/dtos/responses/OriginateLoanCreditResponse.js +2 -0
- package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
- package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
- package/bin/loanCredit/enums/LoanCreditStatusEnum.d.ts +21 -0
- package/bin/loanCredit/enums/LoanCreditStatusEnum.js +25 -0
- package/bin/loanCredit/enums/LoanInstallmentStatusEnum.d.ts +11 -0
- package/bin/loanCredit/enums/LoanInstallmentStatusEnum.js +15 -0
- package/bin/loanCredit/index.d.ts +16 -0
- package/bin/loanCredit/index.js +36 -0
- package/bin/loanScoring/dtos/SciBreakdown.d.ts +29 -0
- package/bin/loanScoring/dtos/SciBreakdown.js +2 -0
- package/bin/loanScoring/dtos/ScoringDecision.d.ts +29 -0
- package/bin/loanScoring/dtos/ScoringDecision.js +2 -0
- package/bin/loanScoring/dtos/ScoringOffer.d.ts +18 -0
- package/bin/loanScoring/dtos/ScoringOffer.js +2 -0
- package/bin/loanScoring/dtos/requests/EvaluateSciRequest.d.ts +23 -0
- package/bin/loanScoring/dtos/requests/EvaluateSciRequest.js +54 -0
- package/bin/loanScoring/dtos/requests/SciInternalHistoryInput.d.ts +19 -0
- package/bin/loanScoring/dtos/requests/SciInternalHistoryInput.js +51 -0
- package/bin/loanScoring/dtos/responses/EvaluateSciResponse.d.ts +24 -0
- package/bin/loanScoring/dtos/responses/EvaluateSciResponse.js +2 -0
- package/bin/loanScoring/dtos/responses/SciEvaluationResponse.d.ts +28 -0
- package/bin/loanScoring/dtos/responses/SciEvaluationResponse.js +2 -0
- package/bin/loanScoring/enums/ClientLevelEnum.d.ts +13 -0
- package/bin/loanScoring/enums/ClientLevelEnum.js +17 -0
- package/bin/loanScoring/enums/SciLayer2SourceEnum.d.ts +11 -0
- package/bin/loanScoring/enums/SciLayer2SourceEnum.js +15 -0
- package/bin/loanScoring/enums/ScoringDecisionEnum.d.ts +14 -0
- package/bin/loanScoring/enums/ScoringDecisionEnum.js +18 -0
- package/bin/loanScoring/enums/ScoringProviderEnum.d.ts +12 -0
- package/bin/loanScoring/enums/ScoringProviderEnum.js +16 -0
- package/bin/loanScoring/index.d.ts +11 -0
- package/bin/loanScoring/index.js +31 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +6 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +31 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +6 -0
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +11 -0
- package/bin/walletFunding/dtos/CancelFundingRequest.js +33 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +14 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.js +12 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
- package/package.json +1 -1
- package/src/creditEngine/dtos/AnticipatedPaymentQuote.ts +56 -0
- package/src/creditEngine/index.ts +1 -0
- package/src/index.ts +7 -0
- package/src/loanCredit/dtos/ActivationChecklist.ts +25 -0
- package/src/loanCredit/dtos/LoanBeneficiary.ts +22 -0
- package/src/loanCredit/dtos/LoanBorrower.ts +71 -0
- package/src/loanCredit/dtos/LoanCredit.ts +156 -0
- package/src/loanCredit/dtos/LoanInstallment.ts +75 -0
- package/src/loanCredit/dtos/requests/ChangeLoanCreditStatusRequest.ts +22 -0
- package/src/loanCredit/dtos/requests/OriginateLoanCreditRequest.ts +73 -0
- package/src/loanCredit/dtos/requests/UpdateActivationChecklistRequest.ts +29 -0
- package/src/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.ts +48 -0
- package/src/loanCredit/dtos/responses/LoanBorrowerResponse.ts +22 -0
- package/src/loanCredit/dtos/responses/LoanCreditResponse.ts +39 -0
- package/src/loanCredit/dtos/responses/LoanInstallmentResponse.ts +18 -0
- package/src/loanCredit/dtos/responses/OriginateLoanCreditResponse.ts +11 -0
- package/src/loanCredit/enums/ClientLevelEnum.ts +11 -0
- package/src/loanCredit/enums/LoanCreditStatusEnum.ts +21 -0
- package/src/loanCredit/enums/LoanInstallmentStatusEnum.ts +11 -0
- package/src/loanCredit/index.ts +23 -0
- package/src/loanScoring/dtos/SciBreakdown.ts +33 -0
- package/src/loanScoring/dtos/ScoringDecision.ts +30 -0
- package/src/loanScoring/dtos/ScoringOffer.ts +18 -0
- package/src/loanScoring/dtos/requests/EvaluateSciRequest.ts +43 -0
- package/src/loanScoring/dtos/requests/SciInternalHistoryInput.ts +38 -0
- package/src/loanScoring/dtos/responses/EvaluateSciResponse.ts +25 -0
- package/src/loanScoring/dtos/responses/SciEvaluationResponse.ts +29 -0
- package/src/loanScoring/enums/ClientLevelEnum.ts +13 -0
- package/src/loanScoring/enums/SciLayer2SourceEnum.ts +11 -0
- package/src/loanScoring/enums/ScoringDecisionEnum.ts +14 -0
- package/src/loanScoring/enums/ScoringProviderEnum.ts +12 -0
- package/src/loanScoring/index.ts +18 -0
- package/bin/loanConfig/enums/ModifiableByRoleEnum.d.ts +0 -11
- package/bin/loanConfig/enums/ModifiableByRoleEnum.js +0 -15
- package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
- package/bin/places/dtos/CashInFeeDto.js +0 -12
- package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +0 -22
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +0 -11
|
@@ -0,0 +1,97 @@
|
|
|
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.LoanInstallment = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const regex_1 = require("../../helpers/constans/regex");
|
|
16
|
+
const LoanInstallmentStatusEnum_1 = require("../enums/LoanInstallmentStatusEnum");
|
|
17
|
+
/**
|
|
18
|
+
* LoanInstallment — cuota semanal del crédito (modelo-datos §5b). Montos en cents; el IVA (16%)
|
|
19
|
+
* aplica SOLO sobre el interés de la cuota (M2 §3.3). `dueDate` (YYYY-MM-DD) queda ausente hasta la
|
|
20
|
+
* activación: las fechas se fijan a partir del primer viernes después de `activatedAt` (05_MOTOR §7).
|
|
21
|
+
*/
|
|
22
|
+
class LoanInstallment {
|
|
23
|
+
}
|
|
24
|
+
exports.LoanInstallment = LoanInstallment;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], LoanInstallment.prototype, "creditId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, class_transformer_1.Expose)(),
|
|
32
|
+
(0, class_validator_1.IsInt)(),
|
|
33
|
+
(0, class_validator_1.Min)(1),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], LoanInstallment.prototype, "installmentNumber", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, class_transformer_1.Expose)(),
|
|
38
|
+
(0, class_validator_1.IsEnum)(LoanInstallmentStatusEnum_1.LoanInstallmentStatusEnum),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], LoanInstallment.prototype, "status", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], LoanInstallment.prototype, "dueDate", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_transformer_1.Expose)(),
|
|
49
|
+
(0, class_validator_1.IsInt)(),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], LoanInstallment.prototype, "capitalCents", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_validator_1.IsInt)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], LoanInstallment.prototype, "interestCents", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_transformer_1.Expose)(),
|
|
59
|
+
(0, class_validator_1.IsInt)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], LoanInstallment.prototype, "ivaCents", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_transformer_1.Expose)(),
|
|
64
|
+
(0, class_validator_1.IsInt)(),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], LoanInstallment.prototype, "totalCents", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_transformer_1.Expose)(),
|
|
69
|
+
(0, class_validator_1.IsInt)(),
|
|
70
|
+
__metadata("design:type", Number)
|
|
71
|
+
], LoanInstallment.prototype, "outstandingBalanceCents", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_transformer_1.Expose)(),
|
|
74
|
+
(0, class_validator_1.IsOptional)(),
|
|
75
|
+
(0, class_validator_1.Matches)(regex_1.regexIso8601),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], LoanInstallment.prototype, "paidAt", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_transformer_1.Expose)(),
|
|
80
|
+
(0, class_validator_1.IsString)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], LoanInstallment.prototype, "createdBy", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, class_transformer_1.Expose)(),
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], LoanInstallment.prototype, "updatedBy", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, class_transformer_1.Expose)(),
|
|
90
|
+
(0, class_validator_1.Matches)(regex_1.regexIso8601),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], LoanInstallment.prototype, "createdAt", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, class_transformer_1.Expose)(),
|
|
95
|
+
(0, class_validator_1.Matches)(regex_1.regexIso8601),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], LoanInstallment.prototype, "updatedAt", void 0);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoanCreditStatusEnum } from '../../enums/LoanCreditStatusEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Body de PUT /credits/:creditId/status (loan-credit-business). Cambio MANUAL de estado (05_MOTOR
|
|
4
|
+
* §8.2 — solo admin). Transiciones válidas: PENDING_ACTIVATION→CANCELLED (siempre),
|
|
5
|
+
* ACTIVE→CANCELLED (solo dentro de la ventana de 7 días), ACTIVE→WRITTEN_OFF,
|
|
6
|
+
* IN_ARREARS→WRITTEN_OFF. Cualquier otra → 400 INVALID_TRANSITION.
|
|
7
|
+
*/
|
|
8
|
+
export declare class ChangeLoanCreditStatusRequest {
|
|
9
|
+
newStatus: LoanCreditStatusEnum;
|
|
10
|
+
/** Razón del cambio (obligatoria — va al audit trail). */
|
|
11
|
+
reason: string;
|
|
12
|
+
}
|
|
@@ -9,28 +9,28 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.ChangeLoanCreditStatusRequest = void 0;
|
|
13
13
|
const class_transformer_1 = require("class-transformer");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
+
const LoanCreditStatusEnum_1 = require("../../enums/LoanCreditStatusEnum");
|
|
15
16
|
/**
|
|
16
|
-
* Body
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* scopeRef, ni SelfRegisterVerifyOtpRequest, que exige otp).
|
|
17
|
+
* Body de PUT /credits/:creditId/status (loan-credit-business). Cambio MANUAL de estado (05_MOTOR
|
|
18
|
+
* §8.2 — solo admin). Transiciones válidas: PENDING_ACTIVATION→CANCELLED (siempre),
|
|
19
|
+
* ACTIVE→CANCELLED (solo dentro de la ventana de 7 días), ACTIVE→WRITTEN_OFF,
|
|
20
|
+
* IN_ARREARS→WRITTEN_OFF. Cualquier otra → 400 INVALID_TRANSITION.
|
|
21
21
|
*/
|
|
22
|
-
class
|
|
22
|
+
class ChangeLoanCreditStatusRequest {
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.ChangeLoanCreditStatusRequest = ChangeLoanCreditStatusRequest;
|
|
25
25
|
__decorate([
|
|
26
26
|
(0, class_transformer_1.Expose)(),
|
|
27
|
-
(0, class_validator_1.
|
|
28
|
-
(0, class_validator_1.IsNotEmpty)(),
|
|
27
|
+
(0, class_validator_1.IsEnum)(LoanCreditStatusEnum_1.LoanCreditStatusEnum),
|
|
29
28
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
29
|
+
], ChangeLoanCreditStatusRequest.prototype, "newStatus", void 0);
|
|
31
30
|
__decorate([
|
|
32
31
|
(0, class_transformer_1.Expose)(),
|
|
33
|
-
(0, class_validator_1.
|
|
32
|
+
(0, class_validator_1.IsString)(),
|
|
34
33
|
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.MaxLength)(500),
|
|
35
35
|
__metadata("design:type", String)
|
|
36
|
-
],
|
|
36
|
+
], ChangeLoanCreditStatusRequest.prototype, "reason", void 0);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ClientLevelEnum } from '../../enums/ClientLevelEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Body de POST /credits (loan-credit-business). Origina el crédito en `PENDING_ACTIVATION` y genera
|
|
4
|
+
* su plan de cuotas (amortización francesa + IVA 16% — M2 §3 / 05_MOTOR §4).
|
|
5
|
+
*
|
|
6
|
+
* Los términos financieros (`planId`, `termWeeks`, `tnaAnnual`) vienen de la cotización hecha con
|
|
7
|
+
* loan-offerings; el motor recalcula la tabla internamente (la cotización es informativa, el plan
|
|
8
|
+
* de cuotas del crédito lo genera y persiste este lambda).
|
|
9
|
+
*/
|
|
10
|
+
export declare class OriginateLoanCreditRequest {
|
|
11
|
+
borrowerId: string;
|
|
12
|
+
planId: string;
|
|
13
|
+
termWeeks: number;
|
|
14
|
+
equipmentPriceCents: number;
|
|
15
|
+
downPaymentCents: number;
|
|
16
|
+
/** TNA decimal (`2.30` = 230%). */
|
|
17
|
+
tnaAnnual: number;
|
|
18
|
+
/** SCI del cliente al originar (snapshot). */
|
|
19
|
+
sciAtOrigination?: number;
|
|
20
|
+
clientLevelAtOrigination?: ClientLevelEnum;
|
|
21
|
+
imei?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.OriginateLoanCreditRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const ClientLevelEnum_1 = require("../../enums/ClientLevelEnum");
|
|
16
|
+
/**
|
|
17
|
+
* Body de POST /credits (loan-credit-business). Origina el crédito en `PENDING_ACTIVATION` y genera
|
|
18
|
+
* su plan de cuotas (amortización francesa + IVA 16% — M2 §3 / 05_MOTOR §4).
|
|
19
|
+
*
|
|
20
|
+
* Los términos financieros (`planId`, `termWeeks`, `tnaAnnual`) vienen de la cotización hecha con
|
|
21
|
+
* loan-offerings; el motor recalcula la tabla internamente (la cotización es informativa, el plan
|
|
22
|
+
* de cuotas del crédito lo genera y persiste este lambda).
|
|
23
|
+
*/
|
|
24
|
+
class OriginateLoanCreditRequest {
|
|
25
|
+
}
|
|
26
|
+
exports.OriginateLoanCreditRequest = OriginateLoanCreditRequest;
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], OriginateLoanCreditRequest.prototype, "borrowerId", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_transformer_1.Expose)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], OriginateLoanCreditRequest.prototype, "planId", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsInt)(),
|
|
42
|
+
(0, class_validator_1.Min)(1),
|
|
43
|
+
(0, class_validator_1.Max)(104),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], OriginateLoanCreditRequest.prototype, "termWeeks", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_transformer_1.Expose)(),
|
|
48
|
+
(0, class_validator_1.IsInt)(),
|
|
49
|
+
(0, class_validator_1.Min)(1),
|
|
50
|
+
__metadata("design:type", Number)
|
|
51
|
+
], OriginateLoanCreditRequest.prototype, "equipmentPriceCents", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_transformer_1.Expose)(),
|
|
54
|
+
(0, class_validator_1.IsInt)(),
|
|
55
|
+
(0, class_validator_1.Min)(0),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], OriginateLoanCreditRequest.prototype, "downPaymentCents", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_transformer_1.Expose)(),
|
|
60
|
+
(0, class_validator_1.IsNumber)(),
|
|
61
|
+
(0, class_validator_1.Min)(0),
|
|
62
|
+
(0, class_validator_1.Max)(10),
|
|
63
|
+
__metadata("design:type", Number)
|
|
64
|
+
], OriginateLoanCreditRequest.prototype, "tnaAnnual", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, class_transformer_1.Expose)(),
|
|
67
|
+
(0, class_validator_1.IsOptional)(),
|
|
68
|
+
(0, class_validator_1.IsInt)(),
|
|
69
|
+
(0, class_validator_1.Min)(0),
|
|
70
|
+
(0, class_validator_1.Max)(100),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], OriginateLoanCreditRequest.prototype, "sciAtOrigination", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, class_transformer_1.Expose)(),
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsEnum)(ClientLevelEnum_1.ClientLevelEnum),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], OriginateLoanCreditRequest.prototype, "clientLevelAtOrigination", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_transformer_1.Expose)(),
|
|
81
|
+
(0, class_validator_1.IsOptional)(),
|
|
82
|
+
(0, class_validator_1.IsString)(),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], OriginateLoanCreditRequest.prototype, "imei", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
|
|
3
|
+
* cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
|
|
4
|
+
* (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
|
|
5
|
+
*/
|
|
6
|
+
export declare class UpdateActivationChecklistRequest {
|
|
7
|
+
downPayment?: boolean;
|
|
8
|
+
contractSigned?: boolean;
|
|
9
|
+
imeiEnrolled?: boolean;
|
|
10
|
+
lockVerified?: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
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.UpdateActivationChecklistRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/**
|
|
16
|
+
* Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
|
|
17
|
+
* cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
|
|
18
|
+
* (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
|
|
19
|
+
*/
|
|
20
|
+
class UpdateActivationChecklistRequest {
|
|
21
|
+
}
|
|
22
|
+
exports.UpdateActivationChecklistRequest = UpdateActivationChecklistRequest;
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_transformer_1.Expose)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], UpdateActivationChecklistRequest.prototype, "downPayment", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_transformer_1.Expose)(),
|
|
31
|
+
(0, class_validator_1.IsOptional)(),
|
|
32
|
+
(0, class_validator_1.IsBoolean)(),
|
|
33
|
+
__metadata("design:type", Boolean)
|
|
34
|
+
], UpdateActivationChecklistRequest.prototype, "contractSigned", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_transformer_1.Expose)(),
|
|
37
|
+
(0, class_validator_1.IsOptional)(),
|
|
38
|
+
(0, class_validator_1.IsBoolean)(),
|
|
39
|
+
__metadata("design:type", Boolean)
|
|
40
|
+
], UpdateActivationChecklistRequest.prototype, "imeiEnrolled", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_transformer_1.Expose)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsBoolean)(),
|
|
45
|
+
__metadata("design:type", Boolean)
|
|
46
|
+
], UpdateActivationChecklistRequest.prototype, "lockVerified", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ClientLevelEnum } from '../../enums/ClientLevelEnum';
|
|
2
|
+
import { LoanBeneficiary } from '../LoanBeneficiary';
|
|
3
|
+
/**
|
|
4
|
+
* Body de POST /borrowers y POST /private/borrowers (loan-credit-business).
|
|
5
|
+
* Upsert idempotente por `retailCustomerId`: si el borrower ya existe se actualizan los campos
|
|
6
|
+
* presentes; si no, se crea (mismo contrato que el consumidor de `CustomerKycVerifiedV1`).
|
|
7
|
+
*/
|
|
8
|
+
export declare class UpsertLoanBorrowerRequest {
|
|
9
|
+
retailCustomerId: string;
|
|
10
|
+
sciScore?: number;
|
|
11
|
+
clientLevel?: ClientLevelEnum;
|
|
12
|
+
bureauScore?: number;
|
|
13
|
+
beneficiary?: LoanBeneficiary;
|
|
14
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.UpsertLoanBorrowerRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const ClientLevelEnum_1 = require("../../enums/ClientLevelEnum");
|
|
16
|
+
const LoanBeneficiary_1 = require("../LoanBeneficiary");
|
|
17
|
+
/**
|
|
18
|
+
* Body de POST /borrowers y POST /private/borrowers (loan-credit-business).
|
|
19
|
+
* Upsert idempotente por `retailCustomerId`: si el borrower ya existe se actualizan los campos
|
|
20
|
+
* presentes; si no, se crea (mismo contrato que el consumidor de `CustomerKycVerifiedV1`).
|
|
21
|
+
*/
|
|
22
|
+
class UpsertLoanBorrowerRequest {
|
|
23
|
+
}
|
|
24
|
+
exports.UpsertLoanBorrowerRequest = UpsertLoanBorrowerRequest;
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_transformer_1.Expose)(),
|
|
27
|
+
(0, class_validator_1.IsString)(),
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], UpsertLoanBorrowerRequest.prototype, "retailCustomerId", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, class_transformer_1.Expose)(),
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsInt)(),
|
|
35
|
+
(0, class_validator_1.Min)(0),
|
|
36
|
+
(0, class_validator_1.Max)(100),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], UpsertLoanBorrowerRequest.prototype, "sciScore", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsEnum)(ClientLevelEnum_1.ClientLevelEnum),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], UpsertLoanBorrowerRequest.prototype, "clientLevel", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_transformer_1.Expose)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
(0, class_validator_1.IsInt)(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], UpsertLoanBorrowerRequest.prototype, "bureauScore", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_transformer_1.Expose)(),
|
|
53
|
+
(0, class_validator_1.IsOptional)(),
|
|
54
|
+
(0, class_validator_1.ValidateNested)(),
|
|
55
|
+
(0, class_transformer_1.Type)(() => LoanBeneficiary_1.LoanBeneficiary),
|
|
56
|
+
__metadata("design:type", LoanBeneficiary_1.LoanBeneficiary)
|
|
57
|
+
], UpsertLoanBorrowerRequest.prototype, "beneficiary", void 0);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ClientLevelEnum } from '../../enums/ClientLevelEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Response de los endpoints de LoanBorrower (loan-credit-business). Interface plain (las salidas
|
|
4
|
+
* solo se tipan, no se validan en runtime).
|
|
5
|
+
*/
|
|
6
|
+
export interface LoanBorrowerResponse {
|
|
7
|
+
borrowerId: string;
|
|
8
|
+
retailCustomerId: string;
|
|
9
|
+
sciScore?: number;
|
|
10
|
+
clientLevel?: ClientLevelEnum;
|
|
11
|
+
bureauScore?: number;
|
|
12
|
+
beneficiary?: {
|
|
13
|
+
fullName: string;
|
|
14
|
+
relationship?: string;
|
|
15
|
+
phone?: string;
|
|
16
|
+
};
|
|
17
|
+
createdBy: string;
|
|
18
|
+
updatedBy: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ClientLevelEnum } from '../../enums/ClientLevelEnum';
|
|
2
|
+
import { LoanCreditStatusEnum } from '../../enums/LoanCreditStatusEnum';
|
|
3
|
+
/**
|
|
4
|
+
* Response de los endpoints de LoanCredit (loan-credit-business). Montos en cents; TNA decimal.
|
|
5
|
+
*/
|
|
6
|
+
export interface LoanCreditResponse {
|
|
7
|
+
creditId: string;
|
|
8
|
+
borrowerId: string;
|
|
9
|
+
status: LoanCreditStatusEnum;
|
|
10
|
+
planId: string;
|
|
11
|
+
termWeeks: number;
|
|
12
|
+
equipmentPriceCents: number;
|
|
13
|
+
downPaymentCents: number;
|
|
14
|
+
financedCapitalCents: number;
|
|
15
|
+
tnaAnnual: number;
|
|
16
|
+
weeklyPaymentCents: number;
|
|
17
|
+
weeklyPaymentWithIvaCents: number;
|
|
18
|
+
totalInterestCents: number;
|
|
19
|
+
totalIvaCents: number;
|
|
20
|
+
totalToPayCents: number;
|
|
21
|
+
imei?: string;
|
|
22
|
+
activationChecklist: {
|
|
23
|
+
downPayment: boolean;
|
|
24
|
+
contractSigned: boolean;
|
|
25
|
+
imeiEnrolled: boolean;
|
|
26
|
+
lockVerified: boolean;
|
|
27
|
+
};
|
|
28
|
+
sciAtOrigination?: number;
|
|
29
|
+
clientLevelAtOrigination?: ClientLevelEnum;
|
|
30
|
+
activatedAt?: string;
|
|
31
|
+
voluntaryCancelDeadline?: string;
|
|
32
|
+
firstDueDate?: string;
|
|
33
|
+
lastDueDate?: string;
|
|
34
|
+
createdBy: string;
|
|
35
|
+
updatedBy: string;
|
|
36
|
+
createdAt: string;
|
|
37
|
+
updatedAt: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LoanInstallmentStatusEnum } from '../../enums/LoanInstallmentStatusEnum';
|
|
2
|
+
/**
|
|
3
|
+
* Response de una cuota del plan de pagos (loan-credit-business). Montos en cents; el IVA (16%)
|
|
4
|
+
* aplica solo sobre el interés de la cuota.
|
|
5
|
+
*/
|
|
6
|
+
export interface LoanInstallmentResponse {
|
|
7
|
+
creditId: string;
|
|
8
|
+
installmentNumber: number;
|
|
9
|
+
status: LoanInstallmentStatusEnum;
|
|
10
|
+
dueDate?: string;
|
|
11
|
+
capitalCents: number;
|
|
12
|
+
interestCents: number;
|
|
13
|
+
ivaCents: number;
|
|
14
|
+
totalCents: number;
|
|
15
|
+
outstandingBalanceCents: number;
|
|
16
|
+
paidAt?: string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LoanCreditResponse } from './LoanCreditResponse';
|
|
2
|
+
import { LoanInstallmentResponse } from './LoanInstallmentResponse';
|
|
3
|
+
/**
|
|
4
|
+
* Response de POST /credits (loan-credit-business): el crédito recién originado en
|
|
5
|
+
* `PENDING_ACTIVATION` + su plan de cuotas completo (las fechas se fijan al activar).
|
|
6
|
+
*/
|
|
7
|
+
export interface OriginateLoanCreditResponse {
|
|
8
|
+
credit: LoanCreditResponse;
|
|
9
|
+
installments: LoanInstallmentResponse[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
|
|
3
|
+
* Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
|
|
4
|
+
* un CLIENTE nunca es `ALL`.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export declare enum ClientLevelEnum {
|
|
8
|
+
BRONZE = "BRONZE",
|
|
9
|
+
SILVER = "SILVER",
|
|
10
|
+
GOLD = "GOLD"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientLevelEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
|
|
6
|
+
* Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
|
|
7
|
+
* un CLIENTE nunca es `ALL`.
|
|
8
|
+
* @enum {string}
|
|
9
|
+
*/
|
|
10
|
+
var ClientLevelEnum;
|
|
11
|
+
(function (ClientLevelEnum) {
|
|
12
|
+
ClientLevelEnum["BRONZE"] = "BRONZE";
|
|
13
|
+
ClientLevelEnum["SILVER"] = "SILVER";
|
|
14
|
+
ClientLevelEnum["GOLD"] = "GOLD";
|
|
15
|
+
})(ClientLevelEnum || (exports.ClientLevelEnum = ClientLevelEnum = {}));
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado del crédito SOFOM SureKeep (M2 §10 — ciclo de vida).
|
|
3
|
+
*
|
|
4
|
+
* `PENDING_ACTIVATION` (pendiente_activacion) → condiciones en proceso, reanudable, caduca a 30 días.
|
|
5
|
+
* `ACTIVE` (activo) → vigente, al corriente.
|
|
6
|
+
* `IN_ARREARS` (en_mora) → cuotas vencidas, dispositivo bloqueado.
|
|
7
|
+
* `SETTLED` (liquidado) → saldo pagado; historial positivo. Final.
|
|
8
|
+
* `CANCELLED` (cancelado) → cancelación voluntaria (ventana 7 días); enganche devuelto. Final.
|
|
9
|
+
* `DISCARDED` (descartado) → nunca se activó (caducó a 30 días). Sin efecto. Final.
|
|
10
|
+
* `WRITTEN_OFF` (baja_contable) → 180 días sin pago. Se desbloquea si paga. Final.
|
|
11
|
+
* @enum {string}
|
|
12
|
+
*/
|
|
13
|
+
export declare enum LoanCreditStatusEnum {
|
|
14
|
+
PENDING_ACTIVATION = "PENDING_ACTIVATION",
|
|
15
|
+
ACTIVE = "ACTIVE",
|
|
16
|
+
IN_ARREARS = "IN_ARREARS",
|
|
17
|
+
SETTLED = "SETTLED",
|
|
18
|
+
CANCELLED = "CANCELLED",
|
|
19
|
+
DISCARDED = "DISCARDED",
|
|
20
|
+
WRITTEN_OFF = "WRITTEN_OFF"
|
|
21
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoanCreditStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estado del crédito SOFOM SureKeep (M2 §10 — ciclo de vida).
|
|
6
|
+
*
|
|
7
|
+
* `PENDING_ACTIVATION` (pendiente_activacion) → condiciones en proceso, reanudable, caduca a 30 días.
|
|
8
|
+
* `ACTIVE` (activo) → vigente, al corriente.
|
|
9
|
+
* `IN_ARREARS` (en_mora) → cuotas vencidas, dispositivo bloqueado.
|
|
10
|
+
* `SETTLED` (liquidado) → saldo pagado; historial positivo. Final.
|
|
11
|
+
* `CANCELLED` (cancelado) → cancelación voluntaria (ventana 7 días); enganche devuelto. Final.
|
|
12
|
+
* `DISCARDED` (descartado) → nunca se activó (caducó a 30 días). Sin efecto. Final.
|
|
13
|
+
* `WRITTEN_OFF` (baja_contable) → 180 días sin pago. Se desbloquea si paga. Final.
|
|
14
|
+
* @enum {string}
|
|
15
|
+
*/
|
|
16
|
+
var LoanCreditStatusEnum;
|
|
17
|
+
(function (LoanCreditStatusEnum) {
|
|
18
|
+
LoanCreditStatusEnum["PENDING_ACTIVATION"] = "PENDING_ACTIVATION";
|
|
19
|
+
LoanCreditStatusEnum["ACTIVE"] = "ACTIVE";
|
|
20
|
+
LoanCreditStatusEnum["IN_ARREARS"] = "IN_ARREARS";
|
|
21
|
+
LoanCreditStatusEnum["SETTLED"] = "SETTLED";
|
|
22
|
+
LoanCreditStatusEnum["CANCELLED"] = "CANCELLED";
|
|
23
|
+
LoanCreditStatusEnum["DISCARDED"] = "DISCARDED";
|
|
24
|
+
LoanCreditStatusEnum["WRITTEN_OFF"] = "WRITTEN_OFF";
|
|
25
|
+
})(LoanCreditStatusEnum || (exports.LoanCreditStatusEnum = LoanCreditStatusEnum = {}));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado de una cuota semanal del crédito (M2 §6.1 / 05_MOTOR §5).
|
|
3
|
+
* `RESTRUCTURED` (reestructurado) = la cuota dejó de aplicar por reestructura o cancelación.
|
|
4
|
+
* @enum {string}
|
|
5
|
+
*/
|
|
6
|
+
export declare enum LoanInstallmentStatusEnum {
|
|
7
|
+
PENDING = "PENDING",
|
|
8
|
+
PAID = "PAID",
|
|
9
|
+
OVERDUE = "OVERDUE",
|
|
10
|
+
RESTRUCTURED = "RESTRUCTURED"
|
|
11
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LoanInstallmentStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estado de una cuota semanal del crédito (M2 §6.1 / 05_MOTOR §5).
|
|
6
|
+
* `RESTRUCTURED` (reestructurado) = la cuota dejó de aplicar por reestructura o cancelación.
|
|
7
|
+
* @enum {string}
|
|
8
|
+
*/
|
|
9
|
+
var LoanInstallmentStatusEnum;
|
|
10
|
+
(function (LoanInstallmentStatusEnum) {
|
|
11
|
+
LoanInstallmentStatusEnum["PENDING"] = "PENDING";
|
|
12
|
+
LoanInstallmentStatusEnum["PAID"] = "PAID";
|
|
13
|
+
LoanInstallmentStatusEnum["OVERDUE"] = "OVERDUE";
|
|
14
|
+
LoanInstallmentStatusEnum["RESTRUCTURED"] = "RESTRUCTURED";
|
|
15
|
+
})(LoanInstallmentStatusEnum || (exports.LoanInstallmentStatusEnum = LoanInstallmentStatusEnum = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './enums/LoanCreditStatusEnum';
|
|
2
|
+
export * from './enums/LoanInstallmentStatusEnum';
|
|
3
|
+
export * from './enums/ClientLevelEnum';
|
|
4
|
+
export * from './dtos/LoanBorrower';
|
|
5
|
+
export * from './dtos/LoanBeneficiary';
|
|
6
|
+
export * from './dtos/LoanCredit';
|
|
7
|
+
export * from './dtos/LoanInstallment';
|
|
8
|
+
export * from './dtos/ActivationChecklist';
|
|
9
|
+
export * from './dtos/requests/UpsertLoanBorrowerRequest';
|
|
10
|
+
export * from './dtos/requests/OriginateLoanCreditRequest';
|
|
11
|
+
export * from './dtos/requests/UpdateActivationChecklistRequest';
|
|
12
|
+
export * from './dtos/requests/ChangeLoanCreditStatusRequest';
|
|
13
|
+
export * from './dtos/responses/LoanBorrowerResponse';
|
|
14
|
+
export * from './dtos/responses/LoanCreditResponse';
|
|
15
|
+
export * from './dtos/responses/LoanInstallmentResponse';
|
|
16
|
+
export * from './dtos/responses/OriginateLoanCreditResponse';
|