diff --git a/CHANGELOG.md b/CHANGELOG.md index 831ad12a4..45314ed0f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Prowide Core - CHANGELOG +#### 10.2.1 - June 2024 + * (PW-1913) Added IBAN validation for Egypt local account structure + * Restore deprecated method in MT210 class + #### 10.2.0 - May 2024 * SWIFT Standard release update 2024 (live 16 November 2025) * Yearly revision of deprecation phase (see https://dev.prowidesoftware.com/SRU2024/getting-started/deprecation/) diff --git a/src/main/resources/BbanStructureValidations.json b/src/main/resources/BbanStructureValidations.json index a5d85c350..8dc55754a 100644 --- a/src/main/resources/BbanStructureValidations.json +++ b/src/main/resources/BbanStructureValidations.json @@ -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": [ diff --git a/src/test/java/com/prowidesoftware/swift/model/IBANTest.java b/src/test/java/com/prowidesoftware/swift/model/IBANTest.java index 51259e62c..faa407ad2 100644 --- a/src/test/java/com/prowidesoftware/swift/model/IBANTest.java +++ b/src/test/java/com/prowidesoftware/swift/model/IBANTest.java @@ -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) {