@fiado/type-kit 3.97.0 → 3.99.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/benefitCenter/enums/BenefitFlowEnum.d.ts +3 -1
- package/bin/benefitCenter/enums/BenefitFlowEnum.js +2 -0
- package/bin/walletFunding/dtos/AuthorizeFundingRequest.d.ts +7 -1
- package/bin/walletFunding/dtos/AuthorizeFundingRequest.js +2 -2
- package/package.json +1 -1
- package/src/benefitCenter/enums/BenefitFlowEnum.ts +2 -0
- package/src/walletFunding/dtos/AuthorizeFundingRequest.ts +9 -3
|
@@ -5,5 +5,7 @@ export declare enum BenefitFlowEnum {
|
|
|
5
5
|
INSURANCE = "INSURANCE",
|
|
6
6
|
DONATION = "DONATION",
|
|
7
7
|
PHARMACY = "PHARMACY",
|
|
8
|
-
REMITTANCE = "REMITTANCE"
|
|
8
|
+
REMITTANCE = "REMITTANCE",
|
|
9
|
+
/** Fondeo de wallet PCF con efectivo via provider externo (Equality/Passport, OpenPay, …) — spec 13. */
|
|
10
|
+
WALLET_FUNDING = "WALLET_FUNDING"
|
|
9
11
|
}
|
|
@@ -10,4 +10,6 @@ var BenefitFlowEnum;
|
|
|
10
10
|
BenefitFlowEnum["DONATION"] = "DONATION";
|
|
11
11
|
BenefitFlowEnum["PHARMACY"] = "PHARMACY";
|
|
12
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";
|
|
13
15
|
})(BenefitFlowEnum || (exports.BenefitFlowEnum = BenefitFlowEnum = {}));
|
|
@@ -8,8 +8,14 @@ export declare class AuthorizeFundingRequest {
|
|
|
8
8
|
benefitId: string;
|
|
9
9
|
leafId: string;
|
|
10
10
|
productId: string;
|
|
11
|
+
/**
|
|
12
|
+
* `0` = referencia sin expiración (Equality lo acepta como `expirationDate: ""`).
|
|
13
|
+
* `1-30` = referencia que vence en N días.
|
|
14
|
+
* Patrón canónico Fiado: referencias OPEN para wallet-funding son
|
|
15
|
+
* permanentes (1-por-usuario) — el flow normal envía `0`.
|
|
16
|
+
*/
|
|
11
17
|
expirationDays: number;
|
|
12
|
-
/**
|
|
18
|
+
/** Opcional. Solo aplica si el producto resuelto es `mode === FIXED`. Para OPEN se ignora. */
|
|
13
19
|
customAmount?: number;
|
|
14
20
|
idempotencyKey: string;
|
|
15
21
|
walletAccountId: string;
|
|
@@ -37,14 +37,14 @@ __decorate([
|
|
|
37
37
|
], AuthorizeFundingRequest.prototype, "productId", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, class_validator_1.IsInt)(),
|
|
40
|
-
(0, class_validator_1.Min)(
|
|
40
|
+
(0, class_validator_1.Min)(0),
|
|
41
41
|
(0, class_validator_1.Max)(30),
|
|
42
42
|
__metadata("design:type", Number)
|
|
43
43
|
], AuthorizeFundingRequest.prototype, "expirationDays", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, class_validator_1.IsOptional)(),
|
|
46
46
|
(0, class_validator_1.IsNumber)(),
|
|
47
|
-
(0, class_validator_1.
|
|
47
|
+
(0, class_validator_1.Min)(0),
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
49
|
], AuthorizeFundingRequest.prototype, "customAmount", void 0);
|
|
50
50
|
__decorate([
|
package/package.json
CHANGED
|
@@ -13,9 +13,15 @@ export class AuthorizeFundingRequest {
|
|
|
13
13
|
@IsString() @MaxLength(128) benefitId!: string;
|
|
14
14
|
@IsString() @MaxLength(256) leafId!: string;
|
|
15
15
|
@IsString() @MaxLength(128) productId!: string;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/**
|
|
17
|
+
* `0` = referencia sin expiración (Equality lo acepta como `expirationDate: ""`).
|
|
18
|
+
* `1-30` = referencia que vence en N días.
|
|
19
|
+
* Patrón canónico Fiado: referencias OPEN para wallet-funding son
|
|
20
|
+
* permanentes (1-por-usuario) — el flow normal envía `0`.
|
|
21
|
+
*/
|
|
22
|
+
@IsInt() @Min(0) @Max(30) expirationDays!: number;
|
|
23
|
+
/** Opcional. Solo aplica si el producto resuelto es `mode === FIXED`. Para OPEN se ignora. */
|
|
24
|
+
@IsOptional() @IsNumber() @Min(0) customAmount?: number;
|
|
19
25
|
@IsString() @MaxLength(64) idempotencyKey!: string;
|
|
20
26
|
@IsString() @MaxLength(64) walletAccountId!: string;
|
|
21
27
|
/** Para Passport (nombre del titular). Si se omite, el marketplace resuelve desde directory. */
|