resurgence-data 1.1.18 → 1.1.19
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.
@@ -103,7 +103,7 @@ __decorate([
|
|
103
103
|
__decorate([
|
104
104
|
(0, swagger_1.ApiProperty)({
|
105
105
|
description: "List of items",
|
106
|
-
example: "['550e8400-e29b-41d4-a716-446655440001','550e8400-e29b-41d4-a716-446655440001' ]",
|
106
|
+
example: "[{id:'550e8400-e29b-41d4-a716-446655440001', quantity:2},{id:'550e8400-e29b-41d4-a716-446655440001', quantity:3}]",
|
107
107
|
}),
|
108
108
|
(0, class_validator_1.IsNotEmpty)({ message: "Please provide items for this invoice" }),
|
109
109
|
(0, class_validator_1.IsArray)({ message: "Please provide a list of items for this invoice" }),
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { UUID } from "crypto";
|
2
|
+
import { InvoiceItemDto } from "./invoice.dto";
|
2
3
|
export declare class PaymentPageDto {
|
3
4
|
billerId: UUID;
|
4
5
|
description?: string;
|
@@ -19,6 +20,7 @@ export declare class UpdatePaymentPageDto {
|
|
19
20
|
active?: boolean;
|
20
21
|
url?: string;
|
21
22
|
acceptsUserAmount?: boolean;
|
23
|
+
items?: InvoiceItemDto[];
|
22
24
|
}
|
23
25
|
export declare class PaymentPageResponseDto {
|
24
26
|
billerId: string;
|
@@ -31,4 +33,5 @@ export declare class PaymentPageResponseDto {
|
|
31
33
|
acceptsUserAmount?: boolean;
|
32
34
|
createdAt: Date;
|
33
35
|
updatedAt: Date;
|
36
|
+
items?: InvoiceItemDto[];
|
34
37
|
}
|
@@ -129,6 +129,15 @@ __decorate([
|
|
129
129
|
(0, class_validator_1.IsOptional)(),
|
130
130
|
__metadata("design:type", Boolean)
|
131
131
|
], UpdatePaymentPageDto.prototype, "acceptsUserAmount", void 0);
|
132
|
+
__decorate([
|
133
|
+
(0, swagger_1.ApiProperty)({
|
134
|
+
description: "List of items",
|
135
|
+
example: "[{id:'550e8400-e29b-41d4-a716-446655440001', quantity:2},{id:'550e8400-e29b-41d4-a716-446655440001', quantity:3}]",
|
136
|
+
}),
|
137
|
+
(0, class_validator_1.IsOptional)(),
|
138
|
+
(0, class_validator_1.IsArray)({ message: "Please provide a list of items for this invoice" }),
|
139
|
+
__metadata("design:type", Array)
|
140
|
+
], UpdatePaymentPageDto.prototype, "items", void 0);
|
132
141
|
class PaymentPageResponseDto {
|
133
142
|
}
|
134
143
|
exports.PaymentPageResponseDto = PaymentPageResponseDto;
|
@@ -172,3 +181,7 @@ __decorate([
|
|
172
181
|
(0, swagger_1.ApiProperty)({ description: "Date when the page was last updated" }),
|
173
182
|
__metadata("design:type", Date)
|
174
183
|
], PaymentPageResponseDto.prototype, "updatedAt", void 0);
|
184
|
+
__decorate([
|
185
|
+
(0, swagger_1.ApiProperty)({ description: "List of Items" }),
|
186
|
+
__metadata("design:type", Array)
|
187
|
+
], PaymentPageResponseDto.prototype, "items", void 0);
|
package/package.json
CHANGED
@@ -89,7 +89,8 @@ export class CreateInvoiceDto extends BaseDTO {
|
|
89
89
|
|
90
90
|
@ApiProperty({
|
91
91
|
description: "List of items",
|
92
|
-
example:
|
92
|
+
example:
|
93
|
+
"[{id:'550e8400-e29b-41d4-a716-446655440001', quantity:2},{id:'550e8400-e29b-41d4-a716-446655440001', quantity:3}]",
|
93
94
|
})
|
94
95
|
@IsNotEmpty({ message: "Please provide items for this invoice" })
|
95
96
|
@IsArray({ message: "Please provide a list of items for this invoice" })
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ApiProperty } from "@nestjs/swagger";
|
2
|
-
import { IsString, IsInt, IsOptional, IsBoolean, IsNotEmpty, IsUUID } from "class-validator";
|
2
|
+
import { IsString, IsInt, IsOptional, IsBoolean, IsNotEmpty, IsUUID, IsArray } from "class-validator";
|
3
3
|
import { UUID } from "crypto";
|
4
|
+
import { InvoiceItemDto } from "./invoice.dto";
|
4
5
|
|
5
6
|
export class PaymentPageDto {
|
6
7
|
@ApiProperty({ description: "Payment page biller code uuid" })
|
@@ -92,6 +93,15 @@ export class UpdatePaymentPageDto {
|
|
92
93
|
@IsBoolean({ message: "acceptsUserAmount must be a boolean" })
|
93
94
|
@IsOptional()
|
94
95
|
acceptsUserAmount?: boolean;
|
96
|
+
|
97
|
+
@ApiProperty({
|
98
|
+
description: "List of items",
|
99
|
+
example:
|
100
|
+
"[{id:'550e8400-e29b-41d4-a716-446655440001', quantity:2},{id:'550e8400-e29b-41d4-a716-446655440001', quantity:3}]",
|
101
|
+
})
|
102
|
+
@IsOptional()
|
103
|
+
@IsArray({ message: "Please provide a list of items for this invoice" })
|
104
|
+
items?: InvoiceItemDto[];
|
95
105
|
}
|
96
106
|
|
97
107
|
export class PaymentPageResponseDto {
|
@@ -124,4 +134,7 @@ export class PaymentPageResponseDto {
|
|
124
134
|
|
125
135
|
@ApiProperty({ description: "Date when the page was last updated" })
|
126
136
|
updatedAt: Date;
|
137
|
+
|
138
|
+
@ApiProperty({ description: "List of Items" })
|
139
|
+
items?: InvoiceItemDto[];
|
127
140
|
}
|