24 lines
411 B
TypeScript
24 lines
411 B
TypeScript
import { AccountType } from '@prisma/client';
|
|
import { IsNumber, IsString, ValidateIf } from 'class-validator';
|
|
|
|
export class UpdateAccountDto {
|
|
@IsString()
|
|
accountType: AccountType;
|
|
|
|
@IsNumber()
|
|
balance: number;
|
|
|
|
@IsString()
|
|
currency: string;
|
|
|
|
@IsString()
|
|
id: string;
|
|
|
|
@IsString()
|
|
name: string;
|
|
|
|
@IsString()
|
|
@ValidateIf((object, value) => value !== null)
|
|
platformId: string | null;
|
|
}
|