@fiado/type-kit 3.8.1 → 3.11.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/benefitCenter/dtos/AuthorizeBenefitsMarketplaceTransactionRequest.d.ts +44 -0
- package/bin/benefitCenter/dtos/AuthorizeBenefitsMarketplaceTransactionRequest.js +95 -0
- package/bin/benefitCenter/dtos/BenefitPaymentRequest.d.ts +31 -0
- package/bin/benefitCenter/dtos/BenefitPaymentRequest.js +83 -0
- package/bin/benefitCenter/dtos/BenefitPaymentResponse.d.ts +23 -0
- package/bin/benefitCenter/dtos/BenefitPaymentResponse.js +15 -0
- package/bin/benefitCenter/dtos/FavoriteUpsertContext.d.ts +24 -0
- package/bin/benefitCenter/dtos/FavoriteUpsertContext.js +18 -0
- package/bin/benefitCenter/enums/BenefitPaymentErrorCodeEnum.d.ts +17 -0
- package/bin/benefitCenter/enums/BenefitPaymentErrorCodeEnum.js +21 -0
- package/bin/benefitCenter/enums/BenefitPaymentStatusEnum.d.ts +12 -0
- package/bin/benefitCenter/enums/BenefitPaymentStatusEnum.js +16 -0
- package/bin/benefitCenter/index.d.ts +6 -0
- package/bin/benefitCenter/index.js +7 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.d.ts +13 -0
- package/bin/cognitoConnector/dtos/SignUpBackofficeRequest.js +71 -0
- package/bin/comission-business/dtos/GenerateReportRequest.d.ts +10 -0
- package/bin/comission-business/dtos/GenerateReportRequest.js +2 -0
- package/bin/comission-business/dtos/GenerateReportResponse.d.ts +6 -0
- package/bin/comission-business/dtos/GenerateReportResponse.js +2 -0
- package/bin/comission-business/enums/PaymentStatusEnum.d.ts +5 -0
- package/bin/comission-business/enums/PaymentStatusEnum.js +9 -0
- package/bin/credit/dtos/CreditBannerStateResponse.d.ts +10 -0
- package/bin/credit/dtos/CreditBannerStateResponse.js +6 -0
- package/bin/credit/dtos/CreditDetailResponse.d.ts +23 -0
- package/bin/credit/dtos/CreditDetailResponse.js +6 -0
- package/bin/credit/dtos/CreditEligibilityResponse.d.ts +9 -0
- package/bin/credit/dtos/CreditEligibilityResponse.js +6 -0
- package/bin/credit/dtos/CreditMovementResponse.d.ts +20 -0
- package/bin/credit/dtos/CreditMovementResponse.js +9 -0
- package/bin/credit/dtos/CreditRequestCreate.d.ts +4 -0
- package/bin/credit/dtos/CreditRequestCreate.js +26 -0
- package/bin/credit/dtos/CreditRequestResponse.d.ts +7 -0
- package/bin/credit/dtos/CreditRequestResponse.js +6 -0
- package/bin/credit/dtos/CreditScheduleResponse.d.ts +18 -0
- package/bin/credit/dtos/CreditScheduleResponse.js +9 -0
- package/bin/credit/dtos/CreditStatementResponse.d.ts +11 -0
- package/bin/credit/dtos/CreditStatementResponse.js +9 -0
- package/bin/credit/dtos/EarlyPaymentRequest.d.ts +7 -0
- package/bin/credit/dtos/EarlyPaymentRequest.js +37 -0
- package/bin/credit/dtos/EarlyPaymentResponse.d.ts +11 -0
- package/bin/credit/dtos/EarlyPaymentResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditBalanceRequest.js +21 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.d.ts +11 -0
- package/bin/credit/dtos/internal/CreditCollectionRequest.js +59 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.d.ts +12 -0
- package/bin/credit/dtos/internal/CreditCollectionResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditDisbursementRequest.js +43 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditDisbursementResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/CreditProfileRequest.js +23 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.d.ts +5 -0
- package/bin/credit/dtos/internal/CreditReversalRequest.js +31 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.d.ts +7 -0
- package/bin/credit/dtos/internal/CreditReversalResponse.js +6 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoRequest.js +46 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.d.ts +8 -0
- package/bin/credit/dtos/internal/CreditTransferLoancoResponse.js +6 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.d.ts +3 -0
- package/bin/credit/dtos/internal/DocumentSignRequest.js +21 -0
- package/bin/credit/dtos/internal/LienApplyRequest.d.ts +7 -0
- package/bin/credit/dtos/internal/LienApplyRequest.js +45 -0
- package/bin/credit/enums/CollectionFrequencyEnum.d.ts +5 -0
- package/bin/credit/enums/CollectionFrequencyEnum.js +9 -0
- package/bin/credit/enums/CreditOperationEnum.d.ts +11 -0
- package/bin/credit/enums/CreditOperationEnum.js +15 -0
- package/bin/credit/enums/CreditStatusEnum.d.ts +12 -0
- package/bin/credit/enums/CreditStatusEnum.js +16 -0
- package/bin/credit/enums/DelinquencyLevelEnum.d.ts +9 -0
- package/bin/credit/enums/DelinquencyLevelEnum.js +13 -0
- package/bin/credit/enums/DocumentTypeEnum.d.ts +8 -0
- package/bin/credit/enums/DocumentTypeEnum.js +12 -0
- package/bin/credit/enums/OfferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/OfferStatusEnum.js +12 -0
- package/bin/credit/enums/PaymentTypeEnum.d.ts +9 -0
- package/bin/credit/enums/PaymentTypeEnum.js +13 -0
- package/bin/credit/enums/ReconciliationStatusEnum.d.ts +6 -0
- package/bin/credit/enums/ReconciliationStatusEnum.js +10 -0
- package/bin/credit/enums/TransferStatusEnum.d.ts +8 -0
- package/bin/credit/enums/TransferStatusEnum.js +12 -0
- package/package.json +1 -1
- package/src/benefitCenter/dtos/AuthorizeBenefitsMarketplaceTransactionRequest.ts +101 -0
- package/src/benefitCenter/dtos/BenefitPaymentRequest.ts +78 -0
- package/src/benefitCenter/dtos/BenefitPaymentResponse.ts +28 -0
- package/src/benefitCenter/dtos/FavoriteUpsertContext.ts +26 -0
- package/src/benefitCenter/enums/BenefitPaymentErrorCodeEnum.ts +17 -0
- package/src/benefitCenter/enums/BenefitPaymentStatusEnum.ts +12 -0
- package/src/benefitCenter/index.ts +7 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint nuevo `POST /authorizeBenefitsMarketplaceTransaction`
|
|
3
|
+
* en `transaction-processor-business` (PublicController). Lo invoca la app
|
|
4
|
+
* para todos los flujos del Centro de Beneficios.
|
|
5
|
+
*
|
|
6
|
+
* NO se reusa `AuthorizePaymentTransactionRequest` ni similares: este DTO
|
|
7
|
+
* es dedicado, sin sub-objetos opcionales, con los campos del Centro como
|
|
8
|
+
* ciudadanos de primera clase.
|
|
9
|
+
*
|
|
10
|
+
* Los endpoints `authorize*Transaction` actuales del procesador no se tocan
|
|
11
|
+
* y siguen recibiendo su tráfico legacy. Ver doc Fase 2 §5.1.
|
|
12
|
+
*/
|
|
13
|
+
export declare class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
14
|
+
/**
|
|
15
|
+
* Reusa entradas existentes en `ProductCatalog_GT` del procesador
|
|
16
|
+
* (`MEX_TOPUP`, `MEX_SERVICE_PAYMENT`, …). No se agregan entradas nuevas
|
|
17
|
+
* en Fase 2 (ver doc §10).
|
|
18
|
+
*/
|
|
19
|
+
productCatalogId: string;
|
|
20
|
+
/**
|
|
21
|
+
* Idempotency key generada por la **app** (UUID por intento).
|
|
22
|
+
* Lo consume el decorador `@IdempotencyController` del procesador para
|
|
23
|
+
* deduplicar reintentos del cliente.
|
|
24
|
+
*
|
|
25
|
+
* Distinto de `BenefitPaymentRequest.transactionNumber` que el procesador
|
|
26
|
+
* genera internamente al crear la transacción y envía al marketplace y
|
|
27
|
+
* al conector como idempotency key del lado del proveedor. La app NO
|
|
28
|
+
* debe generar `transactionNumber` — por eso este DTO no lo expone.
|
|
29
|
+
*/
|
|
30
|
+
idempotencyKey: string;
|
|
31
|
+
amount: number;
|
|
32
|
+
/** ISO numeric (3 chars). Ej: "484" (MXN), "840" (USD). */
|
|
33
|
+
currencyId: string;
|
|
34
|
+
benefitId: string;
|
|
35
|
+
leafId: string;
|
|
36
|
+
productId: string;
|
|
37
|
+
reference: string;
|
|
38
|
+
/** Decide a qué conector apuntar dentro del marketplace. */
|
|
39
|
+
moduleName: string;
|
|
40
|
+
/** Inputs dinámicos del leaf — opcionales según el servicio. */
|
|
41
|
+
inputs?: Record<string, string | number | boolean>;
|
|
42
|
+
latitude?: number;
|
|
43
|
+
longitude?: number;
|
|
44
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
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.AuthorizeBenefitsMarketplaceTransactionRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request del endpoint nuevo `POST /authorizeBenefitsMarketplaceTransaction`
|
|
16
|
+
* en `transaction-processor-business` (PublicController). Lo invoca la app
|
|
17
|
+
* para todos los flujos del Centro de Beneficios.
|
|
18
|
+
*
|
|
19
|
+
* NO se reusa `AuthorizePaymentTransactionRequest` ni similares: este DTO
|
|
20
|
+
* es dedicado, sin sub-objetos opcionales, con los campos del Centro como
|
|
21
|
+
* ciudadanos de primera clase.
|
|
22
|
+
*
|
|
23
|
+
* Los endpoints `authorize*Transaction` actuales del procesador no se tocan
|
|
24
|
+
* y siguen recibiendo su tráfico legacy. Ver doc Fase 2 §5.1.
|
|
25
|
+
*/
|
|
26
|
+
class AuthorizeBenefitsMarketplaceTransactionRequest {
|
|
27
|
+
}
|
|
28
|
+
exports.AuthorizeBenefitsMarketplaceTransactionRequest = AuthorizeBenefitsMarketplaceTransactionRequest;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsString)(),
|
|
31
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
32
|
+
(0, class_validator_1.MaxLength)(64),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "productCatalogId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, class_validator_1.IsString)(),
|
|
37
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
38
|
+
(0, class_validator_1.MaxLength)(64),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "idempotencyKey", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, class_validator_1.IsNumber)(),
|
|
43
|
+
(0, class_validator_1.IsPositive)(),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "amount", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.Length)(3, 3),
|
|
49
|
+
__metadata("design:type", String)
|
|
50
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "currencyId", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsString)(),
|
|
53
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
54
|
+
(0, class_validator_1.MaxLength)(64),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "benefitId", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
60
|
+
(0, class_validator_1.MaxLength)(256),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "leafId", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
66
|
+
(0, class_validator_1.MaxLength)(64),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "productId", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsString)(),
|
|
71
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
72
|
+
(0, class_validator_1.MaxLength)(128),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "reference", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsString)(),
|
|
77
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
78
|
+
(0, class_validator_1.MaxLength)(128),
|
|
79
|
+
__metadata("design:type", String)
|
|
80
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "moduleName", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, class_validator_1.IsOptional)(),
|
|
83
|
+
(0, class_validator_1.IsObject)(),
|
|
84
|
+
__metadata("design:type", Object)
|
|
85
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "inputs", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsOptional)(),
|
|
88
|
+
(0, class_validator_1.IsLatitude)(),
|
|
89
|
+
__metadata("design:type", Number)
|
|
90
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "latitude", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
|
+
(0, class_validator_1.IsLongitude)(),
|
|
94
|
+
__metadata("design:type", Number)
|
|
95
|
+
], AuthorizeBenefitsMarketplaceTransactionRequest.prototype, "longitude", void 0);
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Request del endpoint privado `POST /pay/{moduleName}` del marketplace
|
|
3
|
+
* (`benefits-marketplace-business`). Lo invoca el procesador desde
|
|
4
|
+
* `IBenefitsMarketplaceApi.pay(...)` cuando entra una transacción por el
|
|
5
|
+
* endpoint `authorizeBenefitsMarketplaceTransaction`.
|
|
6
|
+
*
|
|
7
|
+
* Es el MISMO contrato que reciben los conectores en su `POST /pay/standard`
|
|
8
|
+
* — el marketplace lo reenvía sin transformar (sin mappers legacy).
|
|
9
|
+
*
|
|
10
|
+
* Ver doc Fase 2 §4.1 y §8.1.
|
|
11
|
+
*/
|
|
12
|
+
export declare class BenefitPaymentRequest {
|
|
13
|
+
directoryId: string;
|
|
14
|
+
benefitId: string;
|
|
15
|
+
leafId: string;
|
|
16
|
+
productId: string;
|
|
17
|
+
reference: string;
|
|
18
|
+
amount: number;
|
|
19
|
+
/**
|
|
20
|
+
* Idempotency key del pago (la genera el procesador y la usa el conector
|
|
21
|
+
* para no re-cobrar si el request se repite).
|
|
22
|
+
*/
|
|
23
|
+
transactionNumber: string;
|
|
24
|
+
/**
|
|
25
|
+
* Inputs dinámicos del leaf (definidos por su `inputSchema`). Opcionales
|
|
26
|
+
* según el servicio.
|
|
27
|
+
*/
|
|
28
|
+
inputs?: Record<string, string | number | boolean>;
|
|
29
|
+
latitude?: number;
|
|
30
|
+
longitude?: number;
|
|
31
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.BenefitPaymentRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
/**
|
|
15
|
+
* Request del endpoint privado `POST /pay/{moduleName}` del marketplace
|
|
16
|
+
* (`benefits-marketplace-business`). Lo invoca el procesador desde
|
|
17
|
+
* `IBenefitsMarketplaceApi.pay(...)` cuando entra una transacción por el
|
|
18
|
+
* endpoint `authorizeBenefitsMarketplaceTransaction`.
|
|
19
|
+
*
|
|
20
|
+
* Es el MISMO contrato que reciben los conectores en su `POST /pay/standard`
|
|
21
|
+
* — el marketplace lo reenvía sin transformar (sin mappers legacy).
|
|
22
|
+
*
|
|
23
|
+
* Ver doc Fase 2 §4.1 y §8.1.
|
|
24
|
+
*/
|
|
25
|
+
class BenefitPaymentRequest {
|
|
26
|
+
}
|
|
27
|
+
exports.BenefitPaymentRequest = BenefitPaymentRequest;
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
31
|
+
(0, class_validator_1.MaxLength)(64),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], BenefitPaymentRequest.prototype, "directoryId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
37
|
+
(0, class_validator_1.MaxLength)(64),
|
|
38
|
+
__metadata("design:type", String)
|
|
39
|
+
], BenefitPaymentRequest.prototype, "benefitId", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, class_validator_1.IsString)(),
|
|
42
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
43
|
+
(0, class_validator_1.MaxLength)(256),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], BenefitPaymentRequest.prototype, "leafId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsString)(),
|
|
48
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
49
|
+
(0, class_validator_1.MaxLength)(64),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], BenefitPaymentRequest.prototype, "productId", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
55
|
+
(0, class_validator_1.MaxLength)(128),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], BenefitPaymentRequest.prototype, "reference", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsNumber)(),
|
|
60
|
+
(0, class_validator_1.IsPositive)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], BenefitPaymentRequest.prototype, "amount", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
66
|
+
(0, class_validator_1.MaxLength)(64),
|
|
67
|
+
__metadata("design:type", String)
|
|
68
|
+
], BenefitPaymentRequest.prototype, "transactionNumber", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsObject)(),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], BenefitPaymentRequest.prototype, "inputs", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
|
76
|
+
(0, class_validator_1.IsLatitude)(),
|
|
77
|
+
__metadata("design:type", Number)
|
|
78
|
+
], BenefitPaymentRequest.prototype, "latitude", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
|
+
(0, class_validator_1.IsLongitude)(),
|
|
82
|
+
__metadata("design:type", Number)
|
|
83
|
+
], BenefitPaymentRequest.prototype, "longitude", void 0);
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { BenefitPaymentErrorCodeEnum } from "../enums/BenefitPaymentErrorCodeEnum";
|
|
2
|
+
import { BenefitPaymentStatusEnum } from "../enums/BenefitPaymentStatusEnum";
|
|
3
|
+
/**
|
|
4
|
+
* Respuesta uniforme del marketplace al procesador, devuelta por el endpoint
|
|
5
|
+
* `POST /pay/{moduleName}`. La emite el marketplace tras invocar al conector
|
|
6
|
+
* — su shape NO depende del conector (el mapping interno → estándar lo hace
|
|
7
|
+
* el propio conector en `/pay/standard`).
|
|
8
|
+
*
|
|
9
|
+
* Sin decoradores `class-validator`: el procesador la consume tal cual viene
|
|
10
|
+
* por la red, no la valida. Ver doc Fase 2 §8.2.
|
|
11
|
+
*/
|
|
12
|
+
export declare class BenefitPaymentResponse {
|
|
13
|
+
/** Estado final del pago. APPROVED dispara el upsert del favorito in-process. */
|
|
14
|
+
status: BenefitPaymentStatusEnum;
|
|
15
|
+
/** Tracking del proveedor externo (ej. STP authNum). Útil para auditoría. */
|
|
16
|
+
providerReference?: string;
|
|
17
|
+
/** Código en bruto del proveedor — sirve solo para debug. */
|
|
18
|
+
rawCode?: string;
|
|
19
|
+
/** Código canónico mapeado (cuando `status !== APPROVED`). */
|
|
20
|
+
errorCode?: BenefitPaymentErrorCodeEnum;
|
|
21
|
+
/** Mensaje legible asociado al error o al status. */
|
|
22
|
+
message?: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitPaymentResponse = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Respuesta uniforme del marketplace al procesador, devuelta por el endpoint
|
|
6
|
+
* `POST /pay/{moduleName}`. La emite el marketplace tras invocar al conector
|
|
7
|
+
* — su shape NO depende del conector (el mapping interno → estándar lo hace
|
|
8
|
+
* el propio conector en `/pay/standard`).
|
|
9
|
+
*
|
|
10
|
+
* Sin decoradores `class-validator`: el procesador la consume tal cual viene
|
|
11
|
+
* por la red, no la valida. Ver doc Fase 2 §8.2.
|
|
12
|
+
*/
|
|
13
|
+
class BenefitPaymentResponse {
|
|
14
|
+
}
|
|
15
|
+
exports.BenefitPaymentResponse = BenefitPaymentResponse;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Contexto que el `PaymentManager` del marketplace pasa a
|
|
3
|
+
* `FavoriteManager.upsertFromPayment(...)` para crear/actualizar el favorito
|
|
4
|
+
* tras un pago APPROVED.
|
|
5
|
+
*
|
|
6
|
+
* NO ES UN DTO DE REQUEST HTTP: vive solo dentro del proceso del lambda
|
|
7
|
+
* `benefits-marketplace-business`. Por eso no lleva decoradores de
|
|
8
|
+
* `class-validator` — nunca se deserializa desde un body HTTP.
|
|
9
|
+
*
|
|
10
|
+
* El procesador NO conoce este tipo (no participa en la lógica de favoritos).
|
|
11
|
+
* Ver doc Fase 2 §4.3 y §8.4.
|
|
12
|
+
*/
|
|
13
|
+
export declare class FavoriteUpsertContext {
|
|
14
|
+
directoryId: string;
|
|
15
|
+
benefitId: string;
|
|
16
|
+
leafId: string;
|
|
17
|
+
productId: string;
|
|
18
|
+
reference: string;
|
|
19
|
+
amount: number;
|
|
20
|
+
/** Idempotency key del pago — alimenta el GSI `transactionNumber-index`. */
|
|
21
|
+
transactionNumber: string;
|
|
22
|
+
/** Epoch ms — cuándo cerró la transacción exitosa en el conector. */
|
|
23
|
+
occurredAt: number;
|
|
24
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FavoriteUpsertContext = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Contexto que el `PaymentManager` del marketplace pasa a
|
|
6
|
+
* `FavoriteManager.upsertFromPayment(...)` para crear/actualizar el favorito
|
|
7
|
+
* tras un pago APPROVED.
|
|
8
|
+
*
|
|
9
|
+
* NO ES UN DTO DE REQUEST HTTP: vive solo dentro del proceso del lambda
|
|
10
|
+
* `benefits-marketplace-business`. Por eso no lleva decoradores de
|
|
11
|
+
* `class-validator` — nunca se deserializa desde un body HTTP.
|
|
12
|
+
*
|
|
13
|
+
* El procesador NO conoce este tipo (no participa en la lógica de favoritos).
|
|
14
|
+
* Ver doc Fase 2 §4.3 y §8.4.
|
|
15
|
+
*/
|
|
16
|
+
class FavoriteUpsertContext {
|
|
17
|
+
}
|
|
18
|
+
exports.FavoriteUpsertContext = FavoriteUpsertContext;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Códigos canónicos de error del pago. Cada conector mapea sus errores internos
|
|
3
|
+
* a esta lista antes de devolverle al marketplace. Solo se popula cuando
|
|
4
|
+
* `status === REJECTED` (o `PENDING` si el conector quiere comunicar la causa
|
|
5
|
+
* de la espera).
|
|
6
|
+
*
|
|
7
|
+
* Lista canónica documentada en doc Fase 2 §6.5.
|
|
8
|
+
*/
|
|
9
|
+
export declare enum BenefitPaymentErrorCodeEnum {
|
|
10
|
+
LEAF_NOT_FOUND = "LEAF_NOT_FOUND",
|
|
11
|
+
LEAF_DISABLED = "LEAF_DISABLED",
|
|
12
|
+
LEAF_NOT_VISIBLE = "LEAF_NOT_VISIBLE",
|
|
13
|
+
PRODUCT_NOT_FOUND = "PRODUCT_NOT_FOUND",
|
|
14
|
+
PROVIDER_REJECTED = "PROVIDER_REJECTED",
|
|
15
|
+
PROVIDER_TIMEOUT = "PROVIDER_TIMEOUT",
|
|
16
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS"
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitPaymentErrorCodeEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Códigos canónicos de error del pago. Cada conector mapea sus errores internos
|
|
6
|
+
* a esta lista antes de devolverle al marketplace. Solo se popula cuando
|
|
7
|
+
* `status === REJECTED` (o `PENDING` si el conector quiere comunicar la causa
|
|
8
|
+
* de la espera).
|
|
9
|
+
*
|
|
10
|
+
* Lista canónica documentada en doc Fase 2 §6.5.
|
|
11
|
+
*/
|
|
12
|
+
var BenefitPaymentErrorCodeEnum;
|
|
13
|
+
(function (BenefitPaymentErrorCodeEnum) {
|
|
14
|
+
BenefitPaymentErrorCodeEnum["LEAF_NOT_FOUND"] = "LEAF_NOT_FOUND";
|
|
15
|
+
BenefitPaymentErrorCodeEnum["LEAF_DISABLED"] = "LEAF_DISABLED";
|
|
16
|
+
BenefitPaymentErrorCodeEnum["LEAF_NOT_VISIBLE"] = "LEAF_NOT_VISIBLE";
|
|
17
|
+
BenefitPaymentErrorCodeEnum["PRODUCT_NOT_FOUND"] = "PRODUCT_NOT_FOUND";
|
|
18
|
+
BenefitPaymentErrorCodeEnum["PROVIDER_REJECTED"] = "PROVIDER_REJECTED";
|
|
19
|
+
BenefitPaymentErrorCodeEnum["PROVIDER_TIMEOUT"] = "PROVIDER_TIMEOUT";
|
|
20
|
+
BenefitPaymentErrorCodeEnum["INSUFFICIENT_FUNDS"] = "INSUFFICIENT_FUNDS";
|
|
21
|
+
})(BenefitPaymentErrorCodeEnum || (exports.BenefitPaymentErrorCodeEnum = BenefitPaymentErrorCodeEnum = {}));
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Estado del pago devuelto por el marketplace al procesador.
|
|
3
|
+
*
|
|
4
|
+
* Lo decide el conector (STP, Multicomm, donaciones, etc.) en su `/pay/standard`;
|
|
5
|
+
* el marketplace lo reenvía sin transformar. APPROVED dispara el upsert in-process
|
|
6
|
+
* del favorito (ver doc Fase 2 §4.3); REJECTED y PENDING no.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum BenefitPaymentStatusEnum {
|
|
9
|
+
APPROVED = "APPROVED",
|
|
10
|
+
REJECTED = "REJECTED",
|
|
11
|
+
PENDING = "PENDING"
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BenefitPaymentStatusEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Estado del pago devuelto por el marketplace al procesador.
|
|
6
|
+
*
|
|
7
|
+
* Lo decide el conector (STP, Multicomm, donaciones, etc.) en su `/pay/standard`;
|
|
8
|
+
* el marketplace lo reenvía sin transformar. APPROVED dispara el upsert in-process
|
|
9
|
+
* del favorito (ver doc Fase 2 §4.3); REJECTED y PENDING no.
|
|
10
|
+
*/
|
|
11
|
+
var BenefitPaymentStatusEnum;
|
|
12
|
+
(function (BenefitPaymentStatusEnum) {
|
|
13
|
+
BenefitPaymentStatusEnum["APPROVED"] = "APPROVED";
|
|
14
|
+
BenefitPaymentStatusEnum["REJECTED"] = "REJECTED";
|
|
15
|
+
BenefitPaymentStatusEnum["PENDING"] = "PENDING";
|
|
16
|
+
})(BenefitPaymentStatusEnum || (exports.BenefitPaymentStatusEnum = BenefitPaymentStatusEnum = {}));
|
|
@@ -8,6 +8,8 @@ export * from "./enums/BannerLocaleEnum";
|
|
|
8
8
|
export * from "./enums/BannerScreenEnum";
|
|
9
9
|
export * from "./enums/BannerTemplateVariantEnum";
|
|
10
10
|
export * from "./enums/FavoriteDisabledReasonEnum";
|
|
11
|
+
export * from "./enums/BenefitPaymentStatusEnum";
|
|
12
|
+
export * from "./enums/BenefitPaymentErrorCodeEnum";
|
|
11
13
|
export * from "./dtos/BenefitItem";
|
|
12
14
|
export * from "./dtos/BenefitListResponse";
|
|
13
15
|
export * from "./dtos/BenefitSummary";
|
|
@@ -46,3 +48,7 @@ export * from "./dtos/FavoriteValidationResult";
|
|
|
46
48
|
export * from "./dtos/FavoriteDetailResponse";
|
|
47
49
|
export * from "./dtos/FavoriteUpdateRequest";
|
|
48
50
|
export * from "./dtos/FavoriteReorderRequest";
|
|
51
|
+
export * from "./dtos/BenefitPaymentRequest";
|
|
52
|
+
export * from "./dtos/BenefitPaymentResponse";
|
|
53
|
+
export * from "./dtos/AuthorizeBenefitsMarketplaceTransactionRequest";
|
|
54
|
+
export * from "./dtos/FavoriteUpsertContext";
|
|
@@ -25,6 +25,8 @@ __exportStar(require("./enums/BannerLocaleEnum"), exports);
|
|
|
25
25
|
__exportStar(require("./enums/BannerScreenEnum"), exports);
|
|
26
26
|
__exportStar(require("./enums/BannerTemplateVariantEnum"), exports);
|
|
27
27
|
__exportStar(require("./enums/FavoriteDisabledReasonEnum"), exports);
|
|
28
|
+
__exportStar(require("./enums/BenefitPaymentStatusEnum"), exports);
|
|
29
|
+
__exportStar(require("./enums/BenefitPaymentErrorCodeEnum"), exports);
|
|
28
30
|
//DTOs
|
|
29
31
|
__exportStar(require("./dtos/BenefitItem"), exports);
|
|
30
32
|
__exportStar(require("./dtos/BenefitListResponse"), exports);
|
|
@@ -66,3 +68,8 @@ __exportStar(require("./dtos/FavoriteValidationResult"), exports);
|
|
|
66
68
|
__exportStar(require("./dtos/FavoriteDetailResponse"), exports);
|
|
67
69
|
__exportStar(require("./dtos/FavoriteUpdateRequest"), exports);
|
|
68
70
|
__exportStar(require("./dtos/FavoriteReorderRequest"), exports);
|
|
71
|
+
//Phase 2 — Payments + favorite upsert context (v3.9.0)
|
|
72
|
+
__exportStar(require("./dtos/BenefitPaymentRequest"), exports);
|
|
73
|
+
__exportStar(require("./dtos/BenefitPaymentResponse"), exports);
|
|
74
|
+
__exportStar(require("./dtos/AuthorizeBenefitsMarketplaceTransactionRequest"), exports);
|
|
75
|
+
__exportStar(require("./dtos/FavoriteUpsertContext"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class SignUpBackofficeRequest {
|
|
2
|
+
name: string;
|
|
3
|
+
phoneNumber: string;
|
|
4
|
+
countryOfBirth: string;
|
|
5
|
+
MEX_DebitAccountWish: boolean;
|
|
6
|
+
USA_DebitAccountWish: boolean;
|
|
7
|
+
countryOfDomicile: string;
|
|
8
|
+
myReferralCode?: string;
|
|
9
|
+
referralCode?: string;
|
|
10
|
+
groupId?: string;
|
|
11
|
+
isAgent: boolean;
|
|
12
|
+
agentGroupId?: string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
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.SignUpBackofficeRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class SignUpBackofficeRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.SignUpBackofficeRequest = SignUpBackofficeRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], SignUpBackofficeRequest.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], SignUpBackofficeRequest.prototype, "phoneNumber", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], SignUpBackofficeRequest.prototype, "countryOfBirth", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsBoolean)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
35
|
+
__metadata("design:type", Boolean)
|
|
36
|
+
], SignUpBackofficeRequest.prototype, "MEX_DebitAccountWish", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsBoolean)(),
|
|
39
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
40
|
+
__metadata("design:type", Boolean)
|
|
41
|
+
], SignUpBackofficeRequest.prototype, "USA_DebitAccountWish", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsString)(),
|
|
44
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], SignUpBackofficeRequest.prototype, "countryOfDomicile", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, class_validator_1.IsString)(),
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
__metadata("design:type", String)
|
|
51
|
+
], SignUpBackofficeRequest.prototype, "myReferralCode", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, class_validator_1.IsString)(),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", String)
|
|
56
|
+
], SignUpBackofficeRequest.prototype, "referralCode", void 0);
|
|
57
|
+
__decorate([
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
|
+
(0, class_validator_1.IsOptional)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], SignUpBackofficeRequest.prototype, "groupId", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsBoolean)(),
|
|
64
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
65
|
+
__metadata("design:type", Boolean)
|
|
66
|
+
], SignUpBackofficeRequest.prototype, "isAgent", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsString)(),
|
|
69
|
+
(0, class_validator_1.IsOptional)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], SignUpBackofficeRequest.prototype, "agentGroupId", void 0);
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { CountryId } from "../../country";
|
|
2
|
+
import { ReportConceptEnum } from "../enums/ReportConceptEnum";
|
|
3
|
+
export interface GenerateReportRequest {
|
|
4
|
+
dateFrom: string;
|
|
5
|
+
dateTo: string;
|
|
6
|
+
groupId?: string;
|
|
7
|
+
currency: CountryId;
|
|
8
|
+
amountPerReferral: number;
|
|
9
|
+
concept: ReportConceptEnum;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentStatusEnum = void 0;
|
|
4
|
+
var PaymentStatusEnum;
|
|
5
|
+
(function (PaymentStatusEnum) {
|
|
6
|
+
PaymentStatusEnum["PENDING"] = "PENDING";
|
|
7
|
+
PaymentStatusEnum["PAID"] = "PAID";
|
|
8
|
+
PaymentStatusEnum["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
9
|
+
})(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
+
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
3
|
+
export declare class CreditBannerStateResponse {
|
|
4
|
+
showBanner: boolean;
|
|
5
|
+
bannerType: 'NURTURING' | 'OFFER_AVAILABLE' | 'ACTIVE_CREDIT' | 'NONE';
|
|
6
|
+
offerStatus: OfferStatusEnum | null;
|
|
7
|
+
creditStatus: CreditStatusEnum | null;
|
|
8
|
+
message: string | null;
|
|
9
|
+
maxOfferAmount: number | null;
|
|
10
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CreditStatusEnum } from "../enums/CreditStatusEnum";
|
|
2
|
+
import { DelinquencyLevelEnum } from "../enums/DelinquencyLevelEnum";
|
|
3
|
+
import { CollectionFrequencyEnum } from "../enums/CollectionFrequencyEnum";
|
|
4
|
+
export declare class CreditDetailResponse {
|
|
5
|
+
creditId: string;
|
|
6
|
+
status: CreditStatusEnum;
|
|
7
|
+
delinquencyLevel: DelinquencyLevelEnum;
|
|
8
|
+
originalAmount: number;
|
|
9
|
+
currentBalance: number;
|
|
10
|
+
paidAmount: number;
|
|
11
|
+
nextPaymentAmount: number;
|
|
12
|
+
nextPaymentDate: string;
|
|
13
|
+
overdueDays: number;
|
|
14
|
+
overdueAmount: number;
|
|
15
|
+
termWeeks: number;
|
|
16
|
+
currentWeek: number;
|
|
17
|
+
frequency: CollectionFrequencyEnum;
|
|
18
|
+
annualInterestRate: number;
|
|
19
|
+
cat: number;
|
|
20
|
+
disbursementDate: string;
|
|
21
|
+
maturityDate: string;
|
|
22
|
+
contractDocumentId: string;
|
|
23
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { OfferStatusEnum } from "../enums/OfferStatusEnum";
|
|
2
|
+
export declare class CreditEligibilityResponse {
|
|
3
|
+
eligible: boolean;
|
|
4
|
+
status: OfferStatusEnum;
|
|
5
|
+
maxAmount: number | null;
|
|
6
|
+
minAmount: number | null;
|
|
7
|
+
reason: string | null;
|
|
8
|
+
expiresAt: string | null;
|
|
9
|
+
}
|