Skip to content

Commit ea73358

Browse files
committed
lp-237 : add id to GeneralPartner
1 parent f132925 commit ea73358

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

src/services/limited-partnerships/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ export interface LimitedPartnership {
3030
}
3131

3232
export interface GeneralPartner {
33+
id?: string;
3334
data?: {
3435
date_effective_from?: string;
3536
date_of_birth?: string;

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

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ export const LIMITED_PARTNERSHIP_OBJECT_MOCK: LimitedPartnership = {
4848
};
4949

5050
export const GENERAL_PARTNER_OBJECT_MOCK: GeneralPartner = {
51+
id: "123456",
5152
data: {
5253
date_effective_from: "2005-02-04",
5354
date_of_birth: "2000-05-01",
@@ -95,7 +96,7 @@ export const GENERAL_PARTNER_OBJECT_MOCK: GeneralPartner = {
9596
postal_code: "SC15 1N2"
9697
}
9798
}
98-
}
99+
};
99100

100101
// This structure is used when POSTing Incorporation data
101102
export const INCORPORATION_OBJECT_MOCK: Incorporation = {
@@ -106,20 +107,22 @@ export const INCORPORATION_OBJECT_MOCK: Incorporation = {
106107

107108
// These structures represent responses from GETing Incorporation data:
108109

109-
export const LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK: LimitedPartnershipIncorporation = {
110-
etag: "",
111-
kind: ""
112-
};
110+
export const LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK: LimitedPartnershipIncorporation =
111+
{
112+
etag: "",
113+
kind: ""
114+
};
113115

114-
export const LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK_WITH_SUB: LimitedPartnershipIncorporation = {
115-
etag: "",
116-
kind: "",
117-
sub_resources: {
118-
general_partners: [],
119-
limited_partners: [],
120-
partnership: LIMITED_PARTNERSHIP_OBJECT_MOCK
121-
}
122-
};
116+
export const LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK_WITH_SUB: LimitedPartnershipIncorporation =
117+
{
118+
etag: "",
119+
kind: "",
120+
sub_resources: {
121+
general_partners: [],
122+
limited_partners: [],
123+
partnership: LIMITED_PARTNERSHIP_OBJECT_MOCK
124+
}
125+
};
123126

124127
export const TRANSACTION_ID = "12345";
125128
export const SUBMISSION_ID = "09876";
@@ -161,8 +164,11 @@ export const mockGetLimitedPartnershipIncorporationResponse = {
161164
};
162165

163166
export const mockGetLimitedPartnershipIncorporationResponseWithSub = {
164-
200: { status: 200, body: LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK_WITH_SUB }
165-
}
167+
200: {
168+
status: 200,
169+
body: LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK_WITH_SUB
170+
}
171+
};
166172

167173
export const mockPostGeneralPartnerResponse = {
168174
201: { status: 201, body: mockLimitedPartnershipCreatedResource },

0 commit comments

Comments
 (0)