Skip to content

Commit

Permalink
more linting
Browse files Browse the repository at this point in the history
  • Loading branch information
circle3451 authored Jan 23, 2024
1 parent 7d64c14 commit f4e327e
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/app-gocardless/banks/ANDELSKASSEN_FALLESKASSEN_FAELDKK1.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
import {
printIban,
amountToInteger,
sortByBookingDateOrValueDate
} from '../utils.js'
sortByBookingDateOrValueDate,
} from '../utils.js';

/** @type {import('./bank.interface.js').IBank} */
export default {
institutionIds: ['ANDELSKASSEN_FALLESKASSEN_FAELDKK1'],

normalizeAccount (account) {
normalizeAccount(account) {
return {
account_id: account.resourceId,
institution: account.institution,
mask: account.iban.slice(-4),
iban: account.iban,
name: [account.name, printIban(account)].join(' '),
official_name: account.product,
type: 'checking'
}
type: 'checking',
};
},

/**
Expand All @@ -28,16 +28,16 @@ export default {
*
* [0]: https://nordigen.zendesk.com/hc/en-gb/articles/7899367372829-valueDate-and-bookingDate-for-transactions
*/
normalizeTransaction (transaction, _booked) {
normalizeTransaction(transaction, _booked) {
return {
...transaction,
date: transaction.bookingDate,
remittanceInformationUnstructured: transaction.additionalInformation
}
remittanceInformationUnstructured: transaction.additionalInformation,
};
},

sortTransactions (transactions = []) {
return sortByBookingDateOrValueDate(transactions)
sortTransactions(transactions = []) {
return sortByBookingDateOrValueDate(transactions);
},

/**
Expand All @@ -48,7 +48,7 @@ export default {
* As a current balance we use `interimBooked` balance type because
* it includes transaction placed during current day
*/
calculateStartingBalance (sortedTransactions = [], balances = []) {
calculateStartingBalance(sortedTransactions = [], balances = []) {
const currentBalance = balances.find(
balance => 'closingBooked' === balance.balanceType

Check failure on line 53 in src/app-gocardless/banks/ANDELSKASSEN_FALLESKASSEN_FAELDKK1.js

View workflow job for this annotation

GitHub Actions / lint

Replace `balance·=>·'closingBooked'·===·balance.balanceType` with `(balance)·=>·'closingBooked'·===·balance.balanceType,`
)

Check failure on line 54 in src/app-gocardless/banks/ANDELSKASSEN_FALLESKASSEN_FAELDKK1.js

View workflow job for this annotation

GitHub Actions / lint

Insert `;`
Expand Down

0 comments on commit f4e327e

Please sign in to comment.