import { CustomerType } from '@/shared/localEnum/constants/customerTypes';
import { ICustomer } from './customer';
import { IPayment } from './payment';
import { IPosOrderItem } from './types';

export interface IPosOrderRequest {
  total_amount: number;
  invoice_date: string;
  payments: IPayment;
  items: IPosOrderItem[];
  notes?: string;
  customer_type?: CustomerType;
  customer_id?: string;
  customer?: ICustomer;
}

export interface IPosOrderRawResponse {
  id?: string;
  code?: string;
}
export interface IPosOrderResponse extends IPosOrderRawResponse {}
