forked from Yara724/api
Initial commit after migration to gitea
This commit is contained in:
47
src/claim-request-management/dto/user-objection.dto.ts
Normal file
47
src/claim-request-management/dto/user-objection.dto.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { Type } from "class-transformer";
|
||||
import { TypeOfDamage } from "src/Types&Enums/claim-request-management/type-of-damage.enum";
|
||||
|
||||
export class UserObjectionPartDto {
|
||||
@ApiProperty()
|
||||
partId: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
reason?: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
partPrice?: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
partSalary?: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
typeOfDamage?: TypeOfDamage;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
carPartDamage?: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
side?: string;
|
||||
}
|
||||
|
||||
export class NewPartDto {
|
||||
@ApiProperty({ required: false, nullable: true })
|
||||
partId: string | null;
|
||||
|
||||
@ApiProperty()
|
||||
partName: string;
|
||||
|
||||
@ApiProperty({ required: false })
|
||||
side?: string;
|
||||
}
|
||||
|
||||
export class UserObjectionDto {
|
||||
@ApiProperty({ type: [UserObjectionPartDto], required: false })
|
||||
@Type(() => UserObjectionPartDto)
|
||||
objectionParts?: UserObjectionPartDto[];
|
||||
|
||||
@ApiProperty({ type: [NewPartDto], required: false })
|
||||
@Type(() => NewPartDto)
|
||||
newParts?: NewPartDto[];
|
||||
}
|
||||
Reference in New Issue
Block a user