/** * Origin country from P2G API GET /countries/origins. * Used for address/quote flows (e.g. country select options). */ export interface ServiceCountryMetadata { group: string; postcodeValidator: string; postcodeAutocomplete: boolean; class: string; quoteRequiresPostcode: boolean; position: number; dimensions?: string; } export interface ServiceCountryRedirect { iso2Code: string; iso3Code: string; postcodeRegex: string; } export interface ServiceCountry { name: string; iso2Code: string; iso3Code: string; metadata: ServiceCountryMetadata; redirects: ServiceCountryRedirect[]; } /** GET /parcel2go-shipping/v1/countries/origins response. */ export interface CountriesOriginsResponse { countries: ServiceCountry[]; }