File

src/orderbook/dto/confirm-order.dto.ts

Index

Properties

Properties

agreement
Type : Omit<SendContractDto | orderId>
Decorators :
@IsDefined()
@IsNotEmptyObject()
@IsObject()
@ValidateNested()
@Type(undefined)
amount
Type : string
Decorators :
@ApiProperty()
@IsString()
@IsOptional()
investorId
Type : string
Decorators :
@ApiProperty()
@IsOptional()
@IsString()
isUsingInvestorWallet
Type : boolean
Decorators :
@ApiProperty()
@IsBoolean()
@IsOptional()
orderId
Type : string
Decorators :
@ApiProperty()
@IsString()
import { ApiProperty } from "@nestjs/swagger";
import { Type } from "class-transformer";
import {
  IsBoolean,
  IsDefined,
  IsNotEmptyObject,
  IsObject,
  IsOptional,
  IsString,
  ValidateNested,
} from "class-validator";
import { OmitType } from "@nestjs/mapped-types";
import { SendContractDto } from "src/docusign/dtos/send-contract.dto";

export class OrderConfirmDto {
  @ApiProperty()
  @IsString()
  orderId: string;

  @ApiProperty()
  @IsOptional()
  @IsString()
  investorId: string;

  @ApiProperty()
  @IsBoolean()
  @IsOptional()
  isUsingInvestorWallet: boolean;

  @IsDefined()
  @IsNotEmptyObject()
  @IsObject()
  @ValidateNested()
  @Type(() => OmitType(SendContractDto, ["orderId"]))
  agreement: Omit<SendContractDto, "orderId">;

  @ApiProperty()
  @IsString()
  @IsOptional()
  amount: string;
}

results matching ""

    No results matching ""