@emilgroup/public-api-sdk-node 1.0.0

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 (76) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +51 -0
  5. package/api/documents-api.ts +424 -0
  6. package/api/payment-setup-api.ts +260 -0
  7. package/api/products-api.ts +958 -0
  8. package/api.ts +36 -0
  9. package/base.ts +247 -0
  10. package/common.ts +198 -0
  11. package/configuration.ts +101 -0
  12. package/dist/api/documents-api.d.ts +239 -0
  13. package/dist/api/documents-api.js +427 -0
  14. package/dist/api/payment-setup-api.d.ts +144 -0
  15. package/dist/api/payment-setup-api.js +309 -0
  16. package/dist/api/products-api.d.ts +511 -0
  17. package/dist/api/products-api.js +935 -0
  18. package/dist/api.d.ts +18 -0
  19. package/dist/api.js +38 -0
  20. package/dist/base.d.ts +72 -0
  21. package/dist/base.js +293 -0
  22. package/dist/common.d.ts +91 -0
  23. package/dist/common.js +276 -0
  24. package/dist/configuration.d.ts +83 -0
  25. package/dist/configuration.js +44 -0
  26. package/dist/index.d.ts +15 -0
  27. package/dist/index.js +35 -0
  28. package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +48 -0
  29. package/dist/models/complete-braintree-payment-setup-request-dto.js +15 -0
  30. package/dist/models/complete-payment-setup-request-dto.d.ts +32 -0
  31. package/dist/models/complete-payment-setup-request-dto.js +15 -0
  32. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +54 -0
  33. package/dist/models/complete-stripe-payment-setup-request-dto.js +15 -0
  34. package/dist/models/create-account-request-dto.d.ts +90 -0
  35. package/dist/models/create-account-request-dto.js +21 -0
  36. package/dist/models/create-bank-account-request-dto.d.ts +30 -0
  37. package/dist/models/create-bank-account-request-dto.js +15 -0
  38. package/dist/models/create-custom-application-request-dto.d.ts +34 -0
  39. package/dist/models/create-custom-application-request-dto.js +19 -0
  40. package/dist/models/create-document-request-dto.d.ts +95 -0
  41. package/dist/models/create-document-request-dto.js +31 -0
  42. package/dist/models/create-estimated-invoice-request-dto.d.ts +41 -0
  43. package/dist/models/create-estimated-invoice-request-dto.js +19 -0
  44. package/dist/models/create-lead-request-dto.d.ts +77 -0
  45. package/dist/models/create-lead-request-dto.js +22 -0
  46. package/dist/models/index.d.ts +14 -0
  47. package/dist/models/index.js +30 -0
  48. package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +24 -0
  49. package/dist/models/initiate-braintree-payment-setup-request-dto.js +15 -0
  50. package/dist/models/initiate-payment-setup-request-dto.d.ts +32 -0
  51. package/dist/models/initiate-payment-setup-request-dto.js +15 -0
  52. package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +24 -0
  53. package/dist/models/initiate-stripe-payment-setup-request-dto.js +15 -0
  54. package/dist/models/policy-object-request-dto.d.ts +30 -0
  55. package/dist/models/policy-object-request-dto.js +15 -0
  56. package/dist/models/uploaded-document-dto.d.ts +24 -0
  57. package/dist/models/uploaded-document-dto.js +15 -0
  58. package/git_push.sh +57 -0
  59. package/index.ts +19 -0
  60. package/models/complete-braintree-payment-setup-request-dto.ts +54 -0
  61. package/models/complete-payment-setup-request-dto.ts +38 -0
  62. package/models/complete-stripe-payment-setup-request-dto.ts +60 -0
  63. package/models/create-account-request-dto.ts +99 -0
  64. package/models/create-bank-account-request-dto.ts +36 -0
  65. package/models/create-custom-application-request-dto.ts +43 -0
  66. package/models/create-document-request-dto.ts +105 -0
  67. package/models/create-estimated-invoice-request-dto.ts +50 -0
  68. package/models/create-lead-request-dto.ts +86 -0
  69. package/models/index.ts +14 -0
  70. package/models/initiate-braintree-payment-setup-request-dto.ts +30 -0
  71. package/models/initiate-payment-setup-request-dto.ts +38 -0
  72. package/models/initiate-stripe-payment-setup-request-dto.ts +30 -0
  73. package/models/policy-object-request-dto.ts +36 -0
  74. package/models/uploaded-document-dto.ts +30 -0
  75. package/package.json +27 -0
  76. package/tsconfig.json +22 -0
@@ -0,0 +1,958 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL PublicAPI
5
+ * The EMIL Public API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateCustomApplicationRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateEstimatedInvoiceRequestDto } from '../models';
27
+ // @ts-ignore
28
+ import { CreateLeadRequestDto } from '../models';
29
+ /**
30
+ * ProductsApi - axios parameter creator
31
+ * @export
32
+ */
33
+ export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
34
+ return {
35
+ /**
36
+ *
37
+ * @param {string} productCode
38
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
39
+ * @param {string} [authorization] Bearer Token
40
+ * @param {*} [options] Override http request option.
41
+ * @throws {RequiredError}
42
+ */
43
+ createEstimatedInvoice: async (productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ // verify required parameter 'productCode' is not null or undefined
45
+ assertParamExists('createEstimatedInvoice', 'productCode', productCode)
46
+ // verify required parameter 'createEstimatedInvoiceRequestDto' is not null or undefined
47
+ assertParamExists('createEstimatedInvoice', 'createEstimatedInvoiceRequestDto', createEstimatedInvoiceRequestDto)
48
+ const localVarPath = `/publicapi/v1/products/{product_code}/product-invoice`
49
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ localVarHeaderParameter['Content-Type'] = 'application/json';
74
+
75
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
76
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
+ localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration)
79
+
80
+ return {
81
+ url: toPathString(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ *
87
+ * @param {CreateLeadRequestDto} createLeadRequestDto
88
+ * @param {string} [authorization] Bearer Token
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ createLead: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'createLeadRequestDto' is not null or undefined
94
+ assertParamExists('createLead', 'createLeadRequestDto', createLeadRequestDto)
95
+ const localVarPath = `/publicapi/v1/leads`;
96
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
97
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
98
+ let baseOptions;
99
+ let baseAccessToken;
100
+ if (configuration) {
101
+ baseOptions = configuration.baseOptions;
102
+ baseAccessToken = configuration.accessToken;
103
+ }
104
+
105
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
106
+ const localVarHeaderParameter = {} as any;
107
+ const localVarQueryParameter = {} as any;
108
+
109
+ // authentication bearer required
110
+ // http bearer authentication required
111
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
112
+
113
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
114
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
115
+ }
116
+
117
+
118
+
119
+ localVarHeaderParameter['Content-Type'] = 'application/json';
120
+
121
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
122
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
123
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
124
+ localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
125
+
126
+ return {
127
+ url: toPathString(localVarUrlObj),
128
+ options: localVarRequestOptions,
129
+ };
130
+ },
131
+ /**
132
+ *
133
+ * @param {string} productCode
134
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
135
+ * @param {string} [authorization] Bearer Token
136
+ * @param {*} [options] Override http request option.
137
+ * @throws {RequiredError}
138
+ */
139
+ customApplication: async (productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
140
+ // verify required parameter 'productCode' is not null or undefined
141
+ assertParamExists('customApplication', 'productCode', productCode)
142
+ // verify required parameter 'createCustomApplicationRequestDto' is not null or undefined
143
+ assertParamExists('customApplication', 'createCustomApplicationRequestDto', createCustomApplicationRequestDto)
144
+ const localVarPath = `/publicapi/v1/products/{product_code}/custom-application`
145
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
146
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
147
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
148
+ let baseOptions;
149
+ let baseAccessToken;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ baseAccessToken = configuration.accessToken;
153
+ }
154
+
155
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
156
+ const localVarHeaderParameter = {} as any;
157
+ const localVarQueryParameter = {} as any;
158
+
159
+ // authentication bearer required
160
+ // http bearer authentication required
161
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
162
+
163
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
164
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
165
+ }
166
+
167
+
168
+
169
+ localVarHeaderParameter['Content-Type'] = 'application/json';
170
+
171
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
172
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
173
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
174
+ localVarRequestOptions.data = serializeDataIfNeeded(createCustomApplicationRequestDto, localVarRequestOptions, configuration)
175
+
176
+ return {
177
+ url: toPathString(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ },
181
+ /**
182
+ *
183
+ * @param {string} [authorization] Bearer Token
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ getInsuredObjectTypes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
188
+ const localVarPath = `/publicapi/v1/products/{product_code}/insured-object-types`;
189
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
190
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
191
+ let baseOptions;
192
+ let baseAccessToken;
193
+ if (configuration) {
194
+ baseOptions = configuration.baseOptions;
195
+ baseAccessToken = configuration.accessToken;
196
+ }
197
+
198
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
199
+ const localVarHeaderParameter = {} as any;
200
+ const localVarQueryParameter = {} as any;
201
+
202
+ // authentication bearer required
203
+ // http bearer authentication required
204
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
205
+
206
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
207
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
208
+ }
209
+
210
+
211
+
212
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
213
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
215
+
216
+ return {
217
+ url: toPathString(localVarUrlObj),
218
+ options: localVarRequestOptions,
219
+ };
220
+ },
221
+ /**
222
+ *
223
+ * @param {string} productCode
224
+ * @param {string} [authorization] Bearer Token
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ getInsuredObjects: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
229
+ // verify required parameter 'productCode' is not null or undefined
230
+ assertParamExists('getInsuredObjects', 'productCode', productCode)
231
+ const localVarPath = `/publicapi/v1/products/{product_code}/insured-objects`
232
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
+ let baseOptions;
236
+ let baseAccessToken;
237
+ if (configuration) {
238
+ baseOptions = configuration.baseOptions;
239
+ baseAccessToken = configuration.accessToken;
240
+ }
241
+
242
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
243
+ const localVarHeaderParameter = {} as any;
244
+ const localVarQueryParameter = {} as any;
245
+
246
+ // authentication bearer required
247
+ // http bearer authentication required
248
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
249
+
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ }
253
+
254
+
255
+
256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
+
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ *
267
+ * @param {string} productCode
268
+ * @param {string} [authorization] Bearer Token
269
+ * @param {*} [options] Override http request option.
270
+ * @throws {RequiredError}
271
+ */
272
+ getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
273
+ // verify required parameter 'productCode' is not null or undefined
274
+ assertParamExists('getProductCustomCss', 'productCode', productCode)
275
+ const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
276
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
279
+ let baseOptions;
280
+ let baseAccessToken;
281
+ if (configuration) {
282
+ baseOptions = configuration.baseOptions;
283
+ baseAccessToken = configuration.accessToken;
284
+ }
285
+
286
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
287
+ const localVarHeaderParameter = {} as any;
288
+ const localVarQueryParameter = {} as any;
289
+
290
+ // authentication bearer required
291
+ // http bearer authentication required
292
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
293
+
294
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
296
+ }
297
+
298
+
299
+
300
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
301
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
302
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
303
+
304
+ return {
305
+ url: toPathString(localVarUrlObj),
306
+ options: localVarRequestOptions,
307
+ };
308
+ },
309
+ /**
310
+ *
311
+ * @param {string} productCode
312
+ * @param {string} [authorization] Bearer Token
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ getProductFactors: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
317
+ // verify required parameter 'productCode' is not null or undefined
318
+ assertParamExists('getProductFactors', 'productCode', productCode)
319
+ const localVarPath = `/publicapi/v1/products/{product_code}/product-factors`
320
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
321
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
322
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
323
+ let baseOptions;
324
+ let baseAccessToken;
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ baseAccessToken = configuration.accessToken;
328
+ }
329
+
330
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
331
+ const localVarHeaderParameter = {} as any;
332
+ const localVarQueryParameter = {} as any;
333
+
334
+ // authentication bearer required
335
+ // http bearer authentication required
336
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
337
+
338
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
339
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
340
+ }
341
+
342
+
343
+
344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
346
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
347
+
348
+ return {
349
+ url: toPathString(localVarUrlObj),
350
+ options: localVarRequestOptions,
351
+ };
352
+ },
353
+ /**
354
+ *
355
+ * @param {string} [authorization] Bearer Token
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ initiateLead: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
360
+ const localVarPath = `/publicapi/v1/leads/initiate`;
361
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
362
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
363
+ let baseOptions;
364
+ let baseAccessToken;
365
+ if (configuration) {
366
+ baseOptions = configuration.baseOptions;
367
+ baseAccessToken = configuration.accessToken;
368
+ }
369
+
370
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
371
+ const localVarHeaderParameter = {} as any;
372
+ const localVarQueryParameter = {} as any;
373
+
374
+ // authentication bearer required
375
+ // http bearer authentication required
376
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
377
+
378
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
379
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
380
+ }
381
+
382
+
383
+
384
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
386
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
387
+
388
+ return {
389
+ url: toPathString(localVarUrlObj),
390
+ options: localVarRequestOptions,
391
+ };
392
+ },
393
+ /**
394
+ *
395
+ * @param {string} code
396
+ * @param {CreateLeadRequestDto} createLeadRequestDto
397
+ * @param {string} [authorization] Bearer Token
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ updateLead: async (code: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
402
+ // verify required parameter 'code' is not null or undefined
403
+ assertParamExists('updateLead', 'code', code)
404
+ // verify required parameter 'createLeadRequestDto' is not null or undefined
405
+ assertParamExists('updateLead', 'createLeadRequestDto', createLeadRequestDto)
406
+ const localVarPath = `/publicapi/v1/leads/{code}`
407
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
408
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
409
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
410
+ let baseOptions;
411
+ let baseAccessToken;
412
+ if (configuration) {
413
+ baseOptions = configuration.baseOptions;
414
+ baseAccessToken = configuration.accessToken;
415
+ }
416
+
417
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
418
+ const localVarHeaderParameter = {} as any;
419
+ const localVarQueryParameter = {} as any;
420
+
421
+ // authentication bearer required
422
+ // http bearer authentication required
423
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
424
+
425
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
426
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
427
+ }
428
+
429
+
430
+
431
+ localVarHeaderParameter['Content-Type'] = 'application/json';
432
+
433
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
434
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
435
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
436
+ localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
437
+
438
+ return {
439
+ url: toPathString(localVarUrlObj),
440
+ options: localVarRequestOptions,
441
+ };
442
+ },
443
+ }
444
+ };
445
+
446
+ /**
447
+ * ProductsApi - functional programming interface
448
+ * @export
449
+ */
450
+ export const ProductsApiFp = function(configuration?: Configuration) {
451
+ const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
452
+ return {
453
+ /**
454
+ *
455
+ * @param {string} productCode
456
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
457
+ * @param {string} [authorization] Bearer Token
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ async createEstimatedInvoice(productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
462
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options);
463
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
464
+ },
465
+ /**
466
+ *
467
+ * @param {CreateLeadRequestDto} createLeadRequestDto
468
+ * @param {string} [authorization] Bearer Token
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ */
472
+ async createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
473
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options);
474
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
475
+ },
476
+ /**
477
+ *
478
+ * @param {string} productCode
479
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
480
+ * @param {string} [authorization] Bearer Token
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ async customApplication(productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
485
+ const localVarAxiosArgs = await localVarAxiosParamCreator.customApplication(productCode, createCustomApplicationRequestDto, authorization, options);
486
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
487
+ },
488
+ /**
489
+ *
490
+ * @param {string} [authorization] Bearer Token
491
+ * @param {*} [options] Override http request option.
492
+ * @throws {RequiredError}
493
+ */
494
+ async getInsuredObjectTypes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
495
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options);
496
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
497
+ },
498
+ /**
499
+ *
500
+ * @param {string} productCode
501
+ * @param {string} [authorization] Bearer Token
502
+ * @param {*} [options] Override http request option.
503
+ * @throws {RequiredError}
504
+ */
505
+ async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
506
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
507
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
508
+ },
509
+ /**
510
+ *
511
+ * @param {string} productCode
512
+ * @param {string} [authorization] Bearer Token
513
+ * @param {*} [options] Override http request option.
514
+ * @throws {RequiredError}
515
+ */
516
+ async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
517
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
518
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
519
+ },
520
+ /**
521
+ *
522
+ * @param {string} productCode
523
+ * @param {string} [authorization] Bearer Token
524
+ * @param {*} [options] Override http request option.
525
+ * @throws {RequiredError}
526
+ */
527
+ async getProductFactors(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
528
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, authorization, options);
529
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
530
+ },
531
+ /**
532
+ *
533
+ * @param {string} [authorization] Bearer Token
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ */
537
+ async initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
538
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(authorization, options);
539
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
540
+ },
541
+ /**
542
+ *
543
+ * @param {string} code
544
+ * @param {CreateLeadRequestDto} createLeadRequestDto
545
+ * @param {string} [authorization] Bearer Token
546
+ * @param {*} [options] Override http request option.
547
+ * @throws {RequiredError}
548
+ */
549
+ async updateLead(code: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
550
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, createLeadRequestDto, authorization, options);
551
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
552
+ },
553
+ }
554
+ };
555
+
556
+ /**
557
+ * ProductsApi - factory interface
558
+ * @export
559
+ */
560
+ export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
561
+ const localVarFp = ProductsApiFp(configuration)
562
+ return {
563
+ /**
564
+ *
565
+ * @param {string} productCode
566
+ * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
567
+ * @param {string} [authorization] Bearer Token
568
+ * @param {*} [options] Override http request option.
569
+ * @throws {RequiredError}
570
+ */
571
+ createEstimatedInvoice(productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
572
+ return localVarFp.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
573
+ },
574
+ /**
575
+ *
576
+ * @param {CreateLeadRequestDto} createLeadRequestDto
577
+ * @param {string} [authorization] Bearer Token
578
+ * @param {*} [options] Override http request option.
579
+ * @throws {RequiredError}
580
+ */
581
+ createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
582
+ return localVarFp.createLead(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
583
+ },
584
+ /**
585
+ *
586
+ * @param {string} productCode
587
+ * @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
588
+ * @param {string} [authorization] Bearer Token
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ */
592
+ customApplication(productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
593
+ return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then((request) => request(axios, basePath));
594
+ },
595
+ /**
596
+ *
597
+ * @param {string} [authorization] Bearer Token
598
+ * @param {*} [options] Override http request option.
599
+ * @throws {RequiredError}
600
+ */
601
+ getInsuredObjectTypes(authorization?: string, options?: any): AxiosPromise<void> {
602
+ return localVarFp.getInsuredObjectTypes(authorization, options).then((request) => request(axios, basePath));
603
+ },
604
+ /**
605
+ *
606
+ * @param {string} productCode
607
+ * @param {string} [authorization] Bearer Token
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ */
611
+ getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
612
+ return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
613
+ },
614
+ /**
615
+ *
616
+ * @param {string} productCode
617
+ * @param {string} [authorization] Bearer Token
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
622
+ return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
623
+ },
624
+ /**
625
+ *
626
+ * @param {string} productCode
627
+ * @param {string} [authorization] Bearer Token
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ */
631
+ getProductFactors(productCode: string, authorization?: string, options?: any): AxiosPromise<void> {
632
+ return localVarFp.getProductFactors(productCode, authorization, options).then((request) => request(axios, basePath));
633
+ },
634
+ /**
635
+ *
636
+ * @param {string} [authorization] Bearer Token
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ initiateLead(authorization?: string, options?: any): AxiosPromise<void> {
641
+ return localVarFp.initiateLead(authorization, options).then((request) => request(axios, basePath));
642
+ },
643
+ /**
644
+ *
645
+ * @param {string} code
646
+ * @param {CreateLeadRequestDto} createLeadRequestDto
647
+ * @param {string} [authorization] Bearer Token
648
+ * @param {*} [options] Override http request option.
649
+ * @throws {RequiredError}
650
+ */
651
+ updateLead(code: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
652
+ return localVarFp.updateLead(code, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
653
+ },
654
+ };
655
+ };
656
+
657
+ /**
658
+ * Request parameters for createEstimatedInvoice operation in ProductsApi.
659
+ * @export
660
+ * @interface ProductsApiCreateEstimatedInvoiceRequest
661
+ */
662
+ export interface ProductsApiCreateEstimatedInvoiceRequest {
663
+ /**
664
+ *
665
+ * @type {string}
666
+ * @memberof ProductsApiCreateEstimatedInvoice
667
+ */
668
+ readonly productCode: string
669
+
670
+ /**
671
+ *
672
+ * @type {CreateEstimatedInvoiceRequestDto}
673
+ * @memberof ProductsApiCreateEstimatedInvoice
674
+ */
675
+ readonly createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto
676
+
677
+ /**
678
+ * Bearer Token
679
+ * @type {string}
680
+ * @memberof ProductsApiCreateEstimatedInvoice
681
+ */
682
+ readonly authorization?: string
683
+ }
684
+
685
+ /**
686
+ * Request parameters for createLead operation in ProductsApi.
687
+ * @export
688
+ * @interface ProductsApiCreateLeadRequest
689
+ */
690
+ export interface ProductsApiCreateLeadRequest {
691
+ /**
692
+ *
693
+ * @type {CreateLeadRequestDto}
694
+ * @memberof ProductsApiCreateLead
695
+ */
696
+ readonly createLeadRequestDto: CreateLeadRequestDto
697
+
698
+ /**
699
+ * Bearer Token
700
+ * @type {string}
701
+ * @memberof ProductsApiCreateLead
702
+ */
703
+ readonly authorization?: string
704
+ }
705
+
706
+ /**
707
+ * Request parameters for customApplication operation in ProductsApi.
708
+ * @export
709
+ * @interface ProductsApiCustomApplicationRequest
710
+ */
711
+ export interface ProductsApiCustomApplicationRequest {
712
+ /**
713
+ *
714
+ * @type {string}
715
+ * @memberof ProductsApiCustomApplication
716
+ */
717
+ readonly productCode: string
718
+
719
+ /**
720
+ *
721
+ * @type {CreateCustomApplicationRequestDto}
722
+ * @memberof ProductsApiCustomApplication
723
+ */
724
+ readonly createCustomApplicationRequestDto: CreateCustomApplicationRequestDto
725
+
726
+ /**
727
+ * Bearer Token
728
+ * @type {string}
729
+ * @memberof ProductsApiCustomApplication
730
+ */
731
+ readonly authorization?: string
732
+ }
733
+
734
+ /**
735
+ * Request parameters for getInsuredObjectTypes operation in ProductsApi.
736
+ * @export
737
+ * @interface ProductsApiGetInsuredObjectTypesRequest
738
+ */
739
+ export interface ProductsApiGetInsuredObjectTypesRequest {
740
+ /**
741
+ * Bearer Token
742
+ * @type {string}
743
+ * @memberof ProductsApiGetInsuredObjectTypes
744
+ */
745
+ readonly authorization?: string
746
+ }
747
+
748
+ /**
749
+ * Request parameters for getInsuredObjects operation in ProductsApi.
750
+ * @export
751
+ * @interface ProductsApiGetInsuredObjectsRequest
752
+ */
753
+ export interface ProductsApiGetInsuredObjectsRequest {
754
+ /**
755
+ *
756
+ * @type {string}
757
+ * @memberof ProductsApiGetInsuredObjects
758
+ */
759
+ readonly productCode: string
760
+
761
+ /**
762
+ * Bearer Token
763
+ * @type {string}
764
+ * @memberof ProductsApiGetInsuredObjects
765
+ */
766
+ readonly authorization?: string
767
+ }
768
+
769
+ /**
770
+ * Request parameters for getProductCustomCss operation in ProductsApi.
771
+ * @export
772
+ * @interface ProductsApiGetProductCustomCssRequest
773
+ */
774
+ export interface ProductsApiGetProductCustomCssRequest {
775
+ /**
776
+ *
777
+ * @type {string}
778
+ * @memberof ProductsApiGetProductCustomCss
779
+ */
780
+ readonly productCode: string
781
+
782
+ /**
783
+ * Bearer Token
784
+ * @type {string}
785
+ * @memberof ProductsApiGetProductCustomCss
786
+ */
787
+ readonly authorization?: string
788
+ }
789
+
790
+ /**
791
+ * Request parameters for getProductFactors operation in ProductsApi.
792
+ * @export
793
+ * @interface ProductsApiGetProductFactorsRequest
794
+ */
795
+ export interface ProductsApiGetProductFactorsRequest {
796
+ /**
797
+ *
798
+ * @type {string}
799
+ * @memberof ProductsApiGetProductFactors
800
+ */
801
+ readonly productCode: string
802
+
803
+ /**
804
+ * Bearer Token
805
+ * @type {string}
806
+ * @memberof ProductsApiGetProductFactors
807
+ */
808
+ readonly authorization?: string
809
+ }
810
+
811
+ /**
812
+ * Request parameters for initiateLead operation in ProductsApi.
813
+ * @export
814
+ * @interface ProductsApiInitiateLeadRequest
815
+ */
816
+ export interface ProductsApiInitiateLeadRequest {
817
+ /**
818
+ * Bearer Token
819
+ * @type {string}
820
+ * @memberof ProductsApiInitiateLead
821
+ */
822
+ readonly authorization?: string
823
+ }
824
+
825
+ /**
826
+ * Request parameters for updateLead operation in ProductsApi.
827
+ * @export
828
+ * @interface ProductsApiUpdateLeadRequest
829
+ */
830
+ export interface ProductsApiUpdateLeadRequest {
831
+ /**
832
+ *
833
+ * @type {string}
834
+ * @memberof ProductsApiUpdateLead
835
+ */
836
+ readonly code: string
837
+
838
+ /**
839
+ *
840
+ * @type {CreateLeadRequestDto}
841
+ * @memberof ProductsApiUpdateLead
842
+ */
843
+ readonly createLeadRequestDto: CreateLeadRequestDto
844
+
845
+ /**
846
+ * Bearer Token
847
+ * @type {string}
848
+ * @memberof ProductsApiUpdateLead
849
+ */
850
+ readonly authorization?: string
851
+ }
852
+
853
+ /**
854
+ * ProductsApi - object-oriented interface
855
+ * @export
856
+ * @class ProductsApi
857
+ * @extends {BaseAPI}
858
+ */
859
+ export class ProductsApi extends BaseAPI {
860
+ /**
861
+ *
862
+ * @param {ProductsApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
863
+ * @param {*} [options] Override http request option.
864
+ * @throws {RequiredError}
865
+ * @memberof ProductsApi
866
+ */
867
+ public createEstimatedInvoice(requestParameters: ProductsApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
868
+ return ProductsApiFp(this.configuration).createEstimatedInvoice(requestParameters.productCode, requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
869
+ }
870
+
871
+ /**
872
+ *
873
+ * @param {ProductsApiCreateLeadRequest} requestParameters Request parameters.
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ * @memberof ProductsApi
877
+ */
878
+ public createLead(requestParameters: ProductsApiCreateLeadRequest, options?: AxiosRequestConfig) {
879
+ return ProductsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
880
+ }
881
+
882
+ /**
883
+ *
884
+ * @param {ProductsApiCustomApplicationRequest} requestParameters Request parameters.
885
+ * @param {*} [options] Override http request option.
886
+ * @throws {RequiredError}
887
+ * @memberof ProductsApi
888
+ */
889
+ public customApplication(requestParameters: ProductsApiCustomApplicationRequest, options?: AxiosRequestConfig) {
890
+ return ProductsApiFp(this.configuration).customApplication(requestParameters.productCode, requestParameters.createCustomApplicationRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
891
+ }
892
+
893
+ /**
894
+ *
895
+ * @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
896
+ * @param {*} [options] Override http request option.
897
+ * @throws {RequiredError}
898
+ * @memberof ProductsApi
899
+ */
900
+ public getInsuredObjectTypes(requestParameters: ProductsApiGetInsuredObjectTypesRequest = {}, options?: AxiosRequestConfig) {
901
+ return ProductsApiFp(this.configuration).getInsuredObjectTypes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
902
+ }
903
+
904
+ /**
905
+ *
906
+ * @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
907
+ * @param {*} [options] Override http request option.
908
+ * @throws {RequiredError}
909
+ * @memberof ProductsApi
910
+ */
911
+ public getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig) {
912
+ return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
913
+ }
914
+
915
+ /**
916
+ *
917
+ * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
918
+ * @param {*} [options] Override http request option.
919
+ * @throws {RequiredError}
920
+ * @memberof ProductsApi
921
+ */
922
+ public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
923
+ return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
924
+ }
925
+
926
+ /**
927
+ *
928
+ * @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
929
+ * @param {*} [options] Override http request option.
930
+ * @throws {RequiredError}
931
+ * @memberof ProductsApi
932
+ */
933
+ public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
934
+ return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
935
+ }
936
+
937
+ /**
938
+ *
939
+ * @param {ProductsApiInitiateLeadRequest} requestParameters Request parameters.
940
+ * @param {*} [options] Override http request option.
941
+ * @throws {RequiredError}
942
+ * @memberof ProductsApi
943
+ */
944
+ public initiateLead(requestParameters: ProductsApiInitiateLeadRequest = {}, options?: AxiosRequestConfig) {
945
+ return ProductsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
946
+ }
947
+
948
+ /**
949
+ *
950
+ * @param {ProductsApiUpdateLeadRequest} requestParameters Request parameters.
951
+ * @param {*} [options] Override http request option.
952
+ * @throws {RequiredError}
953
+ * @memberof ProductsApi
954
+ */
955
+ public updateLead(requestParameters: ProductsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
956
+ return ProductsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
957
+ }
958
+ }