import { IsNumber, IsOptional, IsString, Min, Max } from 'class-validator';
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';

export class KycSubmitDto {
  @ApiProperty({ minimum: 1, maximum: 3 }) @IsNumber() @Min(1) @Max(3) targetLevel: number;
  @ApiPropertyOptional() @IsOptional() @IsString() fullName?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() idType?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() idNumber?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() dateOfBirth?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() idFrontUrl?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() idBackUrl?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() selfieUrl?: string;
  @ApiPropertyOptional() @IsOptional() @IsString() address?: string;
  @ApiPropertyOptional() @IsOptional() @IsNumber() annualIncome?: number;
  @ApiPropertyOptional() @IsOptional() @IsNumber() netWorth?: number;
}
