@fiado/type-kit 3.198.0 → 3.200.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/loanConfig/enums/ModifiableByRoleEnum.d.ts +11 -0
- package/bin/loanConfig/enums/ModifiableByRoleEnum.js +15 -0
- package/bin/loanCredit/dtos/LoanBorrower.d.ts +1 -1
- package/bin/loanCredit/dtos/LoanBorrower.js +1 -1
- package/bin/loanCredit/dtos/LoanContract.d.ts +27 -0
- package/bin/loanCredit/dtos/LoanContract.js +91 -0
- package/bin/loanCredit/dtos/LoanCredit.d.ts +5 -1
- package/bin/loanCredit/dtos/LoanCredit.js +14 -1
- package/bin/loanCredit/dtos/requests/ActivationCheckRequest.d.ts +21 -0
- package/bin/loanCredit/dtos/requests/{UpdateActivationChecklistRequest.js → ActivationCheckRequest.js} +18 -12
- package/bin/loanCredit/dtos/requests/OriginateLoanCreditRequest.d.ts +12 -9
- package/bin/loanCredit/dtos/requests/OriginateLoanCreditRequest.js +14 -13
- package/bin/loanCredit/dtos/requests/QuoteLoanCreditRequest.d.ts +11 -0
- package/bin/loanCredit/dtos/requests/QuoteLoanCreditRequest.js +39 -0
- package/bin/loanCredit/dtos/requests/SignLoanCreditRequest.d.ts +17 -0
- package/bin/loanCredit/dtos/requests/SignLoanCreditRequest.js +37 -0
- package/bin/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.d.ts +1 -1
- package/bin/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.js +1 -1
- package/bin/loanCredit/dtos/responses/ActivationCheckResponse.d.ts +10 -0
- package/bin/loanCredit/dtos/responses/ActivationCheckResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanBorrowerResponse.d.ts +1 -1
- package/bin/loanCredit/dtos/responses/LoanContractResponse.d.ts +16 -0
- package/bin/loanCredit/dtos/responses/LoanContractResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/LoanCreditResponse.d.ts +1 -1
- package/bin/loanCredit/dtos/responses/OriginateLoanCreditResponse.d.ts +5 -2
- package/bin/loanCredit/dtos/responses/QuoteLoanCreditResponse.d.ts +10 -0
- package/bin/loanCredit/dtos/responses/QuoteLoanCreditResponse.js +2 -0
- package/bin/loanCredit/dtos/responses/SignLoanCreditResponse.d.ts +20 -0
- package/bin/loanCredit/dtos/responses/SignLoanCreditResponse.js +2 -0
- package/bin/loanCredit/enums/ContractTypeEnum.d.ts +12 -0
- package/bin/loanCredit/enums/ContractTypeEnum.js +16 -0
- package/bin/loanCredit/enums/LoanInstallmentStatusEnum.d.ts +5 -2
- package/bin/loanCredit/enums/LoanInstallmentStatusEnum.js +5 -2
- package/bin/loanCredit/index.d.ts +10 -2
- package/bin/loanCredit/index.js +13 -2
- package/bin/places/dtos/CashInFeeDto.d.ts +17 -0
- package/bin/places/dtos/CashInFeeDto.js +12 -0
- package/bin/platformRbac/dtos/ResendOtpRequest.d.ts +22 -0
- package/bin/{walletFunding/dtos/CancelFundingRequest.js → platformRbac/dtos/ResendOtpRequest.js} +16 -13
- package/bin/platformRbac/dtos/ResendSelfRegisterOtpRequest.d.ts +11 -0
- package/bin/{walletFunding/dtos/CancelFundingReferenceRequest.js → platformRbac/dtos/ResendSelfRegisterOtpRequest.js} +18 -13
- package/bin/retailCustomer/dtos/RetailCustomer.d.ts +24 -2
- package/bin/retailCustomer/dtos/RetailCustomer.js +64 -1
- package/bin/retailCustomer/dtos/requests/CreateCustomerRequest.d.ts +7 -1
- package/bin/retailCustomer/dtos/requests/CreateCustomerRequest.js +30 -1
- package/bin/retailCustomer/dtos/requests/UpdateCustomerRequest.d.ts +7 -1
- package/bin/retailCustomer/dtos/requests/UpdateCustomerRequest.js +31 -1
- package/bin/retailCustomer/dtos/requests/UpsertCustomerFromKycRequest.d.ts +13 -1
- package/bin/retailCustomer/dtos/requests/UpsertCustomerFromKycRequest.js +41 -1
- package/bin/retailCustomer/dtos/responses/CustomerResponse.d.ts +14 -2
- package/bin/retailCustomer/enums/RetailCustomerStatusEnum.d.ts +10 -0
- package/bin/retailCustomer/enums/RetailCustomerStatusEnum.js +14 -0
- package/bin/retailCustomer/index.d.ts +1 -0
- package/bin/retailCustomer/index.js +1 -0
- package/package.json +1 -1
- package/src/loanCredit/dtos/LoanBorrower.ts +1 -1
- package/src/loanCredit/dtos/LoanContract.ts +70 -0
- package/src/loanCredit/dtos/LoanCredit.ts +14 -1
- package/src/loanCredit/dtos/requests/ActivationCheckRequest.ts +39 -0
- package/src/loanCredit/dtos/requests/OriginateLoanCreditRequest.ts +16 -15
- package/src/loanCredit/dtos/requests/QuoteLoanCreditRequest.ts +24 -0
- package/src/loanCredit/dtos/requests/SignLoanCreditRequest.ts +24 -0
- package/src/loanCredit/dtos/requests/UpsertLoanBorrowerRequest.ts +1 -1
- package/src/loanCredit/dtos/responses/ActivationCheckResponse.ts +11 -0
- package/src/loanCredit/dtos/responses/LoanBorrowerResponse.ts +1 -1
- package/src/loanCredit/dtos/responses/LoanContractResponse.ts +17 -0
- package/src/loanCredit/dtos/responses/LoanCreditResponse.ts +1 -1
- package/src/loanCredit/dtos/responses/OriginateLoanCreditResponse.ts +5 -2
- package/src/loanCredit/dtos/responses/QuoteLoanCreditResponse.ts +11 -0
- package/src/loanCredit/dtos/responses/SignLoanCreditResponse.ts +21 -0
- package/src/loanCredit/enums/ContractTypeEnum.ts +12 -0
- package/src/loanCredit/enums/LoanInstallmentStatusEnum.ts +5 -2
- package/src/loanCredit/index.ts +11 -2
- package/src/retailCustomer/dtos/RetailCustomer.ts +75 -3
- package/src/retailCustomer/dtos/requests/CreateCustomerRequest.ts +26 -2
- package/src/retailCustomer/dtos/requests/UpdateCustomerRequest.ts +28 -2
- package/src/retailCustomer/dtos/requests/UpsertCustomerFromKycRequest.ts +49 -2
- package/src/retailCustomer/dtos/responses/CustomerResponse.ts +14 -2
- package/src/retailCustomer/enums/RetailCustomerStatusEnum.ts +10 -0
- package/src/retailCustomer/index.ts +1 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +0 -11
- package/bin/loanCredit/enums/ClientLevelEnum.d.ts +0 -11
- package/bin/loanCredit/enums/ClientLevelEnum.js +0 -15
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -6
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -6
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +0 -11
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +0 -14
- package/bin/walletFunding/dtos/CancelFundingResponse.js +0 -12
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +0 -3
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +0 -21
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +0 -6
- package/src/loanCredit/dtos/requests/UpdateActivationChecklistRequest.ts +0 -29
- package/src/loanCredit/enums/ClientLevelEnum.ts +0 -11
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsOptional, IsString, Matches } from 'class-validator';
|
|
2
|
+
import { IsEmail, IsOptional, IsString, Matches } from 'class-validator';
|
|
3
3
|
import { regexIso8601Date } from '../../../helpers/constans/regex';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Alta básica de un cliente retail (identidad comercial mínima; el KYC la enriquece después).
|
|
7
|
+
* Nombre partido por convención Fiado y CURP opcional — "null hasta KYC" (F1 §3.5).
|
|
7
8
|
* SureKeep Fase 2 — pista Retail.
|
|
8
9
|
*/
|
|
9
10
|
export class CreateCustomerRequest {
|
|
10
11
|
@Expose()
|
|
11
12
|
@IsString()
|
|
12
|
-
|
|
13
|
+
originStoreId!: string;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsString()
|
|
17
|
+
names!: string;
|
|
18
|
+
|
|
19
|
+
@Expose()
|
|
20
|
+
@IsString()
|
|
21
|
+
paternalLastName!: string;
|
|
22
|
+
|
|
23
|
+
@Expose()
|
|
24
|
+
@IsOptional()
|
|
25
|
+
@IsString()
|
|
26
|
+
maternalLastName?: string;
|
|
13
27
|
|
|
14
28
|
@Expose()
|
|
15
29
|
@IsString()
|
|
@@ -20,6 +34,16 @@ export class CreateCustomerRequest {
|
|
|
20
34
|
@IsString()
|
|
21
35
|
curp?: string;
|
|
22
36
|
|
|
37
|
+
@Expose()
|
|
38
|
+
@IsOptional()
|
|
39
|
+
@IsString()
|
|
40
|
+
rfc?: string;
|
|
41
|
+
|
|
42
|
+
@Expose()
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsEmail()
|
|
45
|
+
email?: string;
|
|
46
|
+
|
|
23
47
|
@Expose()
|
|
24
48
|
@IsOptional()
|
|
25
49
|
@IsString()
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsOptional, IsString, Matches } from 'class-validator';
|
|
2
|
+
import { IsEmail, IsOptional, IsString, Matches } from 'class-validator';
|
|
3
3
|
import { regexIso8601Date } from '../../../helpers/constans/regex';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -10,7 +10,17 @@ export class UpdateCustomerRequest {
|
|
|
10
10
|
@Expose()
|
|
11
11
|
@IsOptional()
|
|
12
12
|
@IsString()
|
|
13
|
-
|
|
13
|
+
names?: string;
|
|
14
|
+
|
|
15
|
+
@Expose()
|
|
16
|
+
@IsOptional()
|
|
17
|
+
@IsString()
|
|
18
|
+
paternalLastName?: string;
|
|
19
|
+
|
|
20
|
+
@Expose()
|
|
21
|
+
@IsOptional()
|
|
22
|
+
@IsString()
|
|
23
|
+
maternalLastName?: string;
|
|
14
24
|
|
|
15
25
|
@Expose()
|
|
16
26
|
@IsOptional()
|
|
@@ -22,6 +32,22 @@ export class UpdateCustomerRequest {
|
|
|
22
32
|
@IsString()
|
|
23
33
|
curp?: string;
|
|
24
34
|
|
|
35
|
+
@Expose()
|
|
36
|
+
@IsOptional()
|
|
37
|
+
@IsString()
|
|
38
|
+
rfc?: string;
|
|
39
|
+
|
|
40
|
+
@Expose()
|
|
41
|
+
@IsOptional()
|
|
42
|
+
@IsEmail()
|
|
43
|
+
email?: string;
|
|
44
|
+
|
|
45
|
+
/** Notas operativas del BO (F1 §3.5). */
|
|
46
|
+
@Expose()
|
|
47
|
+
@IsOptional()
|
|
48
|
+
@IsString()
|
|
49
|
+
notes?: string;
|
|
50
|
+
|
|
25
51
|
@Expose()
|
|
26
52
|
@IsOptional()
|
|
27
53
|
@IsString()
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
import { Expose, Transform, Type } from 'class-transformer';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
IsEmail,
|
|
4
|
+
IsEnum,
|
|
5
|
+
IsIn,
|
|
6
|
+
IsNumber,
|
|
7
|
+
IsOptional,
|
|
8
|
+
IsString,
|
|
9
|
+
Matches,
|
|
10
|
+
ValidateNested,
|
|
11
|
+
} from 'class-validator';
|
|
3
12
|
import { regexCurp, regexIso8601Date, regexPhoneMx } from '../../../helpers/constans/regex';
|
|
4
13
|
import { AddressBase } from '../../../address/dtos/AddressBase';
|
|
5
14
|
import { KycModalityEnum } from '../../enums/KycModalityEnum';
|
|
@@ -11,9 +20,25 @@ import { RetailKycStatusEnum } from '../../enums/RetailKycStatusEnum';
|
|
|
11
20
|
* SureKeep Fase 2 — pista Retail.
|
|
12
21
|
*/
|
|
13
22
|
export class UpsertCustomerFromKycRequest {
|
|
23
|
+
/** Tienda de alta/origen — del JWT del vendedor dueño de la sesión del wizard (F1 §3.5). */
|
|
14
24
|
@Expose()
|
|
15
25
|
@IsString()
|
|
16
|
-
|
|
26
|
+
originStoreId!: string;
|
|
27
|
+
|
|
28
|
+
/** Nombre partido por convención Fiado (F1 §3.5) — lo entrega el OCR del INE, NO se deriva de un string. */
|
|
29
|
+
@Expose()
|
|
30
|
+
@IsString()
|
|
31
|
+
names!: string;
|
|
32
|
+
|
|
33
|
+
@Expose()
|
|
34
|
+
@IsString()
|
|
35
|
+
paternalLastName!: string;
|
|
36
|
+
|
|
37
|
+
/** Segundo apellido — opcional (F1 §3.5: "el 2º apellido nullable"). */
|
|
38
|
+
@Expose()
|
|
39
|
+
@IsOptional()
|
|
40
|
+
@IsString()
|
|
41
|
+
maternalLastName?: string;
|
|
17
42
|
|
|
18
43
|
// Normalización en el boundary: se strippean espacios/guiones para que centinela de unicidad,
|
|
19
44
|
// lookup y search del BO (que también strippea) usen el MISMO formato de teléfono.
|
|
@@ -37,6 +62,28 @@ export class UpsertCustomerFromKycRequest {
|
|
|
37
62
|
@Matches(regexIso8601Date, { message: 'birthDate debe ser una fecha ISO 8601' })
|
|
38
63
|
birthDate?: string;
|
|
39
64
|
|
|
65
|
+
@Expose()
|
|
66
|
+
@IsOptional()
|
|
67
|
+
@IsString()
|
|
68
|
+
rfc?: string;
|
|
69
|
+
|
|
70
|
+
@Expose()
|
|
71
|
+
@IsOptional()
|
|
72
|
+
@IsEmail()
|
|
73
|
+
email?: string;
|
|
74
|
+
|
|
75
|
+
/** Score de confianza que devuelve Metamap junto con el resultado del KYC (F1 §3.5). */
|
|
76
|
+
@Expose()
|
|
77
|
+
@IsOptional()
|
|
78
|
+
@IsNumber()
|
|
79
|
+
kycScore?: number;
|
|
80
|
+
|
|
81
|
+
/** Referencia a la verificación en `kyc-verifications-business` (INT1, F1 §3.5). */
|
|
82
|
+
@Expose()
|
|
83
|
+
@IsOptional()
|
|
84
|
+
@IsString()
|
|
85
|
+
metamapVerificationId?: string;
|
|
86
|
+
|
|
40
87
|
@Expose()
|
|
41
88
|
@IsString()
|
|
42
89
|
fiadoDirectoryId!: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AddressBase } from '../../../address/dtos/AddressBase';
|
|
2
2
|
import { AccountStatusEnum } from '../../enums/AccountStatusEnum';
|
|
3
3
|
import { KycModalityEnum } from '../../enums/KycModalityEnum';
|
|
4
|
+
import { RetailCustomerStatusEnum } from '../../enums/RetailCustomerStatusEnum';
|
|
4
5
|
import { RetailKycStatusEnum } from '../../enums/RetailKycStatusEnum';
|
|
5
6
|
|
|
6
7
|
/**
|
|
@@ -10,9 +11,15 @@ import { RetailKycStatusEnum } from '../../enums/RetailKycStatusEnum';
|
|
|
10
11
|
export interface CustomerResponse {
|
|
11
12
|
retailCustomerId: string;
|
|
12
13
|
retailerId: string;
|
|
13
|
-
|
|
14
|
+
originStoreId: string;
|
|
15
|
+
names: string;
|
|
16
|
+
paternalLastName: string;
|
|
17
|
+
maternalLastName: string | null;
|
|
14
18
|
phone: string;
|
|
15
|
-
|
|
19
|
+
phoneVerified: boolean;
|
|
20
|
+
curp: string | null;
|
|
21
|
+
rfc: string | null;
|
|
22
|
+
email: string | null;
|
|
16
23
|
birthDate: string | null;
|
|
17
24
|
fiadoDirectoryId: string | null;
|
|
18
25
|
fiadoPeopleId: string | null;
|
|
@@ -26,6 +33,11 @@ export interface CustomerResponse {
|
|
|
26
33
|
addressConfirmed: boolean;
|
|
27
34
|
kycStatus: RetailKycStatusEnum;
|
|
28
35
|
kycModality: KycModalityEnum | null;
|
|
36
|
+
kycScore: number | null;
|
|
37
|
+
metamapVerificationId: string | null;
|
|
38
|
+
pldFlag: boolean;
|
|
39
|
+
notes: string | null;
|
|
40
|
+
status: RetailCustomerStatusEnum;
|
|
29
41
|
createdAt: string;
|
|
30
42
|
updatedAt: string;
|
|
31
43
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado de vigencia del cliente retail — soft-delete de la convención F1 (modelo-datos F1 §1-§2:
|
|
3
|
+
* "soft-delete" es obligatorio en todas las entidades del silo). ACTIVE es el default del alta;
|
|
4
|
+
* INACTIVE marca la baja lógica (nunca se borra el ítem, para trazabilidad regulatoria).
|
|
5
|
+
* SureKeep Fase 2 — pista Retail.
|
|
6
|
+
*/
|
|
7
|
+
export enum RetailCustomerStatusEnum {
|
|
8
|
+
ACTIVE = 'ACTIVE',
|
|
9
|
+
INACTIVE = 'INACTIVE',
|
|
10
|
+
}
|
|
@@ -3,6 +3,7 @@ export * from './enums/AccountStatusEnum';
|
|
|
3
3
|
export * from './enums/RetailKycStatusEnum';
|
|
4
4
|
export * from './enums/KycModalityEnum';
|
|
5
5
|
export * from './enums/KycReviewResultEnum';
|
|
6
|
+
export * from './enums/RetailCustomerStatusEnum';
|
|
6
7
|
|
|
7
8
|
// Entidades (planas, con class-validator + @Expose)
|
|
8
9
|
export * from './dtos/KycReview';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
|
|
3
|
-
* cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
|
|
4
|
-
* (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
|
|
5
|
-
*/
|
|
6
|
-
export declare class UpdateActivationChecklistRequest {
|
|
7
|
-
downPayment?: boolean;
|
|
8
|
-
contractSigned?: boolean;
|
|
9
|
-
imeiEnrolled?: boolean;
|
|
10
|
-
lockVerified?: boolean;
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
|
|
3
|
-
* Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
|
|
4
|
-
* un CLIENTE nunca es `ALL`.
|
|
5
|
-
* @enum {string}
|
|
6
|
-
*/
|
|
7
|
-
export declare enum ClientLevelEnum {
|
|
8
|
-
BRONZE = "BRONZE",
|
|
9
|
-
SILVER = "SILVER",
|
|
10
|
-
GOLD = "GOLD"
|
|
11
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClientLevelEnum = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
|
|
6
|
-
* Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
|
|
7
|
-
* un CLIENTE nunca es `ALL`.
|
|
8
|
-
* @enum {string}
|
|
9
|
-
*/
|
|
10
|
-
var ClientLevelEnum;
|
|
11
|
-
(function (ClientLevelEnum) {
|
|
12
|
-
ClientLevelEnum["BRONZE"] = "BRONZE";
|
|
13
|
-
ClientLevelEnum["SILVER"] = "SILVER";
|
|
14
|
-
ClientLevelEnum["GOLD"] = "GOLD";
|
|
15
|
-
})(ClientLevelEnum || (exports.ClientLevelEnum = ClientLevelEnum = {}));
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
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;
|
|
@@ -1,21 +0,0 @@
|
|
|
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);
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Expose } from 'class-transformer';
|
|
2
|
-
import { IsBoolean, IsOptional } from 'class-validator';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
|
|
6
|
-
* cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
|
|
7
|
-
* (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
|
|
8
|
-
*/
|
|
9
|
-
export class UpdateActivationChecklistRequest {
|
|
10
|
-
@Expose()
|
|
11
|
-
@IsOptional()
|
|
12
|
-
@IsBoolean()
|
|
13
|
-
downPayment?: boolean;
|
|
14
|
-
|
|
15
|
-
@Expose()
|
|
16
|
-
@IsOptional()
|
|
17
|
-
@IsBoolean()
|
|
18
|
-
contractSigned?: boolean;
|
|
19
|
-
|
|
20
|
-
@Expose()
|
|
21
|
-
@IsOptional()
|
|
22
|
-
@IsBoolean()
|
|
23
|
-
imeiEnrolled?: boolean;
|
|
24
|
-
|
|
25
|
-
@Expose()
|
|
26
|
-
@IsOptional()
|
|
27
|
-
@IsBoolean()
|
|
28
|
-
lockVerified?: boolean;
|
|
29
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Nivel del cliente según su SCI (M7/05_MOTOR §3.2): 21-60 Bronce · 61-80 Plata · 81-100 Oro.
|
|
3
|
-
* Distinto de `CreditPlanLevelEnum` de loanOfferings (que además tiene `ALL` para planes):
|
|
4
|
-
* un CLIENTE nunca es `ALL`.
|
|
5
|
-
* @enum {string}
|
|
6
|
-
*/
|
|
7
|
-
export enum ClientLevelEnum {
|
|
8
|
-
BRONZE = 'BRONZE',
|
|
9
|
-
SILVER = 'SILVER',
|
|
10
|
-
GOLD = 'GOLD',
|
|
11
|
-
}
|