Closed dmednis closed 2 weeks ago
This pull request introduces a new bank entity, SwedbankHabaLV22
, to the banks
array in the src/app-gocardless/bank-factory.js
file. The addition includes importing SwedbankHabaLV22
from its respective module and updating the BANKS_WITH_LIMITED_HISTORY
array to include the identifier SWEDBANK_HABALV22
. The core structure and functionality of the existing code remain unchanged. Additionally, a new module swedbank-habalv22.js
is created, which implements a normalizeTransaction
method to enhance transaction date handling for Swedbank transactions, utilizing the date-fns
library for date manipulation. This method processes transaction data to extract and format dates, ensuring accurate handling of transaction dates. Furthermore, a new test suite is added in swedbank-habalv22.spec.js
to validate the functionality of the normalizeTransaction
method through various test cases, confirming its behavior with different transaction scenarios.
banks
array in src/app-gocardless/bank-factory.js
, similar to the addition of SwedbankHabaLV22
.banks
array in src/app-gocardless/bank-factory.js
.BANKS_WITH_LIMITED_HISTORY
array in src/app-gocardless/bank-factory.js
, which is also updated in the main PR to include SWEDBANK_HABALV22
.BANKS_WITH_LIMITED_HISTORY
array, which is relevant as the main PR also modifies this array.BANKS_WITH_LIMITED_HISTORY
array, similar to the changes made in the main PR.sparkles: Merged
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Extracts transaction date from
remittanceInformationUnstructured
for card transactions since it is not correct in the actualbookedDate
andvalueDate
fields.