diff --git a/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/OpenMRSPersonAddress.java b/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/OpenMRSPersonAddress.java index ccafd476..91387a2d 100644 --- a/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/OpenMRSPersonAddress.java +++ b/openerp-atomfeed-service/src/main/java/org/bahmni/feed/openerp/domain/OpenMRSPersonAddress.java @@ -18,11 +18,12 @@ public class OpenMRSPersonAddress implements Jsonify { private String countyDistrict; private String stateProvince; private String country; + private String postalCode; public OpenMRSPersonAddress() { } - public OpenMRSPersonAddress(String address1, String address2, String address3, String cityVillage, String countyDistrict, String stateProvince, String country) { + public OpenMRSPersonAddress(String address1, String address2, String address3, String cityVillage, String countyDistrict, String stateProvince, String country, String postalCode) { this.address1 = address1; this.address2 = address2; this.address3 = address3; @@ -30,6 +31,7 @@ public OpenMRSPersonAddress(String address1, String address2, String address3, S this.countyDistrict = countyDistrict; this.stateProvince = stateProvince; this.country = country; + this.postalCode = postalCode; } public String getCountry() { @@ -88,6 +90,10 @@ public void setStateProvince(String stateProvince) { this.stateProvince = stateProvince; } + public String getPostalCode() { return postalCode; } + + public void setPostalCode(String postalCode) { this.postalCode = postalCode; } + @Override public String toJsonString() { try { diff --git a/openerp-atomfeed-service/src/test/java/org/bahmni/feed/openerp/worker/JsonifyTest.java b/openerp-atomfeed-service/src/test/java/org/bahmni/feed/openerp/worker/JsonifyTest.java index 911a2849..b734ae5c 100644 --- a/openerp-atomfeed-service/src/test/java/org/bahmni/feed/openerp/worker/JsonifyTest.java +++ b/openerp-atomfeed-service/src/test/java/org/bahmni/feed/openerp/worker/JsonifyTest.java @@ -26,7 +26,7 @@ public void setUp() throws Exception { openMRSPersonAttributes.add(attr2); openMRSPersonAttributes.add(attr3); openMRSPersonAddress = new OpenMRSPersonAddress("address1", "address2", "address3", "cityVillage", - "countyDistrict", "stateProvince", "country"); + "countyDistrict", "stateProvince", "country", "postalCode"); } @Test