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

export interface IBusinessActivityRawResponse {
  id: string;
  name: string;
  economic_code: string;
  fiscal_id: string;
  partner_token: string;
  guild: ISummary;
  created_at: string;
  invoice_number_sequence: number;
  license_info: LicenseInfo;
}
export interface IBusinessActivityResponse extends IBusinessActivityRawResponse {}

export interface IBusinessActivityRequest {
  economic_code: string;
  fiscal_id: string;
  partner_token: string;
  name: string;
  invoice_number_sequence: number;
}

interface LicenseInfo {
  id: string;
  starts_at: string;
  expires_at: string;
  accounts_limit: number;
  allocated_account_count: number;
}
