From ff049d41a536a3ecc9fe9b76327d3a4f34d49769 Mon Sep 17 00:00:00 2001 From: ptorres-prowide <90214684+ptorres-prowide@users.noreply.github.com> Date: Fri, 28 Jun 2024 19:57:39 -0300 Subject: [PATCH 1/3] CU-86b11jgdc_PW-1913--IBAN-Validation--Request-for-Information (#191) --- CHANGELOG.md | 3 +++ .../resources/BbanStructureValidations.json | 20 +++++++++++++++++++ .../prowidesoftware/swift/model/IBANTest.java | 1 + 3 files changed, 24 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 44a332864..58e1309f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 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) { From eb8a9488b8ad5b71940673f00b2ece07f934f715 Mon Sep 17 00:00:00 2001 From: zubri Date: Fri, 28 Jun 2024 20:08:51 -0300 Subject: [PATCH 2/3] release --- CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58e1309f0..b0314a2c6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Prowide Core - CHANGELOG -#### 9.4.17 - SNAPSHOT - * (PW-1913) Added IBAN validation for Egypt +#### 9.4.17 - June 2024 + * (PW-1913) Added IBAN validation for Egypt local account structure #### 9.4.16 - May 2024 * (PW-1862) Added NarrativeFragment class for detailed line information in StructuredNarrative fragments From 4ed9e6061174f541bbbbe883bf8b76758800a3f4 Mon Sep 17 00:00:00 2001 From: zubri Date: Fri, 28 Jun 2024 20:43:34 -0300 Subject: [PATCH 3/3] update publishing plugin --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index e7e177265..79dc56ecb 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 } }