@companieshouse/api-sdk-node 2.0.288 → 2.0.290
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -8,7 +8,7 @@ export default class PscService {
|
|
|
8
8
|
private readonly client;
|
|
9
9
|
constructor(client: IHttpClient);
|
|
10
10
|
/**
|
|
11
|
-
* Get the PSC individual details including their optional verification
|
|
11
|
+
* Get the PSC individual details including their optional identity verification details.
|
|
12
12
|
*
|
|
13
13
|
* @param companyNumber the Company Number to look up
|
|
14
14
|
* @param pscNotificationId the PSC Notification ID to retrieve
|
|
@@ -21,14 +21,14 @@ class PscService {
|
|
|
21
21
|
this.client = client;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* Get the PSC individual details including their optional verification
|
|
24
|
+
* Get the PSC individual details including their optional identity verification details.
|
|
25
25
|
*
|
|
26
26
|
* @param companyNumber the Company Number to look up
|
|
27
27
|
* @param pscNotificationId the PSC Notification ID to retrieve
|
|
28
28
|
*/
|
|
29
29
|
getPscIndividual(companyNumber, pscNotificationId, headers) {
|
|
30
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
const resourceUri = `/company/${companyNumber}/persons-with-significant-control/individual/${pscNotificationId}
|
|
31
|
+
const resourceUri = `/company/${companyNumber}/persons-with-significant-control/individual/${pscNotificationId}`;
|
|
32
32
|
const response = yield this.client.httpGet(resourceUri, headers);
|
|
33
33
|
if (response.error) {
|
|
34
34
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/psc/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,oEAA4C;AAI5C;;GAEG;AACH,MAAqB,UAAU;IAC3B,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;;KAKC;IACY,gBAAgB,CAAE,aAAqB,EAAE,iBAAyB,EAAE,OAAiB;;YAC9F,MAAM,WAAW,GAAG,YAAY,aAAa,gDAAgD,iBAAiB,
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/services/psc/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,oEAA4C;AAI5C;;GAEG;AACH,MAAqB,UAAU;IAC3B,YAA8B,MAAmB;QAAnB,WAAM,GAAN,MAAM,CAAa;IAAI,CAAC;IAEtD;;;;;KAKC;IACY,gBAAgB,CAAE,aAAqB,EAAE,iBAAyB,EAAE,OAAiB;;YAC9F,MAAM,WAAW,GAAG,YAAY,aAAa,gDAAgD,iBAAiB,EAAE,CAAC;YACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YAEjE,IAAI,QAAQ,CAAC,KAAK,EAAE;gBAChB,OAAO;oBACH,cAAc,EAAE,QAAQ,CAAC,MAAM;oBAC/B,MAAM,EAAE,CAAC,QAAQ,CAAC,KAAK,CAAC;iBAC3B,CAAA;aACJ;YAED,MAAM,gBAAgB,GAA2C;gBAC7D,cAAc,EAAE,QAAQ,CAAC,MAAM;aAClC,CAAC;YAEF,MAAM,IAAI,GAAG,QAAQ,CAAC,IAA4C,CAAC;YACnE,gBAAgB,CAAC,QAAQ,GAAG,iBAAO,CAAC,aAAa,CAA+B,IAAI,CAAC,CAAC;YAEtF,OAAO,gBAAgB,CAAC;QAC5B,CAAC;KAAA;CACJ;AA7BD,6BA6BC"}
|
|
@@ -49,10 +49,14 @@ export interface ItemLinksResource {
|
|
|
49
49
|
statement?: string;
|
|
50
50
|
}
|
|
51
51
|
export interface IdentityVerificationDetailsResource {
|
|
52
|
+
anti_money_laundering_supervisory_bodies?: string[];
|
|
52
53
|
appointment_verification_end_on?: Date;
|
|
53
|
-
appointment_verification_statement_date
|
|
54
|
-
appointment_verification_statement_due_on
|
|
54
|
+
appointment_verification_statement_date: Date;
|
|
55
|
+
appointment_verification_statement_due_on: Date;
|
|
55
56
|
appointment_verification_start_on?: Date;
|
|
57
|
+
authorised_corporate_service_provider_name?: string;
|
|
58
|
+
identity_verified_on?: Date;
|
|
59
|
+
preferred_name?: string;
|
|
56
60
|
}
|
|
57
61
|
export declare enum KindEnum {
|
|
58
62
|
INDIVIDUAL_PERSON_WITH_SIGNIFICANT_CONTROL = "individual-person-with-significant-control"
|
|
@@ -105,8 +109,12 @@ export interface ItemLinks {
|
|
|
105
109
|
statement?: string;
|
|
106
110
|
}
|
|
107
111
|
export interface IdentityVerificationDetails {
|
|
112
|
+
antiMoneyLaunderingSupervisoryBodies?: string[];
|
|
108
113
|
appointmentVerificationEndOn?: Date;
|
|
109
|
-
appointmentVerificationStatementDate
|
|
110
|
-
appointmentVerificationStatementDueOn
|
|
114
|
+
appointmentVerificationStatementDate: Date;
|
|
115
|
+
appointmentVerificationStatementDueOn: Date;
|
|
111
116
|
appointmentVerificationStartOn?: Date;
|
|
117
|
+
authorisedCorporateServiceProviderName?: string;
|
|
118
|
+
identityVerifiedOn?: Date;
|
|
119
|
+
preferredName?: string;
|
|
112
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/psc/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiBF,CAAC;AAYD,CAAC;AAMD,CAAC;AAQD,CAAC;AAKD,CAAC;AAKD,CAAC;
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/services/psc/types.ts"],"names":[],"mappings":";AAAA;;GAEG;;;AAiBF,CAAC;AAYD,CAAC;AAMD,CAAC;AAQD,CAAC;AAKD,CAAC;AAKD,CAAC;AAaF,IAAY,QAEX;AAFD,WAAY,QAAQ;IAClB,qGAAyF,CAAA;AAC3F,CAAC,EAFW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAEnB;AAiBA,CAAC;AAYD,CAAC;AAMD,CAAC;AAQD,CAAC;AAKD,CAAC;AAKD,CAAC"}
|