@alba-cars/common-modules 1.10.18 → 1.10.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.
@@ -3,12 +3,15 @@ import { Vehicle } from "./Vehicle";
3
3
  export declare class VehicleFinance extends BaseModel {
4
4
  vehicleId: string;
5
5
  price: number;
6
+ droppedPrice?: number;
6
7
  vehiclePriceType: string;
7
8
  vatInclusive: string;
8
9
  interestPercentage: number;
9
10
  monthlyInstallment: number;
11
+ droppedMonthlyInstallment?: number;
10
12
  financingYear: number;
11
13
  interestPerYear: number;
14
+ droppedInterestPerYear?: number;
12
15
  totalReductionAmount: number;
13
16
  reductionDuration: number;
14
17
  durationShow: string;
@@ -7,8 +7,10 @@ export declare class VehicleFinanceGetDTO {
7
7
  vatInclusive: string;
8
8
  interestPercentage: number;
9
9
  monthlyInstallment: number;
10
+ droppedMonthlyInstallment?: number;
10
11
  financingYear: number;
11
12
  interestPerYear: number;
13
+ droppedInterestPerYear?: number;
12
14
  totalReductionAmount?: number;
13
15
  reductionDuration?: number;
14
16
  durationShow?: string;
@@ -24,8 +26,10 @@ export declare class VehicleFinanceCreateDTO {
24
26
  droppedPrice?: number;
25
27
  interestPercentage: number;
26
28
  monthlyInstallment: number;
29
+ droppedMonthlyInstallment?: number;
27
30
  financingYear: number;
28
31
  interestPerYear: number;
32
+ droppedInterestPerYear?: number;
29
33
  totalReductionAmount?: number;
30
34
  reductionDuration?: number;
31
35
  durationShow?: string;
@@ -41,10 +45,13 @@ export declare class VehicleFinanceCreateDTO {
41
45
  export declare class VehicleFinanceUpdateDTO {
42
46
  vehicleId?: string;
43
47
  price?: number;
48
+ droppedPrice?: number;
44
49
  interestPercentage?: number;
45
50
  monthlyInstallment?: number;
51
+ droppedMonthlyInstallment?: number;
46
52
  financingYear?: number;
47
53
  interestPerYear?: number;
54
+ droppedInterestPerYear?: number;
48
55
  vehiclePriceType?: string;
49
56
  vatInclusive?: string;
50
57
  validate(): string[];
@@ -55,6 +55,11 @@ __decorate([
55
55
  (0, class_validator_1.IsNumber)(),
56
56
  __metadata("design:type", Number)
57
57
  ], VehicleFinanceCreateDTO.prototype, "monthlyInstallment", void 0);
58
+ __decorate([
59
+ (0, class_validator_1.IsNumber)(),
60
+ (0, class_validator_1.IsOptional)(),
61
+ __metadata("design:type", Number)
62
+ ], VehicleFinanceCreateDTO.prototype, "droppedMonthlyInstallment", void 0);
58
63
  __decorate([
59
64
  (0, class_validator_1.IsNumber)(),
60
65
  __metadata("design:type", Number)
@@ -63,6 +68,11 @@ __decorate([
63
68
  (0, class_validator_1.IsNumber)(),
64
69
  __metadata("design:type", Number)
65
70
  ], VehicleFinanceCreateDTO.prototype, "interestPerYear", void 0);
71
+ __decorate([
72
+ (0, class_validator_1.IsNumber)(),
73
+ (0, class_validator_1.IsOptional)(),
74
+ __metadata("design:type", Number)
75
+ ], VehicleFinanceCreateDTO.prototype, "droppedInterestPerYear", void 0);
66
76
  __decorate([
67
77
  (0, class_validator_1.IsOptional)(),
68
78
  (0, class_validator_1.IsNumber)(),
@@ -125,6 +135,11 @@ __decorate([
125
135
  (0, class_validator_1.IsNumber)(),
126
136
  __metadata("design:type", Number)
127
137
  ], VehicleFinanceUpdateDTO.prototype, "price", void 0);
138
+ __decorate([
139
+ (0, class_validator_1.IsOptional)(),
140
+ (0, class_validator_1.IsNumber)(),
141
+ __metadata("design:type", Number)
142
+ ], VehicleFinanceUpdateDTO.prototype, "droppedPrice", void 0);
128
143
  __decorate([
129
144
  (0, class_validator_1.IsOptional)(),
130
145
  (0, class_validator_1.IsNumber)(),
@@ -135,6 +150,11 @@ __decorate([
135
150
  (0, class_validator_1.IsNumber)(),
136
151
  __metadata("design:type", Number)
137
152
  ], VehicleFinanceUpdateDTO.prototype, "monthlyInstallment", void 0);
153
+ __decorate([
154
+ (0, class_validator_1.IsOptional)(),
155
+ (0, class_validator_1.IsNumber)(),
156
+ __metadata("design:type", Number)
157
+ ], VehicleFinanceUpdateDTO.prototype, "droppedMonthlyInstallment", void 0);
138
158
  __decorate([
139
159
  (0, class_validator_1.IsOptional)(),
140
160
  (0, class_validator_1.IsNumber)(),
@@ -145,6 +165,11 @@ __decorate([
145
165
  (0, class_validator_1.IsNumber)(),
146
166
  __metadata("design:type", Number)
147
167
  ], VehicleFinanceUpdateDTO.prototype, "interestPerYear", void 0);
168
+ __decorate([
169
+ (0, class_validator_1.IsOptional)(),
170
+ (0, class_validator_1.IsNumber)(),
171
+ __metadata("design:type", Number)
172
+ ], VehicleFinanceUpdateDTO.prototype, "droppedInterestPerYear", void 0);
148
173
  __decorate([
149
174
  (0, class_validator_1.IsOptional)(),
150
175
  (0, class_validator_1.IsString)(),
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.10.18",
6
+ "version": "1.10.20",
7
7
  "description": "A package containing DTOs, validation classes and common modules and interfaces for Alba Cars",
8
8
  "main": "dist/index.js",
9
9
  "types": "dist/index.d.ts",