import { IsBoolean, IsNumber, IsOptional, Max, Min } from "class-validator"; /** * Operator-set USD→ETB fallback. Bounded well outside any plausible published * rate but far short of a fat-fingered magnitude error — this value multiplies * real invoice amounts whenever CBE is unreachable. * * Both fields are optional so the two controls on the page move independently: flipping * the DJF toggle must not require re-submitting (and so re-stamping as MANUAL) a fallback * rate the operator did not touch. */ export class UpdateExchangeSettingDto { @IsOptional() @IsNumber({ maxDecimalPlaces: 6 }) @Min(1) @Max(10_000) fallbackRate?: number; /** Whether Djiboutian Franc may be chosen as a billing currency. */ @IsOptional() @IsBoolean() djfEnabled?: boolean; }