import ISummary from '@/core/models/summary';
import { TspProviderResponseStatus } from '@/shared/catalog';

export interface IStatisticsSaleInvoicesRawResponse {
  id: string;
  code: string;
  invoice_date: string;
  invoice_number: number;
  main_id?: string;
  total_amount: string;
  tax_id?: string;
  type: string;
  notes?: string;
  created_at: string;
  reference_invoice?: string;
  consumer_account: ConsumerAccount;
  pos: Pos;
  status: Status;
  customer: Customer;
  status: IEnumTranslate<TspProviderResponseStatus>;
}
export interface IStatisticsSaleInvoicesResponse extends IStatisticsSaleInvoicesRawResponse {}

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

interface Pos extends ISummary {
  complex: Complex;
}

interface Complex extends ISummary {
  business_activity: ISummary;
}
