@fiado/type-kit 1.0.18 → 1.0.20
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/index.d.ts +1 -0
- package/bin/index.js +2 -1
- package/bin/servicePayment/dtos/ServicePaymentRequest.d.ts +7 -0
- package/bin/servicePayment/dtos/ServicePaymentRequest.js +41 -0
- package/bin/servicePayment/index.d.ts +1 -0
- package/bin/servicePayment/index.js +17 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/servicePayment/dtos/ServicePaymentRequest.ts +29 -0
- package/src/servicePayment/index.ts +1 -0
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
|
|
26
|
+
exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Account = void 0;
|
|
27
27
|
exports.Account = __importStar(require("./account"));
|
|
28
28
|
exports.Address = __importStar(require("./address"));
|
|
29
29
|
exports.App = __importStar(require("./app"));
|
|
@@ -37,3 +37,4 @@ exports.File = __importStar(require("./identity"));
|
|
|
37
37
|
exports.Group = __importStar(require("./group"));
|
|
38
38
|
exports.Identity = __importStar(require("./provider"));
|
|
39
39
|
exports.Header = __importStar(require("./header"));
|
|
40
|
+
exports.ServicePayment = __importStar(require("./servicePayment"));
|
|
@@ -0,0 +1,41 @@
|
|
|
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.ServicePaymentRequest = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ServicePaymentRequest {
|
|
15
|
+
}
|
|
16
|
+
exports.ServicePaymentRequest = ServicePaymentRequest;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
19
|
+
(0, class_validator_1.Length)(1, 50),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], ServicePaymentRequest.prototype, "serviceId", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
24
|
+
(0, class_validator_1.Length)(1, 100),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], ServicePaymentRequest.prototype, "reference", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
29
|
+
(0, class_validator_1.Length)(1, 50),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], ServicePaymentRequest.prototype, "productId", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
34
|
+
(0, class_validator_1.Min)(0.01),
|
|
35
|
+
__metadata("design:type", Number)
|
|
36
|
+
], ServicePaymentRequest.prototype, "amount", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
39
|
+
(0, class_validator_1.Length)(1, 50),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ServicePaymentRequest.prototype, "transactionNumber", void 0);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos/ServicePaymentRequest';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./dtos/ServicePaymentRequest"), exports);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import { IsNotEmpty, Length, Min } from 'class-validator';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class ServicePaymentRequest {
|
|
7
|
+
|
|
8
|
+
@IsNotEmpty()
|
|
9
|
+
@Length(1, 50)
|
|
10
|
+
serviceId: string;
|
|
11
|
+
|
|
12
|
+
@IsNotEmpty()
|
|
13
|
+
@Length(1, 100)
|
|
14
|
+
reference: string;
|
|
15
|
+
|
|
16
|
+
@IsNotEmpty()
|
|
17
|
+
@Length(1, 50)
|
|
18
|
+
productId: string;
|
|
19
|
+
|
|
20
|
+
@IsNotEmpty()
|
|
21
|
+
@Min(0.01)
|
|
22
|
+
amount: number;
|
|
23
|
+
|
|
24
|
+
@IsNotEmpty()
|
|
25
|
+
@Length(1, 50)
|
|
26
|
+
transactionNumber: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './dtos/ServicePaymentRequest';
|