Skip to content

Commit b0f7342

Browse files
committed
Generate LEM
1 parent 26349e2 commit b0f7342

File tree

101 files changed

+2886
-1666
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+2886
-1666
lines changed

src/services/legalEntityManagement/businessLinesApi.ts

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,21 @@
77
* Do not edit this class manually.
88
*/
99

10+
1011
import getJsonResponse from "../../helpers/getJsonResponse";
1112
import Service from "../../service";
1213
import Client from "../../client";
13-
import {
14-
BusinessLine,
15-
BusinessLineInfo,
16-
BusinessLineInfoUpdate,
17-
ObjectSerializer
18-
} from "../../typings/legalEntityManagement/models";
1914
import { IRequest } from "../../typings/requestOptions";
2015
import Resource from "../resource";
2116

17+
import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer";
18+
import { BusinessLine } from "../../typings/legalEntityManagement/models";
19+
import { BusinessLineInfo } from "../../typings/legalEntityManagement/models";
20+
import { BusinessLineInfoUpdate } from "../../typings/legalEntityManagement/models";
21+
22+
/**
23+
* API handler for BusinessLinesApi
24+
*/
2225
export class BusinessLinesApi extends Service {
2326

2427
private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3";
@@ -38,24 +41,28 @@ export class BusinessLinesApi extends Service {
3841
public async createBusinessLine(businessLineInfo: BusinessLineInfo, requestOptions?: IRequest.Options): Promise<BusinessLine> {
3942
const endpoint = `${this.baseUrl}/businessLines`;
4043
const resource = new Resource(this, endpoint);
41-
const request: BusinessLineInfo = ObjectSerializer.serialize(businessLineInfo, "BusinessLineInfo");
44+
45+
const request: BusinessLineInfo = ObjectSerializer.serialize(businessLineInfo, "BusinessLineInfo", "");
4246
const response = await getJsonResponse<BusinessLineInfo, BusinessLine>(
4347
resource,
4448
request,
4549
{ ...requestOptions, method: "POST" }
4650
);
47-
return ObjectSerializer.deserialize(response, "BusinessLine");
51+
52+
return ObjectSerializer.deserialize(response, "BusinessLine", "");
4853
}
4954

5055
/**
5156
* @summary Delete a business line
5257
* @param id {@link string } The unique identifier of the business line to be deleted.
5358
* @param requestOptions {@link IRequest.Options }
59+
* @return {@link void }
5460
*/
5561
public async deleteBusinessLine(id: string, requestOptions?: IRequest.Options): Promise<void> {
5662
const endpoint = `${this.baseUrl}/businessLines/{id}`
5763
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
5864
const resource = new Resource(this, endpoint);
65+
5966
await getJsonResponse<string, void>(
6067
resource,
6168
"",
@@ -73,12 +80,14 @@ export class BusinessLinesApi extends Service {
7380
const endpoint = `${this.baseUrl}/businessLines/{id}`
7481
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
7582
const resource = new Resource(this, endpoint);
83+
7684
const response = await getJsonResponse<string, BusinessLine>(
7785
resource,
7886
"",
7987
{ ...requestOptions, method: "GET" }
8088
);
81-
return ObjectSerializer.deserialize(response, "BusinessLine");
89+
90+
return ObjectSerializer.deserialize(response, "BusinessLine", "");
8291
}
8392

8493
/**
@@ -92,12 +101,15 @@ export class BusinessLinesApi extends Service {
92101
const endpoint = `${this.baseUrl}/businessLines/{id}`
93102
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
94103
const resource = new Resource(this, endpoint);
95-
const request: BusinessLineInfoUpdate = ObjectSerializer.serialize(businessLineInfoUpdate, "BusinessLineInfoUpdate");
104+
105+
const request: BusinessLineInfoUpdate = ObjectSerializer.serialize(businessLineInfoUpdate, "BusinessLineInfoUpdate", "");
96106
const response = await getJsonResponse<BusinessLineInfoUpdate, BusinessLine>(
97107
resource,
98108
request,
99109
{ ...requestOptions, method: "PATCH" }
100110
);
101-
return ObjectSerializer.deserialize(response, "BusinessLine");
111+
112+
return ObjectSerializer.deserialize(response, "BusinessLine", "");
102113
}
114+
103115
}

src/services/legalEntityManagement/documentsApi.ts

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@
77
* Do not edit this class manually.
88
*/
99

10+
1011
import getJsonResponse from "../../helpers/getJsonResponse";
1112
import Service from "../../service";
1213
import Client from "../../client";
13-
import {
14-
Document,
15-
ObjectSerializer
16-
} from "../../typings/legalEntityManagement/models";
1714
import { IRequest } from "../../typings/requestOptions";
1815
import Resource from "../resource";
1916

17+
import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer";
18+
import { Document } from "../../typings/legalEntityManagement/models";
19+
20+
/**
21+
* API handler for DocumentsApi
22+
*/
2023
export class DocumentsApi extends Service {
2124

2225
private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3";
@@ -31,11 +34,13 @@ export class DocumentsApi extends Service {
3134
* @summary Delete a document
3235
* @param id {@link string } The unique identifier of the document to be deleted.
3336
* @param requestOptions {@link IRequest.Options }
37+
* @return {@link void }
3438
*/
3539
public async deleteDocument(id: string, requestOptions?: IRequest.Options): Promise<void> {
3640
const endpoint = `${this.baseUrl}/documents/{id}`
3741
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
3842
const resource = new Resource(this, endpoint);
43+
3944
await getJsonResponse<string, void>(
4045
resource,
4146
"",
@@ -54,6 +59,7 @@ export class DocumentsApi extends Service {
5459
const endpoint = `${this.baseUrl}/documents/{id}`
5560
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
5661
const resource = new Resource(this, endpoint);
62+
5763
const hasDefinedQueryParams = skipContent;
5864
if(hasDefinedQueryParams) {
5965
if(!requestOptions) requestOptions = {};
@@ -65,7 +71,8 @@ export class DocumentsApi extends Service {
6571
"",
6672
{ ...requestOptions, method: "GET" }
6773
);
68-
return ObjectSerializer.deserialize(response, "Document");
74+
75+
return ObjectSerializer.deserialize(response, "Document", "");
6976
}
7077

7178
/**
@@ -79,13 +86,15 @@ export class DocumentsApi extends Service {
7986
const endpoint = `${this.baseUrl}/documents/{id}`
8087
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
8188
const resource = new Resource(this, endpoint);
82-
const request: Document = ObjectSerializer.serialize(document, "Document");
89+
90+
const request: Document = ObjectSerializer.serialize(document, "Document", "");
8391
const response = await getJsonResponse<Document, Document>(
8492
resource,
8593
request,
8694
{ ...requestOptions, method: "PATCH" }
8795
);
88-
return ObjectSerializer.deserialize(response, "Document");
96+
97+
return ObjectSerializer.deserialize(response, "Document", "");
8998
}
9099

91100
/**
@@ -97,12 +106,15 @@ export class DocumentsApi extends Service {
97106
public async uploadDocumentForVerificationChecks(document: Document, requestOptions?: IRequest.Options): Promise<Document> {
98107
const endpoint = `${this.baseUrl}/documents`;
99108
const resource = new Resource(this, endpoint);
100-
const request: Document = ObjectSerializer.serialize(document, "Document");
109+
110+
const request: Document = ObjectSerializer.serialize(document, "Document", "");
101111
const response = await getJsonResponse<Document, Document>(
102112
resource,
103113
request,
104114
{ ...requestOptions, method: "POST" }
105115
);
106-
return ObjectSerializer.deserialize(response, "Document");
116+
117+
return ObjectSerializer.deserialize(response, "Document", "");
107118
}
119+
108120
}

src/services/legalEntityManagement/hostedOnboardingApi.ts

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@
77
* Do not edit this class manually.
88
*/
99

10+
1011
import getJsonResponse from "../../helpers/getJsonResponse";
1112
import Service from "../../service";
1213
import Client from "../../client";
13-
import {
14-
OnboardingLink,
15-
OnboardingLinkInfo,
16-
OnboardingTheme,
17-
OnboardingThemes,
18-
ObjectSerializer
19-
} from "../../typings/legalEntityManagement/models";
2014
import { IRequest } from "../../typings/requestOptions";
2115
import Resource from "../resource";
2216

17+
import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer";
18+
import { OnboardingLink } from "../../typings/legalEntityManagement/models";
19+
import { OnboardingLinkInfo } from "../../typings/legalEntityManagement/models";
20+
import { OnboardingTheme } from "../../typings/legalEntityManagement/models";
21+
import { OnboardingThemes } from "../../typings/legalEntityManagement/models";
22+
23+
/**
24+
* API handler for HostedOnboardingApi
25+
*/
2326
export class HostedOnboardingApi extends Service {
2427

2528
private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3";
@@ -41,13 +44,15 @@ export class HostedOnboardingApi extends Service {
4144
const endpoint = `${this.baseUrl}/legalEntities/{id}/onboardingLinks`
4245
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
4346
const resource = new Resource(this, endpoint);
44-
const request: OnboardingLinkInfo = ObjectSerializer.serialize(onboardingLinkInfo, "OnboardingLinkInfo");
47+
48+
const request: OnboardingLinkInfo = ObjectSerializer.serialize(onboardingLinkInfo, "OnboardingLinkInfo", "");
4549
const response = await getJsonResponse<OnboardingLinkInfo, OnboardingLink>(
4650
resource,
4751
request,
4852
{ ...requestOptions, method: "POST" }
4953
);
50-
return ObjectSerializer.deserialize(response, "OnboardingLink");
54+
55+
return ObjectSerializer.deserialize(response, "OnboardingLink", "");
5156
}
5257

5358
/**
@@ -60,12 +65,14 @@ export class HostedOnboardingApi extends Service {
6065
const endpoint = `${this.baseUrl}/themes/{id}`
6166
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
6267
const resource = new Resource(this, endpoint);
68+
6369
const response = await getJsonResponse<string, OnboardingTheme>(
6470
resource,
6571
"",
6672
{ ...requestOptions, method: "GET" }
6773
);
68-
return ObjectSerializer.deserialize(response, "OnboardingTheme");
74+
75+
return ObjectSerializer.deserialize(response, "OnboardingTheme", "");
6976
}
7077

7178
/**
@@ -76,11 +83,14 @@ export class HostedOnboardingApi extends Service {
7683
public async listHostedOnboardingPageThemes(requestOptions?: IRequest.Options): Promise<OnboardingThemes> {
7784
const endpoint = `${this.baseUrl}/themes`;
7885
const resource = new Resource(this, endpoint);
86+
7987
const response = await getJsonResponse<string, OnboardingThemes>(
8088
resource,
8189
"",
8290
{ ...requestOptions, method: "GET" }
8391
);
84-
return ObjectSerializer.deserialize(response, "OnboardingThemes");
92+
93+
return ObjectSerializer.deserialize(response, "OnboardingThemes", "");
8594
}
95+
8696
}

src/services/legalEntityManagement/legalEntitiesApi.ts

Lines changed: 33 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@
77
* Do not edit this class manually.
88
*/
99

10+
1011
import getJsonResponse from "../../helpers/getJsonResponse";
1112
import Service from "../../service";
1213
import Client from "../../client";
13-
import {
14-
BusinessLines,
15-
DataReviewConfirmationResponse,
16-
LegalEntity,
17-
LegalEntityInfo,
18-
LegalEntityInfoRequiredType,
19-
VerificationErrors,
20-
ObjectSerializer
21-
} from "../../typings/legalEntityManagement/models";
2214
import { IRequest } from "../../typings/requestOptions";
2315
import Resource from "../resource";
2416

17+
import { ObjectSerializer } from "../../typings/legalEntityManagement/objectSerializer";
18+
import { BusinessLines } from "../../typings/legalEntityManagement/models";
19+
import { DataReviewConfirmationResponse } from "../../typings/legalEntityManagement/models";
20+
import { LegalEntity } from "../../typings/legalEntityManagement/models";
21+
import { LegalEntityInfo } from "../../typings/legalEntityManagement/models";
22+
import { LegalEntityInfoRequiredType } from "../../typings/legalEntityManagement/models";
23+
import { VerificationErrors } from "../../typings/legalEntityManagement/models";
24+
25+
/**
26+
* API handler for LegalEntitiesApi
27+
*/
2528
export class LegalEntitiesApi extends Service {
2629

2730
private readonly API_BASEPATH: string = "https://kyc-test.adyen.com/lem/v3";
@@ -42,12 +45,14 @@ export class LegalEntitiesApi extends Service {
4245
const endpoint = `${this.baseUrl}/legalEntities/{id}/checkVerificationErrors`
4346
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
4447
const resource = new Resource(this, endpoint);
48+
4549
const response = await getJsonResponse<string, VerificationErrors>(
4650
resource,
4751
"",
4852
{ ...requestOptions, method: "POST" }
4953
);
50-
return ObjectSerializer.deserialize(response, "VerificationErrors");
54+
55+
return ObjectSerializer.deserialize(response, "VerificationErrors", "");
5156
}
5257

5358
/**
@@ -60,12 +65,14 @@ export class LegalEntitiesApi extends Service {
6065
const endpoint = `${this.baseUrl}/legalEntities/{id}/confirmDataReview`
6166
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
6267
const resource = new Resource(this, endpoint);
68+
6369
const response = await getJsonResponse<string, DataReviewConfirmationResponse>(
6470
resource,
6571
"",
6672
{ ...requestOptions, method: "POST" }
6773
);
68-
return ObjectSerializer.deserialize(response, "DataReviewConfirmationResponse");
74+
75+
return ObjectSerializer.deserialize(response, "DataReviewConfirmationResponse", "");
6976
}
7077

7178
/**
@@ -77,13 +84,15 @@ export class LegalEntitiesApi extends Service {
7784
public async createLegalEntity(legalEntityInfoRequiredType: LegalEntityInfoRequiredType, requestOptions?: IRequest.Options): Promise<LegalEntity> {
7885
const endpoint = `${this.baseUrl}/legalEntities`;
7986
const resource = new Resource(this, endpoint);
80-
const request: LegalEntityInfoRequiredType = ObjectSerializer.serialize(legalEntityInfoRequiredType, "LegalEntityInfoRequiredType");
87+
88+
const request: LegalEntityInfoRequiredType = ObjectSerializer.serialize(legalEntityInfoRequiredType, "LegalEntityInfoRequiredType", "");
8189
const response = await getJsonResponse<LegalEntityInfoRequiredType, LegalEntity>(
8290
resource,
8391
request,
8492
{ ...requestOptions, method: "POST" }
8593
);
86-
return ObjectSerializer.deserialize(response, "LegalEntity");
94+
95+
return ObjectSerializer.deserialize(response, "LegalEntity", "");
8796
}
8897

8998
/**
@@ -96,12 +105,14 @@ export class LegalEntitiesApi extends Service {
96105
const endpoint = `${this.baseUrl}/legalEntities/{id}/businessLines`
97106
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
98107
const resource = new Resource(this, endpoint);
108+
99109
const response = await getJsonResponse<string, BusinessLines>(
100110
resource,
101111
"",
102112
{ ...requestOptions, method: "GET" }
103113
);
104-
return ObjectSerializer.deserialize(response, "BusinessLines");
114+
115+
return ObjectSerializer.deserialize(response, "BusinessLines", "");
105116
}
106117

107118
/**
@@ -114,12 +125,14 @@ export class LegalEntitiesApi extends Service {
114125
const endpoint = `${this.baseUrl}/legalEntities/{id}`
115126
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
116127
const resource = new Resource(this, endpoint);
128+
117129
const response = await getJsonResponse<string, LegalEntity>(
118130
resource,
119131
"",
120132
{ ...requestOptions, method: "GET" }
121133
);
122-
return ObjectSerializer.deserialize(response, "LegalEntity");
134+
135+
return ObjectSerializer.deserialize(response, "LegalEntity", "");
123136
}
124137

125138
/**
@@ -133,12 +146,15 @@ export class LegalEntitiesApi extends Service {
133146
const endpoint = `${this.baseUrl}/legalEntities/{id}`
134147
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
135148
const resource = new Resource(this, endpoint);
136-
const request: LegalEntityInfo = ObjectSerializer.serialize(legalEntityInfo, "LegalEntityInfo");
149+
150+
const request: LegalEntityInfo = ObjectSerializer.serialize(legalEntityInfo, "LegalEntityInfo", "");
137151
const response = await getJsonResponse<LegalEntityInfo, LegalEntity>(
138152
resource,
139153
request,
140154
{ ...requestOptions, method: "PATCH" }
141155
);
142-
return ObjectSerializer.deserialize(response, "LegalEntity");
156+
157+
return ObjectSerializer.deserialize(response, "LegalEntity", "");
143158
}
159+
144160
}

0 commit comments

Comments
 (0)