From 8926968db22bcc2513405714bf14ce8232e0830c Mon Sep 17 00:00:00 2001 From: Andrea Ferracci Date: Mon, 5 Aug 2024 14:34:41 +0200 Subject: [PATCH 1/2] fix - get org. receipt date fromat --- .../model/response/CtReceiptModelResponse.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/main/java/it/gov/pagopa/bizeventsservice/model/response/CtReceiptModelResponse.java b/src/main/java/it/gov/pagopa/bizeventsservice/model/response/CtReceiptModelResponse.java index c16f415a..b3a04b2c 100644 --- a/src/main/java/it/gov/pagopa/bizeventsservice/model/response/CtReceiptModelResponse.java +++ b/src/main/java/it/gov/pagopa/bizeventsservice/model/response/CtReceiptModelResponse.java @@ -8,6 +8,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; +import com.fasterxml.jackson.annotation.JsonFormat; import it.gov.pagopa.bizeventsservice.model.MapEntry; import lombok.AllArgsConstructor; import lombok.Builder; @@ -66,9 +67,16 @@ public class CtReceiptModelResponse implements Serializable { private BigDecimal primaryCiIncurredFee; private String idBundle; private String idCiBundle; + + @JsonFormat(pattern="yyyy-MM-dd") private LocalDate paymentDateTime; + + @JsonFormat(pattern="yyyy-MM-dd") private LocalDate applicationDate; + + @JsonFormat(pattern="yyyy-MM-dd") private LocalDate transferDate; + private List metadata; } From 8a2a390fa448faebc0311c30e9c6c76496f3710c Mon Sep 17 00:00:00 2001 From: FedericoRuzzier <49512050+FedericoRuzzier@users.noreply.github.com> Date: Wed, 21 Aug 2024 12:09:57 +0200 Subject: [PATCH 2/2] PQ-116 adding eMail correct mapping --- .../it/gov/pagopa/bizeventsservice/model/response/Debtor.java | 2 ++ .../it/gov/pagopa/bizeventsservice/model/response/Payer.java | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Debtor.java b/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Debtor.java index 4826bb90..c41762f5 100644 --- a/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Debtor.java +++ b/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Debtor.java @@ -5,6 +5,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; +import com.fasterxml.jackson.annotation.JsonProperty; import it.gov.pagopa.bizeventsservice.model.response.enumeration.EntityUniqueIdentifierType; import lombok.AllArgsConstructor; import lombok.Builder; @@ -33,5 +34,6 @@ public class Debtor implements Serializable{ private String city; private String stateProvinceRegion; private String country; + @JsonProperty(value="eMail") private String eMail; } diff --git a/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Payer.java b/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Payer.java index 98a5aec7..c0a034c6 100644 --- a/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Payer.java +++ b/src/main/java/it/gov/pagopa/bizeventsservice/model/response/Payer.java @@ -5,6 +5,7 @@ import javax.validation.constraints.NotBlank; import javax.validation.constraints.NotNull; +import com.fasterxml.jackson.annotation.JsonProperty; import it.gov.pagopa.bizeventsservice.model.response.enumeration.EntityUniqueIdentifierType; import lombok.AllArgsConstructor; import lombok.Builder; @@ -33,5 +34,6 @@ public class Payer implements Serializable{ private String city; private String stateProvinceRegion; private String country; + @JsonProperty(value="eMail") private String eMail; }