@fiado/type-kit 3.99.0 → 3.99.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.
|
@@ -6,8 +6,14 @@ export declare class CreateFundingReferenceRequest {
|
|
|
6
6
|
name: string;
|
|
7
7
|
email: string;
|
|
8
8
|
mode: WalletFundingModeEnum;
|
|
9
|
+
/** `0` = OPEN (monto se decide en caja). `>0` = FIXED con monto exacto. */
|
|
9
10
|
amount?: number;
|
|
10
11
|
currencyCode: string;
|
|
12
|
+
/**
|
|
13
|
+
* ISO 8601 (`2026-06-30T23:59:59Z`) o **vacío `""`** para referencia sin
|
|
14
|
+
* expiración. El connector pasa `""` directo a Equality, que lo acepta
|
|
15
|
+
* (doc V1: "expirationDate opcional").
|
|
16
|
+
*/
|
|
11
17
|
expiresAt: string;
|
|
12
18
|
idempotencyKey: string;
|
|
13
19
|
}
|
|
@@ -46,7 +46,7 @@ __decorate([
|
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, class_validator_1.IsOptional)(),
|
|
48
48
|
(0, class_validator_1.IsNumber)(),
|
|
49
|
-
(0, class_validator_1.
|
|
49
|
+
(0, class_validator_1.Min)(0),
|
|
50
50
|
__metadata("design:type", Number)
|
|
51
51
|
], CreateFundingReferenceRequest.prototype, "amount", void 0);
|
|
52
52
|
__decorate([
|
|
@@ -55,7 +55,7 @@ __decorate([
|
|
|
55
55
|
__metadata("design:type", String)
|
|
56
56
|
], CreateFundingReferenceRequest.prototype, "currencyCode", void 0);
|
|
57
57
|
__decorate([
|
|
58
|
-
(0, class_validator_1.
|
|
58
|
+
(0, class_validator_1.IsString)(),
|
|
59
59
|
__metadata("design:type", String)
|
|
60
60
|
], CreateFundingReferenceRequest.prototype, "expiresAt", void 0);
|
|
61
61
|
__decorate([
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IsString, IsEmail, IsEnum, IsOptional, IsNumber,
|
|
3
|
-
Length,
|
|
2
|
+
IsString, IsEmail, IsEnum, IsOptional, IsNumber, Min,
|
|
3
|
+
Length, MaxLength,
|
|
4
4
|
} from "class-validator";
|
|
5
5
|
import { WalletFundingModeEnum } from "../enums/WalletFundingModeEnum";
|
|
6
6
|
|
|
@@ -11,8 +11,14 @@ export class CreateFundingReferenceRequest {
|
|
|
11
11
|
@IsString() @MaxLength(128) name!: string;
|
|
12
12
|
@IsEmail() email!: string;
|
|
13
13
|
@IsEnum(WalletFundingModeEnum) mode!: WalletFundingModeEnum;
|
|
14
|
-
|
|
14
|
+
/** `0` = OPEN (monto se decide en caja). `>0` = FIXED con monto exacto. */
|
|
15
|
+
@IsOptional() @IsNumber() @Min(0) amount?: number;
|
|
15
16
|
@IsString() @Length(3, 3) currencyCode!: string;
|
|
16
|
-
|
|
17
|
+
/**
|
|
18
|
+
* ISO 8601 (`2026-06-30T23:59:59Z`) o **vacío `""`** para referencia sin
|
|
19
|
+
* expiración. El connector pasa `""` directo a Equality, que lo acepta
|
|
20
|
+
* (doc V1: "expirationDate opcional").
|
|
21
|
+
*/
|
|
22
|
+
@IsString() expiresAt!: string;
|
|
17
23
|
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
18
24
|
}
|