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

export class DepositDto {
  @ApiProperty({ example: '100.00' }) @IsNumberString() amount: string;
  @ApiPropertyOptional() @IsOptional() @IsString() description?: string;
}

export class WithdrawDto {
  @ApiProperty({ example: '50.00' }) @IsNumberString() amount: string;
  @ApiPropertyOptional() @IsOptional() @IsString() description?: string;
}
