File

src/shared/dto/bank-details.dto.ts

Index

Properties

Properties

abaCode
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsOptional()
accountBic
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
accountName
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
accountNo
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
bankAddress
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
bankBic
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
bankChaps
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
bankName
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
currency
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
ibanNo
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
ultimateAccountNo
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
ultimateName
Type : string
Decorators :
@ApiProperty({type: 'string'})
@IsString()
@IsNotEmpty()
@MinLength(3)
import { ApiProperty } from "@nestjs/swagger";
import { IsString, IsNotEmpty, MinLength, IsOptional } from "class-validator";

export class BankDetailsDTO {
  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  bankName: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  bankAddress: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  bankChaps: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  bankBic: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  accountNo: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  accountBic: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  accountName: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  ibanNo: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  ultimateName: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  ultimateAccountNo: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsNotEmpty()
  @MinLength(3)
  currency: string;

  @ApiProperty({ type: "string" })
  @IsString()
  @IsOptional()
  abaCode: string;
}

results matching ""

    No results matching ""