Class: Ibanity::PontoConnect::Sandbox::FinancialInstitutionTransaction
- Inherits:
-
BaseResource
- Object
- OpenStruct
- BaseResource
- Ibanity::PontoConnect::Sandbox::FinancialInstitutionTransaction
show all
- Defined in:
- lib/ibanity/api/ponto_connect/sandbox/financial_institution_transaction.rb
Class Method Summary
collapse
-
.create(access_token:, financial_institution_id:, financial_institution_account_id:, **attributes) ⇒ Object
-
.find(access_token:, id:, financial_institution_id:, financial_institution_account_id:) ⇒ Object
-
.list(access_token:, financial_institution_account_id:, financial_institution_id:, **query_params) ⇒ Object
-
.update(access_token:, id:, financial_institution_id:, financial_institution_account_id:, **attributes) ⇒ Object
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(access_token:, financial_institution_id:, financial_institution_account_id:, **attributes) ⇒ Object
21
22
23
24
25
26
27
|
# File 'lib/ibanity/api/ponto_connect/sandbox/financial_institution_transaction.rb', line 21
def self.create(access_token:, financial_institution_id:, financial_institution_account_id:, **attributes)
uri = Ibanity.ponto_connect_api_schema["sandbox"]["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionTransactions"]
.sub("{financialInstitutionId}", financial_institution_id)
.sub("{financialInstitutionAccountId}", financial_institution_account_id)
.sub("{financialInstitutionTransactionId}", "")
create_by_uri(uri: uri, resource_type: "financialInstitutionTransaction", attributes: attributes, customer_access_token: access_token)
end
|
.find(access_token:, id:, financial_institution_id:, financial_institution_account_id:) ⇒ Object
13
14
15
16
17
18
19
|
# File 'lib/ibanity/api/ponto_connect/sandbox/financial_institution_transaction.rb', line 13
def self.find(access_token:, id:, financial_institution_id:, financial_institution_account_id:)
uri = Ibanity.ponto_connect_api_schema["sandbox"]["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionTransactions"]
.gsub("{financialInstitutionId}", financial_institution_id)
.gsub("{financialInstitutionAccountId}", financial_institution_account_id)
.gsub("{financialInstitutionTransactionId}", id)
find_by_uri(uri: uri, customer_access_token: access_token)
end
|
.list(access_token:, financial_institution_account_id:, financial_institution_id:, **query_params) ⇒ Object
5
6
7
8
9
10
11
|
# File 'lib/ibanity/api/ponto_connect/sandbox/financial_institution_transaction.rb', line 5
def self.list(access_token:, financial_institution_account_id:, financial_institution_id:, **query_params)
uri = Ibanity.ponto_connect_api_schema["sandbox"]["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionTransactions"]
.gsub("{financialInstitutionId}", financial_institution_id)
.gsub("{financialInstitutionAccountId}", financial_institution_account_id)
.gsub("{financialInstitutionTransactionId}", "")
list_by_uri(uri: uri, query_params: query_params, customer_access_token: access_token)
end
|
.update(access_token:, id:, financial_institution_id:, financial_institution_account_id:, **attributes) ⇒ Object
29
30
31
32
33
34
35
|
# File 'lib/ibanity/api/ponto_connect/sandbox/financial_institution_transaction.rb', line 29
def self.update(access_token:, id:, financial_institution_id:, financial_institution_account_id:, **attributes)
uri = Ibanity.ponto_connect_api_schema["sandbox"]["financialInstitution"]["financialInstitutionAccount"]["financialInstitutionTransactions"]
.sub("{financialInstitutionId}", financial_institution_id)
.sub("{financialInstitutionAccountId}", financial_institution_account_id)
.sub("{financialInstitutionTransactionId}", id)
update_by_uri(uri: uri, resource_type: "financialInstitutionTransaction", attributes: attributes, customer_access_token: access_token)
end
|