diff --git a/CHANGELOG.md b/CHANGELOG.md index 815d3d3..40b79a7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Add [Bank Holiday for the Coronation of King Charles III](https://www.timeanddate.com/holidays/uk/king-coronation-day-holiday) to LONDON calendar (#266). - Move Croatia (HR) from kuna currency (HKR) countries to euro currency (EUR) countries (#256). +- Verify enums are up-to-date (#278). ### Fixed diff --git a/src/main/java/fr/marcwrobel/jbanking/Agreement.java b/src/main/java/fr/marcwrobel/jbanking/Agreement.java index e403d09..a93f663 100644 --- a/src/main/java/fr/marcwrobel/jbanking/Agreement.java +++ b/src/main/java/fr/marcwrobel/jbanking/Agreement.java @@ -22,6 +22,12 @@ public enum Agreement { * Association. * *

+ * Note that Switzerland, which is not officially a member of the European Economic Area (EEA), is + * also listed because it signed treaties that contain largely + * the same + * content as the EEA treaties. + * + *

* Last verification date of this list can be seen in the {@code @LastVerification} value. * * @see Wikipedia - European Economic Area * @since 2.1.0 */ - @LastVerification("2022-10-22") + @LastVerification("2023-01-07") EUROPEAN_ECONOMIC_AREA(AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IS, IE, IT, LV, LI, LT, LU, MT, NL, NO, - PL, PT, RO, SK, SI, ES, SE, CH), + PL, PT, RO, SK, SI, ES, SE, + // see https://en.wikipedia.org/wiki/Switzerland%E2%80%93European_Union_relations#Treaties + CH), /** * The European Free Trade Association (EFTA) is a regional trade organization and free trade area. The organization operates @@ -46,7 +54,7 @@ public enum Agreement { * @see Wikipedia - European Free Trade Association * @since 2.1.0 */ - @LastVerification("2022-10-22") + @LastVerification("2023-01-07") EUROPEAN_FREE_TRADE_ASSOCIATION(IS, LI, NO, CH), /** @@ -67,7 +75,7 @@ public enum Agreement { * member state territories and the European Union * @since 2.1.0 */ - @LastVerification("2022-10-22") + @LastVerification("2023-01-07") EUROPEAN_UNION(AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE), @@ -84,7 +92,7 @@ public enum Agreement { * @see Wikipedia * @since 2.1.0 */ - @LastVerification("2022-10-27") + @LastVerification("2023-01-07") SEPA_COM_PACIFIQUE(PF, NC, WF), /** @@ -95,13 +103,13 @@ public enum Agreement { *

* Last verification date of this list can be seen in the {@code @LastVerification} value. * - * @see EPC409-09 EPC - * List of SEPA Countries v4.0 - February 2021 + * @see EPC List of + * SEPA Scheme Countries * @see IBAN registry * @see Wikipedia * @since 2.1.0 */ - @LastVerification("2022-10-22") + @LastVerification("2023-01-07") SINGLE_EURO_PAYMENTS_AREA( // EU countries AT, BE, BG, HR, CY, CZ, DK, EE, FI, FR, DE, GR, HU, IE, IT, LV, LT, LU, MT, NL, PL, PT, RO, SK, SI, ES, SE, diff --git a/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java b/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java index 2f7665a..1a79c93 100644 --- a/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java +++ b/src/main/java/fr/marcwrobel/jbanking/IsoCountry.java @@ -44,7 +44,7 @@ * @see ISO 3166 Country Codes * @since 1.0 */ -@LastVerification("2022-10-22") +@LastVerification("2023-01-07") public enum IsoCountry { /** * Afghanistan (aka the Islamic Republic of Afghanistan). diff --git a/src/main/java/fr/marcwrobel/jbanking/iban/BbanStructure.java b/src/main/java/fr/marcwrobel/jbanking/iban/BbanStructure.java index 491ded8..da4225e 100644 --- a/src/main/java/fr/marcwrobel/jbanking/iban/BbanStructure.java +++ b/src/main/java/fr/marcwrobel/jbanking/iban/BbanStructure.java @@ -36,7 +36,7 @@ * @see List of Countries using the IBAN standard * @since 1.0 */ -@LastVerification("2022-10-22") +@LastVerification("2023-01-07") @SuppressWarnings("java:S1192") // swift expressions cannot be constants (maintainability). public enum BbanStructure { /**