We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It should be possible to generate a file with
This should be valid, as specified in the IBAN registry, some country codes include other countries / territories
The countryMatches assertion fails and displays the following error:
countryMatches
country mismatch in BIC/IBA
This assertion happens in two places
We could extend this assertion to check for country codes that may include other countries/territories
var includedTerritoryCodes = { 'FI': ['AX'], 'FR': [ 'GF', 'GP', 'MQ', 'RE', 'PF', 'TF', 'YT', 'NC', 'BL', 'MF', 'PM', 'WF'], 'GB': ['IM', 'JE', 'GG'] } var countryIncludesOtherTerritory = Object.keys(includedTerritoryCodes).includes(this[pullFrom + 'IBAN'].substr(0, 2)) countryMatches = countryMatches || countryIncludesOtherTerritory && includedTerritoryCodes[this[pullFrom + 'IBAN'].substr(0, 2)].includes(this[pullFrom + 'BIC'].substr(4, 2))
Maybe we could also refactor IBAN and BIC into their own variables to make the code more readable.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Expected Behavior
It should be possible to generate a file with
This should be valid, as specified in the IBAN registry, some country codes include other countries / territories
Current Behavior
The
countryMatches
assertion fails and displays the following error:Possible Solution and Implementation
This assertion happens in two places
We could extend this assertion to check for country codes that may include other countries/territories
Maybe we could also refactor IBAN and BIC into their own variables to make the code more readable.
The text was updated successfully, but these errors were encountered: