Location struct representing a business location in Apple Business Registry.
Fields
id: Unique identifier for the locationbusiness_id: ID of the parent businessname: Location name (e.g., "Main Store", "Downtown Branch")address: Street addresslocality: City/localityadministrative_area: State/provincepostal_code: Postal/ZIP codecountry: ISO 3166-1 alpha-2 country codephone: Location-specific phone numberlatitude: Latitude coordinatelongitude: Longitude coordinatestatus: Location status ("active", "pending", "closed")created_at: ISO 8601 timestamp when the location was createdupdated_at: ISO 8601 timestamp when the location was last updated
Summary
Functions
Decode a location map into a %Location{} struct.
Encode a %Location{} struct into a map for API requests.
Types
@type t() :: %AppleBusinessRegistry.Location{ address: String.t() | nil, administrative_area: String.t() | nil, business_id: String.t() | nil, country: String.t() | nil, created_at: String.t() | nil, id: String.t() | nil, latitude: float() | nil, locality: String.t() | nil, longitude: float() | nil, name: String.t() | nil, phone: String.t() | nil, postal_code: String.t() | nil, status: String.t() | nil, updated_at: String.t() | nil }