Untitled

mail@pastecode.io avatar
unknown
plain_text
20 days ago
744 B
2
Indexable
Never
export class HomeInsuranceFormBody {

    @ValidateNested({ each: true })
    @Type((): any => CoverageDetails)
    public coverageDetails: CoverageDetails;

    @ValidateNested({ each: true })
    public listedItems: ListedItems;

    @ValidateNested({ each: true })
    @Type((): any => PropertyDetails)
    public propertyDetails: PropertyDetails;

    @IsString()
    @IsOptional()
    public stage: string;

    @IsOptional()
    @Type((): any => ErrorVO)
    public error: ErrorVO;
}


export class CoverageDetails {

    @IsNumber()
    public ownershipCode: number;

    @IsNumber()
    public nationalityCode: number;

    @ValidateNested({ each: true })
    public mandatoryCovers: MandatoryCover[];
}
Leave a Comment