Class: Finicity::V1::Request::InteractiveRefreshAccount
- Inherits:
-
Object
- Object
- Finicity::V1::Request::InteractiveRefreshAccount
- Extended by:
- HTTPClient::IncludeClient
- Includes:
- Logger
- Defined in:
- lib/finicity/v1/request/interactive_refresh_account.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Attributes.
-
#customer_id ⇒ Object
Attributes.
-
#token ⇒ Object
Attributes.
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(token, customer_id, account_id) ⇒ InteractiveRefreshAccount
constructor
Instance Methods.
- #interactive_refresh_account ⇒ Object
- #url ⇒ Object
Methods included from Logger
Constructor Details
#initialize(token, customer_id, account_id) ⇒ InteractiveRefreshAccount
Instance Methods
20 21 22 23 24 |
# 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 |
Instance Attribute Details
#account_id ⇒ Object
Attributes
13 14 15 |
# File 'lib/finicity/v1/request/interactive_refresh_account.rb', line 13 def account_id @account_id end |
#customer_id ⇒ Object
Attributes
13 14 15 |
# File 'lib/finicity/v1/request/interactive_refresh_account.rb', line 13 def customer_id @customer_id end |
#token ⇒ Object
Attributes
13 14 15 |
# File 'lib/finicity/v1/request/interactive_refresh_account.rb', line 13 def token @token end |
Instance Method Details
#headers ⇒ Object
30 31 32 33 34 35 36 |
# 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 ⇒ Object
26 27 28 |
# File 'lib/finicity/v1/request/interactive_refresh_account.rb', line 26 def interactive_refresh_account http_client.post(url, nil, headers) end |
#url ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# 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 |