Skip to content
This repository has been archived by the owner on Dec 16, 2021. It is now read-only.

Commit

Permalink
Merge pull request #48 from csciuto/master
Browse files Browse the repository at this point in the history
Adding back in changes to add in state to Contact Address. Revving versi...
  • Loading branch information
csciuto committed Jan 8, 2015
2 parents 86b8354 + 94871fe commit 7d27103
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.constantcontact</groupId>
<artifactId>constantcontact</artifactId>
<version>2.1.6</version>
<version>2.1.7</version>
<dependencies>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
Expand Down
23 changes: 23 additions & 0 deletions src/main/java/com/constantcontact/components/contacts/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -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=");
Expand Down

0 comments on commit 7d27103

Please sign in to comment.