From 6e549ddb53c7e6b185e05f51af24e0bda135c868 Mon Sep 17 00:00:00 2001 From: Gyuri Grell Date: Wed, 25 Apr 2018 15:31:13 -0400 Subject: [PATCH] Corrected status field name, and added JsonIgnore for all other fields. --- .../java/com/constantcontact/v2/bulkactivities/Activity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/src/main/java/com/constantcontact/v2/bulkactivities/Activity.java b/components/src/main/java/com/constantcontact/v2/bulkactivities/Activity.java index 65ee02de..b6565ff1 100644 --- a/components/src/main/java/com/constantcontact/v2/bulkactivities/Activity.java +++ b/components/src/main/java/com/constantcontact/v2/bulkactivities/Activity.java @@ -14,6 +14,7 @@ import com.fasterxml.jackson.annotation.JsonAutoDetect; import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import org.apache.commons.lang3.builder.EqualsBuilder; @@ -25,6 +26,7 @@ /** */ @JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) @JsonAutoDetect(fieldVisibility = Visibility.ANY, getterVisibility = Visibility.NONE, setterVisibility = Visibility.NONE) public class Activity implements Serializable { @@ -67,7 +69,7 @@ public class Activity implements Serializable { /// * COMPLETE - the activity has completed without errors /// * CANCELLED - the activity was cancelled; activities can be cancelled using the product UI only. /// * ERROR - errors occurred when the job was run - @JsonProperty("activity_status") + @JsonProperty("status") protected Status _status; /// Type of activity, valid values are: