From 49d013471520f64681ddb69e7e691b4ef276c7b9 Mon Sep 17 00:00:00 2001 From: Anatoly Karlov Date: Tue, 15 Aug 2023 18:58:26 +0300 Subject: [PATCH] ignore Unrecognized fields --- .../java/dev/vality/exporter/limits/model/LimitsData.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/java/dev/vality/exporter/limits/model/LimitsData.java b/src/main/java/dev/vality/exporter/limits/model/LimitsData.java index c9cb8a8..5fd79e5 100644 --- a/src/main/java/dev/vality/exporter/limits/model/LimitsData.java +++ b/src/main/java/dev/vality/exporter/limits/model/LimitsData.java @@ -1,5 +1,6 @@ package dev.vality.exporter.limits.model; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.AllArgsConstructor; import lombok.Data; @@ -8,6 +9,7 @@ import lombok.NoArgsConstructor; @Data @NoArgsConstructor @AllArgsConstructor +@JsonIgnoreProperties(ignoreUnknown = true) public class LimitsData { private Payment payment; @@ -17,6 +19,7 @@ public class LimitsData { @Data @NoArgsConstructor @AllArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public static class Payment { private String id; @@ -26,6 +29,7 @@ public class LimitsData { @Data @NoArgsConstructor @AllArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public static class Machine { private String id; @@ -35,6 +39,7 @@ public class LimitsData { @Data @NoArgsConstructor @AllArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public static class Limit { private String amount; @@ -53,6 +58,7 @@ public class LimitsData { @Data @NoArgsConstructor @AllArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public static class Change { private String amount; @@ -63,6 +69,7 @@ public class LimitsData { @Data @NoArgsConstructor @AllArgsConstructor + @JsonIgnoreProperties(ignoreUnknown = true) public static class Route { @JsonProperty("provider_id")