@fiado/type-kit 3.159.0 → 3.161.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/places/dtos/EstablishmentDto.d.ts +1 -5
- package/bin/places/index.d.ts +0 -1
- package/bin/places/index.js +0 -1
- package/bin/remittance/dtos/RemittanceAuditLog.d.ts +18 -2
- package/bin/remittance/dtos/RemittanceAuditLog.js +24 -1
- package/bin/remittance/enums/AuditResult.d.ts +10 -0
- package/bin/remittance/enums/AuditResult.js +14 -0
- package/bin/remittance/enums/index.d.ts +1 -0
- package/bin/remittance/enums/index.js +1 -0
- package/package.json +1 -1
- package/src/places/dtos/EstablishmentDto.ts +1 -5
- package/src/places/index.ts +0 -1
- package/src/remittance/dtos/RemittanceAuditLog.ts +32 -2
- package/src/remittance/enums/AuditResult.ts +10 -0
- package/src/remittance/enums/index.ts +1 -0
- package/bin/bankAccount/dtos/ExternalAccountType.d.ts +0 -4
- package/bin/bankAccount/dtos/ExternalAccountType.js +0 -6
- package/bin/contactInfo/dtos/GetAllContactInfoResponse.d.ts +0 -13
- package/bin/contactInfo/dtos/GetAllContactInfoResponse.js +0 -6
- package/bin/places/dtos/CashInFeeDto.d.ts +0 -17
- package/bin/places/dtos/CashInFeeDto.js +0 -12
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.d.ts +0 -5
- package/bin/walletFunding/dtos/CancelFundingReferenceRequest.js +0 -31
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelFundingReferenceResponse.js +0 -6
- package/bin/walletFunding/dtos/CancelFundingRequest.d.ts +0 -11
- package/bin/walletFunding/dtos/CancelFundingRequest.js +0 -33
- package/bin/walletFunding/dtos/CancelFundingResponse.d.ts +0 -14
- package/bin/walletFunding/dtos/CancelFundingResponse.js +0 -12
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.d.ts +0 -3
- package/bin/walletFunding/dtos/CancelWalletFundingRequest.js +0 -21
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.d.ts +0 -7
- package/bin/walletFunding/dtos/CancelWalletFundingResponse.js +0 -6
- package/src/places/dtos/CashInFeeDto.ts +0 -18
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CountryId } from '../../country/enums/CountryId';
|
|
2
|
-
import { CashInFeeDto } from './CashInFeeDto';
|
|
3
2
|
import { CashInNetworkEnum } from '../enums/CashInNetworkEnum';
|
|
4
3
|
import { CashInProviderEnum } from '../enums/CashInProviderEnum';
|
|
5
4
|
import { EstablishmentBrandEnum } from '../enums/EstablishmentBrandEnum';
|
|
@@ -15,7 +14,6 @@ export declare class EstablishmentDto {
|
|
|
15
14
|
longitude: number;
|
|
16
15
|
address: string;
|
|
17
16
|
categories: string[];
|
|
18
|
-
isOpen: boolean | null;
|
|
19
17
|
/** epoch ms del último refresco desde HERE (UI "verificado hace X días") */
|
|
20
18
|
lastRefreshed: number;
|
|
21
19
|
/** true si la celda alcanzó el umbral de reportes de "no existe" */
|
|
@@ -25,8 +23,6 @@ export declare class EstablishmentDto {
|
|
|
25
23
|
provider?: CashInProviderEnum;
|
|
26
24
|
/** País del punto (USA | MEX). Redundante con `provider`; explícito para la UI. */
|
|
27
25
|
country?: CountryId;
|
|
28
|
-
/** Red Passport (OXXO/SUPERMERCADO/TIENDITA). En US no aplica
|
|
26
|
+
/** Red Passport (OXXO/SUPERMERCADO/TIENDITA). En US no aplica. */
|
|
29
27
|
network?: CashInNetworkEnum;
|
|
30
|
-
/** Comisión a mostrar (no se cobra acá). */
|
|
31
|
-
fee?: CashInFeeDto;
|
|
32
28
|
}
|
package/bin/places/index.d.ts
CHANGED
package/bin/places/index.js
CHANGED
|
@@ -15,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
//dtos
|
|
18
|
-
__exportStar(require("./dtos/CashInFeeDto"), exports);
|
|
19
18
|
__exportStar(require("./dtos/EstablishmentDto"), exports);
|
|
20
19
|
__exportStar(require("./dtos/GetNearbyPlacesRequest"), exports);
|
|
21
20
|
__exportStar(require("./dtos/GetNearbyPlacesResponse"), exports);
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AuditAction } from "../enums/AuditAction";
|
|
2
2
|
import { AuditEntityType } from "../enums/AuditEntityType";
|
|
3
|
+
import { AuditResult } from "../enums/AuditResult";
|
|
3
4
|
/**
|
|
4
5
|
* DTOs del audit trail del backoffice de remesas (RemittanceAuditLog_GT, dueño:
|
|
5
6
|
* remittance-business). Append-only: registra "quién cambió qué, cuándo" en cada
|
|
@@ -19,8 +20,16 @@ export declare class AuditAppendRequest {
|
|
|
19
20
|
actor: string;
|
|
20
21
|
/** Descripción legible ("Editó condiciones del cohort 'Activo'"). */
|
|
21
22
|
summary: string;
|
|
22
|
-
/** Snapshot del estado nuevo de la entidad (opcional). */
|
|
23
|
+
/** Snapshot del estado nuevo de la entidad (opcional; ausente en DELETE). */
|
|
23
24
|
after?: Record<string, unknown>;
|
|
25
|
+
/** Snapshot del estado previo (ANTES→DESPUÉS; ausente en CREATE). El front diffea. */
|
|
26
|
+
before?: Record<string, unknown>;
|
|
27
|
+
/** Nombre legible de la entidad para la columna ENTIDAD ("Bienvenida 2026"). */
|
|
28
|
+
entityName?: string;
|
|
29
|
+
/** Resultado (default OK). BLOCKED = una regla rechazó el save. */
|
|
30
|
+
result?: AuditResult;
|
|
31
|
+
/** Motivo del bloqueo (nombre de la regla + condición) si result=BLOCKED. */
|
|
32
|
+
blockReason?: string;
|
|
24
33
|
}
|
|
25
34
|
/** Entrada del audit trail (response). */
|
|
26
35
|
export declare class AuditLogEntry {
|
|
@@ -32,11 +41,18 @@ export declare class AuditLogEntry {
|
|
|
32
41
|
action: AuditAction;
|
|
33
42
|
summary: string;
|
|
34
43
|
after: Record<string, unknown> | null;
|
|
44
|
+
/** Snapshot previo (null en CREATE o en eventos B1 anteriores a v2). */
|
|
45
|
+
before: Record<string, unknown> | null;
|
|
46
|
+
entityName: string | null;
|
|
47
|
+
result: AuditResult;
|
|
48
|
+
blockReason: string | null;
|
|
35
49
|
createdAt: string;
|
|
36
50
|
}
|
|
37
|
-
/** Response de GET /backoffice/audit (paginación estándar index/pageSize). */
|
|
51
|
+
/** Response de GET /backoffice/audit (paginación estándar index/pageSize) y /audit/export. */
|
|
38
52
|
export declare class AuditListResponse {
|
|
39
53
|
items: AuditLogEntry[];
|
|
40
54
|
/** Cursor opaco (base64) para la próxima página; null/ausente = última. */
|
|
41
55
|
index?: string | null;
|
|
56
|
+
/** Solo en /export: true si se alcanzó el cap de seguridad y el set quedó truncado. */
|
|
57
|
+
truncated?: boolean;
|
|
42
58
|
}
|
|
@@ -13,6 +13,7 @@ exports.AuditListResponse = exports.AuditLogEntry = exports.AuditAppendRequest =
|
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
14
|
const AuditAction_1 = require("../enums/AuditAction");
|
|
15
15
|
const AuditEntityType_1 = require("../enums/AuditEntityType");
|
|
16
|
+
const AuditResult_1 = require("../enums/AuditResult");
|
|
16
17
|
/**
|
|
17
18
|
* DTOs del audit trail del backoffice de remesas (RemittanceAuditLog_GT, dueño:
|
|
18
19
|
* remittance-business). Append-only: registra "quién cambió qué, cuándo" en cada
|
|
@@ -52,11 +53,33 @@ __decorate([
|
|
|
52
53
|
(0, class_validator_1.IsObject)(),
|
|
53
54
|
__metadata("design:type", Object)
|
|
54
55
|
], AuditAppendRequest.prototype, "after", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
58
|
+
(0, class_validator_1.IsObject)(),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AuditAppendRequest.prototype, "before", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, class_validator_1.IsOptional)(),
|
|
63
|
+
(0, class_validator_1.IsString)(),
|
|
64
|
+
(0, class_validator_1.MaxLength)(200),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], AuditAppendRequest.prototype, "entityName", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, class_validator_1.IsOptional)(),
|
|
69
|
+
(0, class_validator_1.IsEnum)(AuditResult_1.AuditResult),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], AuditAppendRequest.prototype, "result", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, class_validator_1.IsOptional)(),
|
|
74
|
+
(0, class_validator_1.IsString)(),
|
|
75
|
+
(0, class_validator_1.MaxLength)(300),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], AuditAppendRequest.prototype, "blockReason", void 0);
|
|
55
78
|
/** Entrada del audit trail (response). */
|
|
56
79
|
class AuditLogEntry {
|
|
57
80
|
}
|
|
58
81
|
exports.AuditLogEntry = AuditLogEntry;
|
|
59
|
-
/** Response de GET /backoffice/audit (paginación estándar index/pageSize). */
|
|
82
|
+
/** Response de GET /backoffice/audit (paginación estándar index/pageSize) y /audit/export. */
|
|
60
83
|
class AuditListResponse {
|
|
61
84
|
}
|
|
62
85
|
exports.AuditListResponse = AuditListResponse;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resultado de un evento de auditoría (badge del tab Auditoría).
|
|
3
|
+
* "Sistema" (gris) NO es un result: se deriva de actor === "system" en el front.
|
|
4
|
+
* PENDING no se usa en el MVP (se agregaría de forma aditiva si el flujo de
|
|
5
|
+
* aprobación por comité —D1.6— se implementa).
|
|
6
|
+
*/
|
|
7
|
+
export declare enum AuditResult {
|
|
8
|
+
OK = "OK",
|
|
9
|
+
BLOCKED = "BLOCKED"
|
|
10
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AuditResult = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Resultado de un evento de auditoría (badge del tab Auditoría).
|
|
6
|
+
* "Sistema" (gris) NO es un result: se deriva de actor === "system" en el front.
|
|
7
|
+
* PENDING no se usa en el MVP (se agregaría de forma aditiva si el flujo de
|
|
8
|
+
* aprobación por comité —D1.6— se implementa).
|
|
9
|
+
*/
|
|
10
|
+
var AuditResult;
|
|
11
|
+
(function (AuditResult) {
|
|
12
|
+
AuditResult["OK"] = "OK";
|
|
13
|
+
AuditResult["BLOCKED"] = "BLOCKED";
|
|
14
|
+
})(AuditResult || (exports.AuditResult = AuditResult = {}));
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CountryId } from '../../country/enums/CountryId';
|
|
2
|
-
import { CashInFeeDto } from './CashInFeeDto';
|
|
3
2
|
import { CashInNetworkEnum } from '../enums/CashInNetworkEnum';
|
|
4
3
|
import { CashInProviderEnum } from '../enums/CashInProviderEnum';
|
|
5
4
|
import { EstablishmentBrandEnum } from '../enums/EstablishmentBrandEnum';
|
|
@@ -16,7 +15,6 @@ export class EstablishmentDto {
|
|
|
16
15
|
longitude: number;
|
|
17
16
|
address: string;
|
|
18
17
|
categories: string[];
|
|
19
|
-
isOpen: boolean | null;
|
|
20
18
|
/** epoch ms del último refresco desde HERE (UI "verificado hace X días") */
|
|
21
19
|
lastRefreshed: number;
|
|
22
20
|
/** true si la celda alcanzó el umbral de reportes de "no existe" */
|
|
@@ -27,8 +25,6 @@ export class EstablishmentDto {
|
|
|
27
25
|
provider?: CashInProviderEnum;
|
|
28
26
|
/** País del punto (USA | MEX). Redundante con `provider`; explícito para la UI. */
|
|
29
27
|
country?: CountryId;
|
|
30
|
-
/** Red Passport (OXXO/SUPERMERCADO/TIENDITA). En US no aplica
|
|
28
|
+
/** Red Passport (OXXO/SUPERMERCADO/TIENDITA). En US no aplica. */
|
|
31
29
|
network?: CashInNetworkEnum;
|
|
32
|
-
/** Comisión a mostrar (no se cobra acá). */
|
|
33
|
-
fee?: CashInFeeDto;
|
|
34
30
|
}
|
package/src/places/index.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IsEnum, IsObject, IsOptional, IsString, MaxLength } from "class-validator";
|
|
2
2
|
import { AuditAction } from "../enums/AuditAction";
|
|
3
3
|
import { AuditEntityType } from "../enums/AuditEntityType";
|
|
4
|
+
import { AuditResult } from "../enums/AuditResult";
|
|
4
5
|
|
|
5
6
|
/**
|
|
6
7
|
* DTOs del audit trail del backoffice de remesas (RemittanceAuditLog_GT, dueño:
|
|
@@ -33,10 +34,32 @@ export class AuditAppendRequest {
|
|
|
33
34
|
@MaxLength(500)
|
|
34
35
|
summary!: string;
|
|
35
36
|
|
|
36
|
-
/** Snapshot del estado nuevo de la entidad (opcional). */
|
|
37
|
+
/** Snapshot del estado nuevo de la entidad (opcional; ausente en DELETE). */
|
|
37
38
|
@IsOptional()
|
|
38
39
|
@IsObject()
|
|
39
40
|
after?: Record<string, unknown>;
|
|
41
|
+
|
|
42
|
+
/** Snapshot del estado previo (ANTES→DESPUÉS; ausente en CREATE). El front diffea. */
|
|
43
|
+
@IsOptional()
|
|
44
|
+
@IsObject()
|
|
45
|
+
before?: Record<string, unknown>;
|
|
46
|
+
|
|
47
|
+
/** Nombre legible de la entidad para la columna ENTIDAD ("Bienvenida 2026"). */
|
|
48
|
+
@IsOptional()
|
|
49
|
+
@IsString()
|
|
50
|
+
@MaxLength(200)
|
|
51
|
+
entityName?: string;
|
|
52
|
+
|
|
53
|
+
/** Resultado (default OK). BLOCKED = una regla rechazó el save. */
|
|
54
|
+
@IsOptional()
|
|
55
|
+
@IsEnum(AuditResult)
|
|
56
|
+
result?: AuditResult;
|
|
57
|
+
|
|
58
|
+
/** Motivo del bloqueo (nombre de la regla + condición) si result=BLOCKED. */
|
|
59
|
+
@IsOptional()
|
|
60
|
+
@IsString()
|
|
61
|
+
@MaxLength(300)
|
|
62
|
+
blockReason?: string;
|
|
40
63
|
}
|
|
41
64
|
|
|
42
65
|
/** Entrada del audit trail (response). */
|
|
@@ -49,12 +72,19 @@ export class AuditLogEntry {
|
|
|
49
72
|
action!: AuditAction;
|
|
50
73
|
summary!: string;
|
|
51
74
|
after!: Record<string, unknown> | null;
|
|
75
|
+
/** Snapshot previo (null en CREATE o en eventos B1 anteriores a v2). */
|
|
76
|
+
before!: Record<string, unknown> | null;
|
|
77
|
+
entityName!: string | null;
|
|
78
|
+
result!: AuditResult;
|
|
79
|
+
blockReason!: string | null;
|
|
52
80
|
createdAt!: string;
|
|
53
81
|
}
|
|
54
82
|
|
|
55
|
-
/** Response de GET /backoffice/audit (paginación estándar index/pageSize). */
|
|
83
|
+
/** Response de GET /backoffice/audit (paginación estándar index/pageSize) y /audit/export. */
|
|
56
84
|
export class AuditListResponse {
|
|
57
85
|
items!: AuditLogEntry[];
|
|
58
86
|
/** Cursor opaco (base64) para la próxima página; null/ausente = última. */
|
|
59
87
|
index?: string | null;
|
|
88
|
+
/** Solo en /export: true si se alcanzó el cap de seguridad y el set quedó truncado. */
|
|
89
|
+
truncated?: boolean;
|
|
60
90
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resultado de un evento de auditoría (badge del tab Auditoría).
|
|
3
|
+
* "Sistema" (gris) NO es un result: se deriva de actor === "system" en el front.
|
|
4
|
+
* PENDING no se usa en el MVP (se agregaría de forma aditiva si el flujo de
|
|
5
|
+
* aprobación por comité —D1.6— se implementa).
|
|
6
|
+
*/
|
|
7
|
+
export enum AuditResult {
|
|
8
|
+
OK = "OK",
|
|
9
|
+
BLOCKED = "BLOCKED",
|
|
10
|
+
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { TypeOfContactIdEnum } from "../enums/TypeOfContactIdEnum";
|
|
2
|
-
export declare class GetAllContactInfoResponse {
|
|
3
|
-
id: string;
|
|
4
|
-
contact: string;
|
|
5
|
-
directoryId: string;
|
|
6
|
-
isPrincipal: boolean;
|
|
7
|
-
typeOfContactId: TypeOfContactIdEnum;
|
|
8
|
-
isWhatsApp: boolean;
|
|
9
|
-
isVoice: boolean;
|
|
10
|
-
isSMS: boolean;
|
|
11
|
-
isApp: boolean;
|
|
12
|
-
note: string;
|
|
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,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.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, "fundingId", 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);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
export declare class CancelFundingReferenceResponse {
|
|
4
|
-
fundingId: string;
|
|
5
|
-
status: BenefitPaymentStatusEnum;
|
|
6
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Request del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
3
|
-
* `fundingId` viaja en el path, `directoryId` se resuelve del JWT.
|
|
4
|
-
* `providerModuleName` permite al marketplace rutear al publisher correcto
|
|
5
|
-
* sin tener que persistir el mapping (el wallet-app sabe el moduleName
|
|
6
|
-
* porque vino en la respuesta del authorize).
|
|
7
|
-
*/
|
|
8
|
-
export declare class CancelFundingRequest {
|
|
9
|
-
idempotencyKey: string;
|
|
10
|
-
providerModuleName: string;
|
|
11
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.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
|
-
* `fundingId` 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);
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
/**
|
|
4
|
-
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
5
|
-
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
6
|
-
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
7
|
-
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
8
|
-
*/
|
|
9
|
-
export declare class CancelFundingResponse {
|
|
10
|
-
fundingId: string;
|
|
11
|
-
status: BenefitPaymentStatusEnum;
|
|
12
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
13
|
-
message?: string;
|
|
14
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CancelFundingResponse = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Response del cancel via Centro de Beneficios (spec 13 v2.0).
|
|
6
|
-
* `status` reusa `BenefitPaymentStatusEnum` (APPROVED = cancel aceptado;
|
|
7
|
-
* REJECTED = no se pudo) para consistencia con `CancelFundingReferenceResponse`
|
|
8
|
-
* (marketplace ↔ connector). Idempotente: re-cancelar devuelve APPROVED.
|
|
9
|
-
*/
|
|
10
|
-
class CancelFundingResponse {
|
|
11
|
-
}
|
|
12
|
-
exports.CancelFundingResponse = CancelFundingResponse;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CancelWalletFundingRequest = void 0;
|
|
13
|
-
const class_validator_1 = require("class-validator");
|
|
14
|
-
class CancelWalletFundingRequest {
|
|
15
|
-
}
|
|
16
|
-
exports.CancelWalletFundingRequest = CancelWalletFundingRequest;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, class_validator_1.IsString)(),
|
|
19
|
-
(0, class_validator_1.MaxLength)(64),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], CancelWalletFundingRequest.prototype, "idempotencyKey", void 0);
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BenefitPaymentStatusEnum } from "../../benefitCenter/enums/BenefitPaymentStatusEnum";
|
|
2
|
-
import { WalletFundingErrorCodeEnum } from "../enums/WalletFundingErrorCodeEnum";
|
|
3
|
-
export declare class CancelWalletFundingResponse {
|
|
4
|
-
status: BenefitPaymentStatusEnum;
|
|
5
|
-
errorCode?: WalletFundingErrorCodeEnum;
|
|
6
|
-
fundingId?: string;
|
|
7
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { CurrencyId } from '../../currency/enums/CurrencyId';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Comisión que cobra un punto de cash-in (lo que el lambda MUESTRA, no cobra).
|
|
5
|
-
* - GreenDot (US): representativo por cadena → `fixed` + `cap` (cada tienda cobra hasta el tope).
|
|
6
|
-
* - Passport (MX): por red → `fixed` + `percentage`.
|
|
7
|
-
* Response DTO — sin decoradores de validación.
|
|
8
|
-
*/
|
|
9
|
-
export class CashInFeeDto {
|
|
10
|
-
/** Comisión fija, en la moneda del país. */
|
|
11
|
-
fixed?: number;
|
|
12
|
-
/** Porcentaje del monto depositado (0–100). */
|
|
13
|
-
percentage?: number;
|
|
14
|
-
/** Tope máximo de comisión (GreenDot: el asociado cobra hasta este cap). */
|
|
15
|
-
cap?: number;
|
|
16
|
-
/** Moneda del fee: USD (GreenDot) | MXN (Passport). */
|
|
17
|
-
currency: CurrencyId;
|
|
18
|
-
}
|