Exact.Region (exact_online v0.1.0)

Copy Markdown View Source

Maps Exact Online regions to their API host.

Exact Online runs a separate installation per country. An account created in the Dutch installation cannot be reached through the German host, so the region has to match the customer's account.

iex> Exact.Region.base_url(:nl)
"https://start.exactonline.nl"

Pass base_url: to Exact.Client.new/1 directly if you need a host that is not listed here.

Summary

Functions

Returns the base URL for region.

All supported regions.

Types

t()

@type t() :: :nl | :be | :de | :uk | :fr | :es | :us

Functions

base_url(region)

@spec base_url(t()) :: String.t()

Returns the base URL for region.

Raises ArgumentError for an unknown region.

regions()

@spec regions() :: [t()]

All supported regions.