taxjar v0.1.1 Taxjar.Config

Interfacing with the Taxjar config should be done via this module.

Taxjar can be configured in your config.exs like so:

config :taxjar, Taxjar.Config,

api_token: System.get_env("TAXJAR_API_TOKEN")

Link to this section Summary

Functions

Gets the current scope of a process

Get Taxjar configuration values

Allows runtime override of request configuration like scheme, host, and port

Set Taxjar configuration values

Link to this section Types

Link to this type scope()
scope() :: :global | :process

Link to this section Functions

Link to this function current_scope()
current_scope() :: scope()

Gets the current scope of a process.

Link to this function get()
get() :: Keyword.t() | nil

Get Taxjar configuration values.

Link to this function get(atom)
get(scope()) :: Keyword.t() | nil
Link to this function request_config(config_overrides \\ [])
request_config(Keyword.t()) :: Keyword.t()

Allows runtime override of request configuration like scheme, host, and port.

Link to this function set(config)
set(Keyword.t()) :: :ok

Set Taxjar configuration values.

Link to this function set(atom, config)
set(scope(), Keyword.t()) :: :ok