mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 12:30:58 +00:00
25 lines
676 B
TypeScript
25 lines
676 B
TypeScript
import { IsString, IsInt, IsBoolean, IsOptional } from 'class-validator';
|
|
import { ApiProperty, ApiPropertyOptional, PartialType } from '@nestjs/swagger';
|
|
|
|
export class CreateSeatClassDto {
|
|
@ApiProperty({ example: 'Economy Seat' })
|
|
@IsString()
|
|
name: string;
|
|
|
|
@ApiPropertyOptional({ example: 'Standard economy seating' })
|
|
@IsOptional()
|
|
@IsString()
|
|
description?: string;
|
|
|
|
@ApiProperty({ example: 45000, description: 'Base price in minor currency units' })
|
|
@IsInt()
|
|
basePrice: number;
|
|
|
|
@ApiPropertyOptional({ example: true })
|
|
@IsOptional()
|
|
@IsBoolean()
|
|
isActive?: boolean;
|
|
}
|
|
|
|
export class UpdateSeatClassDto extends PartialType(CreateSeatClassDto) {}
|