import ISummary from '@/core/models/summary';

export interface IConsumerSaleInvoicesRawResponse {
  id: string;
  code: string;
  invoice_date: string;
  notes?: string;
  total_amount: string;
  pos: Pos;
  consumer_account: ConsumerAccount;
  created_at: string;
  items_count: number;
  payments: Payments[];
}
export interface IConsumerSaleInvoicesResponse extends IConsumerSaleInvoicesRawResponse {}

interface ConsumerAccount {
  role: string;
  account: Account;
}

interface Account {
  username: string;
}

interface Pos extends ISummary {
  complex: Complex;
}

interface Complex extends ISummary {
  business_activity: ISummary;
}

interface Payments {
  amount: string;
  paid_at?: string;
  payment_method: string;
}
