class Finicity::V1::Request::InteractiveRefreshAccount
Attributes
account_id[RW]
Attributes
customer_id[RW]
Attributes
token[RW]
Attributes
Public Class Methods
new(token, customer_id, account_id)
click to toggle source
Instance Methods
# File lib/finicity/v1/request/interactive_refresh_account.rb, line 20 def initialize(token, customer_id, account_id) @account_id = account_id @customer_id = customer_id @token = token end
Public Instance Methods
headers()
click to toggle source
# File lib/finicity/v1/request/interactive_refresh_account.rb, line 30 def headers { 'Finicity-App-Key' => ::Finicity.config.app_key, 'Finicity-App-Token' => token, 'Content-Type' => 'application/xml' } end
interactive_refresh_account()
click to toggle source
# File lib/finicity/v1/request/interactive_refresh_account.rb, line 26 def interactive_refresh_account http_client.post(url, nil, headers) end
url()
click to toggle source
# File lib/finicity/v1/request/interactive_refresh_account.rb, line 38 def url ::URI.join( ::Finicity.config.base_url, 'v1/', 'customers/', "#{customer_id}/", 'accounts/', "#{account_id}" ) end