forked from Yara724/api
YARA-948
This commit is contained in:
@@ -66,6 +66,16 @@ export class UpsertClaimPriceDropV2Dto {
|
||||
@ValidateNested({ each: true })
|
||||
@Type(() => PriceDropPartSeverityV2Dto)
|
||||
partSeverities: PriceDropPartSeverityV2Dto[];
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description:
|
||||
"Override: expert manually sets the final price-drop amount (in Rials). " +
|
||||
"When provided, carPrice and partSeverities are not required and calculation is skipped entirely.",
|
||||
example: 150000000,
|
||||
})
|
||||
@IsOptional()
|
||||
@IsNumber()
|
||||
manualPriceDrop?: number;
|
||||
}
|
||||
|
||||
export class ClaimPriceDropContextV2Dto {
|
||||
@@ -99,7 +109,9 @@ export class ClaimPriceDropContextV2Dto {
|
||||
})
|
||||
severityOptions: Array<{ value: string; label_fa: string }>;
|
||||
|
||||
@ApiProperty({ description: "Full coefficient table for all price-drop parts" })
|
||||
@ApiProperty({
|
||||
description: "Full coefficient table for all price-drop parts",
|
||||
})
|
||||
priceDropCatalog: Array<Record<string, unknown>>;
|
||||
|
||||
@ApiProperty({
|
||||
|
||||
Reference in New Issue
Block a user