Skip to content

A local-first personal finance app

add support for `1822-DIREKT-HELADEF1822` transaction information (#484)

Matt Fiddamanb1bf7ee7cdd1
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 0000000000..74a2393547
--- /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 0000000000..2d7c9e07c4
--- /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