From 67aa8461c89ab8436f907fc56708dac692c61a10 Mon Sep 17 00:00:00 2001 From: Halus Stefan Date: Thu, 14 May 2015 11:50:58 +0300 Subject: [PATCH 1/2] Removed support for email campaign archive_url and archive_status. --- .../emailcampaigns/EmailCampaignBase.java | 46 ------------------- .../emailcampaigns/EmailCampaignRequest.java | 26 ----------- 2 files changed, 72 deletions(-) diff --git a/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignBase.java b/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignBase.java index f5c9804a..be67efd1 100644 --- a/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignBase.java +++ b/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignBase.java @@ -81,10 +81,6 @@ public abstract class EmailCampaignBase extends Component implements Serializabl private String createdDate; @JsonIgnore private String permalinkUrl; - @JsonIgnore - private String archiveStatus; - @JsonIgnore - private String archiveUrl; /** * Gets the template type. @@ -386,26 +382,6 @@ public String getPermalinkUrl() { return permalinkUrl; } - /** - * Get the Archive Status - * - * @return The Archive Status, as seen in the {@link ArchiveStatus} - */ - @JsonProperty("archive_status") - public String getArchiveStatus() { - return archiveStatus; - } - - /** - * Get the Archive Url - * - * @return The Archive Url - */ - @JsonProperty("archive_url") - public String getArchiveUrl() { - return archiveUrl; - } - /** * Sets the template type. * @@ -676,24 +652,6 @@ public void setPermalinkUrl(String permalinkUrl) { this.permalinkUrl = permalinkUrl; } - /** - * Set the Archive Status - * - * @param archiveStatus The Archive Status, as seen in {@link ArchiveStatus} - */ - public void setArchiveStatus(String archiveStatus) { - this.archiveStatus = archiveStatus; - } - - /** - * Set the Archive Url - * - * @param archiveUrl The Archive Url - */ - public void setArchiveUrl(String archiveUrl) { - this.archiveUrl = archiveUrl; - } - /** * Default constructor. */ @@ -770,10 +728,6 @@ public String toString() { builder.append(createdDate); builder.append(", permalinkUrl="); builder.append(permalinkUrl); - builder.append(", archiveStatus="); - builder.append(archiveStatus); - builder.append(", archiveUrl="); - builder.append(archiveUrl); builder.append(" ]\n"); return builder.toString(); } diff --git a/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignRequest.java b/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignRequest.java index 090ac900..cba50e06 100644 --- a/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignRequest.java +++ b/src/main/java/com/constantcontact/components/emailcampaigns/EmailCampaignRequest.java @@ -138,30 +138,6 @@ public boolean isVisibleInUi() { public TrackingSummary getTrackingSummary() { return super.getTrackingSummary(); } - /** - * Override of {@link EmailCampaignBase#getArchiveStatus()} to hide it via JsonIgnore.
- * Reason: server returns an error when this field appears in a request. - * - * @return Call to parent method - */ - @Override - @JsonIgnore - public String getArchiveStatus() { - return super.getArchiveStatus(); - } - /** - * Override of {@link EmailCampaignBase#getArchiveUrl()} to hide it via JsonIgnore.
- * Reason: server returns an error when this field appears in a request. - * - * @return Call to parent method - */ - @Override - @JsonIgnore - public String getArchiveUrl() { - return super.getArchiveUrl(); - } - - /** * Default constructor. @@ -205,8 +181,6 @@ public EmailCampaignRequest(EmailCampaignResponse response) { setTrackingSummary(response.getTrackingSummary()); setSentToContactLists(response.getSentToContactLists()); setCreatedDate(response.getCreatedDate()); - setArchiveStatus(response.getArchiveStatus()); - setArchiveUrl(response.getArchiveUrl()); } /** From 63cb69a1c7700aed8948289f19fa1afd3867e868 Mon Sep 17 00:00:00 2001 From: Halus Stefan Date: Thu, 14 May 2015 11:52:34 +0300 Subject: [PATCH 2/2] Raised version to 3.1.1 --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 368bba44..d9cd78a0 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.constantcontact constantcontact - 3.1.0 + 3.1.1 com.fasterxml.jackson.core