From 5a84b18a4aefb1df7ad5d12bcaed16927f701fc9 Mon Sep 17 00:00:00 2001 From: DirgoSalga Date: Thu, 26 Sep 2024 01:49:31 +0200 Subject: [PATCH] Remove functions normalizeAccount and CalculateStartingBalance Since no changes were made to the default functions, they should be deleted from this specific bank (SPK_WORMS_ALZEY_RIED_MALADE51WOR). --- .../banks/spk-worms-alzey-ried-malade51wor.js | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/app-gocardless/banks/spk-worms-alzey-ried-malade51wor.js b/src/app-gocardless/banks/spk-worms-alzey-ried-malade51wor.js index 130b4a6d9..1ab0d224e 100644 --- a/src/app-gocardless/banks/spk-worms-alzey-ried-malade51wor.js +++ b/src/app-gocardless/banks/spk-worms-alzey-ried-malade51wor.js @@ -11,18 +11,6 @@ export default { accessValidForDays: 90, - normalizeAccount(account) { - return { - account_id: account.id, - institution: account.institution, - mask: account.iban.slice(-4), - iban: account.iban, - name: [account.name, printIban(account)].join(' '), - official_name: account.product, - type: 'checking', - }; - }, - normalizeTransaction(transaction, _booked) { const date = transaction.bookingDate || transaction.valueDate; if (!date) { @@ -39,14 +27,4 @@ export default { date: transaction.bookingDate || transaction.valueDate, }; }, - - calculateStartingBalance(sortedTransactions = [], balances = []) { - const currentBalance = balances.find( - (balance) => 'interimAvailable' === balance.balanceType, - ); - - return sortedTransactions.reduce((total, trans) => { - return total - amountToInteger(trans.transactionAmount.amount); - }, amountToInteger(currentBalance.balanceAmount.amount)); - }, };