Class: Ibanity::Xs2a::Sandbox::FinancialInstitutionHolding

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/ibanity/api/xs2a/sandbox/financial_institution_holding.rb

Class Method Summary collapse

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

.create(financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:, idempotency_key: nil, **attributes) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_holding.rb', line 5

def self.create(financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:, idempotency_key: nil, **attributes)
  path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionHoldings"]
    .gsub("{financialInstitutionId}", financial_institution_id)
    .gsub("{financialInstitutionUserId}", financial_institution_user_id)
    .gsub("{financialInstitutionAccountId}", )
    .gsub("{financialInstitutionHoldingId}", "")
  uri = Ibanity.client.build_uri(path)
  create_by_uri(uri: uri, resource_type: "financialInstitutionHolding", attributes: attributes, idempotency_key: idempotency_key)
end

.delete(id:, financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:) ⇒ Object



35
36
37
38
39
40
41
42
43
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_holding.rb', line 35

def self.delete(id:, financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:)
  path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionHoldings"]
    .gsub("{financialInstitutionId}", financial_institution_id)
    .gsub("{financialInstitutionUserId}", financial_institution_user_id)
    .gsub("{financialInstitutionAccountId}", )
    .gsub("{financialInstitutionHoldingId}", id)
  uri = Ibanity.client.build_uri(path)
  destroy_by_uri(uri: uri)
end

.find(id:, financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:) ⇒ Object



25
26
27
28
29
30
31
32
33
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_holding.rb', line 25

def self.find(id:, financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:)
  path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionHoldings"]
    .gsub("{financialInstitutionId}", financial_institution_id)
    .gsub("{financialInstitutionUserId}", financial_institution_user_id)
    .gsub("{financialInstitutionAccountId}", )
    .gsub("{financialInstitutionHoldingId}", id)
  uri = Ibanity.client.build_uri(path)
  find_by_uri(uri: uri)
end

.list(financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:, **query_params) ⇒ Object



15
16
17
18
19
20
21
22
23
# File 'lib/ibanity/api/xs2a/sandbox/financial_institution_holding.rb', line 15

def self.list(financial_institution_user_id:, financial_institution_id:, financial_institution_account_id:, **query_params)
  path = Ibanity.sandbox_api_schema["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionHoldings"]
    .gsub("{financialInstitutionId}", financial_institution_id)
    .gsub("{financialInstitutionUserId}", financial_institution_user_id)
    .gsub("{financialInstitutionAccountId}", )
    .gsub("{financialInstitutionHoldingId}", "")
  uri = Ibanity.client.build_uri(path)
  list_by_uri(uri: uri, query_params: query_params)
end