@fiado/type-kit 3.360.0 → 3.361.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
|
export declare class CreditWalletFundingRequest {
|
|
2
3
|
directoryId: string;
|
|
3
4
|
walletAccountId: string;
|
|
@@ -33,4 +34,13 @@ export declare class CreditWalletFundingRequest {
|
|
|
33
34
|
* es el que usa Equality/Passport hoy.
|
|
34
35
|
*/
|
|
35
36
|
productCatalogId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* Red por la que se cobro. Ausente significa `NETWORK`, que es lo que eran
|
|
39
|
+
* todos los cash-in antes de que existiera este campo.
|
|
40
|
+
*
|
|
41
|
+
* El processor lo necesita para sellar el `subType` de la transaccion: no
|
|
42
|
+
* puede deducirlo del `productCatalogId` porque hoy ambos canales tarifan
|
|
43
|
+
* con el mismo producto — la comision es pareja.
|
|
44
|
+
*/
|
|
45
|
+
channel?: WalletFundingChannelEnum;
|
|
36
46
|
}
|
|
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CreditWalletFundingRequest = void 0;
|
|
13
13
|
const class_validator_1 = require("class-validator");
|
|
14
|
+
const WalletFundingChannelEnum_1 = require("../enums/WalletFundingChannelEnum");
|
|
14
15
|
class CreditWalletFundingRequest {
|
|
15
16
|
}
|
|
16
17
|
exports.CreditWalletFundingRequest = CreditWalletFundingRequest;
|
|
@@ -71,3 +72,8 @@ __decorate([
|
|
|
71
72
|
(0, class_validator_1.MaxLength)(64),
|
|
72
73
|
__metadata("design:type", String)
|
|
73
74
|
], CreditWalletFundingRequest.prototype, "productCatalogId", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, class_validator_1.IsOptional)(),
|
|
77
|
+
(0, class_validator_1.IsEnum)(WalletFundingChannelEnum_1.WalletFundingChannelEnum),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], CreditWalletFundingRequest.prototype, "channel", void 0);
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { IsString, IsNumber, IsPositive, Length, IsDateString, MaxLength, IsOptional } from "class-validator";
|
|
1
|
+
import { IsString, IsEnum, IsNumber, IsPositive, Length, IsDateString, MaxLength, IsOptional } from "class-validator";
|
|
2
|
+
import { WalletFundingChannelEnum } from "../enums/WalletFundingChannelEnum";
|
|
2
3
|
|
|
3
4
|
export class CreditWalletFundingRequest {
|
|
4
5
|
@IsString() @MaxLength(64) directoryId!: string;
|
|
@@ -35,4 +36,14 @@ export class CreditWalletFundingRequest {
|
|
|
35
36
|
* es el que usa Equality/Passport hoy.
|
|
36
37
|
*/
|
|
37
38
|
@IsOptional() @IsString() @MaxLength(64) productCatalogId?: string;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Red por la que se cobro. Ausente significa `NETWORK`, que es lo que eran
|
|
42
|
+
* todos los cash-in antes de que existiera este campo.
|
|
43
|
+
*
|
|
44
|
+
* El processor lo necesita para sellar el `subType` de la transaccion: no
|
|
45
|
+
* puede deducirlo del `productCatalogId` porque hoy ambos canales tarifan
|
|
46
|
+
* con el mismo producto — la comision es pareja.
|
|
47
|
+
*/
|
|
48
|
+
@IsOptional() @IsEnum(WalletFundingChannelEnum) channel?: WalletFundingChannelEnum;
|
|
38
49
|
}
|