1
0
forked from Yara724/api
This commit is contained in:
SepehrYahyaee
2026-06-03 12:05:19 +03:30
parent 077bae429e
commit 2c810afcb6
4 changed files with 121 additions and 25 deletions

View File

@@ -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({