Untitled
Anonymous
plain_text
06/24/2024 9:29 AM
992 B
17
Indexable
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[];
}Editor is loading...
Leave a Comment