resurgence-data 1.0.42 → 1.0.43
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.
@@ -228,6 +228,7 @@ export declare class UpdateBillerItemDto extends BaseDTO {
|
|
228
228
|
export declare class CreateInvoiceDto extends BaseDTO {
|
229
229
|
billerId: string;
|
230
230
|
customerId: string;
|
231
|
+
items: string[];
|
231
232
|
discountValue: number;
|
232
233
|
discountType: string;
|
233
234
|
dueDate: string;
|
@@ -236,6 +237,7 @@ export declare class CreateInvoiceDto extends BaseDTO {
|
|
236
237
|
export declare class UpdateInvoiceDto extends BaseDTO {
|
237
238
|
id: string;
|
238
239
|
billerId?: string;
|
240
|
+
items?: string[];
|
239
241
|
customerId?: string;
|
240
242
|
discountValue?: number;
|
241
243
|
discountType?: string;
|
@@ -1519,6 +1519,15 @@ __decorate([
|
|
1519
1519
|
(0, class_validator_1.IsString)({ message: "Customer ID must be a valid string" }),
|
1520
1520
|
__metadata("design:type", String)
|
1521
1521
|
], CreateInvoiceDto.prototype, "customerId", void 0);
|
1522
|
+
__decorate([
|
1523
|
+
(0, swagger_1.ApiProperty)({
|
1524
|
+
description: "List of items",
|
1525
|
+
example: "['550e8400-e29b-41d4-a716-446655440001','550e8400-e29b-41d4-a716-446655440001' ]",
|
1526
|
+
}),
|
1527
|
+
(0, class_validator_1.IsNotEmpty)({ message: "Please provide items for this invoice" }),
|
1528
|
+
(0, class_validator_1.IsArray)({ message: "Please provide a list of items for this invoice" }),
|
1529
|
+
__metadata("design:type", Array)
|
1530
|
+
], CreateInvoiceDto.prototype, "items", void 0);
|
1522
1531
|
__decorate([
|
1523
1532
|
(0, swagger_1.ApiProperty)({
|
1524
1533
|
description: "The discount value applied to the invoice",
|
@@ -1577,6 +1586,16 @@ __decorate([
|
|
1577
1586
|
(0, class_validator_1.IsOptional)(),
|
1578
1587
|
__metadata("design:type", String)
|
1579
1588
|
], UpdateInvoiceDto.prototype, "billerId", void 0);
|
1589
|
+
__decorate([
|
1590
|
+
(0, swagger_1.ApiProperty)({
|
1591
|
+
description: "List of items",
|
1592
|
+
example: "['550e8400-e29b-41d4-a716-446655440001','550e8400-e29b-41d4-a716-446655440001' ]",
|
1593
|
+
required: false,
|
1594
|
+
}),
|
1595
|
+
(0, class_validator_1.IsNotEmpty)({ message: "Please provide items for this invoice" }),
|
1596
|
+
(0, class_validator_1.IsArray)({ message: "Please provide a list of items for this invoice" }),
|
1597
|
+
__metadata("design:type", Array)
|
1598
|
+
], UpdateInvoiceDto.prototype, "items", void 0);
|
1580
1599
|
__decorate([
|
1581
1600
|
(0, swagger_1.ApiProperty)({
|
1582
1601
|
description: "The ID of the customer",
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -1345,6 +1345,14 @@ export class CreateInvoiceDto extends BaseDTO {
|
|
1345
1345
|
@IsString({ message: "Customer ID must be a valid string" })
|
1346
1346
|
customerId: string;
|
1347
1347
|
|
1348
|
+
@ApiProperty({
|
1349
|
+
description: "List of items",
|
1350
|
+
example: "['550e8400-e29b-41d4-a716-446655440001','550e8400-e29b-41d4-a716-446655440001' ]",
|
1351
|
+
})
|
1352
|
+
@IsNotEmpty({ message: "Please provide items for this invoice" })
|
1353
|
+
@IsArray({ message: "Please provide a list of items for this invoice" })
|
1354
|
+
items: string[];
|
1355
|
+
|
1348
1356
|
@ApiProperty({
|
1349
1357
|
description: "The discount value applied to the invoice",
|
1350
1358
|
example: 10.5,
|
@@ -1396,6 +1404,15 @@ export class UpdateInvoiceDto extends BaseDTO {
|
|
1396
1404
|
@IsOptional()
|
1397
1405
|
billerId?: string;
|
1398
1406
|
|
1407
|
+
@ApiProperty({
|
1408
|
+
description: "List of items",
|
1409
|
+
example: "['550e8400-e29b-41d4-a716-446655440001','550e8400-e29b-41d4-a716-446655440001' ]",
|
1410
|
+
required: false,
|
1411
|
+
})
|
1412
|
+
@IsNotEmpty({ message: "Please provide items for this invoice" })
|
1413
|
+
@IsArray({ message: "Please provide a list of items for this invoice" })
|
1414
|
+
items?: string[];
|
1415
|
+
|
1399
1416
|
@ApiProperty({
|
1400
1417
|
description: "The ID of the customer",
|
1401
1418
|
example: "550e8400-e29b-41d4-a716-446655440001",
|