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

/**
 * Query for `GET /settlements/customer-balance` — aggregate the
 * customer's outstanding across all bookings for the same mobile.
 *
 * Used by the Collection screen header (shows how much the customer
 * owes overall) and the Customer Outstanding Report (Phase D).
 */
export class CustomerBalanceQueryDto {
  @IsString()
  @MaxLength(20)
  mobile: string;

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