@fiado/type-kit 3.0.6 → 3.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/card/validations/CardUpdateKeyConstraint.js +2 -2
- package/bin/card/validations/IsPhoneNumberConstraint.js +2 -2
- package/bin/credit/dtos/BannerStateResponse.d.ts +17 -0
- package/bin/credit/dtos/BannerStateResponse.js +9 -0
- package/bin/credit/dtos/CreditOfferConfigureRequest.d.ts +5 -4
- package/bin/credit/dtos/CreditOfferConfigureRequest.js +8 -16
- package/bin/credit/dtos/CreditOfferConfigureResponse.d.ts +11 -22
- package/bin/credit/dtos/CreditOfferConfigureResponse.js +4 -4
- package/bin/credit/dtos/CreditOfferOptionItem.d.ts +12 -0
- package/bin/credit/dtos/CreditOfferOptionItem.js +9 -0
- package/bin/credit/dtos/EligibilityResponse.d.ts +13 -0
- package/bin/credit/dtos/EligibilityResponse.js +9 -0
- package/bin/credit/dtos/FinancialProfileResponse.d.ts +33 -0
- package/bin/credit/dtos/FinancialProfileResponse.js +9 -0
- package/bin/credit/enums/BannerStateEnum.d.ts +15 -0
- package/bin/credit/enums/BannerStateEnum.js +19 -0
- package/bin/credit/enums/CreditLevelEnum.d.ts +15 -0
- package/bin/credit/enums/CreditLevelEnum.js +19 -0
- package/bin/credit/enums/CreditOfferStatusEnum.d.ts +17 -0
- package/bin/credit/enums/CreditOfferStatusEnum.js +21 -0
- package/bin/credit/enums/IncomeClassificationEnum.d.ts +15 -0
- package/bin/credit/enums/IncomeClassificationEnum.js +19 -0
- package/bin/credit/enums/IncomeFrequencyEnum.d.ts +17 -0
- package/bin/credit/enums/IncomeFrequencyEnum.js +21 -0
- package/bin/credit/index.d.ts +12 -37
- package/bin/credit/index.js +15 -40
- package/bin/credit/interfaces/IIncomeDetectionMessage.d.ts +9 -0
- package/bin/credit/interfaces/IIncomeDetectionMessage.js +2 -0
- package/bin/credit/interfaces/IOfferGenerationMessage.d.ts +8 -0
- package/bin/credit/interfaces/IOfferGenerationMessage.js +2 -0
- package/bin/credit/interfaces/IScoringMessage.d.ts +8 -0
- package/bin/credit/interfaces/IScoringMessage.js +2 -0
- package/bin/index.d.ts +1 -1
- package/bin/index.js +19 -9
- package/package.json +1 -1
- package/src/credit/dtos/BannerStateResponse.ts +14 -0
- package/src/credit/dtos/CreditOfferConfigureRequest.ts +8 -15
- package/src/credit/dtos/CreditOfferConfigureResponse.ts +11 -23
- package/src/credit/dtos/CreditOfferOptionItem.ts +12 -0
- package/src/credit/dtos/EligibilityResponse.ts +13 -0
- package/src/credit/dtos/FinancialProfileResponse.ts +39 -0
- package/src/credit/enums/BannerStateEnum.ts +15 -0
- package/src/credit/enums/CreditLevelEnum.ts +15 -0
- package/src/credit/enums/CreditOfferStatusEnum.ts +17 -0
- package/src/credit/enums/IncomeClassificationEnum.ts +15 -0
- package/src/credit/enums/IncomeFrequencyEnum.ts +17 -0
- package/src/credit/index.ts +16 -41
- package/src/credit/interfaces/IIncomeDetectionMessage.ts +9 -0
- package/src/credit/interfaces/IOfferGenerationMessage.ts +8 -0
- package/src/credit/interfaces/IScoringMessage.ts +8 -0
- package/src/index.ts +1 -1
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentImages.js +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.d.ts +0 -6
- package/bin/centralPayments/dtos/CentralPaymentsDocumentUploadRequest.js +0 -6
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.d.ts +0 -0
- package/bin/directorySetting/dtos/DirectorySettingCreateResponse.js +0 -0
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.d.ts +0 -28
- package/bin/pricelist/dtos/GetPriceListDirectoriesResponse.js +0 -6
- package/bin/services/dtos/GetMembershipListAppResponse.d.ts +0 -4
- package/bin/services/dtos/GetMembershipListAppResponse.js +0 -6
- package/bin/services/dtos/GetServiceMembershipListAResponse.d.ts +0 -4
- package/bin/services/dtos/GetServiceMembershipListAResponse.js +0 -6
- package/bin/services/enums/ServiceProviderEnum.d.ts +0 -5
- package/bin/services/enums/ServiceProviderEnum.js +0 -9
- package/src/credit/dtos/CreditBannerStateResponse.ts +0 -11
- package/src/credit/dtos/CreditDetailResponse.ts +0 -24
- package/src/credit/dtos/CreditEligibilityResponse.ts +0 -10
- package/src/credit/dtos/CreditMovementResponse.ts +0 -22
- package/src/credit/dtos/CreditRequestCreate.ts +0 -12
- package/src/credit/dtos/CreditRequestResponse.ts +0 -8
- package/src/credit/dtos/CreditScheduleResponse.ts +0 -19
- package/src/credit/dtos/CreditStatementResponse.ts +0 -12
- package/src/credit/dtos/EarlyPaymentRequest.ts +0 -21
- package/src/credit/dtos/EarlyPaymentResponse.ts +0 -12
- package/src/credit/dtos/internal/CreditBalanceRequest.ts +0 -8
- package/src/credit/dtos/internal/CreditBalanceResponse.ts +0 -10
- package/src/credit/dtos/internal/CreditCollectionRequest.ts +0 -39
- package/src/credit/dtos/internal/CreditCollectionResponse.ts +0 -12
- package/src/credit/dtos/internal/CreditDisbursementRequest.ts +0 -26
- package/src/credit/dtos/internal/CreditDisbursementResponse.ts +0 -8
- package/src/credit/dtos/internal/CreditProfileRequest.ts +0 -10
- package/src/credit/dtos/internal/CreditProfileResponse.ts +0 -14
- package/src/credit/dtos/internal/CreditQueueMessage.ts +0 -20
- package/src/credit/dtos/internal/CreditReversalRequest.ts +0 -16
- package/src/credit/dtos/internal/CreditReversalResponse.ts +0 -7
- package/src/credit/dtos/internal/CreditTransferLoancoRequest.ts +0 -28
- package/src/credit/dtos/internal/CreditTransferLoancoResponse.ts +0 -9
- package/src/credit/dtos/internal/DocumentGenerateRequest.ts +0 -34
- package/src/credit/dtos/internal/DocumentGenerateResponse.ts +0 -12
- package/src/credit/dtos/internal/DocumentSignRequest.ts +0 -8
- package/src/credit/dtos/internal/LienApplyRequest.ts +0 -28
- package/src/credit/dtos/internal/LienStatusResponse.ts +0 -9
- package/src/credit/enums/CollectionFrequencyEnum.ts +0 -5
- package/src/credit/enums/CreditOperationEnum.ts +0 -11
- package/src/credit/enums/CreditStatusEnum.ts +0 -12
- package/src/credit/enums/DelinquencyLevelEnum.ts +0 -9
- package/src/credit/enums/DocumentTypeEnum.ts +0 -8
- package/src/credit/enums/OfferStatusEnum.ts +0 -8
- package/src/credit/enums/PaymentTypeEnum.ts +0 -9
- package/src/credit/enums/ReconciliationStatusEnum.ts +0 -6
- package/src/credit/enums/TransferStatusEnum.ts +0 -8
package/bin/index.js
CHANGED
|
@@ -15,16 +15,26 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.Collector = exports.Pricelist = exports.Company = exports.Services = exports.AccountIssuanceBusiness = exports.AppSelectionData = exports.Device = exports.Observations = exports.IssuanceBusiness = exports.Blacklist = exports.CentralPayments = exports.Helpdesk = exports.FiadoApiResponse = exports.Auth = exports.LegalDocumentsBusiness = exports.Role = exports.STPAccount = exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = exports.Crypto = void 0;
|
|
27
|
-
exports.
|
|
37
|
+
exports.Credit = exports.ComissionBusiness = exports.ReferralBusiness = exports.ZendeskMessaging = exports.NotificationWS = exports.Event = exports.PayrollBusiness = exports.Cnbv = exports.DirectorySetting = exports.InvoiceCollector = void 0;
|
|
28
38
|
exports.Crypto = __importStar(require("./crypto"));
|
|
29
39
|
exports.Account = __importStar(require("./account"));
|
|
30
40
|
exports.Activity = __importStar(require("./activity"));
|
|
@@ -82,6 +92,6 @@ exports.PayrollBusiness = __importStar(require("./payroll-business"));
|
|
|
82
92
|
exports.Event = __importStar(require("./event"));
|
|
83
93
|
exports.NotificationWS = __importStar(require("./notificationWS"));
|
|
84
94
|
exports.ZendeskMessaging = __importStar(require("./zendeskMessaging"));
|
|
85
|
-
exports.Credit = __importStar(require("./credit"));
|
|
86
95
|
exports.ReferralBusiness = __importStar(require("./referral-business"));
|
|
87
96
|
exports.ComissionBusiness = __importStar(require("./comission-business"));
|
|
97
|
+
exports.Credit = __importStar(require("./credit"));
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/{partnerId}/banner-state/{directoryId}
|
|
3
|
+
*/
|
|
4
|
+
export class BannerStateResponse {
|
|
5
|
+
partner_id: string;
|
|
6
|
+
directory_id: string;
|
|
7
|
+
banner_state: string;
|
|
8
|
+
title: string;
|
|
9
|
+
subtitle: string;
|
|
10
|
+
progress_pct: number | null;
|
|
11
|
+
cta: { text: string; action: string } | null;
|
|
12
|
+
credit_level: string | null;
|
|
13
|
+
max_credit_amount_mxn: number | null;
|
|
14
|
+
}
|
|
@@ -1,21 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CollectionFrequencyEnum } from "../enums/CollectionFrequencyEnum";
|
|
1
|
+
import { IsNumber, IsOptional, IsString } from "class-validator";
|
|
3
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Request del endpoint POST /credit/{partnerId}/offer/configure
|
|
5
|
+
*/
|
|
4
6
|
export class CreditOfferConfigureRequest {
|
|
5
7
|
|
|
6
|
-
@
|
|
7
|
-
|
|
8
|
-
@Min(500)
|
|
9
|
-
@Max(50000)
|
|
10
|
-
amount: number;
|
|
8
|
+
@IsString()
|
|
9
|
+
directoryId!: string;
|
|
11
10
|
|
|
12
11
|
@IsNumber()
|
|
13
|
-
@
|
|
14
|
-
|
|
15
|
-
@Max(52)
|
|
16
|
-
termWeeks: number;
|
|
17
|
-
|
|
18
|
-
@IsEnum(CollectionFrequencyEnum)
|
|
19
|
-
@IsNotEmpty()
|
|
20
|
-
frequency: CollectionFrequencyEnum;
|
|
12
|
+
@IsOptional()
|
|
13
|
+
amount_mxn?: number;
|
|
21
14
|
}
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export class AmortizationRow {
|
|
4
|
-
couponNumber: number;
|
|
5
|
-
dueDate: string;
|
|
6
|
-
principal: number;
|
|
7
|
-
interest: number;
|
|
8
|
-
iva: number;
|
|
9
|
-
payment: number;
|
|
10
|
-
balance: number;
|
|
11
|
-
}
|
|
1
|
+
import { CreditOfferOptionItem } from "./CreditOfferOptionItem";
|
|
12
2
|
|
|
3
|
+
/**
|
|
4
|
+
* Respuesta del endpoint POST /credit/{partnerId}/offer/configure
|
|
5
|
+
*/
|
|
13
6
|
export class CreditOfferConfigureResponse {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
totalIva: number;
|
|
22
|
-
totalPayment: number;
|
|
23
|
-
cat: number;
|
|
24
|
-
amortizationTable: AmortizationRow[];
|
|
25
|
-
expiresAt: string;
|
|
7
|
+
partner_id: string;
|
|
8
|
+
offer_id: string;
|
|
9
|
+
credit_level: string;
|
|
10
|
+
max_amount_mxn: number;
|
|
11
|
+
selected_amount_mxn: number;
|
|
12
|
+
expires_at: string;
|
|
13
|
+
options: CreditOfferOptionItem[];
|
|
26
14
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Opcion de plazo dentro de una oferta de credito
|
|
3
|
+
*/
|
|
4
|
+
export class CreditOfferOptionItem {
|
|
5
|
+
term_weeks: number;
|
|
6
|
+
annual_rate: number;
|
|
7
|
+
weekly_payment_mxn: number;
|
|
8
|
+
total_to_pay_mxn: number;
|
|
9
|
+
total_interest_mxn: number;
|
|
10
|
+
savings_vs_longest: number;
|
|
11
|
+
is_recommended: boolean;
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/{partnerId}/eligibility/{directoryId}
|
|
3
|
+
*/
|
|
4
|
+
export class EligibilityResponse {
|
|
5
|
+
partner_id: string;
|
|
6
|
+
directory_id: string;
|
|
7
|
+
is_eligible: boolean;
|
|
8
|
+
credit_level: string | null;
|
|
9
|
+
max_credit_amount_mxn: number | null;
|
|
10
|
+
available_terms: number[];
|
|
11
|
+
score_total: number | null;
|
|
12
|
+
ineligibility_reason: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Respuesta del endpoint GET /credit/profile/{directoryId} (private/inter-service)
|
|
3
|
+
*/
|
|
4
|
+
export class FinancialProfileResponse {
|
|
5
|
+
directory_id: string;
|
|
6
|
+
partner_id: string;
|
|
7
|
+
// Ingresos
|
|
8
|
+
total_income_sources: number;
|
|
9
|
+
primary_sources: number;
|
|
10
|
+
secondary_sources: number;
|
|
11
|
+
has_regular_income: string;
|
|
12
|
+
total_income_90d_usd: number;
|
|
13
|
+
monthly_income_usd: number;
|
|
14
|
+
monthly_income_mxn: number;
|
|
15
|
+
dominant_frequency: string;
|
|
16
|
+
// Gastos
|
|
17
|
+
total_expenses_90d_usd: number;
|
|
18
|
+
monthly_expenses_usd: number;
|
|
19
|
+
expense_income_ratio: number;
|
|
20
|
+
// Scores
|
|
21
|
+
score_income_stability: number;
|
|
22
|
+
score_payment_capacity: number;
|
|
23
|
+
score_mexico_transfers: number;
|
|
24
|
+
score_seniority: number;
|
|
25
|
+
score_income_level: number;
|
|
26
|
+
score_total: number;
|
|
27
|
+
// Nivel
|
|
28
|
+
credit_level: string | null;
|
|
29
|
+
max_credit_amount_mxn: number | null;
|
|
30
|
+
is_eligible: string;
|
|
31
|
+
ineligibility_reason: string | null;
|
|
32
|
+
// Gamification
|
|
33
|
+
next_level: string | null;
|
|
34
|
+
score_to_next_level: number | null;
|
|
35
|
+
progress_pct: number | null;
|
|
36
|
+
recommendations: any[];
|
|
37
|
+
// Metadata
|
|
38
|
+
last_updated: string;
|
|
39
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados del banner de nurturing de credito
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} NO_PAYROLL - Sin deposito directo
|
|
6
|
+
* @property {string} IN_PROGRESS - Perfil en analisis
|
|
7
|
+
* @property {string} ELIGIBLE - Elegible para credito
|
|
8
|
+
* @property {string} HAS_ACTIVE_CREDIT - Ya tiene credito activo
|
|
9
|
+
*/
|
|
10
|
+
export enum BannerStateEnum {
|
|
11
|
+
NO_PAYROLL = 'NO_PAYROLL',
|
|
12
|
+
IN_PROGRESS = 'IN_PROGRESS',
|
|
13
|
+
ELIGIBLE = 'ELIGIBLE',
|
|
14
|
+
HAS_ACTIVE_CREDIT = 'HAS_ACTIVE_CREDIT',
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Niveles crediticios del modulo de credito
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} BRONZE - Nivel inicial
|
|
6
|
+
* @property {string} SILVER - Nivel intermedio bajo
|
|
7
|
+
* @property {string} GOLD - Nivel intermedio alto
|
|
8
|
+
* @property {string} PLATINUM - Nivel maximo
|
|
9
|
+
*/
|
|
10
|
+
export enum CreditLevelEnum {
|
|
11
|
+
BRONZE = 'BRONZE',
|
|
12
|
+
SILVER = 'SILVER',
|
|
13
|
+
GOLD = 'GOLD',
|
|
14
|
+
PLATINUM = 'PLATINUM',
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estados de una oferta de credito
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} VIEWING - Oferta activa siendo visualizada
|
|
6
|
+
* @property {string} ACCEPTED - Oferta aceptada por el cliente
|
|
7
|
+
* @property {string} ABANDONED - Oferta abandonada
|
|
8
|
+
* @property {string} EXPIRED - Oferta expirada
|
|
9
|
+
* @property {string} CONVERTED - Oferta convertida en credito activo
|
|
10
|
+
*/
|
|
11
|
+
export enum CreditOfferStatusEnum {
|
|
12
|
+
VIEWING = 'VIEWING',
|
|
13
|
+
ACCEPTED = 'ACCEPTED',
|
|
14
|
+
ABANDONED = 'ABANDONED',
|
|
15
|
+
EXPIRED = 'EXPIRED',
|
|
16
|
+
CONVERTED = 'CONVERTED',
|
|
17
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clasificacion de fuentes de ingreso detectadas
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} PRIMARY - Fuente principal de ingreso
|
|
6
|
+
* @property {string} SECONDARY - Fuente secundaria de ingreso
|
|
7
|
+
* @property {string} SPORADIC - Ingreso esporadico
|
|
8
|
+
* @property {string} UNIDENTIFIED - Fuente no identificada
|
|
9
|
+
*/
|
|
10
|
+
export enum IncomeClassificationEnum {
|
|
11
|
+
PRIMARY = 'PRIMARY',
|
|
12
|
+
SECONDARY = 'SECONDARY',
|
|
13
|
+
SPORADIC = 'SPORADIC',
|
|
14
|
+
UNIDENTIFIED = 'UNIDENTIFIED',
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Frecuencias detectadas de depositos de ingreso
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*
|
|
5
|
+
* @property {string} DAILY - Diario (0-4 dias entre depositos)
|
|
6
|
+
* @property {string} WEEKLY - Semanal (5-11 dias)
|
|
7
|
+
* @property {string} BIWEEKLY - Quincenal (12-24 dias)
|
|
8
|
+
* @property {string} MONTHLY - Mensual (25-35 dias)
|
|
9
|
+
* @property {string} IRREGULAR - Irregular (36+ dias)
|
|
10
|
+
*/
|
|
11
|
+
export enum IncomeFrequencyEnum {
|
|
12
|
+
DAILY = 'DAILY',
|
|
13
|
+
WEEKLY = 'WEEKLY',
|
|
14
|
+
BIWEEKLY = 'BIWEEKLY',
|
|
15
|
+
MONTHLY = 'MONTHLY',
|
|
16
|
+
IRREGULAR = 'IRREGULAR',
|
|
17
|
+
}
|
package/src/credit/index.ts
CHANGED
|
@@ -1,44 +1,19 @@
|
|
|
1
|
-
//
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
// Enums
|
|
2
|
+
export * from './enums/CreditLevelEnum';
|
|
3
|
+
export * from './enums/BannerStateEnum';
|
|
4
|
+
export * from './enums/IncomeFrequencyEnum';
|
|
5
|
+
export * from './enums/IncomeClassificationEnum';
|
|
6
|
+
export * from './enums/CreditOfferStatusEnum';
|
|
7
|
+
|
|
8
|
+
// DTOs
|
|
9
|
+
export * from './dtos/BannerStateResponse';
|
|
10
|
+
export * from './dtos/EligibilityResponse';
|
|
4
11
|
export * from './dtos/CreditOfferConfigureRequest';
|
|
5
12
|
export * from './dtos/CreditOfferConfigureResponse';
|
|
6
|
-
export * from './dtos/
|
|
7
|
-
export * from './dtos/
|
|
8
|
-
export * from './dtos/CreditDetailResponse';
|
|
9
|
-
export * from './dtos/CreditMovementResponse';
|
|
10
|
-
export * from './dtos/CreditScheduleResponse';
|
|
11
|
-
export * from './dtos/CreditStatementResponse';
|
|
12
|
-
export * from './dtos/EarlyPaymentRequest';
|
|
13
|
-
export * from './dtos/EarlyPaymentResponse';
|
|
14
|
-
|
|
15
|
-
//dtos/internal
|
|
16
|
-
export * from './dtos/internal/CreditProfileRequest';
|
|
17
|
-
export * from './dtos/internal/CreditProfileResponse';
|
|
18
|
-
export * from './dtos/internal/CreditDisbursementRequest';
|
|
19
|
-
export * from './dtos/internal/CreditDisbursementResponse';
|
|
20
|
-
export * from './dtos/internal/CreditCollectionRequest';
|
|
21
|
-
export * from './dtos/internal/CreditCollectionResponse';
|
|
22
|
-
export * from './dtos/internal/CreditTransferLoancoRequest';
|
|
23
|
-
export * from './dtos/internal/CreditTransferLoancoResponse';
|
|
24
|
-
export * from './dtos/internal/CreditReversalRequest';
|
|
25
|
-
export * from './dtos/internal/CreditReversalResponse';
|
|
26
|
-
export * from './dtos/internal/CreditBalanceRequest';
|
|
27
|
-
export * from './dtos/internal/CreditBalanceResponse';
|
|
28
|
-
export * from './dtos/internal/LienStatusResponse';
|
|
29
|
-
export * from './dtos/internal/LienApplyRequest';
|
|
30
|
-
export * from './dtos/internal/CreditQueueMessage';
|
|
31
|
-
export * from './dtos/internal/DocumentGenerateRequest';
|
|
32
|
-
export * from './dtos/internal/DocumentGenerateResponse';
|
|
33
|
-
export * from './dtos/internal/DocumentSignRequest';
|
|
13
|
+
export * from './dtos/CreditOfferOptionItem';
|
|
14
|
+
export * from './dtos/FinancialProfileResponse';
|
|
34
15
|
|
|
35
|
-
//
|
|
36
|
-
export * from './
|
|
37
|
-
export * from './
|
|
38
|
-
export * from './
|
|
39
|
-
export * from './enums/CollectionFrequencyEnum';
|
|
40
|
-
export * from './enums/CreditOperationEnum';
|
|
41
|
-
export * from './enums/OfferStatusEnum';
|
|
42
|
-
export * from './enums/TransferStatusEnum';
|
|
43
|
-
export * from './enums/ReconciliationStatusEnum';
|
|
44
|
-
export * from './enums/DocumentTypeEnum';
|
|
16
|
+
// Interfaces (SQS Messages)
|
|
17
|
+
export * from './interfaces/IIncomeDetectionMessage';
|
|
18
|
+
export * from './interfaces/IScoringMessage';
|
|
19
|
+
export * from './interfaces/IOfferGenerationMessage';
|
package/src/index.ts
CHANGED
|
@@ -55,6 +55,6 @@ export * as PayrollBusiness from './payroll-business';
|
|
|
55
55
|
export * as Event from './event';
|
|
56
56
|
export * as NotificationWS from './notificationWS';
|
|
57
57
|
export * as ZendeskMessaging from './zendeskMessaging';
|
|
58
|
-
export * as Credit from './credit';
|
|
59
58
|
export * as ReferralBusiness from './referral-business';
|
|
60
59
|
export * as ComissionBusiness from './comission-business';
|
|
60
|
+
export * as Credit from './credit';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { IdentificationDocument } from "../../identity";
|
|
2
|
-
import { CentralPaymentsDocumentImages } from "./CentralPaymentsDocumentImages";
|
|
3
|
-
export declare class CentralPaymentsDocumentUploadRequest {
|
|
4
|
-
documentInfo: IdentificationDocument;
|
|
5
|
-
documentImages: CentralPaymentsDocumentImages[];
|
|
6
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CentralPaymentsDocumentUploadRequest = void 0;
|
|
4
|
-
class CentralPaymentsDocumentUploadRequest {
|
|
5
|
-
}
|
|
6
|
-
exports.CentralPaymentsDocumentUploadRequest = CentralPaymentsDocumentUploadRequest;
|
|
File without changes
|
|
File without changes
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Company } from "../../company";
|
|
2
|
-
import { Provider } from "../../provider";
|
|
3
|
-
import { ServiceTypeEnum } from "../../services";
|
|
4
|
-
import { ServiceRecurrenceEnum } from "../../services/enums/ServiceRecurrenceEnum";
|
|
5
|
-
export declare class GetPriceListDirectoriesResponse {
|
|
6
|
-
serviceId: string;
|
|
7
|
-
company: Company;
|
|
8
|
-
provider: Provider;
|
|
9
|
-
type: ServiceTypeEnum;
|
|
10
|
-
basePrice: number;
|
|
11
|
-
recurrence: ServiceRecurrenceEnum;
|
|
12
|
-
currencyId: string;
|
|
13
|
-
fees: any;
|
|
14
|
-
taxes: any;
|
|
15
|
-
globalDiscounts: {
|
|
16
|
-
discountType: string;
|
|
17
|
-
discountValue: number;
|
|
18
|
-
}[];
|
|
19
|
-
directories: {
|
|
20
|
-
directoryId: string;
|
|
21
|
-
appliedDiscounts: {
|
|
22
|
-
discountType: string;
|
|
23
|
-
discountValue: number;
|
|
24
|
-
source: string;
|
|
25
|
-
referenceId: string;
|
|
26
|
-
}[];
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceProviderEnum = void 0;
|
|
4
|
-
var ServiceProviderEnum;
|
|
5
|
-
(function (ServiceProviderEnum) {
|
|
6
|
-
ServiceProviderEnum["CP"] = "CP";
|
|
7
|
-
ServiceProviderEnum["TERN"] = "TERN";
|
|
8
|
-
ServiceProviderEnum["PAGOCONFIADO"] = "PAGOCONFIADO";
|
|
9
|
-
})(ServiceProviderEnum || (exports.ServiceProviderEnum = ServiceProviderEnum = {}));
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
-
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
3
|
-
|
|
4
|
-
export class CreditBannerStateResponse {
|
|
5
|
-
showBanner: boolean;
|
|
6
|
-
bannerType: 'NURTURING' | 'OFFER_AVAILABLE' | 'ACTIVE_CREDIT' | 'NONE';
|
|
7
|
-
offerStatus: OfferStatusEnum | null;
|
|
8
|
-
creditStatus: CreditStatusEnum | null;
|
|
9
|
-
message: string | null;
|
|
10
|
-
maxOfferAmount: number | null;
|
|
11
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
2
|
-
import { DelinquencyLevelEnum } from "../enums/DelinquencyLevelEnum";
|
|
3
|
-
import { CollectionFrequencyEnum } from "../enums/CollectionFrequencyEnum";
|
|
4
|
-
|
|
5
|
-
export class CreditDetailResponse {
|
|
6
|
-
creditId: string;
|
|
7
|
-
status: CreditStatusEnum;
|
|
8
|
-
delinquencyLevel: DelinquencyLevelEnum;
|
|
9
|
-
originalAmount: number;
|
|
10
|
-
currentBalance: number;
|
|
11
|
-
paidAmount: number;
|
|
12
|
-
nextPaymentAmount: number;
|
|
13
|
-
nextPaymentDate: string;
|
|
14
|
-
overdueDays: number;
|
|
15
|
-
overdueAmount: number;
|
|
16
|
-
termWeeks: number;
|
|
17
|
-
currentWeek: number;
|
|
18
|
-
frequency: CollectionFrequencyEnum;
|
|
19
|
-
annualInterestRate: number;
|
|
20
|
-
cat: number;
|
|
21
|
-
disbursementDate: string;
|
|
22
|
-
maturityDate: string;
|
|
23
|
-
contractDocumentId: string;
|
|
24
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
-
|
|
3
|
-
export class CreditEligibilityResponse {
|
|
4
|
-
eligible: boolean;
|
|
5
|
-
status: OfferStatusEnum;
|
|
6
|
-
maxAmount: number | null;
|
|
7
|
-
minAmount: number | null;
|
|
8
|
-
reason: string | null;
|
|
9
|
-
expiresAt: string | null;
|
|
10
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { CreditOperationEnum } from "../enums/CreditOperationEnum";
|
|
2
|
-
|
|
3
|
-
export class CreditMovementItem {
|
|
4
|
-
movementId: string;
|
|
5
|
-
date: string;
|
|
6
|
-
type: CreditOperationEnum;
|
|
7
|
-
description: string;
|
|
8
|
-
amount: number;
|
|
9
|
-
principal: number;
|
|
10
|
-
interest: number;
|
|
11
|
-
iva: number;
|
|
12
|
-
balance: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class CreditMovementResponse {
|
|
16
|
-
creditId: string;
|
|
17
|
-
movements: CreditMovementItem[];
|
|
18
|
-
pagination: {
|
|
19
|
-
lastKey: string | null;
|
|
20
|
-
hasMore: boolean;
|
|
21
|
-
};
|
|
22
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
export class ScheduleItem {
|
|
2
|
-
couponNumber: number;
|
|
3
|
-
dueDate: string;
|
|
4
|
-
principal: number;
|
|
5
|
-
interest: number;
|
|
6
|
-
iva: number;
|
|
7
|
-
payment: number;
|
|
8
|
-
balance: number;
|
|
9
|
-
status: 'PENDING' | 'PAID' | 'OVERDUE' | 'PARTIAL';
|
|
10
|
-
paidDate: string | null;
|
|
11
|
-
paidAmount: number | null;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class CreditScheduleResponse {
|
|
15
|
-
creditId: string;
|
|
16
|
-
schedule: ScheduleItem[];
|
|
17
|
-
totalPaid: number;
|
|
18
|
-
totalRemaining: number;
|
|
19
|
-
}
|