Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
zubri committed Jun 29, 2024
1 parent 4d991d8 commit b25d876
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Prowide ISO 20022 - CHANGELOG

#### 9.5.1 - SNAPSHOT
#### 9.5.1 - June 2024
* Enhanced the AppHdrFactory to honor the business service set in the parameter MxId
* Enhanced the MxParseUtils#identifyMessage to set the business service in the MxId when present

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ buildscript {
dependencies {
classpath 'ru.vyarus:gradle-quality-plugin:4.7.0'
classpath 'pl.allegro.tech.build:axion-release-plugin:1.13.6'
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
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,8 @@ public Optional<String> getBusinessService() {
* @param businessService a string value to set as discriminator, for example "swift.cbprplus.cov.02"
* @since 9.5.0
*/
public void setBusinessService(String businessService) {
public MxId setBusinessService(String businessService) {
this.businessService = businessService;
return this;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,15 @@ void createBusinessAppHdrV01() {
// for BAH v01 the date time must be ISONormalisedDateTime
assertTrue(xml.contains("Z</CreDt>"));
}

@Test
void createBusinessAppHdrV02_WithBusinessService() {
BusinessAppHdrV02 h = AppHdrFactory.createBusinessAppHdrV02(
"AAAAUSXXXXX",
"BBBBUSXXXXX",
"REF12345",
new MxId("pacs.009.001.08").setBusinessService("swift.cbprplus.cov.02"));
assertNotNull(h);
assertEquals("swift.cbprplus.cov.02", h.getBizSvc());
}
}

0 comments on commit b25d876

Please sign in to comment.