Skip to content

Commit

Permalink
Merge pull request #6 from pagopa/fix_fdr_body
Browse files Browse the repository at this point in the history
added organizationId to fdr call
  • Loading branch information
aomegax authored Feb 1, 2024
2 parents bca0086 + 1745548 commit ccc8ec9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>it.gov.pagopa</groupId>
<artifactId>fdrjsontoxml</artifactId>
<version>0.1.0</version>
<version>0.1.0-1-fix_fdr_body</version>
<packaging>jar</packaging>

<name>FDR JSON to XML Fn</name>
Expand Down
1 change: 1 addition & 0 deletions src/main/java/it/gov/pagopa/fdrjsontoxml/FdrJsonToXml.java
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ private Fdr getFdr(FdrMessage fdrMessage){
Fdr fdr = new Fdr();
fdr.setFdr(fdrMessage.getFdr());
fdr.setPspId(fdrMessage.getPspId());
fdr.setOrganizationId(fdrMessage.getOrganizationId());
fdr.setRetry(fdrMessage.getRetry());
fdr.setRevision(fdrMessage.getRevision());
return fdr;
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/it/gov/pagopa/fdrjsontoxml/FdrMessage.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ public class FdrMessage {

private String pspId;

private String organizationId;

private Long retry;

private Long revision;
Expand Down
6 changes: 5 additions & 1 deletion src/main/openapi/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
}
},
"Fdr" : {
"required" : [ "fdr", "pspId", "retry", "revision"],
"required" : [ "fdr", "pspId","organizationId", "retry", "revision"],
"type" : "object",
"properties" : {
"fdr" : {
Expand All @@ -72,6 +72,10 @@
"type" : "string",
"example" : "1"
},
"organizationId" : {
"type" : "string",
"example" : "1"
},
"retry" : {
"format" : "int64",
"type" : "integer",
Expand Down

0 comments on commit ccc8ec9

Please sign in to comment.