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
bank_name()
Specs
bank_name() :: binary()
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() }
get_bank_params()
Specs
get_bank_params() :: %{content_service_key: pos_integer()}
get_report_by_request_code()
Specs
get_report_by_request_code() :: %{request_code: String.t()}
routing_number()
Specs
routing_number() :: binary()
verify_user_params()
Specs
Link to this section Functions
create_request(params)
Specs
create_request(create_request_params()) :: {:ok, map()} | {:error, any()}
Create a request and get back a request ID
create_request_and_return_token(params)
Specs
create_request_and_return_token(create_request_params()) :: {:ok, map()} | {:error, any()}
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.
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.
get_user(state)
Specs
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
list_all_banks()
search_banks_by_country(country_code \\ "US", opts \\ [])
Search bank by providing country code
search_banks_by_name(bank_name)
Specs
Search bank by providing partial name
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
verify_identity(params)
Specs
verify_identity(verify_user_params()) :: {:ok, map()} | {:error, any()}
Perform user verification on DLMatch