/**
 * DTO used to search bank accounts linked to an associate.
 *
 * Purpose:
 * - Filters bank account records based on associate ID
 * - Commonly used in dropdowns or lookup APIs
 */
import { ApiPropertyOptional } from '@nestjs/swagger';
import { IsNumber, IsOptional } from 'class-validator';

export class SearchAssociateBanksDto {
  /**
   * Associate (sub-agent) identifier.
   *
   * When provided:
   * - Returns bank accounts linked to the given associate
   *
   * When omitted:
   * - Service may return all accessible bank accounts
   *   depending on business rules
   */
  @ApiPropertyOptional()
  @IsOptional()
  @IsNumber()
  associate_id: number;
}
