File

src/request-order/dtos/create-orderRequest.dto.ts

Index

Properties

Properties

envelopId
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
fundId
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
Optional optionalComment
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()
orderId
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsNotEmpty()
status
Type : RequestStatus
Decorators :
@ApiProperty({enumName: 'The order request status', enum: undefined})
@IsEnum(RequestStatus)
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;
}

results matching ""

    No results matching ""