resurgence-data 1.1.19 → 1.1.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.
@@ -67,6 +67,15 @@ __decorate([
|
|
67
67
|
(0, class_validator_1.IsOptional)(),
|
68
68
|
__metadata("design:type", Boolean)
|
69
69
|
], PaymentPageDto.prototype, "acceptsUserAmount", void 0);
|
70
|
+
__decorate([
|
71
|
+
(0, swagger_1.ApiProperty)({
|
72
|
+
description: "List of items",
|
73
|
+
example: "[{id:'550e8400-e29b-41d4-a716-446655440001', quantity:2},{id:'550e8400-e29b-41d4-a716-446655440001', quantity:3}]",
|
74
|
+
}),
|
75
|
+
(0, class_validator_1.IsOptional)(),
|
76
|
+
(0, class_validator_1.IsArray)({ message: "Please provide a list of items for this invoice" }),
|
77
|
+
__metadata("design:type", Array)
|
78
|
+
], PaymentPageDto.prototype, "items", void 0);
|
70
79
|
class UpdatePaymentPageDto {
|
71
80
|
constructor() {
|
72
81
|
this.currencyCode = "NGN";
|
package/package.json
CHANGED
@@ -44,6 +44,14 @@ export class PaymentPageDto {
|
|
44
44
|
@IsBoolean({ message: "acceptsUserAmount must be a boolean" })
|
45
45
|
@IsOptional()
|
46
46
|
acceptsUserAmount?: boolean;
|
47
|
+
@ApiProperty({
|
48
|
+
description: "List of items",
|
49
|
+
example:
|
50
|
+
"[{id:'550e8400-e29b-41d4-a716-446655440001', quantity:2},{id:'550e8400-e29b-41d4-a716-446655440001', quantity:3}]",
|
51
|
+
})
|
52
|
+
@IsOptional()
|
53
|
+
@IsArray({ message: "Please provide a list of items for this invoice" })
|
54
|
+
items?: InvoiceItemDto[];
|
47
55
|
}
|
48
56
|
|
49
57
|
export class UpdatePaymentPageDto {
|