File
|
Optional
investorId
|
Type : string
|
Decorators :
@ApiProperty() @IsString() @IsOptional()
|
|
|
|
Optional
optionalComment
|
Type : string
|
Decorators :
@ApiProperty() @IsString() @IsOptional()
|
|
|
|
status
|
Type : RequestStatus
|
Decorators :
@ApiProperty({enumName: 'The order request status', enum: undefined}) @IsEnum(RequestStatus)
|
|
|
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsOptional, IsString } from "class-validator";
import { RequestStatus } from "src/common/interfaces";
export class UpdateRequestOrderDto {
@ApiProperty({
enumName: "The order request status",
enum: ["underReview", "accepted", "rejected", "archived"],
})
@IsEnum(RequestStatus)
status: RequestStatus;
@ApiProperty()
@IsString()
@IsOptional()
optionalComment?: string;
@ApiProperty()
@IsString()
@IsOptional()
investorId?: string;
}