Class: Ibanity::Xs2a::PendingTransaction
- Inherits:
-
BaseResource
- Object
- OpenStruct
- BaseResource
- Ibanity::Xs2a::PendingTransaction
- Defined in:
- lib/ibanity/api/xs2a/pending_transaction.rb
Class Method Summary collapse
- .find(id:, financial_institution_id:, account_id:, customer_access_token:) ⇒ Object
- .list(financial_institution_id: nil, account_id: nil, synchronization_id: nil, customer_access_token:, headers: nil, **query_params) ⇒ Object
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
.find(id:, financial_institution_id:, account_id:, customer_access_token:) ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/ibanity/api/xs2a/pending_transaction.rb', line 18 def self.find(id:, financial_institution_id:, account_id:, customer_access_token:) uri = Ibanity.xs2a_api_schema["customer"]["financialInstitution"]["account"]["pendingTransactions"] .sub("{financialInstitutionId}", financial_institution_id) .sub("{accountId}", account_id) .sub("{pendingTransactionId}", id) find_by_uri(uri: uri, customer_access_token: customer_access_token) end |
.list(financial_institution_id: nil, account_id: nil, synchronization_id: nil, customer_access_token:, headers: nil, **query_params) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/ibanity/api/xs2a/pending_transaction.rb', line 4 def self.list(financial_institution_id: nil, account_id: nil, synchronization_id: nil, customer_access_token:, headers: nil, **query_params) uri = if synchronization_id Ibanity.xs2a_api_schema["customer"]["synchronization"]["updatedPendingTransactions"] .sub("{synchronizationId}", synchronization_id) else Ibanity.xs2a_api_schema["customer"]["financialInstitution"]["account"]["pendingTransactions"] .sub("{financialInstitutionId}", financial_institution_id) .sub("{accountId}", account_id) .sub("{pendingTransactionId}", "") end list_by_uri(uri: uri, query_params: query_params, customer_access_token: customer_access_token, headers: headers) end |