taxjar v0.1.1 Taxjar

TODO: Fill this in

Link to this section Summary

Functions

Configures the Taxjar application at runtime

Executes a request for a given Taxjar.Query struct

Link to this section Types

Link to this type response()
response() :: any()

Link to this section Functions

Link to this function configure(config)
Link to this function configure(scope, config)
configure(:global | :process, Keyword.t()) :: :ok

Configures the Taxjar application at runtime.

Example

# Set the api_token to be used globally
:ok = Taxjar.configure(api_token: "asdf1234hjkl7890")

# Set the api_token to be used for requests from this process only
:ok = Taxjar.configure(:process, api_token: "asdf1234hjkl7890")
Link to this function request(query, config_overrides \\ [])
request(Taxjar.Query.t(), Keyword.t()) ::
  {:ok, response()} |
  {:error, Taxjar.Error.t()}

Executes a request for a given Taxjar.Query struct.