Skip to content

Commit 6f90634

Browse files
make zip field of account string for european countries (#78)
1 parent 0ed368f commit 6f90634

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/com/darksci/pardot/api/response/account/Account.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class Account {
3939
private String city;
4040
private String state;
4141
private String territory;
42-
private Integer zip;
42+
private String zip;
4343
private String country;
4444
private String phone;
4545
private String fax;
@@ -96,7 +96,7 @@ public String getTerritory() {
9696
return territory;
9797
}
9898

99-
public Integer getZip() {
99+
public String getZip() {
100100
return zip;
101101
}
102102

src/test/java/com/darksci/pardot/api/parser/account/AccountReadResponseParserTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public void testRead() throws IOException {
5353
assertEquals("Has correct city", "Atlanta", account.getCity());
5454
assertEquals("Has correct state", "GA", account.getState());
5555
assertEquals("Has correct territory", "Test Territory", account.getTerritory());
56-
assertEquals("Has correct zipcode", 30064, (int) account.getZip());
56+
assertEquals("Has correct zipcode", "30064", account.getZip());
5757
assertEquals("Has correct country", "United States", account.getCountry());
5858
assertEquals("Has correct phone", "123-456-4789", account.getPhone());
5959
assertEquals("Has correct createdAt", "2016-01-04T10:39:26.000Z", account.getCreatedAt().toString());

0 commit comments

Comments
 (0)