import { ApiProperty } from '@nestjs/swagger';
import { IsNotEmpty, IsString } from 'class-validator';

export class CreateShipmentModeDto {
  @IsNotEmpty({ message: 'Name in english is required.' })
  @IsString()
  @ApiProperty({ name: 'Name in English', required: true, type: String })
  name_en: string;

  @IsNotEmpty({ message: 'Name in arabic is required.' })
  @IsString()
  @ApiProperty({ name: 'Name in Arabic', required: true, type: String })
  name_ar: string;

  @IsNotEmpty({ message: 'Slug is required.' })
  @IsString()
  @ApiProperty({ name: 'Slug', required: true, type: String })
  slug: string;
}
