From 94871fe843f1842b3d3e29d83203a43deae3bb96 Mon Sep 17 00:00:00 2001 From: Corey Sciuto Date: Thu, 8 Jan 2015 01:37:26 -0500 Subject: [PATCH] Adding back in changes to add in state to Contact Address. Revving version to 2.1.7 --- pom.xml | 2 +- .../components/contacts/Address.java | 23 +++++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 116c2cb2..b24ad9e9 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.constantcontact constantcontact - 2.1.6 + 2.1.7 com.fasterxml.jackson.core diff --git a/src/main/java/com/constantcontact/components/contacts/Address.java b/src/main/java/com/constantcontact/components/contacts/Address.java index f48f4f13..402941f2 100644 --- a/src/main/java/com/constantcontact/components/contacts/Address.java +++ b/src/main/java/com/constantcontact/components/contacts/Address.java @@ -30,6 +30,8 @@ public class Address implements Serializable { @JsonIgnore private String addressType; @JsonIgnore + private String state; + @JsonIgnore private String stateCode; @JsonIgnore private String countryCode; @@ -153,6 +155,25 @@ public void setAddressType(String addressType) { this.addressType = addressType; } + /** + * Gets the state. + * + * @return The state. + */ + @JsonProperty("state") + public String getState() { + return state; + } + + /** + * Sets the state. + * + * @param state The state. + */ + public void setState(String state) { + this.state = state; + } + /** * Gets the state code. * @@ -252,6 +273,8 @@ public String toString() { builder.append(city); builder.append(", addressType="); builder.append(addressType); + builder.append(", state="); + builder.append(state); builder.append(", stateCode="); builder.append(stateCode); builder.append(", countryCode=");