ignore Unrecognized fields

This commit is contained in:
Anatoly Karlov 2023-08-15 18:58:26 +03:00
parent b8a6bf76ca
commit 49d0134715

View File

@ -1,5 +1,6 @@
package dev.vality.exporter.limits.model; package dev.vality.exporter.limits.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.Data; import lombok.Data;
@ -8,6 +9,7 @@ import lombok.NoArgsConstructor;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public class LimitsData { public class LimitsData {
private Payment payment; private Payment payment;
@ -17,6 +19,7 @@ public class LimitsData {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Payment { public static class Payment {
private String id; private String id;
@ -26,6 +29,7 @@ public class LimitsData {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Machine { public static class Machine {
private String id; private String id;
@ -35,6 +39,7 @@ public class LimitsData {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Limit { public static class Limit {
private String amount; private String amount;
@ -53,6 +58,7 @@ public class LimitsData {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Change { public static class Change {
private String amount; private String amount;
@ -63,6 +69,7 @@ public class LimitsData {
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@JsonIgnoreProperties(ignoreUnknown = true)
public static class Route { public static class Route {
@JsonProperty("provider_id") @JsonProperty("provider_id")