From 906770e985a71cf1b60633be7e2d998b8422aa70 Mon Sep 17 00:00:00 2001 From: Lorenzo Catalano Date: Thu, 1 Feb 2024 10:23:28 +0100 Subject: [PATCH 1/2] added organizationId to fdr call --- src/main/java/it/gov/pagopa/fdrjsontoxml/FdrJsonToXml.java | 1 + src/main/java/it/gov/pagopa/fdrjsontoxml/FdrMessage.java | 2 ++ src/main/openapi/openapi.json | 6 +++++- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrJsonToXml.java b/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrJsonToXml.java index d2d4d8e..0e0bd4d 100644 --- a/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrJsonToXml.java +++ b/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrJsonToXml.java @@ -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; diff --git a/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrMessage.java b/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrMessage.java index 0000a6a..7d06c92 100644 --- a/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrMessage.java +++ b/src/main/java/it/gov/pagopa/fdrjsontoxml/FdrMessage.java @@ -11,6 +11,8 @@ public class FdrMessage { private String pspId; + private String organizationId; + private Long retry; private Long revision; diff --git a/src/main/openapi/openapi.json b/src/main/openapi/openapi.json index 56678d0..d7cfe69 100644 --- a/src/main/openapi/openapi.json +++ b/src/main/openapi/openapi.json @@ -59,7 +59,7 @@ } }, "Fdr" : { - "required" : [ "fdr", "pspId", "retry", "revision"], + "required" : [ "fdr", "pspId","organizationId", "retry", "revision"], "type" : "object", "properties" : { "fdr" : { @@ -72,6 +72,10 @@ "type" : "string", "example" : "1" }, + "organizationId" : { + "type" : "string", + "example" : "1" + }, "retry" : { "format" : "int64", "type" : "integer", From 17455487fd35804129b96f75e17eff87e35b7b3c Mon Sep 17 00:00:00 2001 From: pagopa-github-bot Date: Thu, 1 Feb 2024 10:48:07 +0000 Subject: [PATCH 2/2] Bump to version 0.1.0-1-fix_fdr_body [skip ci] --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d229865..b017c83 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ it.gov.pagopa fdrjsontoxml - 0.1.0 + 0.1.0-1-fix_fdr_body jar FDR JSON to XML Fn