Skip to content

Commit 9cc1d4d

Browse files
authored
Merge pull request #757 from companieshouse/lp-238-update-general-partner
LP-301 update general partner
2 parents 42d3c9e + 203b4b8 commit 9cc1d4d

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

src/services/limited-partnerships/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class LimitedPartnershipsService {
6464
transactionId: string,
6565
filingResourceId: string,
6666
includeSubResources?: boolean): Promise<Resource<LimitedPartnershipIncorporation> | ApiErrorResponse> {
67-
const subResourcesQuery :string = (includeSubResources ? ("?include_sub_resources=" + includeSubResources) : "");
67+
const subResourcesQuery: string = (includeSubResources ? ("?include_sub_resources=" + includeSubResources) : "");
6868
const URL = `/transactions/${transactionId}/incorporation/limited-partnership/${filingResourceId}${subResourcesQuery}`;
6969

7070
const response: HttpResponse = await this.client.httpGet(URL);

src/services/limited-partnerships/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@ export interface LimitedPartnership {
2020

2121
export interface GeneralPartner {
2222
data?: {
23-
country?: string,
2423
date_effective_from?: string,
2524
date_of_birth?: string,
2625
etag?: string,
2726
forename?: string,
2827
former_names?: string,
2928
governing_law?: string,
3029
kind?: string,
30+
legal_entity_name?: string,
3131
legal_entity_register_name?: string,
3232
legal_entity_registration_location?: string,
3333
legal_form?: string,
3434
nationality1?: string,
3535
nationality2?: string,
3636
not_disqualified_statement_checked?: boolean,
37+
legal_personality_statement_checked?: boolean,
3738
principal_office_address?: Address,
3839
registered_company_number?: string,
3940
resignation_date?: string,

test/services/limited-partnerships/limited.partnerships.mock.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,21 @@ export const LIMITED_PARTNERSHIP_OBJECT_MOCK: LimitedPartnership = {
4646

4747
export const GENERAL_PARTNER_OBJECT_MOCK: GeneralPartner = {
4848
data: {
49-
country: "England",
5049
date_effective_from: "2005-02-04",
5150
date_of_birth: "2000-05-01",
5251
etag: "",
5352
forename: "John",
5453
former_names: "Mary",
5554
governing_law: "British Government",
5655
kind: "",
57-
legal_entity_register_name: "Entity Name",
58-
legal_entity_registration_location: "UK",
59-
legal_form: "",
56+
legal_entity_name: "My company ltd",
57+
legal_entity_register_name: "UK Register",
58+
legal_entity_registration_location: "England",
59+
legal_form: "abc",
6060
nationality1: "English",
6161
nationality2: "French",
6262
not_disqualified_statement_checked: true,
63+
legal_personality_statement_checked: true,
6364
principal_office_address: {
6465
premises: "22",
6566
address_line_1: "Some Street",

0 commit comments

Comments
 (0)