diff --git a/CHANGELOG.md b/CHANGELOG.md index 4555cbfe..d5af7c20 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ * (PW-2006) Fixed `getMUR` and `setMUR` in `SwiftMessage` to prioritize field 108 in block 4 over block 3 for system messages (category 0) * Added new `MtSequenceEnum` with all the available inner sequences of specific MT schemas * Added `isSystemMessage()` to SwiftMessage to check if the message is a category 0 message (010. 011, etc...) + * Added new `MtSequenceEnum` with all the available inner sequences of specific MT schemas #### 9.5.2 - October 2024 * Added new `FieldEnum` with all the available field names diff --git a/src/generated/java/com/prowidesoftware/swift/model/field/FieldEnum.java b/src/generated/java/com/prowidesoftware/swift/model/field/FieldEnum.java index 0246825c..087f4cd5 100644 --- a/src/generated/java/com/prowidesoftware/swift/model/field/FieldEnum.java +++ b/src/generated/java/com/prowidesoftware/swift/model/field/FieldEnum.java @@ -64,6 +64,9 @@ public enum FieldEnum { F14N, F14O, F14J, + F14P, + F14Q, + F14R, F14S, F15A, F15B, @@ -83,8 +86,10 @@ public enum FieldEnum { F15P, F16A, F16C, + F16D, F16R, F16S, + F16W, F17A, F17B, F17C, @@ -145,7 +150,6 @@ public enum FieldEnum { F22F, F22G, F22H, - F22J, F22K, F22L, F22M, @@ -207,7 +211,6 @@ public enum FieldEnum { F29H, F29I, F29J, - F29K, F29L, F29M, F29N, @@ -216,11 +219,14 @@ public enum FieldEnum { F29S, F29T, F29U, + F29Q, + F29W, F30F, F30G, F30H, F30I, F30J, + F30K, F30M, F30N, F30P, @@ -323,9 +329,7 @@ public enum FieldEnum { F37L, F37M, F37N, - F37P, F37R, - F37U, F37V, F38A, F38D, @@ -336,7 +340,6 @@ public enum FieldEnum { F39A, F39B, F39C, - F39D, F39E, F39F, F39M, @@ -363,7 +366,6 @@ public enum FieldEnum { F44D, F44E, F44F, - F44H, F44J, F45A, F45B, diff --git a/src/generated/java/com/prowidesoftware/swift/model/mt/MtSequenceEnum.java b/src/generated/java/com/prowidesoftware/swift/model/mt/MtSequenceEnum.java index be313b2b..fdecf6f2 100644 --- a/src/generated/java/com/prowidesoftware/swift/model/mt/MtSequenceEnum.java +++ b/src/generated/java/com/prowidesoftware/swift/model/mt/MtSequenceEnum.java @@ -25,7 +25,7 @@ /** * Enumeration representing all possible sequence paths for each MT (Message Type) schema. * Each constant in this enumeration corresponds to a specific MT schema, identified by its -* sequence paths as a comma-separated string (CSV) for SRU 2023. +* sequence paths as a comma-separated string (CSV) for SRU 2024. * *

For example, the MT508 message type may have sequence paths such as "A", "A/A1", "B", "B/B1", and "C", * which would be represented as the CSV string "A,A/A1,B,B/B1,C". @@ -33,7 +33,7 @@ * *

For example, the MT801 message contains the "Loop1" and "Loop2" sequences, and this are not included in the sequence paths. * -* @since 9.4.18 +* @since 9.5.3 */ @Generated public enum MtSequenceEnum { @@ -103,9 +103,9 @@ public enum MtSequenceEnum { MT548("A,A/A1,A/A2,A/A2/A2a,B,B/B1,C,C/C1,C/C1/C1a,C/C1/C1a/C1a1,C/C1/C1a/C1a1/C1a1A,C/C1/C1a/C1a1/C1a1A/C1a1A1,C/C1/C1a/C1a1/C1a1B,C/C1/C1a/C1a1/C1a1B/C1a1B1,C/C1/C1a/C1a1/C1a1B/C1a1B1/C1a1B1a,C/C1/C1a/C1a1/C1a1B/C1a1B1/C1a1B1a/C1a1B1a1,D"), MT549("A,A/A1,B,C,D"), MT558("A,A/A1,A/A2,A/A2/A2a,A/A3,B,B/B1,C,D,E"), - MT564("A,A/A1,B,B/B1,B/B2,C,D,E,E/E1,E/E1/E1a,E/E2,F"), + MT564("A,A/A1,A/A2,B,B/B1,B/B2,C,D,E,E/E1,E/E1/E1a,E/E2,F"), MT565("A,A/A1,B,B/B1,B/B2,C,D,E"), - MT566("A,A/A1,B,B/B1,C,D,D/D1,D/D1/D1a,D/D1/D1b,D/D2,D/D2/D2a,D/D2/D2b,E"), + MT566("A,A/A1,A/A2,B,B/B1,C,D,D/D1,D/D1/D1a,D/D1/D1b,D/D2,D/D2/D2a,D/D2/D2b,E"), MT567("A,A/A1,A/A2,A/A2/A2a,B,C"), MT568("A,A/A1,B,B/B1,C"), MT569("A,A/A1,A/A2,B,C,C/C1,C/C1/C1a,C/C1/C1a/C1a1,C/C1/C1a/C1a1/C1a1A,D"), diff --git a/src/test/java/com/prowidesoftware/swift/model/field/FieldEnumTest.java b/src/test/java/com/prowidesoftware/swift/model/field/FieldEnumTest.java index d2bcdf5f..047ca743 100644 --- a/src/test/java/com/prowidesoftware/swift/model/field/FieldEnumTest.java +++ b/src/test/java/com/prowidesoftware/swift/model/field/FieldEnumTest.java @@ -4,7 +4,7 @@ import org.junit.jupiter.api.Test; -class FieldEnu5mTest { +class FieldEnumTest { @Test void testFieldName_F11A() { @@ -14,16 +14,16 @@ void testFieldName_F11A() { } @Test - void testFieldName_F22J() { - FieldEnum field = FieldEnum.F22J; - String expectedName = "22J"; + void testFieldName_F29Q() { + FieldEnum field = FieldEnum.F29Q; + String expectedName = "29Q"; assertEquals(expectedName, field.fieldName()); } @Test - void testFieldName_F44H() { - FieldEnum field = FieldEnum.F44H; - String expectedName = "44H"; + void testFieldName_F30K() { + FieldEnum field = FieldEnum.F30K; + String expectedName = "30K"; assertEquals(expectedName, field.fieldName()); } @@ -35,16 +35,16 @@ void testFromFieldNameValid_11A() { } @Test - void testFromFieldNameValid_22J() { - String fieldName = "22J"; - FieldEnum expectedEnum = FieldEnum.F22J; + void testFromFieldNameValid_29Q() { + String fieldName = "29Q"; + FieldEnum expectedEnum = FieldEnum.F29Q; assertEquals(expectedEnum, FieldEnum.fromFieldName(fieldName)); } @Test - void testFromFieldNameValid_44H() { - String fieldName = "44H"; - FieldEnum expectedEnum = FieldEnum.F44H; + void testFromFieldNameValid_30K() { + String fieldName = "30K"; + FieldEnum expectedEnum = FieldEnum.F30K; assertEquals(expectedEnum, FieldEnum.fromFieldName(fieldName)); }