ExDecisionLogic (exdecisionlogic v0.1.1)

Documentation for ExDecisionLogic.

Link to this section Summary

Functions

Create a request and get back a request ID

Get bank based on parameters passed. We take advantage of pattern matching to select which type of search to run.

Get an accounts transaction data from a request token. This performs a GetReportDetailFromRequestCode8 request via SOAP.

Get users from Decision Logic A requirement for making DecisionLogic calls is the siteUserGuid This function is used to get all active users on the account and then we can extract the GUID for the one specified in the config

Search bank by providing country code

Search bank by providing partial name

Search bank by providing routing_number

Perform user verification on DLMatch

Link to this section Types

Specs

bank_name() :: binary()
Link to this type

create_request_params()

Specs

create_request_params() :: %{
  account_number: String.t(),
  customer_service_id: pos_integer(),
  customer_id: String.t(),
  email: String.t(),
  first_name: String.t(),
  last_name: String.t(),
  routing_number: routing_number()
}
Link to this type

get_bank_params()

Specs

get_bank_params() :: %{content_service_key: pos_integer()}
Link to this type

get_report_by_request_code()

Specs

get_report_by_request_code() :: %{request_code: String.t()}
Link to this type

routing_number()

Specs

routing_number() :: binary()
Link to this type

verify_user_params()

Specs

verify_user_params() :: %{
  city: String.t(),
  customer_id: pos_integer(),
  first_name: String.t(),
  last_name: String.t(),
  phone_number: String.t(),
  ssn: String.t(),
  state: String.t(),
  street: String.t(),
  zip: String.t()
}

Link to this section Functions

Link to this function

create_request(params)

Specs

create_request(create_request_params()) :: {:ok, map()} | {:error, any()}

Create a request and get back a request ID

Link to this function

create_request_and_return_token(params)

Specs

create_request_and_return_token(create_request_params()) ::
  {:ok, map()} | {:error, any()}
Link to this function

get_bank(params)

Specs

get_bank(get_bank_params()) :: {:ok, map()} | {:error, any()}

Get bank based on parameters passed. We take advantage of pattern matching to select which type of search to run.

Link to this function

get_report_by_request_code(params)

Specs

get_report_by_request_code(get_report_by_request_code()) ::
  {:ok, map()} | {:error, any()}

Get an accounts transaction data from a request token. This performs a GetReportDetailFromRequestCode8 request via SOAP.

Link to this function

get_user(state)

Specs

get_user(map()) :: {:ok, list()} | {:error, term()}

Get users from Decision Logic A requirement for making DecisionLogic calls is the siteUserGuid This function is used to get all active users on the account and then we can extract the GUID for the one specified in the config

Link to this function

list_all_banks()

See ExDecisionLogic.search_banks_by_country/0.

Link to this function

search_banks_by_country(country_code \\ "US", opts \\ [])

Search bank by providing country code

Link to this function

search_banks_by_name(bank_name)

Specs

search_banks_by_name(bank_name()) :: {:ok, map()} | {:error, any()}

Search bank by providing partial name

Link to this function

search_banks_by_routing_number(routing_number)

Specs

search_banks_by_routing_number(routing_number()) ::
  {:ok, map()} | {:error, any()}

Search bank by providing routing_number

Link to this function

verify_identity(params)

Specs

verify_identity(verify_user_params()) :: {:ok, map()} | {:error, any()}

Perform user verification on DLMatch