import { IServiceModel } from '@fleio-api/billing/model/service.model';
import { FleioId } from '@fleio-api/base-model/base-fleio-object.model';

export interface EnduserInvoicesDetails {
  invoices_count: number;
  unpaid_invoices_count: number;
  paid_invoices_count: number;
  unpaid_amount: string;
  unpaid_amount_currency: string;
  unpaid_invoice_id?: FleioId;
}

export interface EnduserBillingSummaryModel {
  validate_credit_card: boolean;
  account_under_review: boolean;
  credits: Array<{
    client: number;
    currency: string;
    amount: number;
    uptodate_credit: number;
  }>;
  uptodate_credit: number;
  billing_currency: string;
  services_count: number;
  invoices_details: EnduserInvoicesDetails;
  latest_data_from?: Date;
}
