Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(APIM-609): companies house - extend returned fields #1089

Merged
merged 5 commits into from
Dec 17, 2024

Conversation

ttbarnes
Copy link
Contributor

@ttbarnes ttbarnes commented Dec 6, 2024

Introduction ✏️

In order for Companies House to be consumed by other products/services, the integration needs to return some additional fields.

Note: unfortunately, some methods in the Companies House service do not have unit test coverage as they are private methods. I would like to add unit tests for all private methods (likely needing to make them public or extracted into helper functions), but this would be a bigger change than introducing additional fields.

Resolution ✔️

  • Update Companies House types.
  • Update CompaniesService to return the following additional data:
    • accounts object
    • dateOfCreation
    • registeredAddress.careOf
    • registeredAddress.premises
    • registeredAddress.region
  • Updated test generator shapes.

Todo ❗

  • Ensure tests are DRY and centralised helpers for types, DTO and interfaces.

Copy link
Contributor

@avaitonis avaitonis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@abhi-markan abhi-markan merged commit 041124c into main Dec 17, 2024
19 of 20 checks passed
@abhi-markan abhi-markan deleted the feat/APIM-609 branch December 17, 2024 10:03
abhi-markan added a commit that referenced this pull request Dec 17, 2024
🤖 I have created a release *beep* *boop*
---


##
[1.22.0](v1.21.6...v1.22.0)
(2024-12-17)


### Features

* **APIM-608:** gov notify - file upload/link support
([#1083](#1083))
([dddf3e6](dddf3e6))
* **APIM-609:** companies house - extend returned fields
([#1089](#1089))
([041124c](041124c))
* **APIM-610:** markets - add country rating description field
([#1090](#1090))
([11ec0d4](11ec0d4))


### Bug Fixes

* **APIM-608:** eslint downgraded
([b0e349c](b0e349c))
* **APIM-608:** make GovNotify properties optional
([#1082](#1082))
([9240907](9240907))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants