BankingCircle.Environment (banking_circle v1.0.0)

Copy Markdown View Source

Resolves Banking Circle Connect's environment-specific base URLs.

Banking Circle Connect uses entirely separate hosts for sandbox and production, each with its own auth host and its own client certificate / credential set. Mixing them up is a common integration mistake, so this module is the single source of truth for host resolution.

Summary

Types

t()

@type t() :: :sandbox | :production

Functions

api_base_url(atom)

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

auth_base_url(atom)

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

validate!(env)

@spec validate!(term()) :: t()