forked from Yara724/api
Require structured inquiry participant inputs
This commit is contained in:
@@ -1,61 +1,9 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from "@nestjs/swagger";
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { PlatesDto } from "src/plates/dto/plate.dto";
|
||||
import { Plates } from "src/Types&Enums/plate.interface";
|
||||
import { InquiryParticipantFieldsDto } from "src/common/dto/inquiry-participants.dto";
|
||||
|
||||
export class AddPlateDto extends InquiryParticipantFieldsDto {
|
||||
plateId: string;
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
description: "Legacy third-party policyholder national code",
|
||||
})
|
||||
nationalCodeOfInsurer: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: String,
|
||||
description: "Legacy driver national code",
|
||||
})
|
||||
nationalCodeOfDriver: string;
|
||||
|
||||
@ApiPropertyOptional({ type: String })
|
||||
insurerLicense: string;
|
||||
|
||||
@ApiPropertyOptional({ type: String })
|
||||
driverLicense: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: PlatesDto,
|
||||
description:
|
||||
"Legacy/current plate; may be supplied as vehicle.currentPlate",
|
||||
})
|
||||
plate: Plates;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: Boolean,
|
||||
description: "Legacy role relationship",
|
||||
})
|
||||
driverIsInsurer: boolean;
|
||||
|
||||
@ApiProperty({ type: Boolean, required: true, default: false })
|
||||
isNewCar: boolean;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: Boolean,
|
||||
description: "Legacy; use driver.hasDrivingLicense",
|
||||
})
|
||||
userNoCertificate: boolean;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: Number,
|
||||
description: "Legacy third-party policyholder birthday",
|
||||
})
|
||||
insurerBirthday: number;
|
||||
@ApiProperty({
|
||||
type: String,
|
||||
required: false,
|
||||
})
|
||||
driverBirthday: string | null;
|
||||
}
|
||||
export class AddPlateDto extends InquiryParticipantFieldsDto {}
|
||||
|
||||
export class AddPlateProfileDto {
|
||||
plateId: string;
|
||||
|
||||
Reference in New Issue
Block a user