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

export interface IPosInfoRawResponse {
  name: string;
  complex: Complex;
  businessActivity: BusinessActivity;
  guild: Guild;
  license_info: LicenseInfo;
  partner: Partner;
}

export interface IPosInfoResponse extends IPosInfoRawResponse {}

export interface IPosAccessibleRawResponse extends ISummary {
  complex: Complex;
}
export interface IPosAccessibleResponse extends IPosAccessibleRawResponse {}

interface Complex extends ISummary {
  business_activity: ISummary;
}

interface LicenseInfo {
  expires_at: string;
  license_id: string;
}

interface Guild extends ISummary {
  code: string;
}

interface Partner extends ISummary {
  code: string;
  logo_url?: string;
}

interface BusinessActivity extends ISummary {
  economic_code: string;
}

interface Complex extends ISummary {
  branch_code: string;
}
