Validated client configuration shared across ExQuickBooks modules.
Summary
Functions
Returns the supported QuickBooks environments.
Validates client options and returns a configured client struct.
Returns the NimbleOptions schema for client validation.
Types
@type environment() :: :sandbox | :production
@type t() :: %ExQuickBooks.Client{ access_token: String.t() | nil, client_id: String.t(), client_secret: String.t(), environment: environment(), minor_version: pos_integer() | nil, realm_id: String.t(), redirect_uri: String.t(), refresh_token: String.t() | nil }
Functions
@spec environments() :: [environment()]
Returns the supported QuickBooks environments.
@spec new(keyword()) :: {:ok, t()} | {:error, ExQuickBooks.Error.t()}
Validates client options and returns a configured client struct.
@spec schema() :: keyword()
Returns the NimbleOptions schema for client validation.