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