import ISummary from '@/core/models/summary';
import { ISaleInvoiceFullRawResponse } from '@/domains/consumer/models';
import { CustomerType } from '@/shared/localEnum/constants/customerTypes';
import { CustomerIndividual, CustomerLegal } from './io';

export interface ICustomerSaleInvoicesRawResponse extends ISaleInvoiceFullRawResponse {}
export interface ICustomerSaleInvoicesResponse extends ICustomerSaleInvoicesRawResponse {}

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

interface Account {
  username: string;
}

interface Pos extends ISummary {
  complex: Complex;
}

interface Complex extends ISummary {
  business_activity: ISummary;
}

interface Payment {
  amount: string;
  paid_at: string;
  payment_method: string;
}

interface SaleInvoiceItem {
  id: string;
  good: ISummary;
}

interface Customer {
  id: string;
  type: CustomerType;
  customer_legal?: CustomerLegal;
  customer_individual?: CustomerIndividual;
}

// interface CustomerIndividual {
//   id: string;
//   first_name: string;
//   last_name: string;
// }

// interface CustomerLegal {
//   id: string;
//   name: string;
// }

interface UnknownCustomer {
  name: string;
  national_id: string;
}
