src/request-order/dtos/create-orderRequest.dto.ts
Properties |
|
| envelopId |
Type : string
|
Decorators :
@ApiProperty()
|
| fundId |
Type : string
|
Decorators :
@ApiProperty()
|
| Optional optionalComment |
Type : string
|
Decorators :
@ApiProperty()
|
| orderId |
Type : string
|
Decorators :
@ApiProperty()
|
| status |
Type : RequestStatus
|
Decorators :
@ApiProperty({enumName: 'The order request status', enum: undefined})
|
import { ApiProperty } from "@nestjs/swagger";
import { IsEnum, IsNotEmpty, IsOptional, IsString } from "class-validator";
import { RequestStatus } from "src/common/interfaces";
export class RequestOrderDto {
@ApiProperty()
@IsString()
@IsNotEmpty()
envelopId: string;
@ApiProperty()
@IsString()
@IsNotEmpty()
orderId: string;
@ApiProperty()
@IsString()
@IsNotEmpty()
fundId: string;
@ApiProperty({
enumName: "The order request status",
enum: ["underReview", "accepted", "rejected"],
})
@IsEnum(RequestStatus)
status: RequestStatus;
@ApiProperty()
@IsString()
@IsOptional()
optionalComment?: string;
}