@fiado/type-kit 1.4.58 → 1.4.59
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/account/dtos/SPEITransferUpdateRequest.d.ts +11 -0
- package/bin/account/dtos/SPEITransferUpdateRequest.js +57 -0
- package/bin/account/index.d.ts +1 -0
- package/bin/account/index.js +1 -0
- package/package.json +1 -1
- package/src/account/dtos/SPEITransferCreateRequest.ts +1 -2
- package/src/account/dtos/SPEITransferUpdateRequest.ts +39 -0
- package/src/account/index.ts +1 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { SpeiTransferStatusEnum } from "../enums/SpeiTransferStatusEnum";
|
|
2
|
+
export declare class SPEITransferUpdateRequest {
|
|
3
|
+
phoneNumber: string;
|
|
4
|
+
clabe: string;
|
|
5
|
+
amount: number;
|
|
6
|
+
bank: string;
|
|
7
|
+
name: string;
|
|
8
|
+
concept: string;
|
|
9
|
+
notes: string;
|
|
10
|
+
status: SpeiTransferStatusEnum;
|
|
11
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.SPEITransferUpdateRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
const SpeiTransferStatusEnum_1 = require("../enums/SpeiTransferStatusEnum");
|
|
15
|
+
class SPEITransferUpdateRequest {
|
|
16
|
+
}
|
|
17
|
+
exports.SPEITransferUpdateRequest = SPEITransferUpdateRequest;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsString)(),
|
|
21
|
+
__metadata("design:type", String)
|
|
22
|
+
], SPEITransferUpdateRequest.prototype, "phoneNumber", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
(0, class_validator_1.IsString)(),
|
|
26
|
+
__metadata("design:type", String)
|
|
27
|
+
], SPEITransferUpdateRequest.prototype, "clabe", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, class_validator_1.IsOptional)(),
|
|
30
|
+
(0, class_validator_1.IsNumber)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], SPEITransferUpdateRequest.prototype, "amount", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsOptional)(),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], SPEITransferUpdateRequest.prototype, "bank", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], SPEITransferUpdateRequest.prototype, "name", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, class_validator_1.IsOptional)(),
|
|
45
|
+
(0, class_validator_1.IsString)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], SPEITransferUpdateRequest.prototype, "concept", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, class_validator_1.IsOptional)(),
|
|
50
|
+
(0, class_validator_1.IsString)(),
|
|
51
|
+
__metadata("design:type", String)
|
|
52
|
+
], SPEITransferUpdateRequest.prototype, "notes", void 0);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsEnum)(SpeiTransferStatusEnum_1.SpeiTransferStatusEnum),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], SPEITransferUpdateRequest.prototype, "status", void 0);
|
package/bin/account/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './dtos/ExecuteP2pOperationRequest';
|
|
|
30
30
|
export * from './dtos/AccountUpdateRequest';
|
|
31
31
|
export * from './dtos/SPEITransferCreateRequest';
|
|
32
32
|
export * from './dtos/SPEITransferResponse';
|
|
33
|
+
export * from './dtos/SPEITransferUpdateRequest';
|
|
33
34
|
export * from './entities/AccountEntityBase';
|
|
34
35
|
export * from './enums/AccountEntityStatusEnum';
|
|
35
36
|
export * from './enums/BankAccountTypeEnum';
|
package/bin/account/index.js
CHANGED
|
@@ -47,6 +47,7 @@ __exportStar(require("./dtos/ExecuteP2pOperationRequest"), exports);
|
|
|
47
47
|
__exportStar(require("./dtos/AccountUpdateRequest"), exports);
|
|
48
48
|
__exportStar(require("./dtos/SPEITransferCreateRequest"), exports);
|
|
49
49
|
__exportStar(require("./dtos/SPEITransferResponse"), exports);
|
|
50
|
+
__exportStar(require("./dtos/SPEITransferUpdateRequest"), exports);
|
|
50
51
|
//Entities
|
|
51
52
|
__exportStar(require("./entities/AccountEntityBase"), exports);
|
|
52
53
|
//Enums
|
package/package.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { SpeiTransferStatusEnum } from "../enums/SpeiTransferStatusEnum";
|
|
1
|
+
import { IsNotEmpty, IsNumber, IsOptional, IsString } from "class-validator";
|
|
3
2
|
|
|
4
3
|
|
|
5
4
|
export class SPEITransferCreateRequest {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { IsEnum, IsNumber, IsOptional, IsString } from "class-validator";
|
|
2
|
+
import { SpeiTransferStatusEnum } from "../enums/SpeiTransferStatusEnum";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class SPEITransferUpdateRequest {
|
|
6
|
+
|
|
7
|
+
@IsOptional()
|
|
8
|
+
@IsString()
|
|
9
|
+
phoneNumber: string;
|
|
10
|
+
|
|
11
|
+
@IsOptional()
|
|
12
|
+
@IsString()
|
|
13
|
+
clabe: string;
|
|
14
|
+
|
|
15
|
+
@IsOptional()
|
|
16
|
+
@IsNumber()
|
|
17
|
+
amount: number;
|
|
18
|
+
|
|
19
|
+
@IsOptional()
|
|
20
|
+
@IsString()
|
|
21
|
+
bank: string;
|
|
22
|
+
|
|
23
|
+
@IsOptional()
|
|
24
|
+
@IsString()
|
|
25
|
+
name: string;
|
|
26
|
+
|
|
27
|
+
@IsOptional()
|
|
28
|
+
@IsString()
|
|
29
|
+
concept: string;
|
|
30
|
+
|
|
31
|
+
@IsOptional()
|
|
32
|
+
@IsString()
|
|
33
|
+
notes: string;
|
|
34
|
+
|
|
35
|
+
@IsOptional()
|
|
36
|
+
@IsEnum(SpeiTransferStatusEnum)
|
|
37
|
+
status: SpeiTransferStatusEnum;
|
|
38
|
+
|
|
39
|
+
}
|
package/src/account/index.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './dtos/ExecuteP2pOperationRequest';
|
|
|
32
32
|
export * from './dtos/AccountUpdateRequest';
|
|
33
33
|
export * from './dtos/SPEITransferCreateRequest';
|
|
34
34
|
export * from './dtos/SPEITransferResponse';
|
|
35
|
+
export * from './dtos/SPEITransferUpdateRequest';
|
|
35
36
|
|
|
36
37
|
//Entities
|
|
37
38
|
export * from './entities/AccountEntityBase';
|