Class: Ibanity::Xs2a::Synchronization
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(customer_access_token:, **attributes) ⇒ Object
11
12
13
14
15
|
# File 'lib/ibanity/api/xs2a/synchronization.rb', line 11
def self.create(customer_access_token:, **attributes)
uri = Ibanity.xs2a_api_schema["customer"]["synchronizations"]
.sub("{synchronizationId}", "")
create_by_uri(uri: uri, resource_type: "synchronization", attributes: attributes, customer_access_token: customer_access_token)
end
|
.find(id:, customer_access_token:) ⇒ Object
17
18
19
20
21
|
# File 'lib/ibanity/api/xs2a/synchronization.rb', line 17
def self.find(id:, customer_access_token:)
uri = Ibanity.xs2a_api_schema["customer"]["synchronizations"]
.sub("{synchronizationId}", id)
find_by_uri(uri: uri, customer_access_token: customer_access_token)
end
|
.list(financial_institution_id:, account_information_access_request_id:, customer_access_token:, headers: nil, **query_params) ⇒ Object
4
5
6
7
8
9
|
# File 'lib/ibanity/api/xs2a/synchronization.rb', line 4
def self.list(financial_institution_id:, account_information_access_request_id:, customer_access_token:, headers: nil, **query_params)
uri = Ibanity.xs2a_api_schema["customer"]["financialInstitution"]["accountInformationAccessRequest"]["initialAccountTransactionsSynchronizations"]
.sub("{financialInstitutionId}", financial_institution_id)
.sub("{accountInformationAccessRequestId}", account_information_access_request_id)
list_by_uri(uri: uri, query_params: query_params, customer_access_token: customer_access_token, headers: )
end
|