src/orderbook/dto/confirm-order.dto.ts
Properties |
| agreement |
Type : Omit<SendContractDto | orderId>
|
Decorators :
@IsDefined()
|
|
Defined in src/orderbook/dto/confirm-order.dto.ts:35
|
| amount |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/orderbook/dto/confirm-order.dto.ts:40
|
| investorId |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/orderbook/dto/confirm-order.dto.ts:23
|
| isUsingInvestorWallet |
Type : boolean
|
Decorators :
@ApiProperty()
|
|
Defined in src/orderbook/dto/confirm-order.dto.ts:28
|
| orderId |
Type : string
|
Decorators :
@ApiProperty()
|
|
Defined in src/orderbook/dto/confirm-order.dto.ts:18
|
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;
}