Plaid.Utils (plaid v2.5.0) View Source
Utility functions.
Link to this section Summary
Functions
Handles Plaid response and maps to the correct data structure.
Maps an endpoint's response to the corresponding internal data structure.
Link to this section Types
Specs
endpoint() :: atom()
Specs
Link to this section Functions
Specs
handle_resp(
{:ok, HTTPoison.Response.t()} | {:error, HTTPoison.Error.t()},
endpoint()
) :: {:ok, any()} | {:error, Plaid.Error.t() | HTTPoison.Error.t()}
Handles Plaid response and maps to the correct data structure.
Specs
Maps an endpoint's response to the corresponding internal data structure.