Packages

Production-grade Elixir client for the Token.io Open Banking platform (Payments v2, VRP, AIS, Banks, Refunds, Payouts, Settlement, Transfers, Tokens, Token Requests, Account on File, Sub-TPPs, Auth Keys, Reports, Webhooks, Verification).

Current section

Files

Jump to
tokenio_client lib tokenio client.ex
Raw

lib/tokenio/client.ex

defmodule TokenioClient.Client do
@moduledoc """
Root Token.io SDK client struct.
Obtain one via `TokenioClient.new/1` and pass it to any API function.
The struct itself is an opaque value — do not access its fields directly.
"""
alias TokenioClient.HTTP.Client, as: HTTP
@type t :: %__MODULE__{http: HTTP.t()}
@enforce_keys [:http]
defstruct [:http]
@doc false
@spec new(keyword()) :: t()
def new(opts) do
%__MODULE__{http: HTTP.new(opts)}
end
end