Skip to content

Commit

Permalink
CU-86b11jgdc_PW-1913--IBAN-Validation--Request-for-Information
Browse files Browse the repository at this point in the history
  • Loading branch information
ptorres-prowide committed Jun 28, 2024
1 parent cea328b commit d137ad8
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Prowide Core - CHANGELOG

#### 9.4.17 - SNAPSHOT
* (PW-1913) Added IBAN validation for Egypt

#### 9.4.16 - May 2024
* (PW-1862) Added NarrativeFragment class for detailed line information in StructuredNarrative fragments
* Fixed SwiftMessage getPDE(): return empty value instead of null when codeword exists and has no value
Expand Down
20 changes: 20 additions & 0 deletions src/main/resources/BbanStructureValidations.json
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,26 @@
}
]
},
{
"country_code": "EG",
"validation_rules": [
{
"entry_type": "bank_code",
"length": 4,
"character_type": "n"
},
{
"entry_type": "branch_code",
"length": 4,
"character_type": "n"
},
{
"entry_type": "account_number",
"length": 17,
"character_type": "n"
}
]
},
{
"country_code": "HR",
"validation_rules": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ public void testSomeValidCodes() {
assertIbanOk(" GB06 BARC 2006 0500 9524 86");
assertIbanOk(" GB06 LOYD 3097 5104 5702 05.");
assertIbanOk("GB26BOFS80200643721002");
assertIbanOk("EG389004000100300074201200001");
}

private void assertIbanOk(String string) {
Expand Down

0 comments on commit d137ad8

Please sign in to comment.