diff --git a/CHANGELOG.md b/CHANGELOG.md index 40592125a..2af737ec7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Prowide Core - CHANGELOG -#### 9.5.1 - SNAPSHOT +#### 9.5.1 - June 2024 + * (PW-1913) Added IBAN validation for Egypt local account structure * Restore deprecated method in MT210 class #### 9.5.0 - May 2024 diff --git a/build.gradle b/build.gradle index db93e176b..1315add82 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ buildscript { dependencies { classpath 'ru.vyarus:gradle-quality-plugin:4.7.0' classpath 'pl.allegro.tech.build:axion-release-plugin:1.14.2' - classpath 'io.github.gradle-nexus:publish-plugin:1.1.0' + classpath 'io.github.gradle-nexus:publish-plugin:2.0.0' classpath 'com.diffplug.spotless:spotless-plugin-gradle:6.13.0' // above this version requires Java 11 } } 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) {