Class: Ibanity::IsabelConnect::Account
- Inherits:
-
BaseResource
- Object
- OpenStruct
- BaseResource
- Ibanity::IsabelConnect::Account
- Defined in:
- lib/ibanity/api/isabel_connect/account.rb
Class Method Summary collapse
- .find(id:, access_token:, headers: nil) ⇒ Object
- .list(access_token:, headers: nil, **query_params) ⇒ Object
Methods inherited from BaseResource
create_by_uri, create_file_by_uri, destroy_by_uri, find_by_uri, find_file_by_uri, find_raw_by_uri, #initialize, list_by_uri, #reload!, update_by_uri
Constructor Details
This class inherits a constructor from Ibanity::BaseResource
Class Method Details
.find(id:, access_token:, headers: nil) ⇒ Object
9 10 11 12 |
# File 'lib/ibanity/api/isabel_connect/account.rb', line 9 def self.find(id:, access_token:, headers: nil) uri = Ibanity.isabel_connect_api_schema["accounts"].sub("{accountId}", id) find_by_uri(uri: uri, customer_access_token: access_token, headers: headers) end |
.list(access_token:, headers: nil, **query_params) ⇒ Object
4 5 6 7 |
# File 'lib/ibanity/api/isabel_connect/account.rb', line 4 def self.list(access_token:, headers: nil, **query_params) uri = Ibanity.isabel_connect_api_schema["accounts"].sub("{accountId}", "") list_by_uri(uri: uri, query_params: query_params, customer_access_token: access_token, headers: headers) end |