Class: Ibanity::Xs2a::Sandbox::FinancialInstitutionAccount
- Inherits:
-
BaseResource
- Object
- OpenStruct
- BaseResource
- Ibanity::Xs2a::Sandbox::FinancialInstitutionAccount
show all
- Defined in:
- lib/ibanity/api/xs2a/sandbox/financial_institution_account.rb
Class Method Summary
collapse
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
Class Method Details
.create(financial_institution_user_id:, financial_institution_id:, idempotency_key: nil, **attributes) ⇒ Object
5
6
7
8
9
10
11
12
|
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_account.rb', line 5
def self.create(financial_institution_user_id:, financial_institution_id:, idempotency_key: nil, **attributes)
path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccounts"]
.gsub("{financialInstitutionId}", financial_institution_id)
.gsub("{financialInstitutionUserId}", financial_institution_user_id)
.gsub("{financialInstitutionAccountId}", "")
uri = Ibanity.client.build_uri(path)
create_by_uri(uri: uri, resource_type: "financialInstitutionAccount", attributes: attributes, idempotency_key: idempotency_key)
end
|
.delete(id:, financial_institution_user_id:, financial_institution_id:) ⇒ Object
32
33
34
35
36
37
38
39
|
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_account.rb', line 32
def self.delete(id:, financial_institution_user_id:, financial_institution_id:)
path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccounts"]
.gsub("{financialInstitutionId}", financial_institution_id)
.gsub("{financialInstitutionUserId}", financial_institution_user_id)
.gsub("{financialInstitutionAccountId}", id)
uri = Ibanity.client.build_uri(path)
destroy_by_uri(uri: uri)
end
|
.find(id:, financial_institution_user_id:, financial_institution_id:) ⇒ Object
23
24
25
26
27
28
29
30
|
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_account.rb', line 23
def self.find(id:, financial_institution_user_id:, financial_institution_id:)
path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccounts"]
.gsub("{financialInstitutionId}", financial_institution_id)
.gsub("{financialInstitutionUserId}", financial_institution_user_id)
.gsub("{financialInstitutionAccountId}", id)
uri = Ibanity.client.build_uri(path)
find_by_uri(uri: uri)
end
|
.list(financial_institution_id:, financial_institution_user_id:, **query_params) ⇒ Object
14
15
16
17
18
19
20
21
|
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_account.rb', line 14
def self.list(financial_institution_id:, financial_institution_user_id:, **query_params)
path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccounts"]
.gsub("{financialInstitutionId}", financial_institution_id)
.gsub("{financialInstitutionUserId}", financial_institution_user_id)
.gsub("{financialInstitutionAccountId}", "")
uri = Ibanity.client.build_uri(path)
list_by_uri(uri: uri, query_params: query_params)
end
|