@fiado/type-kit 3.320.0 → 3.321.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.
Files changed (46) hide show
  1. package/bin/benefitCenter/enums/BenefitFlowEnum.d.ts +11 -0
  2. package/bin/benefitCenter/enums/BenefitFlowEnum.js +15 -0
  3. package/bin/identity/enums/SelfieSourceEnum.d.ts +10 -0
  4. package/bin/identity/enums/SelfieSourceEnum.js +14 -0
  5. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
  6. package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
  7. package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
  8. package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
  9. package/bin/retailCards/dtos/requests/AssignCardRequest.d.ts +6 -0
  10. package/bin/retailCards/dtos/requests/AssignCardRequest.js +30 -0
  11. package/bin/retailCards/dtos/requests/CancelCardRequest.d.ts +5 -0
  12. package/bin/retailCards/dtos/requests/CancelCardRequest.js +22 -0
  13. package/bin/retailCards/dtos/responses/RetailCardResponse.d.ts +12 -0
  14. package/bin/retailCards/dtos/responses/RetailCardResponse.js +2 -0
  15. package/bin/retailCards/enums/CardBatchStatusEnum.d.ts +17 -0
  16. package/bin/retailCards/enums/CardBatchStatusEnum.js +21 -0
  17. package/bin/retailCards/enums/CardCancelReasonEnum.d.ts +13 -0
  18. package/bin/retailCards/enums/CardCancelReasonEnum.js +17 -0
  19. package/bin/retailCards/enums/RetailCardStatusEnum.d.ts +13 -0
  20. package/bin/retailCards/enums/RetailCardStatusEnum.js +17 -0
  21. package/bin/retailCards/events/RetailCardAssignedV1.d.ts +10 -0
  22. package/bin/retailCards/events/RetailCardAssignedV1.js +2 -0
  23. package/bin/retailCards/events/RetailCardCancelledV1.d.ts +9 -0
  24. package/bin/retailCards/events/RetailCardCancelledV1.js +2 -0
  25. package/bin/retailCards/events/RetailCardReleasedV1.d.ts +7 -0
  26. package/bin/retailCards/events/RetailCardReleasedV1.js +2 -0
  27. package/bin/retailWizard/dtos/requests/CompleteSaleRequest.d.ts +9 -0
  28. package/bin/retailWizard/dtos/requests/CompleteSaleRequest.js +29 -0
  29. package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.d.ts +4 -0
  30. package/bin/retailWizard/dtos/requests/MarkPcfCardDeliveredRequest.js +23 -0
  31. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +6 -0
  32. package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +31 -0
  33. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +7 -0
  34. package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +6 -0
  35. package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +11 -0
  36. package/bin/walletFunding/dtos/CancelFundingRequest.js +33 -0
  37. package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +14 -0
  38. package/bin/walletFunding/dtos/CancelFundingResponse.js +12 -0
  39. package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +3 -0
  40. package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +21 -0
  41. package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +7 -0
  42. package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +6 -0
  43. package/bin/walletFunding/dtos/GetWalletFundingLimitResponse.d.ts +57 -11
  44. package/bin/walletFunding/dtos/GetWalletFundingLimitResponse.js +22 -11
  45. package/package.json +1 -1
  46. package/src/walletFunding/dtos/GetWalletFundingLimitResponse.ts +60 -11
@@ -0,0 +1,11 @@
1
+ export declare enum BenefitFlowEnum {
2
+ TOPUPS = "TOPUPS",
3
+ BILL_PAYMENT = "BILL_PAYMENT",
4
+ CREDIT = "CREDIT",
5
+ INSURANCE = "INSURANCE",
6
+ DONATION = "DONATION",
7
+ PHARMACY = "PHARMACY",
8
+ REMITTANCE = "REMITTANCE",
9
+ /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
10
+ WALLET_FUNDING = "WALLET_FUNDING"
11
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BenefitFlowEnum = void 0;
4
+ var BenefitFlowEnum;
5
+ (function (BenefitFlowEnum) {
6
+ BenefitFlowEnum["TOPUPS"] = "TOPUPS";
7
+ BenefitFlowEnum["BILL_PAYMENT"] = "BILL_PAYMENT";
8
+ BenefitFlowEnum["CREDIT"] = "CREDIT";
9
+ BenefitFlowEnum["INSURANCE"] = "INSURANCE";
10
+ BenefitFlowEnum["DONATION"] = "DONATION";
11
+ BenefitFlowEnum["PHARMACY"] = "PHARMACY";
12
+ BenefitFlowEnum["REMITTANCE"] = "REMITTANCE";
13
+ /** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
14
+ BenefitFlowEnum["WALLET_FUNDING"] = "WALLET_FUNDING";
15
+ })(BenefitFlowEnum || (exports.BenefitFlowEnum = BenefitFlowEnum = {}));
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
3
+ * Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
4
+ */
5
+ export declare enum SelfieSourceEnum {
6
+ /** Matcheó el verificationId de la verificación vigente en People. */
7
+ VERIFICATION = "VERIFICATION",
8
+ /** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
9
+ LATEST = "LATEST"
10
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SelfieSourceEnum = void 0;
4
+ /**
5
+ * Con qué criterio se resolvió cuál archivo de S3 es la selfie del usuario.
6
+ * Le dice al consumidor qué tan confiable es el match antes de mandarla a un facematch.
7
+ */
8
+ var SelfieSourceEnum;
9
+ (function (SelfieSourceEnum) {
10
+ /** Matcheó el verificationId de la verificación vigente en People. */
11
+ SelfieSourceEnum["VERIFICATION"] = "VERIFICATION";
12
+ /** No hubo match por verificación: se tomó el archivo de selfie más reciente del bucket. */
13
+ SelfieSourceEnum["LATEST"] = "LATEST";
14
+ })(SelfieSourceEnum || (exports.SelfieSourceEnum = SelfieSourceEnum = {}));
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,46 @@
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.UpdateActivationChecklistRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * Body de PUT /credits/:creditId/checklist (loan-credit-business). Marca condiciones de activación
17
+ * cumplidas. Solo se mandan las que cambian; en F3 las marcarán los flujos de firma de contrato
18
+ * (`downPayment` + `contractSigned`) y de enrolamiento MDM (`imeiEnrolled` + `lockVerified`).
19
+ */
20
+ class UpdateActivationChecklistRequest {
21
+ }
22
+ exports.UpdateActivationChecklistRequest = UpdateActivationChecklistRequest;
23
+ __decorate([
24
+ (0, class_transformer_1.Expose)(),
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsBoolean)(),
27
+ __metadata("design:type", Boolean)
28
+ ], UpdateActivationChecklistRequest.prototype, "downPayment", void 0);
29
+ __decorate([
30
+ (0, class_transformer_1.Expose)(),
31
+ (0, class_validator_1.IsOptional)(),
32
+ (0, class_validator_1.IsBoolean)(),
33
+ __metadata("design:type", Boolean)
34
+ ], UpdateActivationChecklistRequest.prototype, "contractSigned", void 0);
35
+ __decorate([
36
+ (0, class_transformer_1.Expose)(),
37
+ (0, class_validator_1.IsOptional)(),
38
+ (0, class_validator_1.IsBoolean)(),
39
+ __metadata("design:type", Boolean)
40
+ ], UpdateActivationChecklistRequest.prototype, "imeiEnrolled", void 0);
41
+ __decorate([
42
+ (0, class_transformer_1.Expose)(),
43
+ (0, class_validator_1.IsOptional)(),
44
+ (0, class_validator_1.IsBoolean)(),
45
+ __metadata("design:type", Boolean)
46
+ ], UpdateActivationChecklistRequest.prototype, "lockVerified", void 0);
@@ -0,0 +1,11 @@
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
+ }
@@ -0,0 +1,15 @@
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 = {}));
@@ -0,0 +1,6 @@
1
+ /** Body de la asignación de una tarjeta física a un cliente. */
2
+ export declare class AssignCardRequest {
3
+ assignedToCustomerId: string;
4
+ assignedByUserId: string;
5
+ creditId?: string;
6
+ }
@@ -0,0 +1,30 @@
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.AssignCardRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /** Body de la asignación de una tarjeta física a un cliente. */
15
+ class AssignCardRequest {
16
+ }
17
+ exports.AssignCardRequest = AssignCardRequest;
18
+ __decorate([
19
+ (0, class_validator_1.IsString)(),
20
+ __metadata("design:type", String)
21
+ ], AssignCardRequest.prototype, "assignedToCustomerId", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ __metadata("design:type", String)
25
+ ], AssignCardRequest.prototype, "assignedByUserId", void 0);
26
+ __decorate([
27
+ (0, class_validator_1.IsOptional)(),
28
+ (0, class_validator_1.IsString)(),
29
+ __metadata("design:type", String)
30
+ ], AssignCardRequest.prototype, "creditId", void 0);
@@ -0,0 +1,5 @@
1
+ import { CardCancelReasonEnum } from '../../enums/CardCancelReasonEnum';
2
+ /** Body de la cancelación (anulación) de una tarjeta física. */
3
+ export declare class CancelCardRequest {
4
+ reason: CardCancelReasonEnum;
5
+ }
@@ -0,0 +1,22 @@
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.CancelCardRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const CardCancelReasonEnum_1 = require("../../enums/CardCancelReasonEnum");
15
+ /** Body de la cancelación (anulación) de una tarjeta física. */
16
+ class CancelCardRequest {
17
+ }
18
+ exports.CancelCardRequest = CancelCardRequest;
19
+ __decorate([
20
+ (0, class_validator_1.IsEnum)(CardCancelReasonEnum_1.CardCancelReasonEnum),
21
+ __metadata("design:type", String)
22
+ ], CancelCardRequest.prototype, "reason", void 0);
@@ -0,0 +1,12 @@
1
+ import { RetailCardStatusEnum } from '../../enums/RetailCardStatusEnum';
2
+ /** Representación de una tarjeta física hacia el cliente. */
3
+ export interface RetailCardResponse {
4
+ cardNumber: string;
5
+ retailerId: string;
6
+ batchId: string;
7
+ storeId: string;
8
+ status: RetailCardStatusEnum;
9
+ assignedToCustomerId: string | null;
10
+ assignedAt: string | null;
11
+ assignedByUserId: string | null;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Estado de un lote de tarjetas.
3
+ * @enum {string}
4
+ *
5
+ * @property {string} RECEIVING - Transitorio, carga en curso (DEC-004/DEC-008).
6
+ * @property {string} RECEIVED - Carga completada, lote atado a una tienda (happy-path F1).
7
+ * @property {string} FAILED - Terminal, la carga del lote falló (DEC-004/DEC-008).
8
+ * @property {string} DISTRIBUTED - Reservado F1 — lote centralizado repartido a varias tiendas (TD-008).
9
+ * @property {string} CLOSED - Reservado F1 — cierre manual del lote (TD-008).
10
+ */
11
+ export declare enum CardBatchStatusEnum {
12
+ RECEIVING = "RECEIVING",
13
+ RECEIVED = "RECEIVED",
14
+ FAILED = "FAILED",
15
+ DISTRIBUTED = "DISTRIBUTED",
16
+ CLOSED = "CLOSED"
17
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardBatchStatusEnum = void 0;
4
+ /**
5
+ * Estado de un lote de tarjetas.
6
+ * @enum {string}
7
+ *
8
+ * @property {string} RECEIVING - Transitorio, carga en curso (DEC-004/DEC-008).
9
+ * @property {string} RECEIVED - Carga completada, lote atado a una tienda (happy-path F1).
10
+ * @property {string} FAILED - Terminal, la carga del lote falló (DEC-004/DEC-008).
11
+ * @property {string} DISTRIBUTED - Reservado F1 — lote centralizado repartido a varias tiendas (TD-008).
12
+ * @property {string} CLOSED - Reservado F1 — cierre manual del lote (TD-008).
13
+ */
14
+ var CardBatchStatusEnum;
15
+ (function (CardBatchStatusEnum) {
16
+ CardBatchStatusEnum["RECEIVING"] = "RECEIVING";
17
+ CardBatchStatusEnum["RECEIVED"] = "RECEIVED";
18
+ CardBatchStatusEnum["FAILED"] = "FAILED";
19
+ CardBatchStatusEnum["DISTRIBUTED"] = "DISTRIBUTED";
20
+ CardBatchStatusEnum["CLOSED"] = "CLOSED";
21
+ })(CardBatchStatusEnum || (exports.CardBatchStatusEnum = CardBatchStatusEnum = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Motivo de cancelación de una tarjeta física.
3
+ * @enum {string}
4
+ *
5
+ * @property {string} PLASTIC_DAMAGED - Plástico dañado.
6
+ * @property {string} LOST - Tarjeta perdida.
7
+ * @property {string} THEFT_REPORTED - Robo reportado.
8
+ */
9
+ export declare enum CardCancelReasonEnum {
10
+ PLASTIC_DAMAGED = "PLASTIC_DAMAGED",
11
+ LOST = "LOST",
12
+ THEFT_REPORTED = "THEFT_REPORTED"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CardCancelReasonEnum = void 0;
4
+ /**
5
+ * Motivo de cancelación de una tarjeta física.
6
+ * @enum {string}
7
+ *
8
+ * @property {string} PLASTIC_DAMAGED - Plástico dañado.
9
+ * @property {string} LOST - Tarjeta perdida.
10
+ * @property {string} THEFT_REPORTED - Robo reportado.
11
+ */
12
+ var CardCancelReasonEnum;
13
+ (function (CardCancelReasonEnum) {
14
+ CardCancelReasonEnum["PLASTIC_DAMAGED"] = "PLASTIC_DAMAGED";
15
+ CardCancelReasonEnum["LOST"] = "LOST";
16
+ CardCancelReasonEnum["THEFT_REPORTED"] = "THEFT_REPORTED";
17
+ })(CardCancelReasonEnum || (exports.CardCancelReasonEnum = CardCancelReasonEnum = {}));
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Estado de una tarjeta física individual.
3
+ * @enum {string}
4
+ *
5
+ * @property {string} AVAILABLE - Cargada en stock, disponible para asignar.
6
+ * @property {string} ASSIGNED - Asignada a un cliente.
7
+ * @property {string} CANCELLED - Anulada (plástico dañado, pérdida o robo). Estado terminal.
8
+ */
9
+ export declare enum RetailCardStatusEnum {
10
+ AVAILABLE = "AVAILABLE",
11
+ ASSIGNED = "ASSIGNED",
12
+ CANCELLED = "CANCELLED"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RetailCardStatusEnum = void 0;
4
+ /**
5
+ * Estado de una tarjeta física individual.
6
+ * @enum {string}
7
+ *
8
+ * @property {string} AVAILABLE - Cargada en stock, disponible para asignar.
9
+ * @property {string} ASSIGNED - Asignada a un cliente.
10
+ * @property {string} CANCELLED - Anulada (plástico dañado, pérdida o robo). Estado terminal.
11
+ */
12
+ var RetailCardStatusEnum;
13
+ (function (RetailCardStatusEnum) {
14
+ RetailCardStatusEnum["AVAILABLE"] = "AVAILABLE";
15
+ RetailCardStatusEnum["ASSIGNED"] = "ASSIGNED";
16
+ RetailCardStatusEnum["CANCELLED"] = "CANCELLED";
17
+ })(RetailCardStatusEnum || (exports.RetailCardStatusEnum = RetailCardStatusEnum = {}));
@@ -0,0 +1,10 @@
1
+ /** Emitido cuando una tarjeta se asigna a un cliente. */
2
+ export interface RetailCardAssignedV1 {
3
+ cardNumber: string;
4
+ retailerId: string;
5
+ storeId: string;
6
+ assignedToCustomerId: string;
7
+ assignedByUserId: string;
8
+ creditId?: string;
9
+ occurredAt: string;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { CardCancelReasonEnum } from '../enums/CardCancelReasonEnum';
2
+ /** Emitido cuando una tarjeta se cancela (anula). */
3
+ export interface RetailCardCancelledV1 {
4
+ cardNumber: string;
5
+ retailerId: string;
6
+ storeId: string;
7
+ reason: CardCancelReasonEnum;
8
+ occurredAt: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ /** Emitido cuando una tarjeta se libera (vuelve a AVAILABLE). */
2
+ export interface RetailCardReleasedV1 {
3
+ cardNumber: string;
4
+ retailerId: string;
5
+ storeId: string;
6
+ occurredAt: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ /**
2
+ * POST /wizard/sessions/:id/complete-sale — cierra la venta (saga de 2 pasos, flujo 09). Exige
3
+ * payment registrado (regla dura). Consume el IMEI del silo (SOLD), asigna la tarjeta PCF, persiste
4
+ * la Sale con `UNIQ#FOLIO` y emite el outbox `SaleCompletedV1` en la MISMA tx. Cierra el prospecto
5
+ * vinculado si lo hay. `cardNumber` = tarjeta física entregada en tienda (S7). SureKeep Fase 2 — pista Retail.
6
+ */
7
+ export declare class CompleteSaleRequest {
8
+ cardNumber?: string;
9
+ }
@@ -0,0 +1,29 @@
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.CompleteSaleRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /**
16
+ * POST /wizard/sessions/:id/complete-sale — cierra la venta (saga de 2 pasos, flujo 09). Exige
17
+ * payment registrado (regla dura). Consume el IMEI del silo (SOLD), asigna la tarjeta PCF, persiste
18
+ * la Sale con `UNIQ#FOLIO` y emite el outbox `SaleCompletedV1` en la MISMA tx. Cierra el prospecto
19
+ * vinculado si lo hay. `cardNumber` = tarjeta física entregada en tienda (S7). SureKeep Fase 2 — pista Retail.
20
+ */
21
+ class CompleteSaleRequest {
22
+ }
23
+ exports.CompleteSaleRequest = CompleteSaleRequest;
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)(),
26
+ (0, class_validator_1.IsOptional)(),
27
+ (0, class_validator_1.IsString)(),
28
+ __metadata("design:type", String)
29
+ ], CompleteSaleRequest.prototype, "cardNumber", void 0);
@@ -0,0 +1,4 @@
1
+ /** POST /wizard/sessions/:id/pcf-card/mark-delivered — marca la tarjeta física PCF como entregada (S7). SureKeep Fase 2 — pista Retail. */
2
+ export declare class MarkPcfCardDeliveredRequest {
3
+ cardNumber: string;
4
+ }
@@ -0,0 +1,23 @@
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.MarkPcfCardDeliveredRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ /** POST /wizard/sessions/:id/pcf-card/mark-delivered — marca la tarjeta física PCF como entregada (S7). SureKeep Fase 2 — pista Retail. */
16
+ class MarkPcfCardDeliveredRequest {
17
+ }
18
+ exports.MarkPcfCardDeliveredRequest = MarkPcfCardDeliveredRequest;
19
+ __decorate([
20
+ (0, class_transformer_1.Expose)(),
21
+ (0, class_validator_1.IsString)(),
22
+ __metadata("design:type", String)
23
+ ], MarkPcfCardDeliveredRequest.prototype, "cardNumber", void 0);
@@ -0,0 +1,6 @@
1
+ export declare class CancelFundingReferenceRequest {
2
+ /** Referencia Passport (PK de EqualityFundingReference_GT). */
3
+ reference: string;
4
+ directoryId: string;
5
+ idempotencyKey: string;
6
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CancelFundingReferenceRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CancelFundingReferenceRequest {
15
+ }
16
+ exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MaxLength)(64),
20
+ __metadata("design:type", String)
21
+ ], CancelFundingReferenceRequest.prototype, "reference", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsString)(),
24
+ (0, class_validator_1.MaxLength)(64),
25
+ __metadata("design:type", String)
26
+ ], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsString)(),
29
+ (0, class_validator_1.MaxLength)(64),
30
+ __metadata("design:type", String)
31
+ ], CancelFundingReferenceRequest.prototype, "idempotencyKey", void 0);
@@ -0,0 +1,7 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ export declare class CancelFundingReferenceResponse {
4
+ reference: string;
5
+ status: BenefitPaymentStatusEnum;
6
+ errorCode?: WalletFundingErrorCodeEnum;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelFundingReferenceResponse = void 0;
4
+ class CancelFundingReferenceResponse {
5
+ }
6
+ exports.CancelFundingReferenceResponse = CancelFundingReferenceResponse;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Request del cancel via Centro de Beneficios (spec 13 v2.0).
3
+ * `reference` viaja en el path, `directoryId` se resuelve del JWT.
4
+ * `providerModuleName` permite al marketplace rutear al publisher correcto
5
+ * sin tener que persistir el mapping (el wallet-app sabe el moduleName
6
+ * porque vino en la respuesta del authorize).
7
+ */
8
+ export declare class CancelFundingRequest {
9
+ idempotencyKey: string;
10
+ providerModuleName: string;
11
+ }
@@ -0,0 +1,33 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CancelFundingRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ /**
15
+ * Request del cancel via Centro de Beneficios (spec 13 v2.0).
16
+ * `reference` viaja en el path, `directoryId` se resuelve del JWT.
17
+ * `providerModuleName` permite al marketplace rutear al publisher correcto
18
+ * sin tener que persistir el mapping (el wallet-app sabe el moduleName
19
+ * porque vino en la respuesta del authorize).
20
+ */
21
+ class CancelFundingRequest {
22
+ }
23
+ exports.CancelFundingRequest = CancelFundingRequest;
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.MaxLength)(64),
27
+ __metadata("design:type", String)
28
+ ], CancelFundingRequest.prototype, "idempotencyKey", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsString)(),
31
+ (0, class_validator_1.MaxLength)(128),
32
+ __metadata("design:type", String)
33
+ ], CancelFundingRequest.prototype, "providerModuleName", void 0);
@@ -0,0 +1,14 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ /**
4
+ * Response del cancel via Centro de Beneficios (spec 13 v2.0).
5
+ * `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
6
+ * REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
7
+ * (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
8
+ */
9
+ export declare class CancelFundingResponse {
10
+ reference: string;
11
+ status: BenefitPaymentStatusEnum;
12
+ errorCode?: WalletFundingErrorCodeEnum;
13
+ message?: string;
14
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelFundingResponse = void 0;
4
+ /**
5
+ * Response del cancel via Centro de Beneficios (spec 13 v2.0).
6
+ * `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
7
+ * REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
8
+ * (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
9
+ */
10
+ class CancelFundingResponse {
11
+ }
12
+ exports.CancelFundingResponse = CancelFundingResponse;
@@ -0,0 +1,3 @@
1
+ export declare class CancelWalletFundingRequest {
2
+ idempotencyKey: string;
3
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.CancelWalletFundingRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ class CancelWalletFundingRequest {
15
+ }
16
+ exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
17
+ __decorate([
18
+ (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.MaxLength)(64),
20
+ __metadata("design:type", String)
21
+ ], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
@@ -0,0 +1,7 @@
1
+ import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
2
+ import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
3
+ export declare class CancelWalletFundingResponse {
4
+ status: BenefitPaymentStatusEnum;
5
+ errorCode?: WalletFundingErrorCodeEnum;
6
+ reference?: string;
7
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CancelWalletFundingResponse = void 0;
4
+ class CancelWalletFundingResponse {
5
+ }
6
+ exports.CancelWalletFundingResponse = CancelWalletFundingResponse;
@@ -1,22 +1,68 @@
1
1
  /**
2
- * Response del endpoint `POST /wallet-funding/limit` (processor).
2
+ * Response del endpoint de limites de wallet funding.
3
3
  *
4
- * Reporta el cap mensual del nivel del usuario (en MXN) y cuanto le queda
5
- * disponible este mes, para que el wallet-app pueda mostrar "Disponible este
6
- * mes: $X" antes de que el usuario haga cualquier deposito.
4
+ * Lo consume el wallet-app para decirle al usuario cuanto puede fondear ANTES
5
+ * de que vaya a la tienda. Hay dos topes distintos que lo pueden frenar, y el
6
+ * usuario tiene derecho a saber cual — asi que cada uno viaja en su propia
7
+ * propiedad en vez de colapsarlos en un solo numero:
7
8
  *
8
- * Semantica de los campos opcionales:
9
- * - `monthlyLimit === undefined` el nivel del usuario es ILIMITADO (el
10
- * accountLevel tiene `maxMonthlyIncomingAmount = 0` en UDIs). En ese caso
11
- * `remainingAmount` tambien viene undefined; el front muestra "Sin limite".
12
- * - `monthlyLimit` definido → hay cap. `remainingAmount = max(0, monthlyLimit
13
- * − monthlyConsumed)`. Si el usuario ya copo el cap, `remainingAmount = 0`.
9
+ * 1. TOPE DEL NIVEL DE CUENTA (`monthly*`) — regulatorio (CFPE / Contrato
10
+ * EDM). Cubre TODAS las entradas del usuario: P2P, SPEI, Pomelo y tambien
11
+ * el cash-in. Es el TECHO: nada puede pasarlo.
14
12
  *
15
- * `currency` siempre presente (default "MXN").
13
+ * 2. TOPE DE CASH IN (`cashIn*`) — decision de negocio Fiado, por cliente y
14
+ * por mes calendario. Dice cuanto de ese techo puede venir por efectivo en
15
+ * tienda. NO lo reemplaza: es un sub-limite dentro de el.
16
+ *
17
+ * El cap AGREGADO de exposicion FSA no se reporta aca: es global, no un limite
18
+ * personal del usuario. Si el servicio esta suspendido se comunica por otra via.
19
+ *
20
+ * `availableToFund` es la respuesta a "cuanto puedo depositar ahora": el MENOR
21
+ * de los dos, ya descontando lo pendiente. Es el unico numero que el front
22
+ * necesita para habilitar o bloquear; los demas sirven para explicar POR QUE,
23
+ * que es lo que evita el ticket de soporte.
24
+ *
25
+ * Compatibilidad: los cuatro campos originales conservan su semantica exacta.
26
+ * Los nuevos son opcionales — un caller viejo sigue funcionando igual.
16
27
  */
17
28
  export declare class GetWalletFundingLimitResponse {
29
+ /**
30
+ * Tope mensual de ENTRADAS del nivel de cuenta, en MXN.
31
+ * `undefined` = nivel ilimitado (`maxMonthlyIncomingAmount = 0` en UDIs);
32
+ * el front muestra "Sin limite".
33
+ */
18
34
  monthlyLimit?: number;
35
+ /** Entradas ya recibidas este mes por CUALQUIER via, no solo cash-in. */
19
36
  monthlyConsumed?: number;
37
+ /** `max(0, monthlyLimit − monthlyConsumed)`. `undefined` si no hay tope. */
20
38
  remainingAmount?: number;
39
+ /** Tope mensual de cash-in por cliente, en MXN. */
40
+ cashInMonthlyLimit?: number;
41
+ /** Cash-in ya ACREDITADO al cliente este mes. */
42
+ cashInMonthlyConsumed?: number;
43
+ /**
44
+ * Cash-in AUTORIZADO pero todavia no acreditado (pagos en verificacion).
45
+ *
46
+ * Cuenta contra el disponible aunque aun no toque el saldo: el cliente ya
47
+ * entrego ese efectivo en la caja y el dinero esta comprometido. Sin esto,
48
+ * en la ventana entre autorizar y acreditar el usuario veria un disponible
49
+ * inflado y podria pasarse del tope.
50
+ */
51
+ cashInMonthlyPending?: number;
52
+ /** `max(0, cashInMonthlyLimit − consumido − pendiente)`. */
53
+ cashInRemainingAmount?: number;
54
+ /**
55
+ * Cuanto puede fondear el usuario AHORA por cash-in: el menor entre
56
+ * `remainingAmount` y `cashInRemainingAmount`.
57
+ *
58
+ * Es el numero que el front debe usar para habilitar o bloquear el flujo.
59
+ */
60
+ availableToFund?: number;
61
+ /**
62
+ * Que tope esta limitando: `ACCOUNT_LEVEL` (el regulatorio del nivel) o
63
+ * `CASH_IN` (el de negocio). Permite explicarle al usuario por que no puede
64
+ * depositar mas, en vez de mostrarle un cero sin razon.
65
+ */
66
+ limitedBy?: "ACCOUNT_LEVEL" | "CASH_IN";
21
67
  currency: string;
22
68
  }
@@ -2,20 +2,31 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.GetWalletFundingLimitResponse = void 0;
4
4
  /**
5
- * Response del endpoint `POST /wallet-funding/limit` (processor).
5
+ * Response del endpoint de limites de wallet funding.
6
6
  *
7
- * Reporta el cap mensual del nivel del usuario (en MXN) y cuanto le queda
8
- * disponible este mes, para que el wallet-app pueda mostrar "Disponible este
9
- * mes: $X" antes de que el usuario haga cualquier deposito.
7
+ * Lo consume el wallet-app para decirle al usuario cuanto puede fondear ANTES
8
+ * de que vaya a la tienda. Hay dos topes distintos que lo pueden frenar, y el
9
+ * usuario tiene derecho a saber cual — asi que cada uno viaja en su propia
10
+ * propiedad en vez de colapsarlos en un solo numero:
10
11
  *
11
- * Semantica de los campos opcionales:
12
- * - `monthlyLimit === undefined` el nivel del usuario es ILIMITADO (el
13
- * accountLevel tiene `maxMonthlyIncomingAmount = 0` en UDIs). En ese caso
14
- * `remainingAmount` tambien viene undefined; el front muestra "Sin limite".
15
- * - `monthlyLimit` definido → hay cap. `remainingAmount = max(0, monthlyLimit
16
- * − monthlyConsumed)`. Si el usuario ya copo el cap, `remainingAmount = 0`.
12
+ * 1. TOPE DEL NIVEL DE CUENTA (`monthly*`) — regulatorio (CFPE / Contrato
13
+ * EDM). Cubre TODAS las entradas del usuario: P2P, SPEI, Pomelo y tambien
14
+ * el cash-in. Es el TECHO: nada puede pasarlo.
17
15
  *
18
- * `currency` siempre presente (default "MXN").
16
+ * 2. TOPE DE CASH IN (`cashIn*`) — decision de negocio Fiado, por cliente y
17
+ * por mes calendario. Dice cuanto de ese techo puede venir por efectivo en
18
+ * tienda. NO lo reemplaza: es un sub-limite dentro de el.
19
+ *
20
+ * El cap AGREGADO de exposicion FSA no se reporta aca: es global, no un limite
21
+ * personal del usuario. Si el servicio esta suspendido se comunica por otra via.
22
+ *
23
+ * `availableToFund` es la respuesta a "cuanto puedo depositar ahora": el MENOR
24
+ * de los dos, ya descontando lo pendiente. Es el unico numero que el front
25
+ * necesita para habilitar o bloquear; los demas sirven para explicar POR QUE,
26
+ * que es lo que evita el ticket de soporte.
27
+ *
28
+ * Compatibilidad: los cuatro campos originales conservan su semantica exacta.
29
+ * Los nuevos son opcionales — un caller viejo sigue funcionando igual.
19
30
  */
20
31
  class GetWalletFundingLimitResponse {
21
32
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.320.0",
3
+ "version": "3.321.1",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,22 +1,71 @@
1
1
  /**
2
- * Response del endpoint `POST /wallet-funding/limit` (processor).
2
+ * Response del endpoint de limites de wallet funding.
3
3
  *
4
- * Reporta el cap mensual del nivel del usuario (en MXN) y cuanto le queda
5
- * disponible este mes, para que el wallet-app pueda mostrar "Disponible este
6
- * mes: $X" antes de que el usuario haga cualquier deposito.
4
+ * Lo consume el wallet-app para decirle al usuario cuanto puede fondear ANTES
5
+ * de que vaya a la tienda. Hay dos topes distintos que lo pueden frenar, y el
6
+ * usuario tiene derecho a saber cual — asi que cada uno viaja en su propia
7
+ * propiedad en vez de colapsarlos en un solo numero:
7
8
  *
8
- * Semantica de los campos opcionales:
9
- * - `monthlyLimit === undefined` el nivel del usuario es ILIMITADO (el
10
- * accountLevel tiene `maxMonthlyIncomingAmount = 0` en UDIs). En ese caso
11
- * `remainingAmount` tambien viene undefined; el front muestra "Sin limite".
12
- * - `monthlyLimit` definido → hay cap. `remainingAmount = max(0, monthlyLimit
13
- * − monthlyConsumed)`. Si el usuario ya copo el cap, `remainingAmount = 0`.
9
+ * 1. TOPE DEL NIVEL DE CUENTA (`monthly*`) — regulatorio (CFPE / Contrato
10
+ * EDM). Cubre TODAS las entradas del usuario: P2P, SPEI, Pomelo y tambien
11
+ * el cash-in. Es el TECHO: nada puede pasarlo.
14
12
  *
15
- * `currency` siempre presente (default "MXN").
13
+ * 2. TOPE DE CASH IN (`cashIn*`) — decision de negocio Fiado, por cliente y
14
+ * por mes calendario. Dice cuanto de ese techo puede venir por efectivo en
15
+ * tienda. NO lo reemplaza: es un sub-limite dentro de el.
16
+ *
17
+ * El cap AGREGADO de exposicion FSA no se reporta aca: es global, no un limite
18
+ * personal del usuario. Si el servicio esta suspendido se comunica por otra via.
19
+ *
20
+ * `availableToFund` es la respuesta a "cuanto puedo depositar ahora": el MENOR
21
+ * de los dos, ya descontando lo pendiente. Es el unico numero que el front
22
+ * necesita para habilitar o bloquear; los demas sirven para explicar POR QUE,
23
+ * que es lo que evita el ticket de soporte.
24
+ *
25
+ * Compatibilidad: los cuatro campos originales conservan su semantica exacta.
26
+ * Los nuevos son opcionales — un caller viejo sigue funcionando igual.
16
27
  */
17
28
  export class GetWalletFundingLimitResponse {
29
+ /**
30
+ * Tope mensual de ENTRADAS del nivel de cuenta, en MXN.
31
+ * `undefined` = nivel ilimitado (`maxMonthlyIncomingAmount = 0` en UDIs);
32
+ * el front muestra "Sin limite".
33
+ */
18
34
  monthlyLimit?: number;
35
+ /** Entradas ya recibidas este mes por CUALQUIER via, no solo cash-in. */
19
36
  monthlyConsumed?: number;
37
+ /** `max(0, monthlyLimit − monthlyConsumed)`. `undefined` si no hay tope. */
20
38
  remainingAmount?: number;
39
+
40
+ /** Tope mensual de cash-in por cliente, en MXN. */
41
+ cashInMonthlyLimit?: number;
42
+ /** Cash-in ya ACREDITADO al cliente este mes. */
43
+ cashInMonthlyConsumed?: number;
44
+ /**
45
+ * Cash-in AUTORIZADO pero todavia no acreditado (pagos en verificacion).
46
+ *
47
+ * Cuenta contra el disponible aunque aun no toque el saldo: el cliente ya
48
+ * entrego ese efectivo en la caja y el dinero esta comprometido. Sin esto,
49
+ * en la ventana entre autorizar y acreditar el usuario veria un disponible
50
+ * inflado y podria pasarse del tope.
51
+ */
52
+ cashInMonthlyPending?: number;
53
+ /** `max(0, cashInMonthlyLimit − consumido − pendiente)`. */
54
+ cashInRemainingAmount?: number;
55
+
56
+ /**
57
+ * Cuanto puede fondear el usuario AHORA por cash-in: el menor entre
58
+ * `remainingAmount` y `cashInRemainingAmount`.
59
+ *
60
+ * Es el numero que el front debe usar para habilitar o bloquear el flujo.
61
+ */
62
+ availableToFund?: number;
63
+ /**
64
+ * Que tope esta limitando: `ACCOUNT_LEVEL` (el regulatorio del nivel) o
65
+ * `CASH_IN` (el de negocio). Permite explicarle al usuario por que no puede
66
+ * depositar mas, en vez de mostrarle un cero sin razon.
67
+ */
68
+ limitedBy?: "ACCOUNT_LEVEL" | "CASH_IN";
69
+
21
70
  currency!: string;
22
71
  }