2021-09-24 21:09:48 +02:00
|
|
|
import { AccountType } from '@prisma/client';
|
2022-09-25 18:02:46 +02:00
|
|
|
import {
|
|
|
|
IsBoolean,
|
|
|
|
IsNumber,
|
|
|
|
IsOptional,
|
|
|
|
IsString,
|
|
|
|
ValidateIf
|
|
|
|
} from 'class-validator';
|
2021-05-01 12:30:52 +02:00
|
|
|
|
|
|
|
export class UpdateAccountDto {
|
|
|
|
@IsString()
|
2021-05-02 21:18:52 +02:00
|
|
|
accountType: AccountType;
|
2021-05-01 12:30:52 +02:00
|
|
|
|
2021-07-07 21:23:36 +02:00
|
|
|
@IsNumber()
|
|
|
|
balance: number;
|
|
|
|
|
|
|
|
@IsString()
|
2021-09-24 21:09:48 +02:00
|
|
|
currency: string;
|
2021-07-07 21:23:36 +02:00
|
|
|
|
2021-05-01 12:30:52 +02:00
|
|
|
@IsString()
|
2021-05-02 21:18:52 +02:00
|
|
|
id: string;
|
2021-05-01 12:30:52 +02:00
|
|
|
|
2022-09-25 18:02:46 +02:00
|
|
|
@IsBoolean()
|
|
|
|
@IsOptional()
|
|
|
|
isExcluded?: boolean;
|
|
|
|
|
2021-05-01 12:30:52 +02:00
|
|
|
@IsString()
|
2021-05-02 21:18:52 +02:00
|
|
|
name: string;
|
2021-05-01 12:30:52 +02:00
|
|
|
|
|
|
|
@IsString()
|
|
|
|
@ValidateIf((object, value) => value !== null)
|
|
|
|
platformId: string | null;
|
|
|
|
}
|