Add method to parse bank transactions as JSON

This implements parsing of the Account Information Service format as
defined in the Berlin Group Group NextGenPSD2 XS2A Framework, which
is widely used across various European banks.

This is a first step to replace the current bank import features with
a standardized JSON interface.
This commit is contained in:
Patrick Gansterer 2021-02-05 12:19:05 +01:00
parent 226c11737f
commit 4752a0aaa9
3 changed files with 471 additions and 0 deletions

View file

@ -24,4 +24,8 @@ class BankAccount < ApplicationRecord
end
count
end
def last_transaction_date
bank_transactions.order(date: :desc).first&.date
end
end