forked from Yara724/api
Fixed Participants
This commit is contained in:
@@ -10,7 +10,7 @@ import {
|
||||
IsNotEmpty,
|
||||
IsOptional,
|
||||
IsString,
|
||||
MaxLength,
|
||||
Length,
|
||||
ValidateNested,
|
||||
} from "class-validator";
|
||||
|
||||
@@ -51,14 +51,6 @@ export class InquiryParticipantInputDto {
|
||||
@IsEnum(InquiryParticipantRole)
|
||||
sameAs?: InquiryParticipantRole;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"Only for the damaged party's third-party policyholder when the identity is genuinely unknown.",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsBoolean()
|
||||
unknown?: boolean;
|
||||
|
||||
@ApiPropertyOptional({ example: "0012345678" })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@@ -111,10 +103,23 @@ export class InquiryVehicleInputDto {
|
||||
@Type(() => InquiryPlateDto)
|
||||
previousPlate?: InquiryPlateDto;
|
||||
|
||||
@ApiPropertyOptional({ maxLength: 17, example: "NAAM01E15HK123456" })
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"National code of the policyholder associated with previousPlate. Required only for RECENTLY_TRANSFERRED vehicles.",
|
||||
example: "0012345678",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@MaxLength(17)
|
||||
previousPolicyholderNationalCode?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
minLength: 17,
|
||||
maxLength: 17,
|
||||
example: "NAAM01E15HK123456",
|
||||
})
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
@Length(17, 17)
|
||||
vin?: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
|
||||
Reference in New Issue
Block a user