@fiado/type-kit 3.195.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/places/dtos/AddressCandidate.d.ts +23 -0
- package/bin/places/dtos/AddressCandidate.js +11 -0
- package/bin/places/dtos/ReverseGeocodeRequest.d.ts +9 -0
- package/bin/places/dtos/ReverseGeocodeRequest.js +39 -0
- package/bin/places/dtos/ReverseGeocodeResponse.d.ts +5 -0
- package/bin/places/dtos/ReverseGeocodeResponse.js +7 -0
- package/bin/places/dtos/SearchAddressRequest.d.ts +10 -0
- package/bin/places/dtos/SearchAddressRequest.js +38 -0
- package/bin/places/dtos/SearchAddressResponse.d.ts +5 -0
- package/bin/places/dtos/SearchAddressResponse.js +7 -0
- package/bin/places/index.d.ts +5 -0
- package/bin/places/index.js +5 -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/src/places/dtos/AddressCandidate.ts +23 -0
- package/src/places/dtos/ReverseGeocodeRequest.ts +23 -0
- package/src/places/dtos/ReverseGeocodeResponse.ts +6 -0
- package/src/places/dtos/SearchAddressRequest.ts +23 -0
- package/src/places/dtos/SearchAddressResponse.ts +6 -0
- package/src/places/index.ts +5 -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,38 @@
|
|
|
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.SearchAddressRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Entrada del geocoding por texto (texto libre → candidatos de dirección) vía Amazon Location.
|
|
16
|
+
* Consumido por el endpoint privado de places-business (api-invoker).
|
|
17
|
+
*/
|
|
18
|
+
class SearchAddressRequest {
|
|
19
|
+
}
|
|
20
|
+
exports.SearchAddressRequest = SearchAddressRequest;
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], SearchAddressRequest.prototype, "text", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsOptional)(),
|
|
28
|
+
(0, class_validator_1.IsArray)(),
|
|
29
|
+
(0, class_validator_1.IsString)({ each: true }),
|
|
30
|
+
__metadata("design:type", Array)
|
|
31
|
+
], SearchAddressRequest.prototype, "countries", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsOptional)(),
|
|
34
|
+
(0, class_validator_1.IsInt)(),
|
|
35
|
+
(0, class_validator_1.Min)(1),
|
|
36
|
+
(0, class_validator_1.Max)(15),
|
|
37
|
+
__metadata("design:type", Number)
|
|
38
|
+
], SearchAddressRequest.prototype, "maxResults", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SearchAddressResponse = void 0;
|
|
4
|
+
/** Respuesta del geocoding por texto — candidatos de dirección normalizados. */
|
|
5
|
+
class SearchAddressResponse {
|
|
6
|
+
}
|
|
7
|
+
exports.SearchAddressResponse = SearchAddressResponse;
|
package/bin/places/index.d.ts
CHANGED
|
@@ -4,6 +4,11 @@ export * from './dtos/GetNearbyPlacesResponse';
|
|
|
4
4
|
export * from './dtos/ReportPlaceRequest';
|
|
5
5
|
export * from './dtos/ReportedPlaceDto';
|
|
6
6
|
export * from './dtos/ResolveReportedPlaceRequest';
|
|
7
|
+
export * from './dtos/AddressCandidate';
|
|
8
|
+
export * from './dtos/SearchAddressRequest';
|
|
9
|
+
export * from './dtos/SearchAddressResponse';
|
|
10
|
+
export * from './dtos/ReverseGeocodeRequest';
|
|
11
|
+
export * from './dtos/ReverseGeocodeResponse';
|
|
7
12
|
export * from './enums/CashInNetworkEnum';
|
|
8
13
|
export * from './enums/CashInProviderEnum';
|
|
9
14
|
export * from './enums/PlaceTypeEnum';
|
package/bin/places/index.js
CHANGED
|
@@ -21,6 +21,11 @@ __exportStar(require("./dtos/GetNearbyPlacesResponse"), exports);
|
|
|
21
21
|
__exportStar(require("./dtos/ReportPlaceRequest"), exports);
|
|
22
22
|
__exportStar(require("./dtos/ReportedPlaceDto"), exports);
|
|
23
23
|
__exportStar(require("./dtos/ResolveReportedPlaceRequest"), exports);
|
|
24
|
+
__exportStar(require("./dtos/AddressCandidate"), exports);
|
|
25
|
+
__exportStar(require("./dtos/SearchAddressRequest"), exports);
|
|
26
|
+
__exportStar(require("./dtos/SearchAddressResponse"), exports);
|
|
27
|
+
__exportStar(require("./dtos/ReverseGeocodeRequest"), exports);
|
|
28
|
+
__exportStar(require("./dtos/ReverseGeocodeResponse"), exports);
|
|
24
29
|
//enums
|
|
25
30
|
__exportStar(require("./enums/CashInNetworkEnum"), exports);
|
|
26
31
|
__exportStar(require("./enums/CashInProviderEnum"), exports);
|
|
@@ -0,0 +1,31 @@
|
|
|
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.CancelFundingReferenceRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CancelFundingReferenceRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CancelFundingReferenceRequest.prototype, "reference", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.MaxLength)(64),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], CancelFundingReferenceRequest.prototype, "idempotencyKey", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
export declare class CancelFundingReferenceResponse {
|
|
4
|
+
reference: string;
|
|
5
|
+
status: BenefitPaymentStatusEnum;
|
|
6
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
3
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
4
|
+
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
5
|
+
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
6
|
+
* porque vino en la respuesta del authorize).
|
|
7
|
+
*/
|
|
8
|
+
export declare class CancelFundingRequest {
|
|
9
|
+
idempotencyKey: string;
|
|
10
|
+
providerModuleName: string;
|
|
11
|
+
}
|
|
@@ -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.CancelFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
16
|
+
* `reference` viaja en el path, `directoryId` se resuelve del JWT.
|
|
17
|
+
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
18
|
+
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
19
|
+
* porque vino en la respuesta del authorize).
|
|
20
|
+
*/
|
|
21
|
+
class CancelFundingRequest {
|
|
22
|
+
}
|
|
23
|
+
exports.CancelFundingRequest = CancelFundingRequest;
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
(0, class_validator_1.MaxLength)(64),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], CancelFundingRequest.prototype, "idempotencyKey", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.MaxLength)(128),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], CancelFundingRequest.prototype, "providerModuleName", void 0);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
/**
|
|
4
|
+
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
5
|
+
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
6
|
+
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
7
|
+
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
8
|
+
*/
|
|
9
|
+
export declare class CancelFundingResponse {
|
|
10
|
+
reference: string;
|
|
11
|
+
status: BenefitPaymentStatusEnum;
|
|
12
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
|
+
message?: string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CancelFundingResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
6
|
+
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
7
|
+
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
8
|
+
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
9
|
+
*/
|
|
10
|
+
class CancelFundingResponse {
|
|
11
|
+
}
|
|
12
|
+
exports.CancelFundingResponse = CancelFundingResponse;
|
|
@@ -0,0 +1,21 @@
|
|
|
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.CancelWalletFundingRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CancelWalletFundingRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MaxLength)(64),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
+
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
+
export declare class CancelWalletFundingResponse {
|
|
4
|
+
status: BenefitPaymentStatusEnum;
|
|
5
|
+
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
+
reference?: string;
|
|
7
|
+
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { PaymentScheduleItemResponse } from "./PaymentScheduleItemResponse";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Preview / cotizacion de un abono a capital (ANTICIPATED) antes de ejecutarlo.
|
|
5
|
+
*
|
|
6
|
+
* Reusa el mismo motor de recalculo que la ejecucion real
|
|
7
|
+
* (ScheduleRecalculationService.redistributeCapital) — no persiste nada.
|
|
8
|
+
*
|
|
9
|
+
* Regla de negocio: el abono acorta la cuota semanal, NO el plazo. El numero
|
|
10
|
+
* de cupones se mantiene igual; los PENDING se re-amortizan sobre el nuevo
|
|
11
|
+
* saldo, los PARTIAL se escalan proporcionalmente y los PAID quedan intactos.
|
|
12
|
+
*/
|
|
13
|
+
export class AnticipatedPaymentQuote {
|
|
14
|
+
creditId!: string;
|
|
15
|
+
|
|
16
|
+
/** Monto que el usuario propuso, capeado al outstanding real del credito. */
|
|
17
|
+
amountMxn!: number;
|
|
18
|
+
|
|
19
|
+
/** Estado actual (as-is) del credito, antes de aplicar el abono. */
|
|
20
|
+
current!: AnticipatedPaymentSummary;
|
|
21
|
+
|
|
22
|
+
/** Estado proyectado (as-if) despues de aplicar el abono. */
|
|
23
|
+
after!: AnticipatedPaymentSummary;
|
|
24
|
+
|
|
25
|
+
/** Diferencia entre `current` y `after` — cuanto ahorra el usuario. */
|
|
26
|
+
savings!: AnticipatedPaymentSavings;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Calendario completo proyectado (todos los cupones: PAID historicos,
|
|
30
|
+
* PARTIAL escalados, PENDING re-amortizados). Mismo shape que
|
|
31
|
+
* `GET /credit/{creditId}/schedule` para que el frontend renderice con
|
|
32
|
+
* el mismo componente.
|
|
33
|
+
*/
|
|
34
|
+
newSchedule!: PaymentScheduleItemResponse[];
|
|
35
|
+
|
|
36
|
+
/** ISO timestamp de la cotizacion. */
|
|
37
|
+
quoteDate!: string;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export class AnticipatedPaymentSummary {
|
|
41
|
+
/** Cuota semanal vigente. */
|
|
42
|
+
weeklyPaymentMxn!: number;
|
|
43
|
+
/** Saldo insoluto (capital pendiente). */
|
|
44
|
+
outstandingMxn!: number;
|
|
45
|
+
/** Cupones que aun no estan PAID (incluye PARTIAL). */
|
|
46
|
+
remainingCoupons!: number;
|
|
47
|
+
/** Total pendiente a pagar (capital + interes + IVA de cupones no PAID). */
|
|
48
|
+
totalToPayMxn!: number;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class AnticipatedPaymentSavings {
|
|
52
|
+
/** Reduccion en la cuota semanal (current - after). */
|
|
53
|
+
weeklyMxn!: number;
|
|
54
|
+
/** Reduccion total en intereses + IVA a pagar (current - after). */
|
|
55
|
+
totalInterestMxn!: number;
|
|
56
|
+
}
|
package/src/index.ts
CHANGED
|
@@ -123,5 +123,12 @@ export * as LoanOfferings from './loanOfferings';
|
|
|
123
123
|
// LoanCollectorAssignment: DTOs/enums del lambda loan-collector-assignment-business (comp 08 — reglas de
|
|
124
124
|
// asignación de cartera de cobranza + asignaciones crédito↔cobrador; SureKeep Fase 1 — pista Loan).
|
|
125
125
|
export * as LoanCollectorAssignment from './loanCollectorAssignment';
|
|
126
|
+
// LoanCredit: DTOs/enums del lambda loan-credit-business (comp 09 F2/F3 — motor de crédito SOFOM:
|
|
127
|
+
// acreditado, crédito, plan de cuotas con amortización francesa + IVA 16%; SureKeep — pista Loan).
|
|
128
|
+
export * as LoanCredit from './loanCredit';
|
|
129
|
+
// LoanScoring: DTOs/enums del lambda loan-scoring-business (comp 08 F2 — SCI M7 de 3 capas +
|
|
130
|
+
// ScoringProviderRouter configurable Modelias|Círculo con contrato agnóstico ScoringDecision;
|
|
131
|
+
// SureKeep Fase 2 — pista Loan/SOFOM).
|
|
132
|
+
export * as LoanScoring from './loanScoring';
|
|
126
133
|
export * from './messaging';
|
|
127
134
|
export * from './complaint';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsBoolean } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Las 4 condiciones de activación del crédito (M2 §5 / 05_MOTOR §7). El crédito solo puede pasar a
|
|
6
|
+
* `ACTIVE` cuando las 4 son `true`. `downPayment`/`contractSigned` las marca la firma del contrato;
|
|
7
|
+
* `imeiEnrolled`/`lockVerified` las marca el enrolamiento MDM.
|
|
8
|
+
*/
|
|
9
|
+
export class ActivationChecklist {
|
|
10
|
+
@Expose()
|
|
11
|
+
@IsBoolean()
|
|
12
|
+
downPayment!: boolean;
|
|
13
|
+
|
|
14
|
+
@Expose()
|
|
15
|
+
@IsBoolean()
|
|
16
|
+
contractSigned!: boolean;
|
|
17
|
+
|
|
18
|
+
@Expose()
|
|
19
|
+
@IsBoolean()
|
|
20
|
+
imeiEnrolled!: boolean;
|
|
21
|
+
|
|
22
|
+
@Expose()
|
|
23
|
+
@IsBoolean()
|
|
24
|
+
lockVerified!: boolean;
|
|
25
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Expose } from 'class-transformer';
|
|
2
|
+
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Beneficiario declarado por el acreditado (modelo-datos §5b `LoanBorrower.beneficiary`).
|
|
6
|
+
*/
|
|
7
|
+
export class LoanBeneficiary {
|
|
8
|
+
@Expose()
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
fullName!: string;
|
|
12
|
+
|
|
13
|
+
@Expose()
|
|
14
|
+
@IsOptional()
|
|
15
|
+
@IsString()
|
|
16
|
+
relationship?: string;
|
|
17
|
+
|
|
18
|
+
@Expose()
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
phone?: string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import {
|
|
3
|
+
IsInt,
|
|
4
|
+
IsEnum,
|
|
5
|
+
IsOptional,
|
|
6
|
+
IsString,
|
|
7
|
+
Matches,
|
|
8
|
+
Max,
|
|
9
|
+
Min,
|
|
10
|
+
ValidateNested,
|
|
11
|
+
} from 'class-validator';
|
|
12
|
+
import { regexIso8601 } from '../../helpers/constans/regex';
|
|
13
|
+
import { ClientLevelEnum } from '../enums/ClientLevelEnum';
|
|
14
|
+
import { LoanBeneficiary } from './LoanBeneficiary';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* LoanBorrower — el acreditado de la SOFOM (modelo-datos §5b · owner `loan-credit-business`).
|
|
18
|
+
* Se hidrata desde el evento `CustomerKycVerifiedV1` de retail-customer (idempotente por
|
|
19
|
+
* `retailCustomerId`). `sciScore`/`clientLevel` los actualiza loan-scoring tras cada evaluación.
|
|
20
|
+
*/
|
|
21
|
+
export class LoanBorrower {
|
|
22
|
+
@Expose()
|
|
23
|
+
@IsString()
|
|
24
|
+
borrowerId!: string;
|
|
25
|
+
|
|
26
|
+
/** FK al comprador de retail (`RetailCustomer` — owner retail-customer-business). */
|
|
27
|
+
@Expose()
|
|
28
|
+
@IsString()
|
|
29
|
+
retailCustomerId!: string;
|
|
30
|
+
|
|
31
|
+
/** SCI vigente 0-100 (M7). Ausente hasta la primera evaluación. */
|
|
32
|
+
@Expose()
|
|
33
|
+
@IsOptional()
|
|
34
|
+
@IsInt()
|
|
35
|
+
@Min(0)
|
|
36
|
+
@Max(100)
|
|
37
|
+
sciScore?: number;
|
|
38
|
+
|
|
39
|
+
@Expose()
|
|
40
|
+
@IsOptional()
|
|
41
|
+
@IsEnum(ClientLevelEnum)
|
|
42
|
+
clientLevel?: ClientLevelEnum;
|
|
43
|
+
|
|
44
|
+
/** Score FICO/FIS del buró en la última consulta (Círculo de Crédito). */
|
|
45
|
+
@Expose()
|
|
46
|
+
@IsOptional()
|
|
47
|
+
@IsInt()
|
|
48
|
+
bureauScore?: number;
|
|
49
|
+
|
|
50
|
+
@Expose()
|
|
51
|
+
@IsOptional()
|
|
52
|
+
@ValidateNested()
|
|
53
|
+
@Type(() => LoanBeneficiary)
|
|
54
|
+
beneficiary?: LoanBeneficiary;
|
|
55
|
+
|
|
56
|
+
@Expose()
|
|
57
|
+
@IsString()
|
|
58
|
+
createdBy!: string;
|
|
59
|
+
|
|
60
|
+
@Expose()
|
|
61
|
+
@IsString()
|
|
62
|
+
updatedBy!: string;
|
|
63
|
+
|
|
64
|
+
@Expose()
|
|
65
|
+
@Matches(regexIso8601)
|
|
66
|
+
createdAt!: string;
|
|
67
|
+
|
|
68
|
+
@Expose()
|
|
69
|
+
@Matches(regexIso8601)
|
|
70
|
+
updatedAt!: string;
|
|
71
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { Expose, Type } from 'class-transformer';
|
|
2
|
+
import {
|
|
3
|
+
IsEnum,
|
|
4
|
+
IsInt,
|
|
5
|
+
IsNumber,
|
|
6
|
+
IsOptional,
|
|
7
|
+
IsString,
|
|
8
|
+
Matches,
|
|
9
|
+
Max,
|
|
10
|
+
Min,
|
|
11
|
+
ValidateNested,
|
|
12
|
+
} from 'class-validator';
|
|
13
|
+
import { regexIso8601 } from '../../helpers/constans/regex';
|
|
14
|
+
import { ClientLevelEnum } from '../enums/ClientLevelEnum';
|
|
15
|
+
import { LoanCreditStatusEnum } from '../enums/LoanCreditStatusEnum';
|
|
16
|
+
import { ActivationChecklist } from './ActivationChecklist';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* LoanCredit — el crédito SOFOM (modelo-datos §5b · M2 · owner `loan-credit-business`).
|
|
20
|
+
*
|
|
21
|
+
* Convenciones: montos en **cents** (entero); TNA decimal (`2.30` = 230%); porcentajes decimal
|
|
22
|
+
* sobre 1. La estructura financiera es amortización francesa + IVA 16% sobre intereses, sin interés
|
|
23
|
+
* moratorio (M2 §3). El snapshot `sciAtOrigination`/`clientLevelAtOrigination` congela las
|
|
24
|
+
* condiciones del cliente al originar (el SCI vivo evoluciona en `LoanBorrower`).
|
|
25
|
+
*/
|
|
26
|
+
export class LoanCredit {
|
|
27
|
+
@Expose()
|
|
28
|
+
@IsString()
|
|
29
|
+
creditId!: string;
|
|
30
|
+
|
|
31
|
+
@Expose()
|
|
32
|
+
@IsString()
|
|
33
|
+
borrowerId!: string;
|
|
34
|
+
|
|
35
|
+
@Expose()
|
|
36
|
+
@IsEnum(LoanCreditStatusEnum)
|
|
37
|
+
status!: LoanCreditStatusEnum;
|
|
38
|
+
|
|
39
|
+
/** Plan de crédito del catálogo de loan-offerings con el que se originó. */
|
|
40
|
+
@Expose()
|
|
41
|
+
@IsString()
|
|
42
|
+
planId!: string;
|
|
43
|
+
|
|
44
|
+
@Expose()
|
|
45
|
+
@IsInt()
|
|
46
|
+
@Min(1)
|
|
47
|
+
termWeeks!: number;
|
|
48
|
+
|
|
49
|
+
@Expose()
|
|
50
|
+
@IsInt()
|
|
51
|
+
@Min(1)
|
|
52
|
+
equipmentPriceCents!: number;
|
|
53
|
+
|
|
54
|
+
@Expose()
|
|
55
|
+
@IsInt()
|
|
56
|
+
@Min(0)
|
|
57
|
+
downPaymentCents!: number;
|
|
58
|
+
|
|
59
|
+
/** Capital financiado = precio del equipo − enganche. */
|
|
60
|
+
@Expose()
|
|
61
|
+
@IsInt()
|
|
62
|
+
@Min(1)
|
|
63
|
+
financedCapitalCents!: number;
|
|
64
|
+
|
|
65
|
+
/** TNA decimal (`2.30` = 230%). */
|
|
66
|
+
@Expose()
|
|
67
|
+
@IsNumber()
|
|
68
|
+
@Min(0)
|
|
69
|
+
tnaAnnual!: number;
|
|
70
|
+
|
|
71
|
+
/** Cuota semanal sin IVA (constante en amortización francesa). */
|
|
72
|
+
@Expose()
|
|
73
|
+
@IsInt()
|
|
74
|
+
weeklyPaymentCents!: number;
|
|
75
|
+
|
|
76
|
+
/** Cuota semanal con IVA de la primera semana (informativa — el IVA decrece por cuota). */
|
|
77
|
+
@Expose()
|
|
78
|
+
@IsInt()
|
|
79
|
+
weeklyPaymentWithIvaCents!: number;
|
|
80
|
+
|
|
81
|
+
@Expose()
|
|
82
|
+
@IsInt()
|
|
83
|
+
totalInterestCents!: number;
|
|
84
|
+
|
|
85
|
+
@Expose()
|
|
86
|
+
@IsInt()
|
|
87
|
+
totalIvaCents!: number;
|
|
88
|
+
|
|
89
|
+
/** Total a pagar = capital + intereses + IVA. */
|
|
90
|
+
@Expose()
|
|
91
|
+
@IsInt()
|
|
92
|
+
totalToPayCents!: number;
|
|
93
|
+
|
|
94
|
+
/** IMEI del equipo financiado (se fija en el enrolamiento MDM). */
|
|
95
|
+
@Expose()
|
|
96
|
+
@IsOptional()
|
|
97
|
+
@IsString()
|
|
98
|
+
imei?: string;
|
|
99
|
+
|
|
100
|
+
@Expose()
|
|
101
|
+
@ValidateNested()
|
|
102
|
+
@Type(() => ActivationChecklist)
|
|
103
|
+
activationChecklist!: ActivationChecklist;
|
|
104
|
+
|
|
105
|
+
/** SCI del cliente al originar (snapshot, 0-100). */
|
|
106
|
+
@Expose()
|
|
107
|
+
@IsOptional()
|
|
108
|
+
@IsInt()
|
|
109
|
+
@Min(0)
|
|
110
|
+
@Max(100)
|
|
111
|
+
sciAtOrigination?: number;
|
|
112
|
+
|
|
113
|
+
@Expose()
|
|
114
|
+
@IsOptional()
|
|
115
|
+
@IsEnum(ClientLevelEnum)
|
|
116
|
+
clientLevelAtOrigination?: ClientLevelEnum;
|
|
117
|
+
|
|
118
|
+
@Expose()
|
|
119
|
+
@IsOptional()
|
|
120
|
+
@Matches(regexIso8601)
|
|
121
|
+
activatedAt?: string;
|
|
122
|
+
|
|
123
|
+
/** Fin de la ventana de cancelación voluntaria = activatedAt + 7 días naturales (M2 §11.3). */
|
|
124
|
+
@Expose()
|
|
125
|
+
@IsOptional()
|
|
126
|
+
@Matches(regexIso8601)
|
|
127
|
+
voluntaryCancelDeadline?: string;
|
|
128
|
+
|
|
129
|
+
/** Vencimiento de la primera cuota (primer viernes después de la activación). */
|
|
130
|
+
@Expose()
|
|
131
|
+
@IsOptional()
|
|
132
|
+
@IsString()
|
|
133
|
+
firstDueDate?: string;
|
|
134
|
+
|
|
135
|
+
/** Vencimiento de la última cuota. */
|
|
136
|
+
@Expose()
|
|
137
|
+
@IsOptional()
|
|
138
|
+
@IsString()
|
|
139
|
+
lastDueDate?: string;
|
|
140
|
+
|
|
141
|
+
@Expose()
|
|
142
|
+
@IsString()
|
|
143
|
+
createdBy!: string;
|
|
144
|
+
|
|
145
|
+
@Expose()
|
|
146
|
+
@IsString()
|
|
147
|
+
updatedBy!: string;
|
|
148
|
+
|
|
149
|
+
@Expose()
|
|
150
|
+
@Matches(regexIso8601)
|
|
151
|
+
createdAt!: string;
|
|
152
|
+
|
|
153
|
+
@Expose()
|
|
154
|
+
@Matches(regexIso8601)
|
|
155
|
+
updatedAt!: string;
|
|
156
|
+
}
|