|
6 | 6 | NameEndingType, |
7 | 7 | PartnershipType, |
8 | 8 | Jurisdiction, |
9 | | - Term |
| 9 | + Term, |
| 10 | + GeneralPartner |
10 | 11 | } from "../../../src/services/limited-partnerships"; |
11 | 12 |
|
12 | 13 | export const requestClient = new RequestClient({ |
@@ -43,6 +44,55 @@ export const LIMITED_PARTNERSHIP_OBJECT_MOCK: LimitedPartnership = { |
43 | 44 | } |
44 | 45 | }; |
45 | 46 |
|
| 47 | +export const GENERAL_PARTNER_OBJECT_MOCK: GeneralPartner = { |
| 48 | + data: { |
| 49 | + country: "England", |
| 50 | + date_effective_from: "2005-02-04", |
| 51 | + date_of_birth: "2000-05-01", |
| 52 | + etag: "", |
| 53 | + forename: "John", |
| 54 | + former_names: "Mary", |
| 55 | + governing_law: "British Government", |
| 56 | + kind: "", |
| 57 | + legal_entity_register_name: "Entity Name", |
| 58 | + legal_entity_registration_location: "UK", |
| 59 | + legal_form: "", |
| 60 | + nationality1: "English", |
| 61 | + nationality2: "French", |
| 62 | + not_disqualified_statement_checked: true, |
| 63 | + principal_office_address: { |
| 64 | + premises: "22", |
| 65 | + address_line_1: "Some Street", |
| 66 | + address_line_2: "Some Line 2", |
| 67 | + locality: "Some Locality", |
| 68 | + region: "Some Region", |
| 69 | + country: "Some Country", |
| 70 | + postal_code: "SC12 1WE" |
| 71 | + }, |
| 72 | + registered_company_number: "223456", |
| 73 | + resignation_date: "", |
| 74 | + service_address: { |
| 75 | + premises: "10", |
| 76 | + address_line_1: "This Street", |
| 77 | + address_line_2: "This Line 2", |
| 78 | + locality: "This Locality", |
| 79 | + region: "This Region", |
| 80 | + country: "This Country", |
| 81 | + postal_code: "SC45 1XF" |
| 82 | + }, |
| 83 | + surname: "Doe", |
| 84 | + usual_residential_address: { |
| 85 | + premises: "25", |
| 86 | + address_line_1: "That Street", |
| 87 | + address_line_2: "That Line 2", |
| 88 | + locality: "That Locality", |
| 89 | + region: "That Region", |
| 90 | + country: "That Country", |
| 91 | + postal_code: "SC15 1N2" |
| 92 | + } |
| 93 | + } |
| 94 | +} |
| 95 | + |
46 | 96 | export const LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK: LimitedPartnershipIncorporation = { |
47 | 97 | etag: "", |
48 | 98 | kind: "" |
@@ -99,3 +149,9 @@ export const mockGetLimitedPartnershipIncorporationResponse = { |
99 | 149 | export const mockGetLimitedPartnershipIncorporationResponseWithSub = { |
100 | 150 | 200: { status: 200, body: LIMITED_PARTNERSHIP_INCORPORATION_OBJECT_MOCK_WITH_SUB } |
101 | 151 | } |
| 152 | + |
| 153 | +export const mockPostGeneralPartnerResponse = { |
| 154 | + 201: { status: 201, body: mockLimitedPartnershipCreatedResource }, |
| 155 | + 400: { status: 400, body: { error: BAD_REQUEST } }, |
| 156 | + 401: { status: 401, body: { error: UNAUTHORISED } } |
| 157 | +}; |
0 commit comments