@fiado/type-kit 3.1.30 → 3.2.1
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/benefitCenter/dtos/BannerActionRequest.d.ts +7 -0
- package/bin/benefitCenter/dtos/BannerActionRequest.js +36 -0
- package/bin/benefitCenter/dtos/BannerContentRequest.d.ts +6 -0
- package/bin/benefitCenter/dtos/BannerContentRequest.js +28 -0
- package/bin/benefitCenter/dtos/BannerCreateRequest.d.ts +14 -0
- package/bin/benefitCenter/dtos/BannerCreateRequest.js +64 -0
- package/bin/benefitCenter/dtos/BannerTranslationRequest.d.ts +7 -0
- package/bin/benefitCenter/dtos/BannerTranslationRequest.js +41 -0
- package/bin/benefitCenter/dtos/BannerTranslationsRequest.d.ts +5 -0
- package/bin/benefitCenter/dtos/BannerTranslationsRequest.js +30 -0
- package/bin/benefitCenter/dtos/BannerUpdateRequest.d.ts +13 -0
- package/bin/benefitCenter/dtos/BannerUpdateRequest.js +63 -0
- package/bin/benefitCenter/dtos/BenefitCreateRequest.d.ts +20 -0
- package/bin/benefitCenter/dtos/BenefitCreateRequest.js +73 -0
- package/bin/benefitCenter/dtos/BenefitModuleConfigRequest.d.ts +4 -0
- package/bin/benefitCenter/dtos/BenefitModuleConfigRequest.js +25 -0
- package/bin/benefitCenter/dtos/BenefitModuleEntryRequest.d.ts +4 -0
- package/bin/benefitCenter/dtos/BenefitModuleEntryRequest.js +26 -0
- package/bin/benefitCenter/dtos/BenefitUpdateRequest.d.ts +14 -0
- package/bin/benefitCenter/dtos/BenefitUpdateRequest.js +67 -0
- package/bin/benefitCenter/dtos/PublicVerifyReferenceRequest.d.ts +16 -0
- package/bin/benefitCenter/dtos/PublicVerifyReferenceRequest.js +50 -0
- package/bin/benefitCenter/index.d.ts +11 -0
- package/bin/benefitCenter/index.js +12 -0
- package/bin/credit/dtos/BannerStateResponse.d.ts +19 -4
- package/bin/credit/dtos/BannerStateResponse.js +7 -1
- package/bin/credit/dtos/CreditOfferOptionItem.d.ts +6 -0
- package/bin/credit/dtos/EligibilityResponse.d.ts +2 -2
- package/bin/creditBackoffice/dtos/BackofficeApplicationDetail.d.ts +36 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationDetail.js +14 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationsListItem.d.ts +11 -0
- package/bin/creditBackoffice/dtos/BackofficeApplicationsListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditDetail.d.ts +80 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditDetail.js +21 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditsListItem.d.ts +14 -0
- package/bin/creditBackoffice/dtos/BackofficeCreditsListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeIncomeSourceItem.d.ts +13 -0
- package/bin/creditBackoffice/dtos/BackofficeIncomeSourceItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeOfferDetail.d.ts +35 -0
- package/bin/creditBackoffice/dtos/BackofficeOfferDetail.js +14 -0
- package/bin/creditBackoffice/dtos/BackofficeOffersListItem.d.ts +16 -0
- package/bin/creditBackoffice/dtos/BackofficeOffersListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficePagination.d.ts +6 -0
- package/bin/creditBackoffice/dtos/BackofficePagination.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficePipeline.d.ts +11 -0
- package/bin/creditBackoffice/dtos/BackofficePipeline.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficePipelineByLevel.d.ts +6 -0
- package/bin/creditBackoffice/dtos/BackofficePipelineByLevel.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfileDetail.d.ts +68 -0
- package/bin/creditBackoffice/dtos/BackofficeProfileDetail.js +13 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListItem.d.ts +17 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListItem.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListResponse.d.ts +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesListResponse.js +6 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesSummary.d.ts +19 -0
- package/bin/creditBackoffice/dtos/BackofficeProfilesSummary.js +6 -0
- package/bin/creditBackoffice/dtos/ConfigSnapshotListItem.d.ts +10 -0
- package/bin/creditBackoffice/dtos/ConfigSnapshotListItem.js +9 -0
- package/bin/creditBackoffice/dtos/SimulateImpactRequest.d.ts +9 -0
- package/bin/creditBackoffice/dtos/SimulateImpactRequest.js +34 -0
- package/bin/creditBackoffice/dtos/SimulateImpactResult.d.ts +46 -0
- package/bin/creditBackoffice/dtos/SimulateImpactResult.js +18 -0
- package/bin/creditBackoffice/dtos/SimulateInterestRequest.d.ts +8 -0
- package/bin/creditBackoffice/dtos/SimulateInterestRequest.js +30 -0
- package/bin/creditBackoffice/dtos/SimulateInterestResult.d.ts +10 -0
- package/bin/creditBackoffice/dtos/SimulateInterestResult.js +9 -0
- package/bin/creditBackoffice/dtos/UpdateConfigRequest.d.ts +10 -0
- package/bin/creditBackoffice/dtos/UpdateConfigRequest.js +40 -0
- package/bin/creditBackoffice/enums/ConfigType.d.ts +17 -0
- package/bin/creditBackoffice/enums/ConfigType.js +21 -0
- package/bin/creditBackoffice/index.d.ts +21 -0
- package/bin/creditBackoffice/index.js +39 -0
- package/bin/creditDashboard/dtos/CohortQualityItem.d.ts +8 -0
- package/bin/creditDashboard/dtos/CohortQualityItem.js +6 -0
- package/bin/creditDashboard/dtos/DashboardSummary.d.ts +8 -0
- package/bin/creditDashboard/dtos/DashboardSummary.js +6 -0
- package/bin/creditDashboard/dtos/NurturingFunnelItem.d.ts +5 -0
- package/bin/creditDashboard/dtos/NurturingFunnelItem.js +6 -0
- package/bin/creditDashboard/dtos/OriginationCompositionResult.d.ts +13 -0
- package/bin/creditDashboard/dtos/OriginationCompositionResult.js +6 -0
- package/bin/creditDashboard/dtos/OriginationEfficiencyResult.d.ts +8 -0
- package/bin/creditDashboard/dtos/OriginationEfficiencyResult.js +6 -0
- package/bin/creditDashboard/dtos/OriginationMonthlyItem.d.ts +6 -0
- package/bin/creditDashboard/dtos/OriginationMonthlyItem.js +6 -0
- package/bin/creditDashboard/dtos/OriginationSummaryResult.d.ts +6 -0
- package/bin/creditDashboard/dtos/OriginationSummaryResult.js +6 -0
- package/bin/creditDashboard/dtos/OriginationWeeklyItem.d.ts +7 -0
- package/bin/creditDashboard/dtos/OriginationWeeklyItem.js +6 -0
- package/bin/creditDashboard/dtos/PipelineLevelRow.d.ts +26 -0
- package/bin/creditDashboard/dtos/PipelineLevelRow.js +6 -0
- package/bin/creditDashboard/dtos/PipelineWeek.d.ts +6 -0
- package/bin/creditDashboard/dtos/PipelineWeek.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioActiveItem.d.ts +12 -0
- package/bin/creditDashboard/dtos/PortfolioActiveItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioBalance.d.ts +5 -0
- package/bin/creditDashboard/dtos/PortfolioBalance.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioBalanceMonthlyItem.d.ts +5 -0
- package/bin/creditDashboard/dtos/PortfolioBalanceMonthlyItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioByLevelItem.d.ts +7 -0
- package/bin/creditDashboard/dtos/PortfolioByLevelItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioResolutionItem.d.ts +8 -0
- package/bin/creditDashboard/dtos/PortfolioResolutionItem.js +6 -0
- package/bin/creditDashboard/dtos/PortfolioUpcomingWeek.d.ts +7 -0
- package/bin/creditDashboard/dtos/PortfolioUpcomingWeek.js +6 -0
- package/bin/creditDashboard/index.d.ts +16 -0
- package/bin/creditDashboard/index.js +32 -0
- package/bin/creditEngine/dtos/AdvancedPaymentRequest.d.ts +8 -0
- package/bin/creditEngine/dtos/AdvancedPaymentRequest.js +30 -0
- package/bin/creditEngine/dtos/AnticipatedPaymentRequest.d.ts +8 -0
- package/bin/creditEngine/dtos/AnticipatedPaymentRequest.js +30 -0
- package/bin/creditEngine/dtos/CreditDetailResponse.d.ts +25 -11
- package/bin/creditEngine/dtos/CreditOriginationRequest.d.ts +4 -1
- package/bin/creditEngine/dtos/CreditOriginationRequest.js +11 -0
- package/bin/creditEngine/dtos/CreditRequestResult.d.ts +9 -0
- package/bin/creditEngine/dtos/CreditRequestResult.js +9 -0
- package/bin/creditEngine/dtos/CreditSignatureResult.d.ts +8 -0
- package/bin/creditEngine/dtos/CreditSignatureResult.js +9 -0
- package/bin/creditEngine/dtos/EarlyPaymentResult.d.ts +9 -0
- package/bin/creditEngine/dtos/EarlyPaymentResult.js +9 -0
- package/bin/creditEngine/dtos/OfferResult.d.ts +15 -0
- package/bin/creditEngine/dtos/OfferResult.js +12 -0
- package/bin/creditEngine/dtos/PaymentScheduleItemResponse.d.ts +7 -6
- package/bin/creditEngine/dtos/SettlementPaymentRequest.d.ts +7 -0
- package/bin/creditEngine/dtos/SettlementPaymentRequest.js +25 -0
- package/bin/creditEngine/dtos/SettlementQuote.d.ts +14 -0
- package/bin/creditEngine/dtos/SettlementQuote.js +9 -0
- package/bin/creditEngine/index.d.ts +8 -0
- package/bin/creditEngine/index.js +8 -0
- package/bin/customerFile/dtos/CustomerFileSearchRequest.d.ts +5 -0
- package/bin/customerFile/dtos/CustomerFileSearchRequest.js +32 -0
- package/bin/customerFile/index.d.ts +1 -0
- package/bin/customerFile/index.js +17 -0
- package/bin/index.d.ts +3 -0
- package/bin/index.js +4 -1
- package/package.json +1 -1
- package/src/benefitCenter/dtos/BannerActionRequest.ts +14 -0
- package/src/benefitCenter/dtos/BannerContentRequest.ts +13 -0
- package/src/benefitCenter/dtos/BannerCreateRequest.ts +46 -0
- package/src/benefitCenter/dtos/BannerTranslationRequest.ts +9 -0
- package/src/benefitCenter/dtos/BannerTranslationsRequest.ts +15 -0
- package/src/benefitCenter/dtos/BannerUpdateRequest.ts +35 -0
- package/src/benefitCenter/dtos/BenefitCreateRequest.ts +59 -0
- package/src/benefitCenter/dtos/BenefitModuleConfigRequest.ts +11 -0
- package/src/benefitCenter/dtos/BenefitModuleEntryRequest.ts +11 -0
- package/src/benefitCenter/dtos/BenefitUpdateRequest.ts +34 -0
- package/src/benefitCenter/dtos/PublicVerifyReferenceRequest.ts +33 -0
- package/src/benefitCenter/index.ts +12 -0
- package/src/credit/dtos/BannerStateResponse.ts +20 -1
- package/src/credit/dtos/CreditOfferOptionItem.ts +6 -0
- package/src/credit/dtos/EligibilityResponse.ts +2 -2
- package/src/creditBackoffice/dtos/BackofficeApplicationDetail.ts +33 -0
- package/src/creditBackoffice/dtos/BackofficeApplicationsListItem.ts +11 -0
- package/src/creditBackoffice/dtos/BackofficeCreditDetail.ts +78 -0
- package/src/creditBackoffice/dtos/BackofficeCreditsListItem.ts +14 -0
- package/src/creditBackoffice/dtos/BackofficeIncomeSourceItem.ts +13 -0
- package/src/creditBackoffice/dtos/BackofficeOfferDetail.ts +29 -0
- package/src/creditBackoffice/dtos/BackofficeOffersListItem.ts +13 -0
- package/src/creditBackoffice/dtos/BackofficePagination.ts +6 -0
- package/src/creditBackoffice/dtos/BackofficePipeline.ts +9 -0
- package/src/creditBackoffice/dtos/BackofficePipelineByLevel.ts +6 -0
- package/src/creditBackoffice/dtos/BackofficeProfileDetail.ts +79 -0
- package/src/creditBackoffice/dtos/BackofficeProfilesListItem.ts +17 -0
- package/src/creditBackoffice/dtos/BackofficeProfilesListResponse.ts +7 -0
- package/src/creditBackoffice/dtos/BackofficeProfilesSummary.ts +12 -0
- package/src/creditBackoffice/dtos/ConfigSnapshotListItem.ts +10 -0
- package/src/creditBackoffice/dtos/SimulateImpactRequest.ts +18 -0
- package/src/creditBackoffice/dtos/SimulateImpactResult.ts +41 -0
- package/src/creditBackoffice/dtos/SimulateInterestRequest.ts +15 -0
- package/src/creditBackoffice/dtos/SimulateInterestResult.ts +11 -0
- package/src/creditBackoffice/dtos/UpdateConfigRequest.ts +23 -0
- package/src/creditBackoffice/enums/ConfigType.ts +17 -0
- package/src/creditBackoffice/index.ts +24 -0
- package/src/creditDashboard/dtos/CohortQualityItem.ts +8 -0
- package/src/creditDashboard/dtos/DashboardSummary.ts +8 -0
- package/src/creditDashboard/dtos/NurturingFunnelItem.ts +5 -0
- package/src/creditDashboard/dtos/OriginationCompositionResult.ts +5 -0
- package/src/creditDashboard/dtos/OriginationEfficiencyResult.ts +8 -0
- package/src/creditDashboard/dtos/OriginationMonthlyItem.ts +6 -0
- package/src/creditDashboard/dtos/OriginationSummaryResult.ts +6 -0
- package/src/creditDashboard/dtos/OriginationWeeklyItem.ts +7 -0
- package/src/creditDashboard/dtos/PipelineLevelRow.ts +10 -0
- package/src/creditDashboard/dtos/PipelineWeek.ts +7 -0
- package/src/creditDashboard/dtos/PortfolioActiveItem.ts +12 -0
- package/src/creditDashboard/dtos/PortfolioBalance.ts +5 -0
- package/src/creditDashboard/dtos/PortfolioBalanceMonthlyItem.ts +5 -0
- package/src/creditDashboard/dtos/PortfolioByLevelItem.ts +7 -0
- package/src/creditDashboard/dtos/PortfolioResolutionItem.ts +8 -0
- package/src/creditDashboard/dtos/PortfolioUpcomingWeek.ts +7 -0
- package/src/creditDashboard/index.ts +16 -0
- package/src/creditEngine/dtos/AdvancedPaymentRequest.ts +15 -0
- package/src/creditEngine/dtos/AnticipatedPaymentRequest.ts +15 -0
- package/src/creditEngine/dtos/CreditDetailResponse.ts +25 -11
- package/src/creditEngine/dtos/CreditOriginationRequest.ts +12 -2
- package/src/creditEngine/dtos/CreditRequestResult.ts +9 -0
- package/src/creditEngine/dtos/CreditSignatureResult.ts +8 -0
- package/src/creditEngine/dtos/EarlyPaymentResult.ts +9 -0
- package/src/creditEngine/dtos/OfferResult.ts +16 -0
- package/src/creditEngine/dtos/PaymentScheduleItemResponse.ts +7 -6
- package/src/creditEngine/dtos/SettlementPaymentRequest.ts +11 -0
- package/src/creditEngine/dtos/SettlementQuote.ts +14 -0
- package/src/creditEngine/index.ts +8 -0
- package/src/customerFile/dtos/CustomerFileSearchRequest.ts +16 -0
- package/src/customerFile/index.ts +1 -0
- package/src/index.ts +3 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ArrayNotEmpty, IsArray, IsNotEmpty, IsOptional, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para actualizar una configuración de política de crédito.
|
|
5
|
+
* Endpoint: PUT /backoffice/config/{configType}
|
|
6
|
+
*/
|
|
7
|
+
export class UpdateConfigRequest {
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
partnerId!: string;
|
|
11
|
+
|
|
12
|
+
@IsArray()
|
|
13
|
+
@ArrayNotEmpty()
|
|
14
|
+
items!: Array<Record<string, unknown>>;
|
|
15
|
+
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
updatedBy?: string;
|
|
19
|
+
|
|
20
|
+
@IsOptional()
|
|
21
|
+
@IsString()
|
|
22
|
+
description?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tipos de configuración de política de crédito que expone el backoffice.
|
|
3
|
+
* Los valores son los `sk` (sin el prefijo) de las tablas de config en DynamoDB.
|
|
4
|
+
*
|
|
5
|
+
* Se ubica en domain porque es contrato del API (path parameter público) y concepto
|
|
6
|
+
* de negocio — no un detalle de persistencia.
|
|
7
|
+
*/
|
|
8
|
+
export enum ConfigType {
|
|
9
|
+
ELIGIBILITY_RULES = "eligibility-rules",
|
|
10
|
+
CREDIT_LEVELS = "credit-levels",
|
|
11
|
+
INTEREST_RATES = "interest-rates",
|
|
12
|
+
SPLIT = "split",
|
|
13
|
+
EXPOSURE_LIMITS = "exposure-limits",
|
|
14
|
+
SCORES = "scores",
|
|
15
|
+
BANK_ACCOUNTS = "bank-accounts",
|
|
16
|
+
OPERATIONAL_PARAMS = "operational-params",
|
|
17
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Enums
|
|
2
|
+
export * from './enums/ConfigType';
|
|
3
|
+
|
|
4
|
+
// DTOs
|
|
5
|
+
export * from './dtos/BackofficeApplicationDetail';
|
|
6
|
+
export * from './dtos/BackofficeApplicationsListItem';
|
|
7
|
+
export * from './dtos/BackofficeCreditDetail';
|
|
8
|
+
export * from './dtos/BackofficeCreditsListItem';
|
|
9
|
+
export * from './dtos/BackofficeIncomeSourceItem';
|
|
10
|
+
export * from './dtos/BackofficeOfferDetail';
|
|
11
|
+
export * from './dtos/BackofficeOffersListItem';
|
|
12
|
+
export * from './dtos/BackofficePagination';
|
|
13
|
+
export * from './dtos/BackofficePipeline';
|
|
14
|
+
export * from './dtos/BackofficePipelineByLevel';
|
|
15
|
+
export * from './dtos/BackofficeProfileDetail';
|
|
16
|
+
export * from './dtos/BackofficeProfilesListItem';
|
|
17
|
+
export * from './dtos/BackofficeProfilesListResponse';
|
|
18
|
+
export * from './dtos/BackofficeProfilesSummary';
|
|
19
|
+
export * from './dtos/ConfigSnapshotListItem';
|
|
20
|
+
export * from './dtos/SimulateImpactRequest';
|
|
21
|
+
export * from './dtos/SimulateImpactResult';
|
|
22
|
+
export * from './dtos/SimulateInterestRequest';
|
|
23
|
+
export * from './dtos/SimulateInterestResult';
|
|
24
|
+
export * from './dtos/UpdateConfigRequest';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export class PipelineLevelRow {
|
|
2
|
+
level!: string;
|
|
3
|
+
offers!: { count: number; amount_mxn: number; avg_mxn: number };
|
|
4
|
+
applications!: { count: number; amount_mxn: number; avg_mxn: number };
|
|
5
|
+
credits!: { count: number; amount_mxn: number; avg_mxn: number };
|
|
6
|
+
conversion_pct!: number;
|
|
7
|
+
credit_status!: { active_pct: number; paid_off_pct: number; delinquent_pct: number };
|
|
8
|
+
avg_term_weeks!: number;
|
|
9
|
+
avg_annual_rate!: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export class PortfolioActiveItem {
|
|
2
|
+
credit_id!: string;
|
|
3
|
+
directory_id!: string;
|
|
4
|
+
partner_id!: string;
|
|
5
|
+
amount_mxn!: number;
|
|
6
|
+
term_weeks!: number;
|
|
7
|
+
annual_rate!: number;
|
|
8
|
+
weekly_payment_mxn!: number;
|
|
9
|
+
status!: string;
|
|
10
|
+
disbursed_at!: string;
|
|
11
|
+
credit_level!: string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from './dtos/CohortQualityItem';
|
|
2
|
+
export * from './dtos/DashboardSummary';
|
|
3
|
+
export * from './dtos/NurturingFunnelItem';
|
|
4
|
+
export * from './dtos/OriginationCompositionResult';
|
|
5
|
+
export * from './dtos/OriginationEfficiencyResult';
|
|
6
|
+
export * from './dtos/OriginationMonthlyItem';
|
|
7
|
+
export * from './dtos/OriginationSummaryResult';
|
|
8
|
+
export * from './dtos/OriginationWeeklyItem';
|
|
9
|
+
export * from './dtos/PipelineLevelRow';
|
|
10
|
+
export * from './dtos/PipelineWeek';
|
|
11
|
+
export * from './dtos/PortfolioActiveItem';
|
|
12
|
+
export * from './dtos/PortfolioBalance';
|
|
13
|
+
export * from './dtos/PortfolioBalanceMonthlyItem';
|
|
14
|
+
export * from './dtos/PortfolioByLevelItem';
|
|
15
|
+
export * from './dtos/PortfolioResolutionItem';
|
|
16
|
+
export * from './dtos/PortfolioUpcomingWeek';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IsNotEmpty, IsNumber, IsString, Min } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para pago adelantado: paga cupones futuros por adelantado en cascada.
|
|
5
|
+
* Endpoint: POST /{partnerId}/early-payment/advanced
|
|
6
|
+
*/
|
|
7
|
+
export class AdvancedPaymentRequest {
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
credit_id!: string;
|
|
11
|
+
|
|
12
|
+
@IsNumber()
|
|
13
|
+
@Min(1)
|
|
14
|
+
amount_mxn!: number;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IsNotEmpty, IsNumber, IsString, Min } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para pago anticipado: abono a capital en cascada sobre cupones pendientes.
|
|
5
|
+
* Endpoint: POST /{partnerId}/early-payment/anticipated
|
|
6
|
+
*/
|
|
7
|
+
export class AnticipatedPaymentRequest {
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
credit_id!: string;
|
|
11
|
+
|
|
12
|
+
@IsNumber()
|
|
13
|
+
@Min(1)
|
|
14
|
+
amount_mxn!: number;
|
|
15
|
+
}
|
|
@@ -4,15 +4,29 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export class CreditDetailResponse {
|
|
6
6
|
creditId!: string;
|
|
7
|
-
applicationId
|
|
8
|
-
directoryId
|
|
9
|
-
amountMxn
|
|
10
|
-
termWeeks
|
|
11
|
-
annualRate
|
|
12
|
-
weeklyPaymentMxn
|
|
13
|
-
status
|
|
14
|
-
nextPaymentDate
|
|
15
|
-
paidCoupons
|
|
16
|
-
totalCoupons
|
|
17
|
-
remainingBalanceMxn
|
|
7
|
+
applicationId?: string;
|
|
8
|
+
directoryId?: string;
|
|
9
|
+
amountMxn?: number;
|
|
10
|
+
termWeeks?: number;
|
|
11
|
+
annualRate?: number;
|
|
12
|
+
weeklyPaymentMxn?: number;
|
|
13
|
+
status?: string;
|
|
14
|
+
nextPaymentDate?: string;
|
|
15
|
+
paidCoupons?: number;
|
|
16
|
+
totalCoupons?: number;
|
|
17
|
+
remainingBalanceMxn?: number;
|
|
18
|
+
cat?: number | null;
|
|
19
|
+
totalInterestMxn?: number;
|
|
20
|
+
totalIvaMxn?: number;
|
|
21
|
+
totalPayableMxn?: number;
|
|
22
|
+
creditLevel?: string | null;
|
|
23
|
+
partnerId?: string;
|
|
24
|
+
disbursedAt?: string | null;
|
|
25
|
+
firstPaymentDate?: string | null;
|
|
26
|
+
lastPaymentDate?: string | null;
|
|
27
|
+
nextPaymentAmountMxn?: number | null;
|
|
28
|
+
nextCouponNumber?: number | null;
|
|
29
|
+
totalPaidMxn?: number;
|
|
30
|
+
overdueCount?: number;
|
|
31
|
+
overdueAmountMxn?: number;
|
|
18
32
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IsNotEmpty, IsNumber, IsString, Min } from "class-validator";
|
|
1
|
+
import { IsInt, IsNotEmpty, IsNumber, IsOptional, IsString, Min } from "class-validator";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Request para solicitar la originacion de un credito LOAN.
|
|
@@ -15,5 +15,15 @@ export class CreditOriginationRequest {
|
|
|
15
15
|
|
|
16
16
|
@IsNumber()
|
|
17
17
|
@Min(1)
|
|
18
|
-
|
|
18
|
+
amountMxn!: number;
|
|
19
|
+
|
|
20
|
+
@IsInt()
|
|
21
|
+
@Min(1)
|
|
22
|
+
termWeeks!: number;
|
|
23
|
+
|
|
24
|
+
/** @deprecated Use `termWeeks` instead. Kept for backward compatibility. */
|
|
25
|
+
@IsOptional()
|
|
26
|
+
@IsNumber()
|
|
27
|
+
@Min(1)
|
|
28
|
+
selectedTermWeeks?: number;
|
|
19
29
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint de generación de oferta: lista de tasas disponibles para el usuario.
|
|
3
|
+
*/
|
|
4
|
+
export class OfferRate {
|
|
5
|
+
term_weeks!: number;
|
|
6
|
+
annual_rate!: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
export class OfferResult {
|
|
10
|
+
offer_id!: string;
|
|
11
|
+
credit_level!: string;
|
|
12
|
+
max_amount_mxn!: number;
|
|
13
|
+
min_amount_mxn!: number;
|
|
14
|
+
available_rates!: OfferRate[];
|
|
15
|
+
expires_at!: string;
|
|
16
|
+
}
|
|
@@ -4,11 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
export class PaymentScheduleItemResponse {
|
|
6
6
|
couponNumber!: number;
|
|
7
|
-
dueDate
|
|
8
|
-
principalMxn
|
|
9
|
-
interestMxn
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
dueDate?: string;
|
|
8
|
+
principalMxn?: number;
|
|
9
|
+
interestMxn?: number;
|
|
10
|
+
ivaMxn?: number;
|
|
11
|
+
totalMxn?: number;
|
|
12
|
+
status?: string;
|
|
12
13
|
paidAmountMxn!: number;
|
|
13
|
-
remainingBalanceMxn
|
|
14
|
+
remainingBalanceMxn?: number;
|
|
14
15
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IsNotEmpty, IsString } from "class-validator";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Request para liquidación total del crédito.
|
|
5
|
+
* Endpoint: POST /{partnerId}/early-payment/settlement
|
|
6
|
+
*/
|
|
7
|
+
export class SettlementPaymentRequest {
|
|
8
|
+
@IsString()
|
|
9
|
+
@IsNotEmpty()
|
|
10
|
+
credit_id!: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Cotización para liquidación anticipada de un crédito.
|
|
3
|
+
*/
|
|
4
|
+
export class SettlementQuote {
|
|
5
|
+
credit_id!: string;
|
|
6
|
+
outstanding_principal_mxn!: number;
|
|
7
|
+
accrued_interest_mxn!: number;
|
|
8
|
+
accrued_iva_mxn!: number;
|
|
9
|
+
total_settlement_mxn!: number;
|
|
10
|
+
interest_saved_mxn!: number;
|
|
11
|
+
available_balance_mxn!: number;
|
|
12
|
+
has_sufficient_funds!: boolean;
|
|
13
|
+
quote_date!: string;
|
|
14
|
+
}
|
|
@@ -10,3 +10,11 @@ export * from './dtos/CreditSignatureRequest';
|
|
|
10
10
|
export * from './dtos/CreditDetailResponse';
|
|
11
11
|
export * from './dtos/PaymentScheduleItemResponse';
|
|
12
12
|
export * from './dtos/DisbursementRequest';
|
|
13
|
+
export * from './dtos/AdvancedPaymentRequest';
|
|
14
|
+
export * from './dtos/AnticipatedPaymentRequest';
|
|
15
|
+
export * from './dtos/SettlementPaymentRequest';
|
|
16
|
+
export * from './dtos/CreditRequestResult';
|
|
17
|
+
export * from './dtos/CreditSignatureResult';
|
|
18
|
+
export * from './dtos/EarlyPaymentResult';
|
|
19
|
+
export * from './dtos/OfferResult';
|
|
20
|
+
export * from './dtos/SettlementQuote';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IsNotEmpty, IsOptional, IsString, MaxLength } from "class-validator";
|
|
2
|
+
|
|
3
|
+
export class CustomerFileSearchRequest {
|
|
4
|
+
@IsString()
|
|
5
|
+
@IsNotEmpty()
|
|
6
|
+
@MaxLength(100)
|
|
7
|
+
q!: string;
|
|
8
|
+
|
|
9
|
+
@IsString()
|
|
10
|
+
@IsNotEmpty()
|
|
11
|
+
partnerId!: string;
|
|
12
|
+
|
|
13
|
+
@IsOptional()
|
|
14
|
+
@IsString()
|
|
15
|
+
nextToken?: string;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos/CustomerFileSearchRequest';
|
package/src/index.ts
CHANGED
|
@@ -60,6 +60,9 @@ export * as ReferralBusiness from './referral-business';
|
|
|
60
60
|
export * as ComissionBusiness from './comission-business';
|
|
61
61
|
export * as Credit from './credit';
|
|
62
62
|
export * as CreditEngine from './creditEngine';
|
|
63
|
+
export * as CreditDashboard from './creditDashboard';
|
|
64
|
+
export * as CreditBackoffice from './creditBackoffice';
|
|
65
|
+
export * as CustomerFile from './customerFile';
|
|
63
66
|
export * as PlatformErrorEvents from './platformErrorEvents';
|
|
64
67
|
export * as TeamsConnector from './teamsConnector';
|
|
65
68
|
export * as Funnel from './funnel';
|