@fiado/type-kit 1.8.92 → 1.8.93
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,5 +1,6 @@
|
|
|
1
1
|
import { CountryId } from "../../country";
|
|
2
2
|
import { ProductTypeEnum } from "../../productCatalog";
|
|
3
|
+
import { Provider } from "../../provider";
|
|
3
4
|
export default class CreditContractCreateRequest {
|
|
4
5
|
id: string;
|
|
5
6
|
directoryUserId: string;
|
|
@@ -13,4 +14,6 @@ export default class CreditContractCreateRequest {
|
|
|
13
14
|
instrument: ProductTypeEnum;
|
|
14
15
|
amountBlocked: number;
|
|
15
16
|
relatedPocketId: string;
|
|
17
|
+
provider: Provider;
|
|
18
|
+
holdTxId: string;
|
|
16
19
|
}
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
const class_validator_1 = require("class-validator");
|
|
13
13
|
const country_1 = require("../../country");
|
|
14
14
|
const productCatalog_1 = require("../../productCatalog");
|
|
15
|
+
const provider_1 = require("../../provider");
|
|
15
16
|
class CreditContractCreateRequest {
|
|
16
17
|
}
|
|
17
18
|
exports.default = CreditContractCreateRequest;
|
|
@@ -75,3 +76,13 @@ __decorate([
|
|
|
75
76
|
(0, class_validator_1.IsNotEmpty)(),
|
|
76
77
|
__metadata("design:type", String)
|
|
77
78
|
], CreditContractCreateRequest.prototype, "relatedPocketId", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, class_validator_1.IsEnum)(provider_1.Provider),
|
|
81
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], CreditContractCreateRequest.prototype, "provider", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, class_validator_1.IsString)(),
|
|
86
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], CreditContractCreateRequest.prototype, "holdTxId", void 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IsEnum, IsNotEmpty, IsNumber, IsString, Matches } from "class-validator";
|
|
2
2
|
import { CountryId } from "../../country";
|
|
3
3
|
import { ProductTypeEnum } from "../../productCatalog";
|
|
4
|
+
import { Provider } from "../../provider";
|
|
4
5
|
export default class CreditContractCreateRequest {
|
|
5
6
|
|
|
6
7
|
@IsString()
|
|
@@ -51,4 +52,12 @@ export default class CreditContractCreateRequest {
|
|
|
51
52
|
@IsNotEmpty()
|
|
52
53
|
relatedPocketId: string;
|
|
53
54
|
|
|
55
|
+
@IsEnum(Provider)
|
|
56
|
+
@IsNotEmpty()
|
|
57
|
+
provider: Provider;
|
|
58
|
+
|
|
59
|
+
@IsString()
|
|
60
|
+
@IsNotEmpty()
|
|
61
|
+
holdTxId:string
|
|
62
|
+
|
|
54
63
|
}
|