resurgence-data 1.0.43 → 1.0.44
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.
@@ -1534,9 +1534,25 @@ __decorate([
|
|
1534
1534
|
example: 10.5,
|
1535
1535
|
}),
|
1536
1536
|
(0, class_validator_1.IsNotEmpty)({ message: "Discount value must not be empty" }),
|
1537
|
-
(0, class_validator_1.
|
1537
|
+
(0, class_validator_1.IsNumber)(undefined, { message: "Discount value must be a valid number" }),
|
1538
1538
|
__metadata("design:type", Number)
|
1539
1539
|
], CreateInvoiceDto.prototype, "discountValue", void 0);
|
1540
|
+
__decorate([
|
1541
|
+
(0, swagger_1.ApiProperty)({
|
1542
|
+
description: "Total for invoice",
|
1543
|
+
example: 20030,
|
1544
|
+
}),
|
1545
|
+
(0, class_validator_1.IsInt)({ message: "Discount value must be a valid number" }),
|
1546
|
+
__metadata("design:type", Number)
|
1547
|
+
], CreateInvoiceDto.prototype, "total", void 0);
|
1548
|
+
__decorate([
|
1549
|
+
(0, swagger_1.ApiProperty)({
|
1550
|
+
description: "Total for invoice service charges",
|
1551
|
+
example: 1000,
|
1552
|
+
}),
|
1553
|
+
(0, class_validator_1.IsNumber)(undefined, { message: "Discount value must be a valid number" }),
|
1554
|
+
__metadata("design:type", Number)
|
1555
|
+
], CreateInvoiceDto.prototype, "totalService", void 0);
|
1540
1556
|
__decorate([
|
1541
1557
|
(0, swagger_1.ApiProperty)({
|
1542
1558
|
description: "The type of discount applied to the invoice",
|
package/dist/exception/index.js
CHANGED
@@ -21,3 +21,4 @@ __exportStar(require("./authorization.exception"), exports);
|
|
21
21
|
__exportStar(require("./database.exception"), exports);
|
22
22
|
__exportStar(require("./integration.exception"), exports);
|
23
23
|
__exportStar(require("./process.exception"), exports);
|
24
|
+
__exportStar(require("./data.exception"), exports);
|
package/package.json
CHANGED
package/src/biller/biller.dto.ts
CHANGED
@@ -1358,8 +1358,20 @@ export class CreateInvoiceDto extends BaseDTO {
|
|
1358
1358
|
example: 10.5,
|
1359
1359
|
})
|
1360
1360
|
@IsNotEmpty({ message: "Discount value must not be empty" })
|
1361
|
-
@
|
1361
|
+
@IsNumber(undefined, { message: "Discount value must be a valid number" })
|
1362
1362
|
discountValue: number;
|
1363
|
+
@ApiProperty({
|
1364
|
+
description: "Total for invoice",
|
1365
|
+
example: 20030,
|
1366
|
+
})
|
1367
|
+
@IsInt({ message: "Discount value must be a valid number" })
|
1368
|
+
total?: number;
|
1369
|
+
@ApiProperty({
|
1370
|
+
description: "Total for invoice service charges",
|
1371
|
+
example: 1000,
|
1372
|
+
})
|
1373
|
+
@IsNumber(undefined, { message: "Discount value must be a valid number" })
|
1374
|
+
totalService?: number;
|
1363
1375
|
|
1364
1376
|
@ApiProperty({
|
1365
1377
|
description: "The type of discount applied to the invoice",
|
package/src/exception/index.ts
CHANGED