Skip to content

Commit e813875

Browse files
authored
Merge pull request #276 from companieshouse/feature/ncs-724
ncs-724 - Adding directors country of residence
2 parents 077ce5f + 9a91977 commit e813875

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

src/services/confirmation-statement/service.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -484,6 +484,7 @@ export default class {
484484
nationality: apiResource.nationality,
485485
dateOfBirth: apiResource.date_of_birth,
486486
dateOfAppointment: apiResource.date_of_appointment,
487+
countryOfResidence: apiResource.country_of_residence,
487488
...(apiResource.service_address && { serviceAddress: this.mapToAddress(apiResource.service_address) }),
488489
...(apiResource.residential_address && { residentialAddress: this.mapToAddress(apiResource.residential_address) })
489490
}

src/services/confirmation-statement/types.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ export interface ActiveDirectorDetails {
161161
nationality: string;
162162
dateOfBirth: string;
163163
dateOfAppointment: string;
164+
countryOfResidence: string;
164165
serviceAddress: Address;
165166
residentialAddress: Address;
166167
}
@@ -173,6 +174,7 @@ export interface ActiveDirectorDetailsResource {
173174
nationality: string;
174175
date_of_birth: string;
175176
date_of_appointment: string;
177+
country_of_residence: string;
176178
service_address: AddressResource;
177179
residential_address: AddressResource;
178180
}

test/services/confirmation-statement/confirmation.statement.mock.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export const mockActiveDirectorDetails: ActiveDirectorDetailsResource = {
9696
nationality: "British",
9797
date_of_birth: "1 January 1960",
9898
date_of_appointment: "1 January 2009",
99+
country_of_residence: "Country",
99100
service_address: mockAddress1,
100101
residential_address: mockAddress2
101102
}

0 commit comments

Comments
 (0)