import { IsOptional, IsUUID } from 'class-validator';

/**
 * Query for `GET /payment-settlements/supplier-outstanding` and
 * `/supplier-balance` — Pay Supplier screen feed (§12e).
 *
 * Same-currency policy applied client-side: when the user changes
 * the currency dropdown on the screen, the grid refetches.
 */
export class SupplierOutstandingQueryDto {
  @IsUUID()
  supplier_id: string;

  @IsUUID()
  @IsOptional()
  currency_id?: string;
}
