@fiado/type-kit 3.430.0 → 3.431.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/_test_/unit/collection/deregisterChargeStatus.test.ts +19 -0
- package/_test_/unit/loanCredit/creditLifecycleEnums.test.ts +68 -0
- package/_test_/unit/loanCredit/dtos/creditLifecycleRequests.test.ts +196 -0
- package/_test_/unit/loanOfferings/amortizationScheduleRequest.test.ts +44 -0
- package/_test_/unit/messagesConnector/otpMessagePurposeEnum.test.ts +65 -0
- package/bin/collection/enums/DeregisterChargeStatus.d.ts +3 -1
- package/bin/collection/enums/DeregisterChargeStatus.js +2 -0
- package/bin/loanCredit/dtos/RestructureTerms.d.ts +9 -0
- package/bin/loanCredit/dtos/RestructureTerms.js +36 -0
- package/bin/loanCredit/dtos/WriteOffConfirmations.d.ts +7 -0
- package/bin/loanCredit/dtos/WriteOffConfirmations.js +30 -0
- package/bin/loanCredit/dtos/requests/BackofficeAcceptRestructureRequest.d.ts +5 -0
- package/bin/loanCredit/dtos/requests/BackofficeAcceptRestructureRequest.js +24 -0
- package/bin/loanCredit/dtos/requests/BackofficeApplyAdvanceRequest.d.ts +7 -0
- package/bin/loanCredit/dtos/requests/BackofficeApplyAdvanceRequest.js +31 -0
- package/bin/loanCredit/dtos/requests/BackofficeApplyPrepaymentRequest.d.ts +4 -0
- package/bin/loanCredit/dtos/requests/BackofficeApplyPrepaymentRequest.js +24 -0
- package/bin/loanCredit/dtos/requests/BackofficeApproveRestructureRequest.d.ts +8 -0
- package/bin/loanCredit/dtos/requests/BackofficeApproveRestructureRequest.js +32 -0
- package/bin/loanCredit/dtos/requests/BackofficeCollectWrittenOffCreditRequest.d.ts +5 -0
- package/bin/loanCredit/dtos/requests/BackofficeCollectWrittenOffCreditRequest.js +24 -0
- package/bin/loanCredit/dtos/requests/BackofficeListPaymentsInReviewRequest.d.ts +6 -0
- package/bin/loanCredit/dtos/requests/BackofficeListPaymentsInReviewRequest.js +33 -0
- package/bin/loanCredit/dtos/requests/BackofficeListWriteOffCandidatesRequest.d.ts +6 -0
- package/bin/loanCredit/dtos/requests/BackofficeListWriteOffCandidatesRequest.js +33 -0
- package/bin/loanCredit/dtos/requests/BackofficeProposeRestructureRequest.d.ts +7 -0
- package/bin/loanCredit/dtos/requests/BackofficeProposeRestructureRequest.js +32 -0
- package/bin/loanCredit/dtos/requests/BackofficeRejectRestructureRequest.d.ts +5 -0
- package/bin/loanCredit/dtos/requests/BackofficeRejectRestructureRequest.js +24 -0
- package/bin/loanCredit/dtos/requests/BackofficeResolvePaymentReviewRequest.d.ts +11 -0
- package/bin/loanCredit/dtos/requests/BackofficeResolvePaymentReviewRequest.js +44 -0
- package/bin/loanCredit/dtos/requests/BackofficeSettleCreditRequest.d.ts +5 -0
- package/bin/loanCredit/dtos/requests/BackofficeSettleCreditRequest.js +24 -0
- package/bin/loanCredit/dtos/requests/BackofficeWriteOffCreditRequest.d.ts +7 -0
- package/bin/loanCredit/dtos/requests/BackofficeWriteOffCreditRequest.js +33 -0
- package/bin/loanCredit/dtos/responses/LoanAdHocChargeRequested.d.ts +9 -0
- package/bin/loanCredit/dtos/responses/LoanAdHocChargeRequested.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanOtpDispatch.d.ts +5 -0
- package/bin/loanCredit/dtos/responses/LoanOtpDispatch.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanPaymentReviewItem.d.ts +12 -0
- package/bin/loanCredit/dtos/responses/LoanPaymentReviewItem.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanPaymentReviewListResponse.d.ts +7 -0
- package/bin/loanCredit/dtos/responses/LoanPaymentReviewListResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanPaymentReviewResolution.d.ts +11 -0
- package/bin/loanCredit/dtos/responses/LoanPaymentReviewResolution.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanPrepaymentQuote.d.ts +10 -0
- package/bin/loanCredit/dtos/responses/LoanPrepaymentQuote.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanRestructure.d.ts +22 -0
- package/bin/loanCredit/dtos/responses/LoanRestructure.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanRestructureListResponse.d.ts +7 -0
- package/bin/loanCredit/dtos/responses/LoanRestructureListResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanRestructurePreview.d.ts +15 -0
- package/bin/loanCredit/dtos/responses/LoanRestructurePreview.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanRestructurePreviewInstallment.d.ts +11 -0
- package/bin/loanCredit/dtos/responses/LoanRestructurePreviewInstallment.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanSettlementQuote.d.ts +16 -0
- package/bin/loanCredit/dtos/responses/LoanSettlementQuote.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanSettlementRequested.d.ts +11 -0
- package/bin/loanCredit/dtos/responses/LoanSettlementRequested.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanWriteOffCandidateItem.d.ts +13 -0
- package/bin/loanCredit/dtos/responses/LoanWriteOffCandidateItem.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanWriteOffCandidateListResponse.d.ts +7 -0
- package/bin/loanCredit/dtos/responses/LoanWriteOffCandidateListResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanWriteOffResult.d.ts +12 -0
- package/bin/loanCredit/dtos/responses/LoanWriteOffResult.js +2 -0
- package/bin/loanCredit/enums/ContractTypeEnum.d.ts +7 -5
- package/bin/loanCredit/enums/ContractTypeEnum.js +6 -4
- package/bin/loanCredit/enums/LoanAdHocChargeKindEnum.d.ts +10 -0
- package/bin/loanCredit/enums/LoanAdHocChargeKindEnum.js +14 -0
- package/bin/loanCredit/enums/LoanChargeKindEnum.d.ts +11 -0
- package/bin/loanCredit/enums/LoanChargeKindEnum.js +15 -0
- package/bin/loanCredit/enums/LoanRestructureStatusEnum.d.ts +11 -0
- package/bin/loanCredit/enums/LoanRestructureStatusEnum.js +15 -0
- package/bin/loanCredit/enums/LoanSettlementStatusEnum.d.ts +7 -0
- package/bin/loanCredit/enums/LoanSettlementStatusEnum.js +11 -0
- package/bin/loanCredit/enums/PaymentReviewActionEnum.d.ts +9 -0
- package/bin/loanCredit/enums/PaymentReviewActionEnum.js +13 -0
- package/bin/loanCredit/enums/PaymentReviewReasonEnum.d.ts +16 -0
- package/bin/loanCredit/enums/PaymentReviewReasonEnum.js +20 -0
- package/bin/loanCredit/enums/PaymentReviewResolutionEnum.d.ts +13 -0
- package/bin/loanCredit/enums/PaymentReviewResolutionEnum.js +17 -0
- package/bin/loanCredit/enums/RefundDestinationEnum.d.ts +8 -0
- package/bin/loanCredit/enums/RefundDestinationEnum.js +12 -0
- package/bin/loanCredit/enums/WrittenOffRecoveryTypeEnum.d.ts +8 -0
- package/bin/loanCredit/enums/WrittenOffRecoveryTypeEnum.js +12 -0
- package/bin/loanCredit/index.d.ts +38 -0
- package/bin/loanCredit/index.js +39 -0
- package/bin/loanOfferings/dtos/requests/ComputeAmortizationScheduleRequest.d.ts +11 -0
- package/bin/loanOfferings/dtos/requests/ComputeAmortizationScheduleRequest.js +43 -0
- package/bin/loanOfferings/dtos/responses/AmortizationScheduleResponse.d.ts +12 -0
- package/bin/loanOfferings/dtos/responses/AmortizationScheduleResponse.js +2 -0
- package/bin/loanOfferings/dtos/responses/AmortizationScheduleRow.d.ts +10 -0
- package/bin/loanOfferings/dtos/responses/AmortizationScheduleRow.js +2 -0
- package/bin/loanOfferings/index.d.ts +3 -0
- package/bin/loanOfferings/index.js +3 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.d.ts +2 -0
- package/bin/messagesConnector/dtos/SendMessageRequest.js +7 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.d.ts +2 -0
- package/bin/messagesConnector/dtos/VerifyOtpRequest.js +7 -0
- package/bin/messagesConnector/enums/OtpMessagePurposeEnum.d.ts +9 -0
- package/bin/messagesConnector/enums/OtpMessagePurposeEnum.js +13 -0
- package/bin/messagesConnector/index.d.ts +1 -0
- package/bin/messagesConnector/index.js +1 -0
- package/package.json +1 -1
- package/src/collection/enums/DeregisterChargeStatus.ts +2 -0
- package/src/loanCredit/dtos/RestructureTerms.ts +23 -0
- package/src/loanCredit/dtos/WriteOffConfirmations.ts +17 -0
- package/src/loanCredit/dtos/requests/BackofficeAcceptRestructureRequest.ts +11 -0
- package/src/loanCredit/dtos/requests/BackofficeApplyAdvanceRequest.ts +18 -0
- package/src/loanCredit/dtos/requests/BackofficeApplyPrepaymentRequest.ts +10 -0
- package/src/loanCredit/dtos/requests/BackofficeApproveRestructureRequest.ts +19 -0
- package/src/loanCredit/dtos/requests/BackofficeCollectWrittenOffCreditRequest.ts +10 -0
- package/src/loanCredit/dtos/requests/BackofficeListPaymentsInReviewRequest.ts +19 -0
- package/src/loanCredit/dtos/requests/BackofficeListWriteOffCandidatesRequest.ts +19 -0
- package/src/loanCredit/dtos/requests/BackofficeProposeRestructureRequest.ts +18 -0
- package/src/loanCredit/dtos/requests/BackofficeRejectRestructureRequest.ts +11 -0
- package/src/loanCredit/dtos/requests/BackofficeResolvePaymentReviewRequest.ts +30 -0
- package/src/loanCredit/dtos/requests/BackofficeSettleCreditRequest.ts +11 -0
- package/src/loanCredit/dtos/requests/BackofficeWriteOffCreditRequest.ts +19 -0
- package/src/loanCredit/dtos/responses/LoanAdHocChargeRequested.ts +10 -0
- package/src/loanCredit/dtos/responses/LoanOtpDispatch.ts +5 -0
- package/src/loanCredit/dtos/responses/LoanPaymentReviewItem.ts +13 -0
- package/src/loanCredit/dtos/responses/LoanPaymentReviewListResponse.ts +8 -0
- package/src/loanCredit/dtos/responses/LoanPaymentReviewResolution.ts +12 -0
- package/src/loanCredit/dtos/responses/LoanPrepaymentQuote.ts +10 -0
- package/src/loanCredit/dtos/responses/LoanRestructure.ts +23 -0
- package/src/loanCredit/dtos/responses/LoanRestructureListResponse.ts +8 -0
- package/src/loanCredit/dtos/responses/LoanRestructurePreview.ts +16 -0
- package/src/loanCredit/dtos/responses/LoanRestructurePreviewInstallment.ts +11 -0
- package/src/loanCredit/dtos/responses/LoanSettlementQuote.ts +16 -0
- package/src/loanCredit/dtos/responses/LoanSettlementRequested.ts +12 -0
- package/src/loanCredit/dtos/responses/LoanWriteOffCandidateItem.ts +14 -0
- package/src/loanCredit/dtos/responses/LoanWriteOffCandidateListResponse.ts +8 -0
- package/src/loanCredit/dtos/responses/LoanWriteOffResult.ts +13 -0
- package/src/loanCredit/enums/ContractTypeEnum.ts +6 -4
- package/src/loanCredit/enums/LoanAdHocChargeKindEnum.ts +10 -0
- package/src/loanCredit/enums/LoanChargeKindEnum.ts +11 -0
- package/src/loanCredit/enums/LoanRestructureStatusEnum.ts +11 -0
- package/src/loanCredit/enums/LoanSettlementStatusEnum.ts +7 -0
- package/src/loanCredit/enums/PaymentReviewActionEnum.ts +9 -0
- package/src/loanCredit/enums/PaymentReviewReasonEnum.ts +16 -0
- package/src/loanCredit/enums/PaymentReviewResolutionEnum.ts +13 -0
- package/src/loanCredit/enums/RefundDestinationEnum.ts +8 -0
- package/src/loanCredit/enums/WrittenOffRecoveryTypeEnum.ts +8 -0
- package/src/loanCredit/index.ts +40 -0
- package/src/loanOfferings/dtos/requests/ComputeAmortizationScheduleRequest.ts +30 -0
- package/src/loanOfferings/dtos/responses/AmortizationScheduleResponse.ts +13 -0
- package/src/loanOfferings/dtos/responses/AmortizationScheduleRow.ts +10 -0
- package/src/loanOfferings/index.ts +3 -0
- package/src/messagesConnector/dtos/SendMessageRequest.ts +2 -0
- package/src/messagesConnector/dtos/VerifyOtpRequest.ts +3 -1
- package/src/messagesConnector/enums/OtpMessagePurposeEnum.ts +9 -0
- package/src/messagesConnector/index.ts +1 -0
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { WrittenOffRecoveryTypeEnum } from '../../enums/WrittenOffRecoveryTypeEnum';
|
|
2
|
+
/** Body de `POST /backoffice/credits/:creditId/recovery-collection` (loan-credit-business). */
|
|
3
|
+
export declare class BackofficeCollectWrittenOffCreditRequest {
|
|
4
|
+
recoveryType: WrittenOffRecoveryTypeEnum;
|
|
5
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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.BackofficeCollectWrittenOffCreditRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const WrittenOffRecoveryTypeEnum_1 = require("../../enums/WrittenOffRecoveryTypeEnum");
|
|
16
|
+
/** Body de `POST /backoffice/credits/:creditId/recovery-collection` (loan-credit-business). */
|
|
17
|
+
class BackofficeCollectWrittenOffCreditRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.BackofficeCollectWrittenOffCreditRequest = BackofficeCollectWrittenOffCreditRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsEnum)(WrittenOffRecoveryTypeEnum_1.WrittenOffRecoveryTypeEnum),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BackofficeCollectWrittenOffCreditRequest.prototype, "recoveryType", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.BackofficeListPaymentsInReviewRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Query de `GET /backoffice/payments/review` (loan-credit-business). */
|
|
16
|
+
class BackofficeListPaymentsInReviewRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.BackofficeListPaymentsInReviewRequest = BackofficeListPaymentsInReviewRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
23
|
+
(0, class_validator_1.IsInt)(),
|
|
24
|
+
(0, class_validator_1.Min)(1),
|
|
25
|
+
(0, class_validator_1.Max)(100),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], BackofficeListPaymentsInReviewRequest.prototype, "limit", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BackofficeListPaymentsInReviewRequest.prototype, "nextToken", void 0);
|
|
@@ -0,0 +1,33 @@
|
|
|
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.BackofficeListWriteOffCandidatesRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Query de `GET /backoffice/credits/write-off-candidates` (loan-credit-business). */
|
|
16
|
+
class BackofficeListWriteOffCandidatesRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.BackofficeListWriteOffCandidatesRequest = BackofficeListWriteOffCandidatesRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsOptional)(),
|
|
22
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
23
|
+
(0, class_validator_1.IsInt)(),
|
|
24
|
+
(0, class_validator_1.Min)(1),
|
|
25
|
+
(0, class_validator_1.Max)(100),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], BackofficeListWriteOffCandidatesRequest.prototype, "limit", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_transformer_1.Expose)(),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
(0, class_validator_1.IsString)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BackofficeListWriteOffCandidatesRequest.prototype, "nextToken", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RestructureTerms } from '../RestructureTerms';
|
|
2
|
+
/** Body de `POST /backoffice/credits/:creditId/restructures` (loan-credit-business). */
|
|
3
|
+
export declare class BackofficeProposeRestructureRequest {
|
|
4
|
+
/** Justificación del cobrador. Va a la auditoría y no se loguea. */
|
|
5
|
+
justification: string;
|
|
6
|
+
terms: RestructureTerms;
|
|
7
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
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.BackofficeProposeRestructureRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const RestructureTerms_1 = require("../RestructureTerms");
|
|
16
|
+
/** Body de `POST /backoffice/credits/:creditId/restructures` (loan-credit-business). */
|
|
17
|
+
class BackofficeProposeRestructureRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.BackofficeProposeRestructureRequest = BackofficeProposeRestructureRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.MinLength)(1),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BackofficeProposeRestructureRequest.prototype, "justification", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_validator_1.IsDefined)(),
|
|
29
|
+
(0, class_validator_1.ValidateNested)(),
|
|
30
|
+
(0, class_transformer_1.Type)(() => RestructureTerms_1.RestructureTerms),
|
|
31
|
+
__metadata("design:type", RestructureTerms_1.RestructureTerms)
|
|
32
|
+
], BackofficeProposeRestructureRequest.prototype, "terms", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.BackofficeRejectRestructureRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Body de `POST /backoffice/credits/:creditId/restructures/:restructureId/reject` (loan-credit-business). */
|
|
16
|
+
class BackofficeRejectRestructureRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.BackofficeRejectRestructureRequest = BackofficeRejectRestructureRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.MinLength)(1),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], BackofficeRejectRestructureRequest.prototype, "reason", void 0);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PaymentReviewActionEnum } from '../../enums/PaymentReviewActionEnum';
|
|
2
|
+
import { RefundDestinationEnum } from '../../enums/RefundDestinationEnum';
|
|
3
|
+
/** Body de `POST /backoffice/credits/:creditId/payments/:paymentId/review-resolution` (loan-credit-business). */
|
|
4
|
+
export declare class BackofficeResolvePaymentReviewRequest {
|
|
5
|
+
action: PaymentReviewActionEnum;
|
|
6
|
+
/** Obligatorio con REFUND. */
|
|
7
|
+
refundDestination?: RefundDestinationEnum;
|
|
8
|
+
clabe?: string;
|
|
9
|
+
/** Obligatorio con REFUND a PCF_CLABE: el cliente confirmó su CLABE PCF. */
|
|
10
|
+
customerConfirmedPcfClabe?: boolean;
|
|
11
|
+
}
|
|
@@ -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.BackofficeResolvePaymentReviewRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const PaymentReviewActionEnum_1 = require("../../enums/PaymentReviewActionEnum");
|
|
16
|
+
const RefundDestinationEnum_1 = require("../../enums/RefundDestinationEnum");
|
|
17
|
+
/** Body de `POST /backoffice/credits/:creditId/payments/:paymentId/review-resolution` (loan-credit-business). */
|
|
18
|
+
class BackofficeResolvePaymentReviewRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.BackofficeResolvePaymentReviewRequest = BackofficeResolvePaymentReviewRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_transformer_1.Expose)(),
|
|
23
|
+
(0, class_validator_1.IsEnum)(PaymentReviewActionEnum_1.PaymentReviewActionEnum),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], BackofficeResolvePaymentReviewRequest.prototype, "action", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_transformer_1.Expose)(),
|
|
28
|
+
(0, class_validator_1.IsOptional)(),
|
|
29
|
+
(0, class_validator_1.IsEnum)(RefundDestinationEnum_1.RefundDestinationEnum),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], BackofficeResolvePaymentReviewRequest.prototype, "refundDestination", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_transformer_1.Expose)(),
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.Matches)(/^\d{18}$/),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], BackofficeResolvePaymentReviewRequest.prototype, "clabe", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_transformer_1.Expose)(),
|
|
41
|
+
(0, class_validator_1.IsOptional)(),
|
|
42
|
+
(0, class_validator_1.IsBoolean)(),
|
|
43
|
+
__metadata("design:type", Boolean)
|
|
44
|
+
], BackofficeResolvePaymentReviewRequest.prototype, "customerConfirmedPcfClabe", void 0);
|
|
@@ -0,0 +1,24 @@
|
|
|
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.BackofficeSettleCreditRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
/** Body de `POST /backoffice/credits/:creditId/settlement` (loan-credit-business). */
|
|
16
|
+
class BackofficeSettleCreditRequest {
|
|
17
|
+
}
|
|
18
|
+
exports.BackofficeSettleCreditRequest = BackofficeSettleCreditRequest;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, class_transformer_1.Expose)(),
|
|
21
|
+
(0, class_validator_1.IsInt)(),
|
|
22
|
+
(0, class_validator_1.Min)(1),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], BackofficeSettleCreditRequest.prototype, "amountCents", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { WriteOffConfirmations } from '../WriteOffConfirmations';
|
|
2
|
+
/** Body de `POST /backoffice/credits/:creditId/write-off`. Los faltantes los responde el lambda con su code. */
|
|
3
|
+
export declare class BackofficeWriteOffCreditRequest {
|
|
4
|
+
/** Motivo de la baja. Va a la auditoría del crédito y no se loguea. */
|
|
5
|
+
reason?: string;
|
|
6
|
+
confirmations?: WriteOffConfirmations;
|
|
7
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.BackofficeWriteOffCreditRequest = void 0;
|
|
13
|
+
const class_transformer_1 = require("class-transformer");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const WriteOffConfirmations_1 = require("../WriteOffConfirmations");
|
|
16
|
+
/** Body de `POST /backoffice/credits/:creditId/write-off`. Los faltantes los responde el lambda con su code. */
|
|
17
|
+
class BackofficeWriteOffCreditRequest {
|
|
18
|
+
}
|
|
19
|
+
exports.BackofficeWriteOffCreditRequest = BackofficeWriteOffCreditRequest;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_transformer_1.Expose)(),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MinLength)(1),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], BackofficeWriteOffCreditRequest.prototype, "reason", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_transformer_1.Expose)(),
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.ValidateNested)(),
|
|
31
|
+
(0, class_transformer_1.Type)(() => WriteOffConfirmations_1.WriteOffConfirmations),
|
|
32
|
+
__metadata("design:type", WriteOffConfirmations_1.WriteOffConfirmations)
|
|
33
|
+
], BackofficeWriteOffCreditRequest.prototype, "confirmations", void 0);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { LoanAdHocChargeKindEnum } from '../../enums/LoanAdHocChargeKindEnum';
|
|
2
|
+
/** Response 202 de recovery-collection, prepayments y advances. El 202 no mueve el libro; lo mueve el apply-result. */
|
|
3
|
+
export interface LoanAdHocChargeRequested {
|
|
4
|
+
creditId: string;
|
|
5
|
+
chargeKind: LoanAdHocChargeKindEnum;
|
|
6
|
+
/** `<creditId>#<chargeKind>#<n>`. */
|
|
7
|
+
chargeId: string;
|
|
8
|
+
amountCents: number;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoanChargeKindEnum } from '../../enums/LoanChargeKindEnum';
|
|
2
|
+
import { PaymentReviewReasonEnum } from '../../enums/PaymentReviewReasonEnum';
|
|
3
|
+
/** Un pago con revisión pendiente. */
|
|
4
|
+
export interface LoanPaymentReviewItem {
|
|
5
|
+
paymentId: string;
|
|
6
|
+
creditId: string;
|
|
7
|
+
chargeKind: LoanChargeKindEnum;
|
|
8
|
+
/** Lo que quedó en revisión de ese pago. */
|
|
9
|
+
reviewAmountCents: number;
|
|
10
|
+
reviewReasons: PaymentReviewReasonEnum[];
|
|
11
|
+
reviewPendingAt: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoanPaymentReviewItem } from './LoanPaymentReviewItem';
|
|
2
|
+
/** Response de `GET /backoffice/payments/review`. */
|
|
3
|
+
export interface LoanPaymentReviewListResponse {
|
|
4
|
+
items: LoanPaymentReviewItem[];
|
|
5
|
+
/** Cursor de la página siguiente; su ausencia marca el fin de la lista. */
|
|
6
|
+
nextToken?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PaymentReviewResolutionEnum } from '../../enums/PaymentReviewResolutionEnum';
|
|
2
|
+
/** Response de `POST /backoffice/credits/:creditId/payments/:paymentId/review-resolution`. */
|
|
3
|
+
export interface LoanPaymentReviewResolution {
|
|
4
|
+
paymentId: string;
|
|
5
|
+
creditId: string;
|
|
6
|
+
reviewResolution: PaymentReviewResolutionEnum;
|
|
7
|
+
/** `<creditId>#<paymentId>#<intento>`, sin CLABE. Sólo con REFUND. */
|
|
8
|
+
refundKey?: string;
|
|
9
|
+
resolvedBy: string;
|
|
10
|
+
resolvedAt: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Response de `GET /backoffice/credits/:creditId/prepayment-quote`. */
|
|
2
|
+
export interface LoanPrepaymentQuote {
|
|
3
|
+
creditId: string;
|
|
4
|
+
/** Saldo insoluto que se le informa al cliente. */
|
|
5
|
+
outstandingCapitalCents: number;
|
|
6
|
+
/** Pago del periodo: el mínimo del abono. */
|
|
7
|
+
periodPaymentCents: number;
|
|
8
|
+
/** Monto de liquidación anticipada: el techo del abono. */
|
|
9
|
+
settlementAmountCents: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LoanRestructureStatusEnum } from '../../enums/LoanRestructureStatusEnum';
|
|
2
|
+
import { RestructureTerms } from '../RestructureTerms';
|
|
3
|
+
/** Response de propose, approve, reject y accept de una reestructura. */
|
|
4
|
+
export interface LoanRestructure {
|
|
5
|
+
restructureId: string;
|
|
6
|
+
creditId: string;
|
|
7
|
+
restructureStatus: LoanRestructureStatusEnum;
|
|
8
|
+
justification?: string;
|
|
9
|
+
proposedTerms: RestructureTerms;
|
|
10
|
+
proposedBy: string;
|
|
11
|
+
proposedAt: string;
|
|
12
|
+
originalOutstandingCapitalCents: number;
|
|
13
|
+
originalRemainingInstallments: number;
|
|
14
|
+
/** Términos que aprobó el admin; ausente mientras siga PROPOSED. */
|
|
15
|
+
finalTerms?: RestructureTerms;
|
|
16
|
+
resolvedBy?: string;
|
|
17
|
+
resolvedAt?: string;
|
|
18
|
+
resolutionReason?: string;
|
|
19
|
+
acceptedAt?: string;
|
|
20
|
+
/** Versión del plan que nació con la reestructura; ausente antes de aceptarla. */
|
|
21
|
+
planVersion?: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoanRestructure } from './LoanRestructure';
|
|
2
|
+
/** Response de `GET /backoffice/credits/:creditId/restructures`. */
|
|
3
|
+
export interface LoanRestructureListResponse {
|
|
4
|
+
items: LoanRestructure[];
|
|
5
|
+
/** Cupo usado: cuenta sólo reestructuras aceptadas. */
|
|
6
|
+
usedRestructures: number;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { RestructureTerms } from '../RestructureTerms';
|
|
2
|
+
import { LoanRestructurePreviewInstallment } from './LoanRestructurePreviewInstallment';
|
|
3
|
+
/** Response de `GET /backoffice/credits/:creditId/restructures/:restructureId/preview`. */
|
|
4
|
+
export interface LoanRestructurePreview {
|
|
5
|
+
restructureId: string;
|
|
6
|
+
creditId: string;
|
|
7
|
+
terms: RestructureTerms;
|
|
8
|
+
/** Capital insoluto que se amortiza. */
|
|
9
|
+
outstandingCapitalCents: number;
|
|
10
|
+
/** Interés vencido no pagado, repartido sin interés en las cuotas nuevas. */
|
|
11
|
+
consolidatedOverdueInterestCents: number;
|
|
12
|
+
/** IVA vencido no pagado, repartido sin interés en las cuotas nuevas. */
|
|
13
|
+
consolidatedOverdueIvaCents: number;
|
|
14
|
+
installments: LoanRestructurePreviewInstallment[];
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Una cuota del plan nuevo de la reestructura. */
|
|
2
|
+
export interface LoanRestructurePreviewInstallment {
|
|
3
|
+
/** Sigue la numeración después de la última cuota del plan vigente. */
|
|
4
|
+
installmentNumber: number;
|
|
5
|
+
dueDate: string;
|
|
6
|
+
capitalCents: number;
|
|
7
|
+
/** Interés de la cuota, incluida la parte consolidada del interés vencido. */
|
|
8
|
+
interestCents: number;
|
|
9
|
+
ivaCents: number;
|
|
10
|
+
totalCents: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/** Response de `GET /backoffice/credits/:creditId/settlement-quote`. Cada componente va redondeado al centavo y el total es su suma. */
|
|
2
|
+
export interface LoanSettlementQuote {
|
|
3
|
+
creditId: string;
|
|
4
|
+
/** Total (capital + interés + IVA) de las cuotas vencidas completas. */
|
|
5
|
+
overdueInstallmentsCents: number;
|
|
6
|
+
/** Capital insoluto de las cuotas que todavía no vencen. */
|
|
7
|
+
outstandingCapitalCents: number;
|
|
8
|
+
/** Interés del periodo en curso × días transcurridos ÷ días del periodo. */
|
|
9
|
+
currentPeriodInterestCents: number;
|
|
10
|
+
/** IVA 16% del interés prorrateado. */
|
|
11
|
+
currentPeriodInterestIvaCents: number;
|
|
12
|
+
elapsedDays: number;
|
|
13
|
+
periodDays: number;
|
|
14
|
+
settlementAmountCents: number;
|
|
15
|
+
quotedAt: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LoanSettlementStatusEnum } from '../../enums/LoanSettlementStatusEnum';
|
|
2
|
+
/** Response 202 de `POST /backoffice/credits/:creditId/settlement`. */
|
|
3
|
+
export interface LoanSettlementRequested {
|
|
4
|
+
creditId: string;
|
|
5
|
+
settlementStatus: LoanSettlementStatusEnum;
|
|
6
|
+
/** `<creditId>#SETTLEMENT#<n>`: el cargo ad hoc pedido al motor. */
|
|
7
|
+
chargeId: string;
|
|
8
|
+
settlementAmountCents: number;
|
|
9
|
+
/** Neto que se cobra: el monto menos los pagos ya asentados en el libro. */
|
|
10
|
+
chargeAmountCents: number;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { LoanCreditStatusEnum } from '../../enums/LoanCreditStatusEnum';
|
|
2
|
+
/** Un crédito candidato a baja contable. */
|
|
3
|
+
export interface LoanWriteOffCandidateItem {
|
|
4
|
+
creditId: string;
|
|
5
|
+
borrowerId: string;
|
|
6
|
+
status: LoanCreditStatusEnum;
|
|
7
|
+
overdueDays: number;
|
|
8
|
+
overdueInstallments: number;
|
|
9
|
+
overdueAmountCents: number;
|
|
10
|
+
outstandingBalanceCents: number;
|
|
11
|
+
/** Instante en que el crón lo marcó candidato. */
|
|
12
|
+
writeOffCandidateAt: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LoanWriteOffCandidateItem } from './LoanWriteOffCandidateItem';
|
|
2
|
+
/** Response de `GET /backoffice/credits/write-off-candidates`. */
|
|
3
|
+
export interface LoanWriteOffCandidateListResponse {
|
|
4
|
+
items: LoanWriteOffCandidateItem[];
|
|
5
|
+
/** Cursor de la página siguiente; su ausencia marca el fin de la lista. */
|
|
6
|
+
nextToken?: string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { LoanCreditStatusEnum } from '../../enums/LoanCreditStatusEnum';
|
|
2
|
+
/** Response de `POST /backoffice/credits/:creditId/write-off`. */
|
|
3
|
+
export interface LoanWriteOffResult {
|
|
4
|
+
creditId: string;
|
|
5
|
+
previousStatus: LoanCreditStatusEnum;
|
|
6
|
+
status: LoanCreditStatusEnum;
|
|
7
|
+
overdueDays: number;
|
|
8
|
+
writtenOffAmountCents: number;
|
|
9
|
+
writtenOffAt: string;
|
|
10
|
+
/** Quién aprobó la baja. */
|
|
11
|
+
writtenOffBy: string;
|
|
12
|
+
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Tipo de documento del
|
|
3
|
-
* `CREDIT` = contrato de crédito celular (RECA 16145-439-038506/04-01076-0525) ·
|
|
4
|
-
* `PROMISSORY_NOTE` = pagaré (garantiza el crédito; mismo monto/tasa/plazo) ·
|
|
5
|
-
* `SIC_AUTHORIZATION` = autorización de consulta/reporte a Círculo de Crédito (Art. 28 LRSIC).
|
|
2
|
+
* Tipo de documento del crédito: los tres de la originación y los que emite su ciclo de vida.
|
|
6
3
|
* @enum {string}
|
|
7
4
|
*/
|
|
8
5
|
export declare enum ContractTypeEnum {
|
|
9
6
|
CREDIT = "CREDIT",
|
|
10
7
|
PROMISSORY_NOTE = "PROMISSORY_NOTE",
|
|
11
|
-
SIC_AUTHORIZATION = "SIC_AUTHORIZATION"
|
|
8
|
+
SIC_AUTHORIZATION = "SIC_AUTHORIZATION",
|
|
9
|
+
RESTRUCTURE_ADDENDUM = "RESTRUCTURE_ADDENDUM",
|
|
10
|
+
ADVANCE_AUTHORIZATION = "ADVANCE_AUTHORIZATION",
|
|
11
|
+
SETTLEMENT_CERTIFICATE = "SETTLEMENT_CERTIFICATE",
|
|
12
|
+
PAYMENT_RECEIPT = "PAYMENT_RECEIPT",
|
|
13
|
+
ACCOUNT_STATEMENT = "ACCOUNT_STATEMENT"
|
|
12
14
|
}
|