import { TAccountType } from '@/core/constants/accountTypes.const';
import ISummary from '@/core/models/summary';

export interface IConsumerAccountRawResponse {
  id: string;
  role: string;
  created_at: string;
  pos: Pos;
  account: Account;
}
export interface IConsumerAccountResponse extends IConsumerAccountRawResponse {}

export interface IConsumerAccountRequest {
  username: string;
  password?: string;
  type: TAccountType;
}

interface Account {
  username: string;
  status: string;
}

interface Pos extends ISummary {
  complex: Complex;
}

interface Complex extends ISummary {
  branch_code: string;
  business_activity: ISummary;
}
