Configuration management for clearbank.
Reads from Application.get_env/2 and validates with NimbleOptions.
Summary
Functions
Returns the base URL for the given environment.
Builds the default ClearBank.Client from application config.
Validates and returns application config as a keyword list.
Raises NimbleOptions.ValidationError on invalid config.
Resolves the private key binary from either :private_key or :private_key_path.
Returns the NimbleOptions schema for introspection and documentation.
Functions
@spec base_url(:simulation | :production) :: String.t()
Returns the base URL for the given environment.
@spec default_client() :: ClearBank.Client.t()
Builds the default ClearBank.Client from application config.
@spec fetch!() :: keyword()
Validates and returns application config as a keyword list.
Raises NimbleOptions.ValidationError on invalid config.
Resolves the private key binary from either :private_key or :private_key_path.
@spec schema() :: NimbleOptions.t()
Returns the NimbleOptions schema for introspection and documentation.