Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added organizationId to fdr call #6

Merged
merged 2 commits into from
Feb 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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