@fiado/type-kit 3.326.0 → 3.328.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/identity/enums/SelfieSourceEnum.d.ts +10 -0
- package/bin/identity/enums/SelfieSourceEnum.js +14 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.d.ts +11 -0
- package/bin/loanCredit/dtos/requests/UpdateActivationChecklistRequest.js +46 -0
- package/bin/loanCredit/enums/ClientLevelEnum.d.ts +11 -0
- package/bin/loanCredit/enums/ClientLevelEnum.js +15 -0
- package/bin/transaction/dtos/Product.d.ts +17 -0
- package/bin/transaction/dtos/Product.js +5 -0
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +2 -10
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +3 -13
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -8
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -7
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +11 -0
- package/bin/{platformRbac/dtos/CompleteMyProfileRequest.js → walletFunding/dtos/CancelFundingRequest.js} +14 -15
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +14 -0
- package/bin/walletFunding/dtos/CancelFundingResponse.js +12 -0
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +1 -1
- package/bin/walletFunding/dtos/FundingStoreItem.d.ts +46 -0
- package/bin/walletFunding/dtos/FundingStoreItem.js +25 -0
- package/bin/walletFunding/dtos/ListFundingStoresRequest.d.ts +17 -0
- package/bin/walletFunding/dtos/ListFundingStoresRequest.js +48 -0
- package/bin/walletFunding/dtos/ListFundingStoresResponse.d.ts +5 -0
- package/bin/walletFunding/dtos/ListFundingStoresResponse.js +6 -0
- package/bin/walletFunding/dtos/index.d.ts +3 -0
- package/bin/walletFunding/dtos/index.js +3 -0
- package/bin/walletFunding/enums/FundingStoreProductEnum.d.ts +13 -0
- package/bin/walletFunding/enums/FundingStoreProductEnum.js +17 -0
- package/bin/walletFunding/enums/index.d.ts +1 -0
- package/bin/walletFunding/enums/index.js +1 -0
- package/package.json +2 -2
- package/src/transaction/dtos/Product.ts +20 -0
- package/src/walletFunding/dtos/FundingStoreItem.ts +48 -0
- package/src/walletFunding/dtos/ListFundingStoresRequest.ts +19 -0
- package/src/walletFunding/dtos/ListFundingStoresResponse.ts +6 -0
- package/src/walletFunding/dtos/index.ts +3 -0
- package/src/walletFunding/enums/FundingStoreProductEnum.ts +13 -0
- package/src/walletFunding/enums/index.ts +1 -0
- package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
- package/bin/places/dtos/CashInFeeDto.js +0 -12
- package/bin/platformRbac/dtos/CompleteMyProfileRequest.d.ts +0 -9
|
@@ -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 = {}));
|
|
@@ -7,4 +7,21 @@ export declare class Product {
|
|
|
7
7
|
relatedProductId: string;
|
|
8
8
|
targetRelatedProductId: string;
|
|
9
9
|
originalRelatedId: string;
|
|
10
|
+
/**
|
|
11
|
+
* Id del producto de `ProductCatalog_GT` con el que se tarifo esta
|
|
12
|
+
* transaccion (ej. `SP_CASH_IN`, `SP_CASH_IN_OXXO`).
|
|
13
|
+
*
|
|
14
|
+
* POR QUE NO ALCANZA CON `type`/`subType`: esos dos describen la OPERACION,
|
|
15
|
+
* no el producto ni el proveedor. Un cash-in de SinergyPay se persiste con
|
|
16
|
+
* `type=EQ_CASH_SA` —el tipo de Equality, hardcodeado a proposito para que
|
|
17
|
+
* la UI aplique su template— asi que por ellos NO se distingue quien lo
|
|
18
|
+
* proceso ni con que tarifa. Este campo si: `SP_CASH_IN` (cuota fija) contra
|
|
19
|
+
* `SP_CASH_IN_OXXO` (porcentual) son productos distintos con cobros
|
|
20
|
+
* distintos.
|
|
21
|
+
*
|
|
22
|
+
* OPCIONAL y aditivo: las filas historicas no lo tienen, y ninguna que se
|
|
23
|
+
* cree sin el cambia de comportamiento. Cualquier consulta que lo use debe
|
|
24
|
+
* tolerar su ausencia.
|
|
25
|
+
*/
|
|
26
|
+
productCatalogId?: string;
|
|
10
27
|
}
|
|
@@ -42,3 +42,8 @@ __decorate([
|
|
|
42
42
|
(0, class_validator_1.IsOptional)(),
|
|
43
43
|
__metadata("design:type", String)
|
|
44
44
|
], Product.prototype, "originalRelatedId", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, class_validator_1.IsString)(),
|
|
47
|
+
(0, class_validator_1.IsOptional)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Product.prototype, "productCatalogId", void 0);
|
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
3
|
-
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
4
|
-
* el contexto del solicitante + idempotencia.
|
|
5
|
-
*
|
|
6
|
-
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
7
|
-
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
8
|
-
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
9
|
-
*/
|
|
10
1
|
export declare class CancelFundingReferenceRequest {
|
|
2
|
+
/** Referencia Passport (PK de EqualityFundingReference_GT). */
|
|
3
|
+
reference: string;
|
|
11
4
|
directoryId: string;
|
|
12
|
-
reason?: string;
|
|
13
5
|
idempotencyKey: string;
|
|
14
6
|
}
|
|
@@ -11,15 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CancelFundingReferenceRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
-
/**
|
|
15
|
-
* Body para cancelar una referencia de funding ya creada. La referencia/fundingId
|
|
16
|
-
* viaja en la URL (`/funding/{moduleName}/{fundingId}/cancel`); este body aporta
|
|
17
|
-
* el contexto del solicitante + idempotencia.
|
|
18
|
-
*
|
|
19
|
-
* NOTA: shape inferido desde el uso en `@fiado/api-invoker`
|
|
20
|
-
* (benefits-marketplace / equality-connector) — confirmar con el dueño del
|
|
21
|
-
* módulo walletFunding / el lambda equality-connector que implementa el cancel.
|
|
22
|
-
*/
|
|
23
14
|
class CancelFundingReferenceRequest {
|
|
24
15
|
}
|
|
25
16
|
exports.CancelFundingReferenceRequest = CancelFundingReferenceRequest;
|
|
@@ -27,13 +18,12 @@ __decorate([
|
|
|
27
18
|
(0, class_validator_1.IsString)(),
|
|
28
19
|
(0, class_validator_1.MaxLength)(64),
|
|
29
20
|
__metadata("design:type", String)
|
|
30
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
21
|
+
], CancelFundingReferenceRequest.prototype, "reference", void 0);
|
|
31
22
|
__decorate([
|
|
32
|
-
(0, class_validator_1.IsOptional)(),
|
|
33
23
|
(0, class_validator_1.IsString)(),
|
|
34
|
-
(0, class_validator_1.MaxLength)(
|
|
24
|
+
(0, class_validator_1.MaxLength)(64),
|
|
35
25
|
__metadata("design:type", String)
|
|
36
|
-
], CancelFundingReferenceRequest.prototype, "
|
|
26
|
+
], CancelFundingReferenceRequest.prototype, "directoryId", void 0);
|
|
37
27
|
__decorate([
|
|
38
28
|
(0, class_validator_1.IsString)(),
|
|
39
29
|
(0, class_validator_1.MaxLength)(64),
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
2
|
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
/**
|
|
4
|
-
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
5
|
-
* CreateFundingReferenceResponse.
|
|
6
|
-
*
|
|
7
|
-
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
8
|
-
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
9
|
-
*/
|
|
10
3
|
export declare class CancelFundingReferenceResponse {
|
|
11
|
-
/** Referencia cancelada (misma PK que se creó). */
|
|
12
4
|
reference: string;
|
|
13
5
|
status: BenefitPaymentStatusEnum;
|
|
14
6
|
errorCode?: WalletFundingErrorCodeEnum;
|
|
@@ -1,13 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CancelFundingReferenceResponse = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Respuesta de la cancelación de una referencia de funding. Mismo estilo que
|
|
6
|
-
* CreateFundingReferenceResponse.
|
|
7
|
-
*
|
|
8
|
-
* NOTA: shape inferido desde el uso en `@fiado/api-invoker` — confirmar con el
|
|
9
|
-
* dueño del módulo walletFunding / el lambda equality-connector.
|
|
10
|
-
*/
|
|
11
4
|
class CancelFundingReferenceResponse {
|
|
12
5
|
}
|
|
13
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
|
+
}
|
|
@@ -9,26 +9,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const class_transformer_1 = require("class-transformer");
|
|
12
|
+
exports.CancelFundingRequest = void 0;
|
|
14
13
|
const class_validator_1 = require("class-validator");
|
|
15
14
|
/**
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
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).
|
|
19
20
|
*/
|
|
20
|
-
class
|
|
21
|
+
class CancelFundingRequest {
|
|
21
22
|
}
|
|
22
|
-
exports.
|
|
23
|
+
exports.CancelFundingRequest = CancelFundingRequest;
|
|
23
24
|
__decorate([
|
|
24
|
-
(0, class_transformer_1.Expose)(),
|
|
25
25
|
(0, class_validator_1.IsString)(),
|
|
26
|
-
(0, class_validator_1.
|
|
26
|
+
(0, class_validator_1.MaxLength)(64),
|
|
27
27
|
__metadata("design:type", String)
|
|
28
|
-
],
|
|
28
|
+
], CancelFundingRequest.prototype, "idempotencyKey", void 0);
|
|
29
29
|
__decorate([
|
|
30
|
-
(0,
|
|
31
|
-
(0, class_validator_1.
|
|
32
|
-
(
|
|
33
|
-
|
|
34
|
-
], CompleteMyProfileRequest.prototype, "customFields", void 0);
|
|
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,46 @@
|
|
|
1
|
+
/** Categoria comercial del comercio (gasolinera, farmacia, abarrotes…). */
|
|
2
|
+
export declare class FundingStoreCategory {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Comercio dueno de la tienda.
|
|
8
|
+
*
|
|
9
|
+
* `cashInFrontFee` es la comision que el CLIENTE paga en la caja, encima de su
|
|
10
|
+
* deposito — no la que cobra Fiado. La app la muestra antes de mandarlo a la
|
|
11
|
+
* tienda: enterarse en el mostrador es la peor forma de enterarse.
|
|
12
|
+
*/
|
|
13
|
+
export declare class FundingStoreMerchant {
|
|
14
|
+
id: string;
|
|
15
|
+
name: string;
|
|
16
|
+
/** Logo del comercio para el mapa/carrusel. */
|
|
17
|
+
image?: string | null;
|
|
18
|
+
category?: FundingStoreCategory | null;
|
|
19
|
+
/** Horario en formato HH:mm del provider. */
|
|
20
|
+
openingTime?: string | null;
|
|
21
|
+
closingTime?: string | null;
|
|
22
|
+
/** Tope por operacion que acepta la caja. `null` = el provider no lo informa. */
|
|
23
|
+
maxDepositAmount?: number | null;
|
|
24
|
+
maxWithdrawalAmount?: number | null;
|
|
25
|
+
/** Comision que el cliente paga en caja al depositar. */
|
|
26
|
+
cashInFrontFee?: number | null;
|
|
27
|
+
cashOutFrontFee?: number | null;
|
|
28
|
+
/** Productos disponibles en la tienda (`cashin`, `cashout`, `qr`). */
|
|
29
|
+
products: string[];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Forma estandar Fiado de una tienda de fondeo. Provider-agnostica, igual que
|
|
33
|
+
* `FundingReferenceItem`: cada connector traduce el shape nativo de su provider
|
|
34
|
+
* a este DTO y el wallet-app solo conoce este.
|
|
35
|
+
*/
|
|
36
|
+
export declare class FundingStoreItem {
|
|
37
|
+
id: string;
|
|
38
|
+
name: string;
|
|
39
|
+
address: string;
|
|
40
|
+
phone?: string | null;
|
|
41
|
+
latitude: number;
|
|
42
|
+
longitude: number;
|
|
43
|
+
merchant?: FundingStoreMerchant | null;
|
|
44
|
+
/** Imagen de ejemplo del codigo que el cajero escanea. */
|
|
45
|
+
sampleQr?: string | null;
|
|
46
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FundingStoreItem = exports.FundingStoreMerchant = exports.FundingStoreCategory = void 0;
|
|
4
|
+
/** Categoria comercial del comercio (gasolinera, farmacia, abarrotes…). */
|
|
5
|
+
class FundingStoreCategory {
|
|
6
|
+
}
|
|
7
|
+
exports.FundingStoreCategory = FundingStoreCategory;
|
|
8
|
+
/**
|
|
9
|
+
* Comercio dueno de la tienda.
|
|
10
|
+
*
|
|
11
|
+
* `cashInFrontFee` es la comision que el CLIENTE paga en la caja, encima de su
|
|
12
|
+
* deposito — no la que cobra Fiado. La app la muestra antes de mandarlo a la
|
|
13
|
+
* tienda: enterarse en el mostrador es la peor forma de enterarse.
|
|
14
|
+
*/
|
|
15
|
+
class FundingStoreMerchant {
|
|
16
|
+
}
|
|
17
|
+
exports.FundingStoreMerchant = FundingStoreMerchant;
|
|
18
|
+
/**
|
|
19
|
+
* Forma estandar Fiado de una tienda de fondeo. Provider-agnostica, igual que
|
|
20
|
+
* `FundingReferenceItem`: cada connector traduce el shape nativo de su provider
|
|
21
|
+
* a este DTO y el wallet-app solo conoce este.
|
|
22
|
+
*/
|
|
23
|
+
class FundingStoreItem {
|
|
24
|
+
}
|
|
25
|
+
exports.FundingStoreItem = FundingStoreItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FundingStoreProductEnum } from "../enums/FundingStoreProductEnum";
|
|
2
|
+
/**
|
|
3
|
+
* Consulta del directorio de tiendas donde el cliente puede presentar su
|
|
4
|
+
* referencia de fondeo.
|
|
5
|
+
*
|
|
6
|
+
* Va aparte de la referencia a proposito: una referencia sirve en cualquier
|
|
7
|
+
* tienda afiliada, asi que el directorio cambia —altas, bajas, horarios,
|
|
8
|
+
* comisiones— sin tocar referencias vivas.
|
|
9
|
+
*/
|
|
10
|
+
export declare class ListFundingStoresRequest {
|
|
11
|
+
latitude: number;
|
|
12
|
+
longitude: number;
|
|
13
|
+
/** Radio de busqueda en km. Omitido = el default del provider. */
|
|
14
|
+
radius?: number;
|
|
15
|
+
/** Default del connector: CASH_IN, lo unico que sirve para depositar. */
|
|
16
|
+
product?: FundingStoreProductEnum;
|
|
17
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.ListFundingStoresRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const FundingStoreProductEnum_1 = require("../enums/FundingStoreProductEnum");
|
|
15
|
+
/**
|
|
16
|
+
* Consulta del directorio de tiendas donde el cliente puede presentar su
|
|
17
|
+
* referencia de fondeo.
|
|
18
|
+
*
|
|
19
|
+
* Va aparte de la referencia a proposito: una referencia sirve en cualquier
|
|
20
|
+
* tienda afiliada, asi que el directorio cambia —altas, bajas, horarios,
|
|
21
|
+
* comisiones— sin tocar referencias vivas.
|
|
22
|
+
*/
|
|
23
|
+
class ListFundingStoresRequest {
|
|
24
|
+
}
|
|
25
|
+
exports.ListFundingStoresRequest = ListFundingStoresRequest;
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, class_validator_1.IsNumber)(),
|
|
28
|
+
(0, class_validator_1.Min)(-90),
|
|
29
|
+
(0, class_validator_1.Max)(90),
|
|
30
|
+
__metadata("design:type", Number)
|
|
31
|
+
], ListFundingStoresRequest.prototype, "latitude", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNumber)(),
|
|
34
|
+
(0, class_validator_1.Min)(-180),
|
|
35
|
+
(0, class_validator_1.Max)(180),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], ListFundingStoresRequest.prototype, "longitude", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsNumber)(),
|
|
41
|
+
(0, class_validator_1.IsPositive)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], ListFundingStoresRequest.prototype, "radius", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, class_validator_1.IsOptional)(),
|
|
46
|
+
(0, class_validator_1.IsEnum)(FundingStoreProductEnum_1.FundingStoreProductEnum),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], ListFundingStoresRequest.prototype, "product", void 0);
|
|
@@ -28,3 +28,6 @@ export * from "./ReserveExposureResponse";
|
|
|
28
28
|
export * from "./ReleaseExposureRequest";
|
|
29
29
|
export * from "./ReleaseExposureResponse";
|
|
30
30
|
export * from "./GetExposureStateResponse";
|
|
31
|
+
export * from "./FundingStoreItem";
|
|
32
|
+
export * from "./ListFundingStoresRequest";
|
|
33
|
+
export * from "./ListFundingStoresResponse";
|
|
@@ -44,3 +44,6 @@ __exportStar(require("./ReserveExposureResponse"), exports);
|
|
|
44
44
|
__exportStar(require("./ReleaseExposureRequest"), exports);
|
|
45
45
|
__exportStar(require("./ReleaseExposureResponse"), exports);
|
|
46
46
|
__exportStar(require("./GetExposureStateResponse"), exports);
|
|
47
|
+
__exportStar(require("./FundingStoreItem"), exports);
|
|
48
|
+
__exportStar(require("./ListFundingStoresRequest"), exports);
|
|
49
|
+
__exportStar(require("./ListFundingStoresResponse"), exports);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Producto que una tienda ofrece en caja. Filtra el directorio: una tienda que
|
|
3
|
+
* solo tiene QR o retiro NO sirve para depositar, y mostrarla en el mapa manda
|
|
4
|
+
* al cliente a un viaje en vano.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum FundingStoreProductEnum {
|
|
7
|
+
/** Deposito en efectivo (lo unico que usa wallet-funding). */
|
|
8
|
+
CASH_IN = "cashin",
|
|
9
|
+
/** Retiro en efectivo. */
|
|
10
|
+
CASH_OUT = "cashout",
|
|
11
|
+
/** Cobro por codigo QR. */
|
|
12
|
+
QR = "qr"
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FundingStoreProductEnum = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Producto que una tienda ofrece en caja. Filtra el directorio: una tienda que
|
|
6
|
+
* solo tiene QR o retiro NO sirve para depositar, y mostrarla en el mapa manda
|
|
7
|
+
* al cliente a un viaje en vano.
|
|
8
|
+
*/
|
|
9
|
+
var FundingStoreProductEnum;
|
|
10
|
+
(function (FundingStoreProductEnum) {
|
|
11
|
+
/** Deposito en efectivo (lo unico que usa wallet-funding). */
|
|
12
|
+
FundingStoreProductEnum["CASH_IN"] = "cashin";
|
|
13
|
+
/** Retiro en efectivo. */
|
|
14
|
+
FundingStoreProductEnum["CASH_OUT"] = "cashout";
|
|
15
|
+
/** Cobro por codigo QR. */
|
|
16
|
+
FundingStoreProductEnum["QR"] = "qr";
|
|
17
|
+
})(FundingStoreProductEnum || (exports.FundingStoreProductEnum = FundingStoreProductEnum = {}));
|
|
@@ -25,3 +25,4 @@ __exportStar(require("./FundingWebhookTypeEnum"), exports);
|
|
|
25
25
|
__exportStar(require("./SettlementErrorCodeEnum"), exports);
|
|
26
26
|
__exportStar(require("./ServiceStateEnum"), exports);
|
|
27
27
|
__exportStar(require("./FundingVerificationOutcomeEnum"), exports);
|
|
28
|
+
__exportStar(require("./FundingStoreProductEnum"), exports);
|
package/package.json
CHANGED
|
@@ -23,4 +23,24 @@ export class Product {
|
|
|
23
23
|
@IsString()
|
|
24
24
|
@IsOptional()
|
|
25
25
|
originalRelatedId: string;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Id del producto de `ProductCatalog_GT` con el que se tarifo esta
|
|
29
|
+
* transaccion (ej. `SP_CASH_IN`, `SP_CASH_IN_OXXO`).
|
|
30
|
+
*
|
|
31
|
+
* POR QUE NO ALCANZA CON `type`/`subType`: esos dos describen la OPERACION,
|
|
32
|
+
* no el producto ni el proveedor. Un cash-in de SinergyPay se persiste con
|
|
33
|
+
* `type=EQ_CASH_SA` —el tipo de Equality, hardcodeado a proposito para que
|
|
34
|
+
* la UI aplique su template— asi que por ellos NO se distingue quien lo
|
|
35
|
+
* proceso ni con que tarifa. Este campo si: `SP_CASH_IN` (cuota fija) contra
|
|
36
|
+
* `SP_CASH_IN_OXXO` (porcentual) son productos distintos con cobros
|
|
37
|
+
* distintos.
|
|
38
|
+
*
|
|
39
|
+
* OPCIONAL y aditivo: las filas historicas no lo tienen, y ninguna que se
|
|
40
|
+
* cree sin el cambia de comportamiento. Cualquier consulta que lo use debe
|
|
41
|
+
* tolerar su ausencia.
|
|
42
|
+
*/
|
|
43
|
+
@IsString()
|
|
44
|
+
@IsOptional()
|
|
45
|
+
productCatalogId?: string;
|
|
26
46
|
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** Categoria comercial del comercio (gasolinera, farmacia, abarrotes…). */
|
|
2
|
+
export class FundingStoreCategory {
|
|
3
|
+
id!: number;
|
|
4
|
+
name!: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Comercio dueno de la tienda.
|
|
9
|
+
*
|
|
10
|
+
* `cashInFrontFee` es la comision que el CLIENTE paga en la caja, encima de su
|
|
11
|
+
* deposito — no la que cobra Fiado. La app la muestra antes de mandarlo a la
|
|
12
|
+
* tienda: enterarse en el mostrador es la peor forma de enterarse.
|
|
13
|
+
*/
|
|
14
|
+
export class FundingStoreMerchant {
|
|
15
|
+
id!: string;
|
|
16
|
+
name!: string;
|
|
17
|
+
/** Logo del comercio para el mapa/carrusel. */
|
|
18
|
+
image?: string | null;
|
|
19
|
+
category?: FundingStoreCategory | null;
|
|
20
|
+
/** Horario en formato HH:mm del provider. */
|
|
21
|
+
openingTime?: string | null;
|
|
22
|
+
closingTime?: string | null;
|
|
23
|
+
/** Tope por operacion que acepta la caja. `null` = el provider no lo informa. */
|
|
24
|
+
maxDepositAmount?: number | null;
|
|
25
|
+
maxWithdrawalAmount?: number | null;
|
|
26
|
+
/** Comision que el cliente paga en caja al depositar. */
|
|
27
|
+
cashInFrontFee?: number | null;
|
|
28
|
+
cashOutFrontFee?: number | null;
|
|
29
|
+
/** Productos disponibles en la tienda (`cashin`, `cashout`, `qr`). */
|
|
30
|
+
products!: string[];
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Forma estandar Fiado de una tienda de fondeo. Provider-agnostica, igual que
|
|
35
|
+
* `FundingReferenceItem`: cada connector traduce el shape nativo de su provider
|
|
36
|
+
* a este DTO y el wallet-app solo conoce este.
|
|
37
|
+
*/
|
|
38
|
+
export class FundingStoreItem {
|
|
39
|
+
id!: string;
|
|
40
|
+
name!: string;
|
|
41
|
+
address!: string;
|
|
42
|
+
phone?: string | null;
|
|
43
|
+
latitude!: number;
|
|
44
|
+
longitude!: number;
|
|
45
|
+
merchant?: FundingStoreMerchant | null;
|
|
46
|
+
/** Imagen de ejemplo del codigo que el cajero escanea. */
|
|
47
|
+
sampleQr?: string | null;
|
|
48
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { IsNumber, IsOptional, IsEnum, Min, Max, IsPositive } from "class-validator";
|
|
2
|
+
import { FundingStoreProductEnum } from "../enums/FundingStoreProductEnum";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Consulta del directorio de tiendas donde el cliente puede presentar su
|
|
6
|
+
* referencia de fondeo.
|
|
7
|
+
*
|
|
8
|
+
* Va aparte de la referencia a proposito: una referencia sirve en cualquier
|
|
9
|
+
* tienda afiliada, asi que el directorio cambia —altas, bajas, horarios,
|
|
10
|
+
* comisiones— sin tocar referencias vivas.
|
|
11
|
+
*/
|
|
12
|
+
export class ListFundingStoresRequest {
|
|
13
|
+
@IsNumber() @Min(-90) @Max(90) latitude!: number;
|
|
14
|
+
@IsNumber() @Min(-180) @Max(180) longitude!: number;
|
|
15
|
+
/** Radio de busqueda en km. Omitido = el default del provider. */
|
|
16
|
+
@IsOptional() @IsNumber() @IsPositive() radius?: number;
|
|
17
|
+
/** Default del connector: CASH_IN, lo unico que sirve para depositar. */
|
|
18
|
+
@IsOptional() @IsEnum(FundingStoreProductEnum) product?: FundingStoreProductEnum;
|
|
19
|
+
}
|
|
@@ -28,3 +28,6 @@ export * from "./ReserveExposureResponse";
|
|
|
28
28
|
export * from "./ReleaseExposureRequest";
|
|
29
29
|
export * from "./ReleaseExposureResponse";
|
|
30
30
|
export * from "./GetExposureStateResponse";
|
|
31
|
+
export * from "./FundingStoreItem";
|
|
32
|
+
export * from "./ListFundingStoresRequest";
|
|
33
|
+
export * from "./ListFundingStoresResponse";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Producto que una tienda ofrece en caja. Filtra el directorio: una tienda que
|
|
3
|
+
* solo tiene QR o retiro NO sirve para depositar, y mostrarla en el mapa manda
|
|
4
|
+
* al cliente a un viaje en vano.
|
|
5
|
+
*/
|
|
6
|
+
export enum FundingStoreProductEnum {
|
|
7
|
+
/** Deposito en efectivo (lo unico que usa wallet-funding). */
|
|
8
|
+
CASH_IN = "cashin",
|
|
9
|
+
/** Retiro en efectivo. */
|
|
10
|
+
CASH_OUT = "cashout",
|
|
11
|
+
/** Cobro por codigo QR. */
|
|
12
|
+
QR = "qr",
|
|
13
|
+
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
-
/**
|
|
3
|
-
* Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
|
|
4
|
-
* - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
|
|
5
|
-
* - Passport (MX): por red → `fixed` + `percentage`.
|
|
6
|
-
* Response DTO — sin decoradores de validación.
|
|
7
|
-
*/
|
|
8
|
-
export declare class CashInFeeDto {
|
|
9
|
-
/** Comisión fija, en la moneda del país. */
|
|
10
|
-
fixed?: number;
|
|
11
|
-
/** Porcentaje del monto depositado (0–100). */
|
|
12
|
-
percentage?: number;
|
|
13
|
-
/** Tope máximo de comisión (GreenDot: el asociado cobra hasta este cap). */
|
|
14
|
-
cap?: number;
|
|
15
|
-
/** Moneda del fee: USD (GreenDot) | MXN (Passport). */
|
|
16
|
-
currency: CurrencyId;
|
|
17
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CashInFeeDto = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
|
|
6
|
-
* - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
|
|
7
|
-
* - Passport (MX): por red → `fixed` + `percentage`.
|
|
8
|
-
* Response DTO — sin decoradores de validación.
|
|
9
|
-
*/
|
|
10
|
-
class CashInFeeDto {
|
|
11
|
-
}
|
|
12
|
-
exports.CashInFeeDto = CashInFeeDto;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Body del PUT /me/profile/complete (autenticado, gate post-MFA del autoregistro). DEC-RBAC-034.
|
|
3
|
-
* Opera sobre el propio usuario (cognitoSub del token). Valida nombre + los `userFieldDefs` requeridos
|
|
4
|
-
* del tenant (422 MISSING_REQUIRED_FIELDS si faltan) y flipea `profileComplete=true`.
|
|
5
|
-
*/
|
|
6
|
-
export declare class CompleteMyProfileRequest {
|
|
7
|
-
displayName: string;
|
|
8
|
-
customFields?: Record<string, string>;
|
|
9
|
-
}
|