@emilgroup/insurance-sdk 1.0.1 → 1.0.4

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.
Files changed (57) hide show
  1. package/.openapi-generator/FILES +8 -1
  2. package/README.md +2 -2
  3. package/api/leads-api.ts +250 -15
  4. package/api/products-api.ts +876 -27
  5. package/base.ts +1 -1
  6. package/dist/api/leads-api.d.ts +138 -9
  7. package/dist/api/leads-api.js +211 -12
  8. package/dist/api/products-api.d.ts +478 -13
  9. package/dist/api/products-api.js +745 -40
  10. package/dist/base.js +1 -1
  11. package/dist/models/create-account-request-dto.d.ts +1 -1
  12. package/dist/models/create-bank-account-request-dto.d.ts +1 -1
  13. package/dist/models/create-dummy-policy-request-dto.d.ts +31 -0
  14. package/dist/models/{shared-create-lead-request-dto.js → create-dummy-policy-request-dto.js} +0 -0
  15. package/dist/models/create-lead-request-dto.d.ts +33 -7
  16. package/dist/models/create-lead-request-dto.js +7 -0
  17. package/dist/models/get-product-factor-value-request-dto.d.ts +4 -4
  18. package/dist/models/get-product-request-dto.d.ts +4 -4
  19. package/dist/models/grpc-create-policy-request-dto.d.ts +37 -0
  20. package/dist/models/grpc-create-policy-request-dto.js +15 -0
  21. package/dist/models/index.d.ts +8 -1
  22. package/dist/models/index.js +8 -1
  23. package/dist/models/store-product-factors-request-dto.d.ts +3 -2
  24. package/dist/models/update-lead-request-dto.d.ts +71 -0
  25. package/dist/models/update-lead-request-dto.js +22 -0
  26. package/dist/models/update-policy-request-dto.d.ts +3 -2
  27. package/dist/models/update-premium-formula-response-class.d.ts +25 -0
  28. package/dist/models/update-premium-formula-response-class.js +15 -0
  29. package/dist/models/update-product-field-response-class.d.ts +25 -0
  30. package/dist/models/update-product-field-response-class.js +15 -0
  31. package/dist/models/update-product-response-class.d.ts +25 -0
  32. package/dist/models/update-product-response-class.js +15 -0
  33. package/dist/models/update-product-version-response-class.d.ts +25 -0
  34. package/dist/models/update-product-version-response-class.js +15 -0
  35. package/dist/models/uploaded-document-dto.d.ts +24 -0
  36. package/dist/models/uploaded-document-dto.js +15 -0
  37. package/dist/models/validate-product-factors-request-dto.d.ts +3 -2
  38. package/models/create-account-request-dto.ts +1 -1
  39. package/models/create-bank-account-request-dto.ts +1 -1
  40. package/models/create-dummy-policy-request-dto.ts +37 -0
  41. package/models/create-lead-request-dto.ts +36 -7
  42. package/models/get-product-factor-value-request-dto.ts +4 -4
  43. package/models/get-product-request-dto.ts +4 -4
  44. package/models/grpc-create-policy-request-dto.ts +43 -0
  45. package/models/index.ts +8 -1
  46. package/models/store-product-factors-request-dto.ts +3 -2
  47. package/models/update-lead-request-dto.ts +80 -0
  48. package/models/update-policy-request-dto.ts +3 -2
  49. package/models/update-premium-formula-response-class.ts +31 -0
  50. package/models/update-product-field-response-class.ts +31 -0
  51. package/models/update-product-response-class.ts +31 -0
  52. package/models/update-product-version-response-class.ts +31 -0
  53. package/models/uploaded-document-dto.ts +30 -0
  54. package/models/validate-product-factors-request-dto.ts +3 -2
  55. package/package.json +1 -1
  56. package/dist/models/shared-create-lead-request-dto.d.ts +0 -45
  57. package/models/shared-create-lead-request-dto.ts +0 -51
@@ -19,6 +19,7 @@ models/create-account-request-dto.ts
19
19
  models/create-bank-account-request-dto.ts
20
20
  models/create-claim-request-dto.ts
21
21
  models/create-custom-application-request-dto.ts
22
+ models/create-dummy-policy-request-dto.ts
22
23
  models/create-insured-object-request-dto.ts
23
24
  models/create-insured-object-response-class.ts
24
25
  models/create-lead-request-dto.ts
@@ -50,6 +51,7 @@ models/get-product-version-response-class.ts
50
51
  models/grouped-product-factor-class.ts
51
52
  models/grouped-product-factor-value-class.ts
52
53
  models/grouped-product-factors-response-class.ts
54
+ models/grpc-create-policy-request-dto.ts
53
55
  models/index.ts
54
56
  models/insured-object-class.ts
55
57
  models/insured-object-type-class.ts
@@ -74,17 +76,22 @@ models/product-factor-class.ts
74
76
  models/product-factor-value-class.ts
75
77
  models/product-field-class.ts
76
78
  models/product-version-class.ts
77
- models/shared-create-lead-request-dto.ts
78
79
  models/store-product-factors-request-dto.ts
79
80
  models/store-product-factors-response-class.ts
80
81
  models/timeslice-class.ts
81
82
  models/update-insured-object-request-dto.ts
83
+ models/update-lead-request-dto.ts
82
84
  models/update-policy-request-dto.ts
83
85
  models/update-policy-response-class.ts
84
86
  models/update-premium-formula-request-dto.ts
87
+ models/update-premium-formula-response-class.ts
85
88
  models/update-product-field-request-dto.ts
89
+ models/update-product-field-response-class.ts
86
90
  models/update-product-request-dto.ts
91
+ models/update-product-response-class.ts
87
92
  models/update-product-version-request-dto.ts
93
+ models/update-product-version-response-class.ts
94
+ models/uploaded-document-dto.ts
88
95
  models/validate-product-factors-request-dto.ts
89
96
  package.json
90
97
  tsconfig.json
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @emilgroup/insurance-sdk@1.0.1
1
+ ## @emilgroup/insurance-sdk@1.0.4
2
2
 
3
3
  This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -22,7 +22,7 @@ It can be used in both TypeScript and JavaScript. In TypeScript, the definition
22
22
  navigate to the folder of your consuming project and run one of the following commands.
23
23
 
24
24
  ```
25
- npm install @emilgroup/insurance-sdk@1.0.1 --save
25
+ npm install @emilgroup/insurance-sdk@1.0.4 --save
26
26
  ```
27
27
  And then you can import `PoliciesApi`.
28
28
 
package/api/leads-api.ts CHANGED
@@ -21,7 +21,9 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
- import { SharedCreateLeadRequestDto } from '../models';
24
+ import { CreateLeadRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { UpdateLeadRequestDto } from '../models';
25
27
  // URLSearchParams not necessarily used
26
28
  // @ts-ignore
27
29
  import { URL, URLSearchParams } from 'url';
@@ -35,14 +37,14 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
35
37
  /**
36
38
  * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
37
39
  * @summary Create the lead
38
- * @param {SharedCreateLeadRequestDto} sharedCreateLeadRequestDto
40
+ * @param {CreateLeadRequestDto} createLeadRequestDto
39
41
  * @param {string} [authorization] Bearer Token
40
42
  * @param {*} [options] Override http request option.
41
43
  * @throws {RequiredError}
42
44
  */
43
- createLead: async (sharedCreateLeadRequestDto: SharedCreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
- // verify required parameter 'sharedCreateLeadRequestDto' is not null or undefined
45
- assertParamExists('createLead', 'sharedCreateLeadRequestDto', sharedCreateLeadRequestDto)
45
+ createLead: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'createLeadRequestDto' is not null or undefined
47
+ assertParamExists('createLead', 'createLeadRequestDto', createLeadRequestDto)
46
48
  const localVarPath = `/insuranceservice/v1/leads`;
47
49
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
48
50
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -72,7 +74,110 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
72
74
  setSearchParams(localVarUrlObj, localVarQueryParameter);
73
75
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
74
76
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
75
- localVarRequestOptions.data = serializeDataIfNeeded(sharedCreateLeadRequestDto, localVarRequestOptions, configuration)
77
+ localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
78
+
79
+ return {
80
+ url: toPathString(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ },
84
+ /**
85
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
86
+ * @summary Retrieve the lead
87
+ * @param {string} code Unique identifier for the object.
88
+ * @param {string} expand
89
+ * @param {string} [authorization] Bearer Token
90
+ * @param {*} [options] Override http request option.
91
+ * @throws {RequiredError}
92
+ */
93
+ getLead: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
94
+ // verify required parameter 'code' is not null or undefined
95
+ assertParamExists('getLead', 'code', code)
96
+ // verify required parameter 'expand' is not null or undefined
97
+ assertParamExists('getLead', 'expand', expand)
98
+ const localVarPath = `/insuranceservice/v1/leads/{code}`
99
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
100
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
101
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
102
+ let baseOptions;
103
+ let baseAccessToken;
104
+ if (configuration) {
105
+ baseOptions = configuration.baseOptions;
106
+ baseAccessToken = configuration.accessToken;
107
+ }
108
+
109
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
110
+ const localVarHeaderParameter = {} as any;
111
+ const localVarQueryParameter = {} as any;
112
+
113
+ // authentication bearer required
114
+ // http bearer authentication required
115
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
116
+
117
+ if (expand !== undefined) {
118
+ localVarQueryParameter['expand'] = expand;
119
+ }
120
+
121
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
+ }
124
+
125
+
126
+
127
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
128
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
130
+
131
+ return {
132
+ url: toPathString(localVarUrlObj),
133
+ options: localVarRequestOptions,
134
+ };
135
+ },
136
+ /**
137
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
138
+ * @summary Update the lead
139
+ * @param {string} code Unique identifier for the object.
140
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
141
+ * @param {string} [authorization] Bearer Token
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ updateLead: async (code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'code' is not null or undefined
147
+ assertParamExists('updateLead', 'code', code)
148
+ // verify required parameter 'updateLeadRequestDto' is not null or undefined
149
+ assertParamExists('updateLead', 'updateLeadRequestDto', updateLeadRequestDto)
150
+ const localVarPath = `/insuranceservice/v1/leads/{code}`
151
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
+ let baseOptions;
155
+ let baseAccessToken;
156
+ if (configuration) {
157
+ baseOptions = configuration.baseOptions;
158
+ baseAccessToken = configuration.accessToken;
159
+ }
160
+
161
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
162
+ const localVarHeaderParameter = {} as any;
163
+ const localVarQueryParameter = {} as any;
164
+
165
+ // authentication bearer required
166
+ // http bearer authentication required
167
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
168
+
169
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
170
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
171
+ }
172
+
173
+
174
+
175
+ localVarHeaderParameter['Content-Type'] = 'application/json';
176
+
177
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
178
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
179
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
180
+ localVarRequestOptions.data = serializeDataIfNeeded(updateLeadRequestDto, localVarRequestOptions, configuration)
76
181
 
77
182
  return {
78
183
  url: toPathString(localVarUrlObj),
@@ -92,13 +197,39 @@ export const LeadsApiFp = function(configuration?: Configuration) {
92
197
  /**
93
198
  * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
94
199
  * @summary Create the lead
95
- * @param {SharedCreateLeadRequestDto} sharedCreateLeadRequestDto
200
+ * @param {CreateLeadRequestDto} createLeadRequestDto
96
201
  * @param {string} [authorization] Bearer Token
97
202
  * @param {*} [options] Override http request option.
98
203
  * @throws {RequiredError}
99
204
  */
100
- async createLead(sharedCreateLeadRequestDto: SharedCreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
101
- const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(sharedCreateLeadRequestDto, authorization, options);
205
+ async createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
206
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options);
207
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
208
+ },
209
+ /**
210
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
211
+ * @summary Retrieve the lead
212
+ * @param {string} code Unique identifier for the object.
213
+ * @param {string} expand
214
+ * @param {string} [authorization] Bearer Token
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ async getLead(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
219
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLead(code, expand, authorization, options);
220
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
221
+ },
222
+ /**
223
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
224
+ * @summary Update the lead
225
+ * @param {string} code Unique identifier for the object.
226
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
227
+ * @param {string} [authorization] Bearer Token
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ async updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
232
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, updateLeadRequestDto, authorization, options);
102
233
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
103
234
  },
104
235
  }
@@ -114,13 +245,37 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
114
245
  /**
115
246
  * This will create a lead. Lead creation is the first step of a workflow responsible for the creation of an account, policy, banking information.
116
247
  * @summary Create the lead
117
- * @param {SharedCreateLeadRequestDto} sharedCreateLeadRequestDto
248
+ * @param {CreateLeadRequestDto} createLeadRequestDto
249
+ * @param {string} [authorization] Bearer Token
250
+ * @param {*} [options] Override http request option.
251
+ * @throws {RequiredError}
252
+ */
253
+ createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
254
+ return localVarFp.createLead(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
255
+ },
256
+ /**
257
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
258
+ * @summary Retrieve the lead
259
+ * @param {string} code Unique identifier for the object.
260
+ * @param {string} expand
118
261
  * @param {string} [authorization] Bearer Token
119
262
  * @param {*} [options] Override http request option.
120
263
  * @throws {RequiredError}
121
264
  */
122
- createLead(sharedCreateLeadRequestDto: SharedCreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
123
- return localVarFp.createLead(sharedCreateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
265
+ getLead(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<object> {
266
+ return localVarFp.getLead(code, expand, authorization, options).then((request) => request(axios, basePath));
267
+ },
268
+ /**
269
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
270
+ * @summary Update the lead
271
+ * @param {string} code Unique identifier for the object.
272
+ * @param {UpdateLeadRequestDto} updateLeadRequestDto
273
+ * @param {string} [authorization] Bearer Token
274
+ * @param {*} [options] Override http request option.
275
+ * @throws {RequiredError}
276
+ */
277
+ updateLead(code: string, updateLeadRequestDto: UpdateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
278
+ return localVarFp.updateLead(code, updateLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
124
279
  },
125
280
  };
126
281
  };
@@ -133,10 +288,10 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
133
288
  export interface LeadsApiCreateLeadRequest {
134
289
  /**
135
290
  *
136
- * @type {SharedCreateLeadRequestDto}
291
+ * @type {CreateLeadRequestDto}
137
292
  * @memberof LeadsApiCreateLead
138
293
  */
139
- readonly sharedCreateLeadRequestDto: SharedCreateLeadRequestDto
294
+ readonly createLeadRequestDto: CreateLeadRequestDto
140
295
 
141
296
  /**
142
297
  * Bearer Token
@@ -146,6 +301,62 @@ export interface LeadsApiCreateLeadRequest {
146
301
  readonly authorization?: string
147
302
  }
148
303
 
304
+ /**
305
+ * Request parameters for getLead operation in LeadsApi.
306
+ * @export
307
+ * @interface LeadsApiGetLeadRequest
308
+ */
309
+ export interface LeadsApiGetLeadRequest {
310
+ /**
311
+ * Unique identifier for the object.
312
+ * @type {string}
313
+ * @memberof LeadsApiGetLead
314
+ */
315
+ readonly code: string
316
+
317
+ /**
318
+ *
319
+ * @type {string}
320
+ * @memberof LeadsApiGetLead
321
+ */
322
+ readonly expand: string
323
+
324
+ /**
325
+ * Bearer Token
326
+ * @type {string}
327
+ * @memberof LeadsApiGetLead
328
+ */
329
+ readonly authorization?: string
330
+ }
331
+
332
+ /**
333
+ * Request parameters for updateLead operation in LeadsApi.
334
+ * @export
335
+ * @interface LeadsApiUpdateLeadRequest
336
+ */
337
+ export interface LeadsApiUpdateLeadRequest {
338
+ /**
339
+ * Unique identifier for the object.
340
+ * @type {string}
341
+ * @memberof LeadsApiUpdateLead
342
+ */
343
+ readonly code: string
344
+
345
+ /**
346
+ *
347
+ * @type {UpdateLeadRequestDto}
348
+ * @memberof LeadsApiUpdateLead
349
+ */
350
+ readonly updateLeadRequestDto: UpdateLeadRequestDto
351
+
352
+ /**
353
+ * Bearer Token
354
+ * @type {string}
355
+ * @memberof LeadsApiUpdateLead
356
+ */
357
+ readonly authorization?: string
358
+ }
359
+
149
360
  /**
150
361
  * LeadsApi - object-oriented interface
151
362
  * @export
@@ -162,6 +373,30 @@ export class LeadsApi extends BaseAPI {
162
373
  * @memberof LeadsApi
163
374
  */
164
375
  public createLead(requestParameters: LeadsApiCreateLeadRequest, options?: AxiosRequestConfig) {
165
- return LeadsApiFp(this.configuration).createLead(requestParameters.sharedCreateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
376
+ return LeadsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
377
+ }
378
+
379
+ /**
380
+ * Retrieves the details of the lead that was previously created. Supply the unique lead code that was returned when you created it and Emil Api will return the corresponding lead information.
381
+ * @summary Retrieve the lead
382
+ * @param {LeadsApiGetLeadRequest} requestParameters Request parameters.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ * @memberof LeadsApi
386
+ */
387
+ public getLead(requestParameters: LeadsApiGetLeadRequest, options?: AxiosRequestConfig) {
388
+ return LeadsApiFp(this.configuration).getLead(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
389
+ }
390
+
391
+ /**
392
+ * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
393
+ * @summary Update the lead
394
+ * @param {LeadsApiUpdateLeadRequest} requestParameters Request parameters.
395
+ * @param {*} [options] Override http request option.
396
+ * @throws {RequiredError}
397
+ * @memberof LeadsApi
398
+ */
399
+ public updateLead(requestParameters: LeadsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
400
+ return LeadsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.updateLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
166
401
  }
167
402
  }