forked from Yara724/api
Validation for prices and objection
This commit is contained in:
12
src/constants/repair-amount-limits.ts
Normal file
12
src/constants/repair-amount-limits.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/**
|
||||
* Per-line and total caps for repair money. All values are **Toman** (no unit conversion in the API).
|
||||
*/
|
||||
export const REPAIR_LINE_AMOUNT_TOMAN = {
|
||||
/** Below this is not credible for a priced repair line (e.g. 1,000 Toman). */
|
||||
MIN: 10_000,
|
||||
/** Aligns with the total assessment cap; rejects absurd values (e.g. 100bn). */
|
||||
MAX: 53_000_000,
|
||||
} as const;
|
||||
|
||||
/** Max sum of all priced + factor lines in one expert reply / validation (Toman). */
|
||||
export const CLAIM_V2_TOTAL_PAYMENT_CAP_TOMAN = REPAIR_LINE_AMOUNT_TOMAN.MAX;
|
||||
Reference in New Issue
Block a user