@fiado/type-kit 3.355.0 → 3.356.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.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { WalletFundingChannelEnum } from "../enums/WalletFundingChannelEnum";
|
|
1
2
|
/**
|
|
2
3
|
* Request del flow walletFunding via Centro de Beneficios (spec 13 v2.0).
|
|
3
4
|
* App entra a `POST /benefits-marketplace/funding/authorize` con el leaf+product
|
|
@@ -17,6 +18,16 @@ export declare class AuthorizeFundingRequest {
|
|
|
17
18
|
expirationDays: number;
|
|
18
19
|
/** Opcional. Solo aplica si el producto resuelto es `mode === FIXED`. Para OPEN se ignora. */
|
|
19
20
|
customAmount?: number;
|
|
21
|
+
/**
|
|
22
|
+
* Red por la que se cobrara la referencia. Ausente o `NETWORK` reproduce el
|
|
23
|
+
* comportamiento historico, para que los clientes anteriores sigan
|
|
24
|
+
* funcionando sin cambios.
|
|
25
|
+
*
|
|
26
|
+
* Con `OXXO` la referencia es de un solo uso, exige `customAmount` y vence
|
|
27
|
+
* en 1 dia — y **no se puede cancelar**, asi que el connector valida el tope
|
|
28
|
+
* del cliente ANTES de emitirla.
|
|
29
|
+
*/
|
|
30
|
+
channel?: WalletFundingChannelEnum;
|
|
20
31
|
idempotencyKey: string;
|
|
21
32
|
walletAccountId: string;
|
|
22
33
|
/** Para Passport (nombre del titular). Si se omite, el marketplace resuelve desde directory. */
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AuthorizeFundingRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const WalletFundingChannelEnum_1 = require("../enums/WalletFundingChannelEnum");
|
|
14
15
|
/**
|
|
15
16
|
* Request del flow walletFunding via Centro de Beneficios (spec 13 v2.0).
|
|
16
17
|
* App entra a `POST /benefits-marketplace/funding/authorize` con el leaf+product
|
|
@@ -47,6 +48,11 @@ __decorate([
|
|
|
47
48
|
(0, class_validator_1.Min)(0),
|
|
48
49
|
__metadata("design:type", Number)
|
|
49
50
|
], AuthorizeFundingRequest.prototype, "customAmount", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
(0, class_validator_1.IsEnum)(WalletFundingChannelEnum_1.WalletFundingChannelEnum),
|
|
54
|
+
__metadata("design:type", String)
|
|
55
|
+
], AuthorizeFundingRequest.prototype, "channel", void 0);
|
|
50
56
|
__decorate([
|
|
51
57
|
(0, class_validator_1.IsString)(),
|
|
52
58
|
(0, class_validator_1.MaxLength)(64),
|
package/package.json
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IsString, IsOptional, IsInt, IsNumber, IsPositive,
|
|
3
|
-
IsEmail, Min, Max, MaxLength,
|
|
3
|
+
IsEmail, IsEnum, Min, Max, MaxLength,
|
|
4
4
|
} from "class-validator";
|
|
5
|
+
import { WalletFundingChannelEnum } from "../enums/WalletFundingChannelEnum";
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Request del flow walletFunding via Centro de Beneficios (spec 13 v2.0).
|
|
@@ -22,6 +23,17 @@ export class AuthorizeFundingRequest {
|
|
|
22
23
|
@IsInt() @Min(0) @Max(30) expirationDays!: number;
|
|
23
24
|
/** Opcional. Solo aplica si el producto resuelto es `mode === FIXED`. Para OPEN se ignora. */
|
|
24
25
|
@IsOptional() @IsNumber() @Min(0) customAmount?: number;
|
|
26
|
+
/**
|
|
27
|
+
* Red por la que se cobrara la referencia. Ausente o `NETWORK` reproduce el
|
|
28
|
+
* comportamiento historico, para que los clientes anteriores sigan
|
|
29
|
+
* funcionando sin cambios.
|
|
30
|
+
*
|
|
31
|
+
* Con `OXXO` la referencia es de un solo uso, exige `customAmount` y vence
|
|
32
|
+
* en 1 dia — y **no se puede cancelar**, asi que el connector valida el tope
|
|
33
|
+
* del cliente ANTES de emitirla.
|
|
34
|
+
*/
|
|
35
|
+
@IsOptional() @IsEnum(WalletFundingChannelEnum) channel?: WalletFundingChannelEnum;
|
|
36
|
+
|
|
25
37
|
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
26
38
|
@IsString() @MaxLength(64) walletAccountId!: string;
|
|
27
39
|
/** Para Passport (nombre del titular). Si se omite, el marketplace resuelve desde directory. */
|