Skip to content

Commit

Permalink
Merge pull request #131 from companieshouse/feature/DSND-2812
Browse files Browse the repository at this point in the history
add missing care of field to transformer
  • Loading branch information
JAndrewCH authored Jul 22, 2024
2 parents e1ae11b + 8aa44a8 commit 6e30879
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/itest/resources/json/output/psc_list_output.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"po_box": "ura_po",
"postal_code": "CF2 1B6",
"premises": "URA",
"region": "ura_region"
"region": "ura_region",
"care_of": "ura_care_of"
},
"natures_of_control": ["part-right-to-share-surplus-assets-75-to-100-percent"],
"is_sanctioned": true,
Expand Down Expand Up @@ -54,7 +55,8 @@
"po_box": "ura_po",
"postal_code": "CF2 1B6",
"premises": "URA",
"region": "ura_region"
"region": "ura_region",
"care_of": "ura_care_of"
},
"natures_of_control": [
"part-right-to-share-surplus-assets-75-to-100-percent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"po_box": "ura_po",
"postal_code": "CF2 1B6",
"premises": "URA",
"region": "ura_region"
"region": "ura_region",
"care_of": "ura_care_of"
},
"natures_of_control": ["part-right-to-share-surplus-assets-75-to-100-percent"],
"is_sanctioned": true,
Expand Down Expand Up @@ -54,7 +55,8 @@
"po_box": "ura_po",
"postal_code": "CF2 1B6",
"premises": "URA",
"region": "ura_region"
"region": "ura_region",
"care_of": "ura_care_of"
},
"natures_of_control": [
"part-right-to-share-surplus-assets-75-to-100-percent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@ private uk.gov.companieshouse.api.psc.Address mapAddress(
address.setPostalCode(inputAddress.getPostalCode());
address.setPremises(inputAddress.getPremises());
address.setRegion(inputAddress.getRegion());
address.setCareOf(inputAddress.getCareOf());
return address;
} else {
return null;
Expand Down

0 comments on commit 6e30879

Please sign in to comment.