class Finicity::Resources::Account
Public Instance Methods
activate(institution_id, accounts)
click to toggle source
# File lib/finicity/resources/account.rb, line 25 def activate(institution_id, accounts) endpoint = "/aggregation/v2/customers/#{customer_id}/institutions/#{institution_id}/accounts" request(:put, endpoint, body: { accounts: accounts }) end
add_all(institution_id, credentials)
click to toggle source
# File lib/finicity/resources/account.rb, line 4 def add_all(institution_id, credentials) endpoint = "/aggregation/v1/customers/#{customer_id}/institutions/#{institution_id}/accounts/addall" body = { credentials: credentials } request(:post, endpoint, body: body) end
add_all_mfa(institution_id, mfa_session, questions)
click to toggle source
# File lib/finicity/resources/account.rb, line 11 def add_all_mfa(institution_id, mfa_session, questions) endpoint = "/aggregation/v1/customers/#{customer_id}/institutions/#{institution_id}/accounts/addall/mfa" body = { mfa_challenges: { questions: questions } } headers = { "MFA-Session" => mfa_session } request(:post, endpoint, body: body, headers: headers) end
credentials(account_id)
click to toggle source
# File lib/finicity/resources/account.rb, line 58 def credentials(account_id) endpoint = "/aggregation/v1/customers/#{customer_id}/accounts/#{account_id}/loginForm" request(:get, endpoint) end
delete(account_id)
click to toggle source
# File lib/finicity/resources/account.rb, line 52 def delete(account_id) endpoint = "/aggregation/v1/customers/#{customer_id}/accounts/#{account_id}" request(:delete, endpoint) end
get(account_id)
click to toggle source
# File lib/finicity/resources/account.rb, line 46 def get(account_id) endpoint = "/aggregation/v1/customers/#{customer_id}/accounts/#{account_id}" request(:get, endpoint) end
list()
click to toggle source
# File lib/finicity/resources/account.rb, line 19 def list endpoint = "/aggregation/v1/customers/#{customer_id}/accounts" request(:get, endpoint) end
owner_verification(account_id)
click to toggle source
# File lib/finicity/resources/account.rb, line 71 def owner_verification(account_id) endpoint = "/decisioning/v1/customers/#{customer_id}/accounts/#{account_id}/owner" request(:get, endpoint) end
owner_verification_mfa(account_id, mfa_session, questions)
click to toggle source
# File lib/finicity/resources/account.rb, line 77 def owner_verification_mfa(account_id, mfa_session, questions) endpoint = "/decisioning/v1/customers/#{customer_id}/accounts/#{account_id}/owner/mfa" body = { questions: questions } headers = { "MFA-Session" => mfa_session } request(:post, endpoint, body: body, headers: headers) end
refresh(institution_login_id)
click to toggle source
# File lib/finicity/resources/account.rb, line 31 def refresh(institution_login_id) endpoint = "/aggregation/v1/customers/#{customer_id}/institutionLogins/#{institution_login_id}/accounts" request(:post, endpoint) end
refresh_mfa(institution_login_id, mfa_session, questions)
click to toggle source
# File lib/finicity/resources/account.rb, line 37 def refresh_mfa(institution_login_id, mfa_session, questions) endpoint = "/aggregation/v1/customers/#{customer_id}/institutionLogins/#{institution_login_id}/accounts/mfa" body = { questions: questions } headers = { "MFA-Session" => mfa_session } request(:post, endpoint, body: body, headers: headers) end
update_credentials(institution_login_id, credentials)
click to toggle source
# File lib/finicity/resources/account.rb, line 64 def update_credentials(institution_login_id, credentials) endpoint = "/aggregation/v1/customers/#{customer_id}/institutionLogins/#{institution_login_id}" body = { login_form: credentials } request(:put, endpoint, body: body) end