@devline-smart-taxi/common 2.3.33 → 2.3.34

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.
@@ -6,4 +6,5 @@ export declare class CreateTripDto {
6
6
  destinationLongitude?: number;
7
7
  carClassId: string;
8
8
  paymentMethod: PaymentMethod;
9
+ useBonuses?: boolean;
9
10
  }
@@ -90,3 +90,13 @@ __decorate([
90
90
  (0, class_validator_1.IsNotEmpty)({ message: error_prompt_1.errorPrompt.PAYMENT_METHOD_REQUIRED.key }),
91
91
  __metadata("design:type", String)
92
92
  ], CreateTripDto.prototype, "paymentMethod", void 0);
93
+ __decorate([
94
+ (0, swagger_1.ApiProperty)({
95
+ description: 'Whether to use available wallet bonuses for partial/full payment',
96
+ required: false,
97
+ example: true,
98
+ }),
99
+ (0, class_validator_1.IsOptional)(),
100
+ (0, class_validator_1.IsBoolean)(),
101
+ __metadata("design:type", Boolean)
102
+ ], CreateTripDto.prototype, "useBonuses", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devline-smart-taxi/common",
3
- "version": "2.3.33",
3
+ "version": "2.3.34",
4
4
  "description": "Reusable NestJS common library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",