export interface CountryRef {
  code: string
  name: string
}

export interface Address {
  street: string
  zip: string
  city: string
  // when present, can be either a raw code (legacy) or an object with code+localized name
  country?: string | CountryRef | null
  // optional Swiss canton code (e.g. 'ZH', 'BE') when applicable
  canton?: string | null
  foreign: boolean
}

export type PartialAddress = Partial<Address>
