From df7181ffcd4a9d505c0e103e54f1e62921d455f5 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 23 Oct 2024 08:27:36 +0000 Subject: [PATCH 1/3] add support for transaction information --- .../banks/1822-direkt-heladef1822.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/app-gocardless/banks/1822-direkt-heladef1822.js 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..59c8075ec --- /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); + }, +}; From 8a1e3bf59d81bf9bcf1327521179c1a19f73edd0 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 23 Oct 2024 08:27:46 +0000 Subject: [PATCH 2/3] release note --- upcoming-release-notes/484.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 upcoming-release-notes/484.md 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 From 598cc7847b8cf6464773cfbbf3e0a879a3a97c6c Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 23 Oct 2024 08:31:05 +0000 Subject: [PATCH 3/3] lint --- src/app-gocardless/banks/1822-direkt-heladef1822.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app-gocardless/banks/1822-direkt-heladef1822.js b/src/app-gocardless/banks/1822-direkt-heladef1822.js index 59c8075ec..74a239354 100644 --- a/src/app-gocardless/banks/1822-direkt-heladef1822.js +++ b/src/app-gocardless/banks/1822-direkt-heladef1822.js @@ -4,12 +4,12 @@ import Fallback from './integration-bank.js'; export default { ...Fallback, - institutionIds: [ 'DIREKT_HELADEF1822' ], + institutionIds: ['DIREKT_HELADEF1822'], normalizeTransaction(transaction, booked) { transaction.remittanceInformationUnstructured = transaction.remittanceInformationUnstructured ?? - transaction.remittanceInformationStructured + transaction.remittanceInformationStructured; return Fallback.normalizeTransaction(transaction, booked); },