resurgence-data 1.1.10 → 1.1.11
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,11 +1,12 @@
|
|
1
|
+
import { UUID } from "crypto";
|
1
2
|
export declare class PaymentPageDto {
|
2
|
-
billerId:
|
3
|
+
billerId: UUID;
|
3
4
|
description?: string;
|
4
5
|
title: string;
|
5
6
|
totalAmount: number;
|
6
7
|
currencyCode: string;
|
7
8
|
active?: boolean;
|
8
|
-
url?:
|
9
|
+
url?: string;
|
9
10
|
acceptsUserAmount?: boolean;
|
10
11
|
}
|
11
12
|
export declare class UpdatePaymentPageDto {
|
@@ -16,7 +17,7 @@ export declare class UpdatePaymentPageDto {
|
|
16
17
|
totalAmount?: number;
|
17
18
|
currencyCode?: string;
|
18
19
|
active?: boolean;
|
19
|
-
url?:
|
20
|
+
url?: string;
|
20
21
|
acceptsUserAmount?: boolean;
|
21
22
|
}
|
22
23
|
export declare class PaymentPageResponseDto {
|
@@ -26,7 +27,7 @@ export declare class PaymentPageResponseDto {
|
|
26
27
|
totalAmount: number;
|
27
28
|
currencyCode: string;
|
28
29
|
active?: boolean;
|
29
|
-
url?:
|
30
|
+
url?: string;
|
30
31
|
acceptsUserAmount?: boolean;
|
31
32
|
createdAt: Date;
|
32
33
|
updatedAt: Date;
|
@@ -59,7 +59,7 @@ __decorate([
|
|
59
59
|
(0, swagger_1.ApiProperty)({ description: "Url of the page", required: false }),
|
60
60
|
(0, class_validator_1.IsString)({ message: "URL should be text" }),
|
61
61
|
(0, class_validator_1.IsOptional)(),
|
62
|
-
__metadata("design:type",
|
62
|
+
__metadata("design:type", String)
|
63
63
|
], PaymentPageDto.prototype, "url", void 0);
|
64
64
|
__decorate([
|
65
65
|
(0, swagger_1.ApiProperty)({ description: "Whether pages accept user amount", required: false }),
|
@@ -121,7 +121,7 @@ __decorate([
|
|
121
121
|
(0, swagger_1.ApiProperty)({ description: "Url of the page", required: false }),
|
122
122
|
(0, class_validator_1.IsString)({ message: "URL should be text" }),
|
123
123
|
(0, class_validator_1.IsOptional)(),
|
124
|
-
__metadata("design:type",
|
124
|
+
__metadata("design:type", String)
|
125
125
|
], UpdatePaymentPageDto.prototype, "url", void 0);
|
126
126
|
__decorate([
|
127
127
|
(0, swagger_1.ApiProperty)({ description: "Whether pages accept user amount", required: false }),
|
@@ -158,7 +158,7 @@ __decorate([
|
|
158
158
|
], PaymentPageResponseDto.prototype, "active", void 0);
|
159
159
|
__decorate([
|
160
160
|
(0, swagger_1.ApiProperty)({ description: "Url of the page", required: false }),
|
161
|
-
__metadata("design:type",
|
161
|
+
__metadata("design:type", String)
|
162
162
|
], PaymentPageResponseDto.prototype, "url", void 0);
|
163
163
|
__decorate([
|
164
164
|
(0, swagger_1.ApiProperty)({ description: "Whether pages accept user amount", required: false }),
|
package/package.json
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
import { ApiProperty } from "@nestjs/swagger";
|
2
2
|
import { IsString, IsInt, IsOptional, IsBoolean, IsNotEmpty, IsUUID } from "class-validator";
|
3
|
+
import { UUID } from "crypto";
|
3
4
|
|
4
5
|
export class PaymentPageDto {
|
5
6
|
@ApiProperty({ description: "Payment page biller code uuid" })
|
6
7
|
@IsString({ message: "billerId must be a string" })
|
7
8
|
@IsUUID("4", { message: "billerId must be a valid id format" })
|
8
9
|
@IsNotEmpty({ message: "billerId should not be empty" })
|
9
|
-
billerId:
|
10
|
+
billerId: UUID;
|
10
11
|
|
11
12
|
@ApiProperty({ description: "Payment page description", required: false })
|
12
13
|
@IsString({ message: "description must be a string" })
|
@@ -36,7 +37,7 @@ export class PaymentPageDto {
|
|
36
37
|
@ApiProperty({ description: "Url of the page", required: false })
|
37
38
|
@IsString({ message: "URL should be text" })
|
38
39
|
@IsOptional()
|
39
|
-
url?:
|
40
|
+
url?: string;
|
40
41
|
|
41
42
|
@ApiProperty({ description: "Whether pages accept user amount", required: false })
|
42
43
|
@IsBoolean({ message: "acceptsUserAmount must be a boolean" })
|
@@ -85,7 +86,7 @@ export class UpdatePaymentPageDto {
|
|
85
86
|
@ApiProperty({ description: "Url of the page", required: false })
|
86
87
|
@IsString({ message: "URL should be text" })
|
87
88
|
@IsOptional()
|
88
|
-
url?:
|
89
|
+
url?: string;
|
89
90
|
|
90
91
|
@ApiProperty({ description: "Whether pages accept user amount", required: false })
|
91
92
|
@IsBoolean({ message: "acceptsUserAmount must be a boolean" })
|
@@ -113,7 +114,7 @@ export class PaymentPageResponseDto {
|
|
113
114
|
active?: boolean;
|
114
115
|
|
115
116
|
@ApiProperty({ description: "Url of the page", required: false })
|
116
|
-
url?:
|
117
|
+
url?: string;
|
117
118
|
|
118
119
|
@ApiProperty({ description: "Whether pages accept user amount", required: false })
|
119
120
|
acceptsUserAmount?: boolean;
|