Class: Ibanity::PontoConnect::Sandbox::FinancialInstitutionTransaction

Inherits:
BaseResource
  • Object
show all
Defined in:
lib/ibanity/api/ponto_connect/sandbox/financial_institution_transaction.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(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}", )
    .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}", )
    .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}", )
    .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}", )
    .sub("{financialInstitutionTransactionId}", id)
  update_by_uri(uri: uri, resource_type: "financialInstitutionTransaction", attributes: attributes, customer_access_token: access_token)
end