From b1bf7ee7cdd1f2e2fb77f5a883fbc065fe6c7337 Mon Sep 17 00:00:00 2001 From: Matt Fiddaman Date: Sat, 9 Nov 2024 09:26:49 +0000 Subject: [PATCH] add support for `1822-DIREKT-HELADEF1822` transaction information (#484) --- .../banks/1822-direkt-heladef1822.js | 16 ++++++++++++++++ upcoming-release-notes/484.md | 6 ++++++ 2 files changed, 22 insertions(+) create mode 100644 src/app-gocardless/banks/1822-direkt-heladef1822.js create mode 100644 upcoming-release-notes/484.md diff --git a/src/app-gocardless/banks/1822-direkt-heladef1822.js b/src/app-gocardless/banks/1822-direkt-heladef1822.js new file mode 100644 index 000000000..74a239354 --- /dev/null +++ b/src/app-gocardless/banks/1822-direkt-heladef1822.js @@ -0,0 +1,16 @@ +import Fallback from './integration-bank.js'; + +/** @type {import('./bank.interface.js').IBank} */ +export default { + ...Fallback, + + institutionIds: ['DIREKT_HELADEF1822'], + + normalizeTransaction(transaction, booked) { + transaction.remittanceInformationUnstructured = + transaction.remittanceInformationUnstructured ?? + transaction.remittanceInformationStructured; + + return Fallback.normalizeTransaction(transaction, booked); + }, +}; diff --git a/upcoming-release-notes/484.md b/upcoming-release-notes/484.md new file mode 100644 index 000000000..2d7c9e07c --- /dev/null +++ b/upcoming-release-notes/484.md @@ -0,0 +1,6 @@ +--- +category: Enhancements +authors: [matt-fidd] +--- + +Add support for `1822-DIREKT-HELADEF1822` transaction information