Skip to content

Commit

Permalink
ISYBANK_ITBBITMM should prefer valueDate over bookingDate (#510)
Browse files Browse the repository at this point in the history
* prefer valueDate for isybank-itbbitmm

* note

* fix
  • Loading branch information
matt-fidd authored Dec 16, 2024
1 parent 645958b commit d637a69
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app-gocardless/bank-factory.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import IngIngbrobu from './banks/ing-ingbrobu.js';
import IngIngddeff from './banks/ing-ingddeff.js';
import IngPlIngbplpw from './banks/ing-pl-ingbplpw.js';
import IntegrationBank from './banks/integration-bank.js';
import IsyBankItbbitmm from './banks/isybank-itbbitmm.js';
import KBCkredbebb from './banks/kbc_kredbebb.js';
import MbankRetailBrexplpw from './banks/mbank-retail-brexplpw.js';
import NationwideNaiaGB21 from './banks/nationwide-naiagb21.js';
Expand Down Expand Up @@ -46,6 +47,7 @@ export const banks = [
IngIngbrobu,
IngIngddeff,
IngPlIngbplpw,
IsyBankItbbitmm,
KBCkredbebb,
MbankRetailBrexplpw,
NationwideNaiaGB21,
Expand Down
16 changes: 16 additions & 0 deletions src/app-gocardless/banks/isybank-itbbitmm.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Fallback from './integration-bank.js';

/** @type {import('./bank.interface.js').IBank} */
export default {
...Fallback,

institutionIds: ['ISYBANK_ITBBITMM'],

// It has been reported that valueDate is more accurate than booking date
// when it is provided
normalizeTransaction(transaction, booked) {
transaction.bookingDate = transaction.valueDate ?? transaction.bookingDate;

return Fallback.normalizeTransaction(transaction, booked);
},
};
6 changes: 6 additions & 0 deletions upcoming-release-notes/510.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
category: Enhancements
authors: [matt-fidd]
---

GoCardless: `ISYBANK_ITBBITMM` should prefer valueDate over bookingDate

0 comments on commit d637a69

Please sign in to comment.