@emilgroup/public-api-sdk-node 1.0.1 → 1.1.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.
- package/.openapi-generator/FILES +34 -1
- package/README.md +3 -5
- package/api/documents-api.ts +31 -17
- package/api/leads-api.ts +482 -0
- package/api/notifications-api.ts +169 -0
- package/api/{payment-setup-api.ts → payments-setup-api.ts} +56 -44
- package/api/products-api.ts +88 -333
- package/api.ts +9 -5
- package/base.ts +3 -3
- package/common.ts +6 -6
- package/configuration.ts +3 -3
- package/dist/api/documents-api.d.ts +31 -18
- package/dist/api/documents-api.js +28 -16
- package/dist/api/leads-api.d.ts +266 -0
- package/dist/api/leads-api.js +506 -0
- package/dist/api/notifications-api.d.ts +97 -0
- package/dist/api/notifications-api.js +228 -0
- package/dist/api/{payment-setup-api.d.ts → payments-setup-api.d.ts} +50 -40
- package/dist/api/{payment-setup-api.js → payments-setup-api.js} +47 -39
- package/dist/api/products-api.d.ts +82 -197
- package/dist/api/products-api.js +65 -300
- package/dist/api.d.ts +6 -4
- package/dist/api.js +6 -4
- package/dist/base.d.ts +3 -3
- package/dist/base.js +4 -4
- package/dist/common.d.ts +6 -6
- package/dist/common.js +4 -4
- package/dist/configuration.d.ts +3 -3
- package/dist/configuration.js +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +8 -8
- package/dist/models/complete-braintree-payment-setup-request-dto.js +3 -3
- package/dist/models/complete-payment-setup-request-dto.d.ts +3 -3
- package/dist/models/complete-payment-setup-request-dto.js +3 -3
- package/dist/models/complete-payment-setup-response-class.d.ts +25 -0
- package/dist/models/complete-payment-setup-response-class.js +15 -0
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +9 -9
- package/dist/models/complete-stripe-payment-setup-request-dto.js +3 -3
- package/dist/models/create-account-request-dto.d.ts +29 -4
- package/dist/models/create-account-request-dto.js +10 -4
- package/dist/models/create-bank-account-request-dto.d.ts +7 -7
- package/dist/models/create-bank-account-request-dto.js +3 -3
- package/dist/models/create-custom-application-request-dto.d.ts +7 -6
- package/dist/models/create-custom-application-request-dto.js +5 -4
- package/dist/models/create-custom-application-response-class.d.ts +24 -0
- package/dist/models/create-custom-application-response-class.js +15 -0
- package/dist/models/create-document-request-dto.d.ts +21 -15
- package/dist/models/create-document-request-dto.js +3 -3
- package/dist/models/create-estimated-invoice-request-dto.d.ts +14 -6
- package/dist/models/create-estimated-invoice-request-dto.js +5 -4
- package/dist/models/create-estimated-invoice-response-class.d.ts +25 -0
- package/dist/models/create-estimated-invoice-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +24 -17
- package/dist/models/create-lead-request-dto.js +3 -3
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/create-lead-response-class.js +15 -0
- package/dist/models/document-class.d.ts +130 -0
- package/dist/models/document-class.js +41 -0
- package/dist/models/get-custom-css-response-class.d.ts +24 -0
- package/dist/models/get-custom-css-response-class.js +15 -0
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/get-lead-response-class.js +15 -0
- package/dist/models/index.d.ts +31 -0
- package/dist/models/index.js +31 -0
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +4 -4
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +3 -3
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +24 -0
- package/dist/models/initiate-braintree-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-lead-response-class.d.ts +24 -0
- package/dist/models/initiate-lead-response-class.js +15 -0
- package/dist/models/initiate-payment-setup-request-dto.d.ts +3 -3
- package/dist/models/initiate-payment-setup-request-dto.js +3 -3
- package/dist/models/initiate-payment-setup-response-class.d.ts +32 -0
- package/dist/models/initiate-payment-setup-response-class.js +15 -0
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +4 -4
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +3 -3
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +30 -0
- package/dist/models/initiate-stripe-payment-setup-response-class.js +15 -0
- package/dist/models/insured-object-class.d.ts +67 -0
- package/dist/models/insured-object-class.js +15 -0
- package/dist/models/insured-object-type-class.d.ts +48 -0
- package/dist/models/insured-object-type-class.js +15 -0
- package/dist/models/invoice-class.d.ts +128 -0
- package/dist/models/invoice-class.js +15 -0
- package/dist/models/invoice-item-class.d.ts +108 -0
- package/dist/models/invoice-item-class.js +15 -0
- package/dist/models/invoice-status-class.d.ts +42 -0
- package/dist/models/invoice-status-class.js +15 -0
- package/dist/models/lead-account-class.d.ts +109 -0
- package/dist/models/lead-account-class.js +22 -0
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +77 -0
- package/dist/models/lead-class.js +15 -0
- package/dist/models/lead-policy-class.d.ts +44 -0
- package/dist/models/lead-policy-class.js +15 -0
- package/dist/models/lead-policy-object-class.d.ts +30 -0
- package/dist/models/lead-policy-object-class.js +15 -0
- package/dist/models/list-documents-response-class.d.ts +31 -0
- package/dist/models/list-documents-response-class.js +15 -0
- package/dist/models/payment-method-class.d.ts +60 -0
- package/dist/models/payment-method-class.js +15 -0
- package/dist/models/policy-object-request-dto.d.ts +5 -5
- package/dist/models/policy-object-request-dto.js +3 -3
- package/dist/models/premium-override-dto.d.ts +53 -0
- package/dist/models/premium-override-dto.js +25 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/dist/models/product-factor-class.d.ts +54 -0
- package/dist/models/product-factor-class.js +15 -0
- package/dist/models/product-field-class.d.ts +120 -0
- package/dist/models/product-field-class.js +15 -0
- package/dist/models/send-notification-request-dto.d.ts +36 -0
- package/dist/models/send-notification-request-dto.js +15 -0
- package/dist/models/send-notification-response-class.d.ts +24 -0
- package/dist/models/send-notification-response-class.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +84 -0
- package/dist/models/update-lead-request-dto.js +22 -0
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/uploaded-document-dto.d.ts +4 -4
- package/dist/models/uploaded-document-dto.js +3 -3
- package/index.ts +3 -3
- package/models/complete-braintree-payment-setup-request-dto.ts +8 -8
- package/models/complete-payment-setup-request-dto.ts +3 -3
- package/models/complete-payment-setup-response-class.ts +31 -0
- package/models/complete-stripe-payment-setup-request-dto.ts +9 -9
- package/models/create-account-request-dto.ts +29 -3
- package/models/create-bank-account-request-dto.ts +7 -7
- package/models/create-custom-application-request-dto.ts +7 -6
- package/models/create-custom-application-response-class.ts +30 -0
- package/models/create-document-request-dto.ts +19 -13
- package/models/create-estimated-invoice-request-dto.ts +14 -6
- package/models/create-estimated-invoice-response-class.ts +31 -0
- package/models/create-lead-request-dto.ts +23 -16
- package/models/create-lead-response-class.ts +31 -0
- package/models/document-class.ts +141 -0
- package/models/get-custom-css-response-class.ts +30 -0
- package/models/get-lead-response-class.ts +31 -0
- package/models/index.ts +31 -0
- package/models/initiate-braintree-payment-setup-request-dto.ts +4 -4
- package/models/initiate-braintree-payment-setup-response-class.ts +30 -0
- package/models/initiate-lead-response-class.ts +30 -0
- package/models/initiate-payment-setup-request-dto.ts +3 -3
- package/models/initiate-payment-setup-response-class.ts +38 -0
- package/models/initiate-stripe-payment-setup-request-dto.ts +4 -4
- package/models/initiate-stripe-payment-setup-response-class.ts +36 -0
- package/models/insured-object-class.ts +73 -0
- package/models/insured-object-type-class.ts +54 -0
- package/models/invoice-class.ts +134 -0
- package/models/invoice-item-class.ts +114 -0
- package/models/invoice-status-class.ts +48 -0
- package/models/lead-account-class.ts +118 -0
- package/models/lead-bank-account-class.ts +36 -0
- package/models/lead-class.ts +83 -0
- package/models/lead-policy-class.ts +50 -0
- package/models/lead-policy-object-class.ts +36 -0
- package/models/list-documents-response-class.ts +37 -0
- package/models/payment-method-class.ts +66 -0
- package/models/policy-object-request-dto.ts +5 -5
- package/models/premium-override-dto.ts +63 -0
- package/models/premium-override-request-dto.ts +31 -0
- package/models/product-factor-class.ts +60 -0
- package/models/product-field-class.ts +126 -0
- package/models/send-notification-request-dto.ts +42 -0
- package/models/send-notification-response-class.ts +30 -0
- package/models/update-lead-request-dto.ts +93 -0
- package/models/update-lead-response-class.ts +31 -0
- package/models/uploaded-document-dto.ts +4 -4
- package/package.json +1 -1
package/api/products-api.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
* The
|
|
4
|
+
* Emil PublicAPI
|
|
5
|
+
* The Emil Public API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -23,9 +23,19 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateCustomApplicationRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
+
import { CreateCustomApplicationResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
26
28
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
27
29
|
// @ts-ignore
|
|
28
|
-
import {
|
|
30
|
+
import { CreateEstimatedInvoiceResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { GetCustomCssResponseClass } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { InsuredObjectClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { InsuredObjectTypeClass } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { ProductFactorClass } from '../models';
|
|
29
39
|
// URLSearchParams not necessarily used
|
|
30
40
|
// @ts-ignore
|
|
31
41
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -37,7 +47,8 @@ const FormData = require('form-data');
|
|
|
37
47
|
export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
48
|
return {
|
|
39
49
|
/**
|
|
40
|
-
*
|
|
50
|
+
* This will create an invoice product.
|
|
51
|
+
* @summary Create the invoice product
|
|
41
52
|
* @param {string} productCode
|
|
42
53
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
43
54
|
* @param {string} [authorization] Bearer Token
|
|
@@ -87,53 +98,8 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
87
98
|
};
|
|
88
99
|
},
|
|
89
100
|
/**
|
|
90
|
-
*
|
|
91
|
-
* @
|
|
92
|
-
* @param {string} [authorization] Bearer Token
|
|
93
|
-
* @param {*} [options] Override http request option.
|
|
94
|
-
* @throws {RequiredError}
|
|
95
|
-
*/
|
|
96
|
-
createLead: async (createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
-
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
98
|
-
assertParamExists('createLead', 'createLeadRequestDto', createLeadRequestDto)
|
|
99
|
-
const localVarPath = `/publicapi/v1/leads`;
|
|
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: 'POST', ...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 (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
118
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
124
|
-
|
|
125
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
126
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
127
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
128
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
129
|
-
|
|
130
|
-
return {
|
|
131
|
-
url: toPathString(localVarUrlObj),
|
|
132
|
-
options: localVarRequestOptions,
|
|
133
|
-
};
|
|
134
|
-
},
|
|
135
|
-
/**
|
|
136
|
-
*
|
|
101
|
+
* This will create a custom application for a specific provider.
|
|
102
|
+
* @summary Create the custom application
|
|
137
103
|
* @param {string} productCode
|
|
138
104
|
* @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
|
|
139
105
|
* @param {string} [authorization] Bearer Token
|
|
@@ -183,7 +149,8 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
183
149
|
};
|
|
184
150
|
},
|
|
185
151
|
/**
|
|
186
|
-
*
|
|
152
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
153
|
+
* @summary List insured object types
|
|
187
154
|
* @param {string} [authorization] Bearer Token
|
|
188
155
|
* @param {*} [options] Override http request option.
|
|
189
156
|
* @throws {RequiredError}
|
|
@@ -223,7 +190,8 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
223
190
|
};
|
|
224
191
|
},
|
|
225
192
|
/**
|
|
226
|
-
*
|
|
193
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
194
|
+
* @summary List insured objects
|
|
227
195
|
* @param {string} productCode
|
|
228
196
|
* @param {string} [authorization] Bearer Token
|
|
229
197
|
* @param {*} [options] Override http request option.
|
|
@@ -267,7 +235,8 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
267
235
|
};
|
|
268
236
|
},
|
|
269
237
|
/**
|
|
270
|
-
*
|
|
238
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
239
|
+
* @summary Generate a custom CSS
|
|
271
240
|
* @param {string} productCode
|
|
272
241
|
* @param {string} [authorization] Bearer Token
|
|
273
242
|
* @param {*} [options] Override http request option.
|
|
@@ -311,15 +280,19 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
311
280
|
};
|
|
312
281
|
},
|
|
313
282
|
/**
|
|
314
|
-
*
|
|
283
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
284
|
+
* @summary List product factors
|
|
315
285
|
* @param {string} productCode
|
|
286
|
+
* @param {string} allValues
|
|
316
287
|
* @param {string} [authorization] Bearer Token
|
|
317
288
|
* @param {*} [options] Override http request option.
|
|
318
289
|
* @throws {RequiredError}
|
|
319
290
|
*/
|
|
320
|
-
getProductFactors: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
291
|
+
getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
321
292
|
// verify required parameter 'productCode' is not null or undefined
|
|
322
293
|
assertParamExists('getProductFactors', 'productCode', productCode)
|
|
294
|
+
// verify required parameter 'allValues' is not null or undefined
|
|
295
|
+
assertParamExists('getProductFactors', 'allValues', allValues)
|
|
323
296
|
const localVarPath = `/publicapi/v1/products/{product_code}/product-factors`
|
|
324
297
|
.replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
|
|
325
298
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -339,46 +312,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
339
312
|
// http bearer authentication required
|
|
340
313
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
341
314
|
|
|
342
|
-
if (
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
349
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
351
|
-
|
|
352
|
-
return {
|
|
353
|
-
url: toPathString(localVarUrlObj),
|
|
354
|
-
options: localVarRequestOptions,
|
|
355
|
-
};
|
|
356
|
-
},
|
|
357
|
-
/**
|
|
358
|
-
*
|
|
359
|
-
* @param {string} [authorization] Bearer Token
|
|
360
|
-
* @param {*} [options] Override http request option.
|
|
361
|
-
* @throws {RequiredError}
|
|
362
|
-
*/
|
|
363
|
-
initiateLead: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
364
|
-
const localVarPath = `/publicapi/v1/leads/initiate`;
|
|
365
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
366
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
367
|
-
let baseOptions;
|
|
368
|
-
let baseAccessToken;
|
|
369
|
-
if (configuration) {
|
|
370
|
-
baseOptions = configuration.baseOptions;
|
|
371
|
-
baseAccessToken = configuration.accessToken;
|
|
315
|
+
if (allValues !== undefined) {
|
|
316
|
+
localVarQueryParameter['all_values'] = allValues;
|
|
372
317
|
}
|
|
373
318
|
|
|
374
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
375
|
-
const localVarHeaderParameter = {} as any;
|
|
376
|
-
const localVarQueryParameter = {} as any;
|
|
377
|
-
|
|
378
|
-
// authentication bearer required
|
|
379
|
-
// http bearer authentication required
|
|
380
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
381
|
-
|
|
382
319
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
383
320
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
384
321
|
}
|
|
@@ -389,56 +326,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
389
326
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
390
327
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
391
328
|
|
|
392
|
-
return {
|
|
393
|
-
url: toPathString(localVarUrlObj),
|
|
394
|
-
options: localVarRequestOptions,
|
|
395
|
-
};
|
|
396
|
-
},
|
|
397
|
-
/**
|
|
398
|
-
*
|
|
399
|
-
* @param {string} code
|
|
400
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
401
|
-
* @param {string} [authorization] Bearer Token
|
|
402
|
-
* @param {*} [options] Override http request option.
|
|
403
|
-
* @throws {RequiredError}
|
|
404
|
-
*/
|
|
405
|
-
updateLead: async (code: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
406
|
-
// verify required parameter 'code' is not null or undefined
|
|
407
|
-
assertParamExists('updateLead', 'code', code)
|
|
408
|
-
// verify required parameter 'createLeadRequestDto' is not null or undefined
|
|
409
|
-
assertParamExists('updateLead', 'createLeadRequestDto', createLeadRequestDto)
|
|
410
|
-
const localVarPath = `/publicapi/v1/leads/{code}`
|
|
411
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
412
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
413
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
414
|
-
let baseOptions;
|
|
415
|
-
let baseAccessToken;
|
|
416
|
-
if (configuration) {
|
|
417
|
-
baseOptions = configuration.baseOptions;
|
|
418
|
-
baseAccessToken = configuration.accessToken;
|
|
419
|
-
}
|
|
420
|
-
|
|
421
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
422
|
-
const localVarHeaderParameter = {} as any;
|
|
423
|
-
const localVarQueryParameter = {} as any;
|
|
424
|
-
|
|
425
|
-
// authentication bearer required
|
|
426
|
-
// http bearer authentication required
|
|
427
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
428
|
-
|
|
429
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
430
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
431
|
-
}
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
436
|
-
|
|
437
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
438
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
440
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createLeadRequestDto, localVarRequestOptions, configuration)
|
|
441
|
-
|
|
442
329
|
return {
|
|
443
330
|
url: toPathString(localVarUrlObj),
|
|
444
331
|
options: localVarRequestOptions,
|
|
@@ -455,103 +342,77 @@ export const ProductsApiFp = function(configuration?: Configuration) {
|
|
|
455
342
|
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
|
|
456
343
|
return {
|
|
457
344
|
/**
|
|
458
|
-
*
|
|
345
|
+
* This will create an invoice product.
|
|
346
|
+
* @summary Create the invoice product
|
|
459
347
|
* @param {string} productCode
|
|
460
348
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
461
349
|
* @param {string} [authorization] Bearer Token
|
|
462
350
|
* @param {*} [options] Override http request option.
|
|
463
351
|
* @throws {RequiredError}
|
|
464
352
|
*/
|
|
465
|
-
async createEstimatedInvoice(productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
353
|
+
async createEstimatedInvoice(productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceResponseClass>> {
|
|
466
354
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options);
|
|
467
355
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
468
356
|
},
|
|
469
357
|
/**
|
|
470
|
-
*
|
|
471
|
-
* @
|
|
472
|
-
* @param {string} [authorization] Bearer Token
|
|
473
|
-
* @param {*} [options] Override http request option.
|
|
474
|
-
* @throws {RequiredError}
|
|
475
|
-
*/
|
|
476
|
-
async createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
477
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createLead(createLeadRequestDto, authorization, options);
|
|
478
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
479
|
-
},
|
|
480
|
-
/**
|
|
481
|
-
*
|
|
358
|
+
* This will create a custom application for a specific provider.
|
|
359
|
+
* @summary Create the custom application
|
|
482
360
|
* @param {string} productCode
|
|
483
361
|
* @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
|
|
484
362
|
* @param {string} [authorization] Bearer Token
|
|
485
363
|
* @param {*} [options] Override http request option.
|
|
486
364
|
* @throws {RequiredError}
|
|
487
365
|
*/
|
|
488
|
-
async customApplication(productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
366
|
+
async customApplication(productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomApplicationResponseClass>> {
|
|
489
367
|
const localVarAxiosArgs = await localVarAxiosParamCreator.customApplication(productCode, createCustomApplicationRequestDto, authorization, options);
|
|
490
368
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
491
369
|
},
|
|
492
370
|
/**
|
|
493
|
-
*
|
|
371
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
372
|
+
* @summary List insured object types
|
|
494
373
|
* @param {string} [authorization] Bearer Token
|
|
495
374
|
* @param {*} [options] Override http request option.
|
|
496
375
|
* @throws {RequiredError}
|
|
497
376
|
*/
|
|
498
|
-
async getInsuredObjectTypes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
377
|
+
async getInsuredObjectTypes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectTypeClass>>> {
|
|
499
378
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectTypes(authorization, options);
|
|
500
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
501
380
|
},
|
|
502
381
|
/**
|
|
503
|
-
*
|
|
382
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
383
|
+
* @summary List insured objects
|
|
504
384
|
* @param {string} productCode
|
|
505
385
|
* @param {string} [authorization] Bearer Token
|
|
506
386
|
* @param {*} [options] Override http request option.
|
|
507
387
|
* @throws {RequiredError}
|
|
508
388
|
*/
|
|
509
|
-
async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
389
|
+
async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
|
|
510
390
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
|
|
511
391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
512
392
|
},
|
|
513
393
|
/**
|
|
514
|
-
*
|
|
394
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
395
|
+
* @summary Generate a custom CSS
|
|
515
396
|
* @param {string} productCode
|
|
516
397
|
* @param {string} [authorization] Bearer Token
|
|
517
398
|
* @param {*} [options] Override http request option.
|
|
518
399
|
* @throws {RequiredError}
|
|
519
400
|
*/
|
|
520
|
-
async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
401
|
+
async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
|
|
521
402
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
|
|
522
403
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
523
404
|
},
|
|
524
405
|
/**
|
|
525
|
-
*
|
|
406
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
407
|
+
* @summary List product factors
|
|
526
408
|
* @param {string} productCode
|
|
409
|
+
* @param {string} allValues
|
|
527
410
|
* @param {string} [authorization] Bearer Token
|
|
528
411
|
* @param {*} [options] Override http request option.
|
|
529
412
|
* @throws {RequiredError}
|
|
530
413
|
*/
|
|
531
|
-
async getProductFactors(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
532
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, authorization, options);
|
|
533
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
534
|
-
},
|
|
535
|
-
/**
|
|
536
|
-
*
|
|
537
|
-
* @param {string} [authorization] Bearer Token
|
|
538
|
-
* @param {*} [options] Override http request option.
|
|
539
|
-
* @throws {RequiredError}
|
|
540
|
-
*/
|
|
541
|
-
async initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
542
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(authorization, options);
|
|
543
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
544
|
-
},
|
|
545
|
-
/**
|
|
546
|
-
*
|
|
547
|
-
* @param {string} code
|
|
548
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
549
|
-
* @param {string} [authorization] Bearer Token
|
|
550
|
-
* @param {*} [options] Override http request option.
|
|
551
|
-
* @throws {RequiredError}
|
|
552
|
-
*/
|
|
553
|
-
async updateLead(code: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
554
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateLead(code, createLeadRequestDto, authorization, options);
|
|
414
|
+
async getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorClass>>> {
|
|
415
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
|
|
555
416
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
556
417
|
},
|
|
557
418
|
}
|
|
@@ -565,95 +426,72 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
|
|
|
565
426
|
const localVarFp = ProductsApiFp(configuration)
|
|
566
427
|
return {
|
|
567
428
|
/**
|
|
568
|
-
*
|
|
429
|
+
* This will create an invoice product.
|
|
430
|
+
* @summary Create the invoice product
|
|
569
431
|
* @param {string} productCode
|
|
570
432
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
571
433
|
* @param {string} [authorization] Bearer Token
|
|
572
434
|
* @param {*} [options] Override http request option.
|
|
573
435
|
* @throws {RequiredError}
|
|
574
436
|
*/
|
|
575
|
-
createEstimatedInvoice(productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
437
|
+
createEstimatedInvoice(productCode: string, createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceResponseClass> {
|
|
576
438
|
return localVarFp.createEstimatedInvoice(productCode, createEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
577
439
|
},
|
|
578
440
|
/**
|
|
579
|
-
*
|
|
580
|
-
* @
|
|
581
|
-
* @param {string} [authorization] Bearer Token
|
|
582
|
-
* @param {*} [options] Override http request option.
|
|
583
|
-
* @throws {RequiredError}
|
|
584
|
-
*/
|
|
585
|
-
createLead(createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
586
|
-
return localVarFp.createLead(createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
587
|
-
},
|
|
588
|
-
/**
|
|
589
|
-
*
|
|
441
|
+
* This will create a custom application for a specific provider.
|
|
442
|
+
* @summary Create the custom application
|
|
590
443
|
* @param {string} productCode
|
|
591
444
|
* @param {CreateCustomApplicationRequestDto} createCustomApplicationRequestDto
|
|
592
445
|
* @param {string} [authorization] Bearer Token
|
|
593
446
|
* @param {*} [options] Override http request option.
|
|
594
447
|
* @throws {RequiredError}
|
|
595
448
|
*/
|
|
596
|
-
customApplication(productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
449
|
+
customApplication(productCode: string, createCustomApplicationRequestDto: CreateCustomApplicationRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomApplicationResponseClass> {
|
|
597
450
|
return localVarFp.customApplication(productCode, createCustomApplicationRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
598
451
|
},
|
|
599
452
|
/**
|
|
600
|
-
*
|
|
453
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
454
|
+
* @summary List insured object types
|
|
601
455
|
* @param {string} [authorization] Bearer Token
|
|
602
456
|
* @param {*} [options] Override http request option.
|
|
603
457
|
* @throws {RequiredError}
|
|
604
458
|
*/
|
|
605
|
-
getInsuredObjectTypes(authorization?: string, options?: any): AxiosPromise<
|
|
459
|
+
getInsuredObjectTypes(authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectTypeClass>> {
|
|
606
460
|
return localVarFp.getInsuredObjectTypes(authorization, options).then((request) => request(axios, basePath));
|
|
607
461
|
},
|
|
608
462
|
/**
|
|
609
|
-
*
|
|
463
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
464
|
+
* @summary List insured objects
|
|
610
465
|
* @param {string} productCode
|
|
611
466
|
* @param {string} [authorization] Bearer Token
|
|
612
467
|
* @param {*} [options] Override http request option.
|
|
613
468
|
* @throws {RequiredError}
|
|
614
469
|
*/
|
|
615
|
-
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<
|
|
470
|
+
getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
616
471
|
return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
617
472
|
},
|
|
618
473
|
/**
|
|
619
|
-
*
|
|
474
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
475
|
+
* @summary Generate a custom CSS
|
|
620
476
|
* @param {string} productCode
|
|
621
477
|
* @param {string} [authorization] Bearer Token
|
|
622
478
|
* @param {*} [options] Override http request option.
|
|
623
479
|
* @throws {RequiredError}
|
|
624
480
|
*/
|
|
625
|
-
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<
|
|
481
|
+
getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
|
|
626
482
|
return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
627
483
|
},
|
|
628
484
|
/**
|
|
629
|
-
*
|
|
485
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
486
|
+
* @summary List product factors
|
|
630
487
|
* @param {string} productCode
|
|
488
|
+
* @param {string} allValues
|
|
631
489
|
* @param {string} [authorization] Bearer Token
|
|
632
490
|
* @param {*} [options] Override http request option.
|
|
633
491
|
* @throws {RequiredError}
|
|
634
492
|
*/
|
|
635
|
-
getProductFactors(productCode: string, authorization?: string, options?: any): AxiosPromise<
|
|
636
|
-
return localVarFp.getProductFactors(productCode, authorization, options).then((request) => request(axios, basePath));
|
|
637
|
-
},
|
|
638
|
-
/**
|
|
639
|
-
*
|
|
640
|
-
* @param {string} [authorization] Bearer Token
|
|
641
|
-
* @param {*} [options] Override http request option.
|
|
642
|
-
* @throws {RequiredError}
|
|
643
|
-
*/
|
|
644
|
-
initiateLead(authorization?: string, options?: any): AxiosPromise<void> {
|
|
645
|
-
return localVarFp.initiateLead(authorization, options).then((request) => request(axios, basePath));
|
|
646
|
-
},
|
|
647
|
-
/**
|
|
648
|
-
*
|
|
649
|
-
* @param {string} code
|
|
650
|
-
* @param {CreateLeadRequestDto} createLeadRequestDto
|
|
651
|
-
* @param {string} [authorization] Bearer Token
|
|
652
|
-
* @param {*} [options] Override http request option.
|
|
653
|
-
* @throws {RequiredError}
|
|
654
|
-
*/
|
|
655
|
-
updateLead(code: string, createLeadRequestDto: CreateLeadRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
656
|
-
return localVarFp.updateLead(code, createLeadRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
493
|
+
getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorClass>> {
|
|
494
|
+
return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
|
|
657
495
|
},
|
|
658
496
|
};
|
|
659
497
|
};
|
|
@@ -686,27 +524,6 @@ export interface ProductsApiCreateEstimatedInvoiceRequest {
|
|
|
686
524
|
readonly authorization?: string
|
|
687
525
|
}
|
|
688
526
|
|
|
689
|
-
/**
|
|
690
|
-
* Request parameters for createLead operation in ProductsApi.
|
|
691
|
-
* @export
|
|
692
|
-
* @interface ProductsApiCreateLeadRequest
|
|
693
|
-
*/
|
|
694
|
-
export interface ProductsApiCreateLeadRequest {
|
|
695
|
-
/**
|
|
696
|
-
*
|
|
697
|
-
* @type {CreateLeadRequestDto}
|
|
698
|
-
* @memberof ProductsApiCreateLead
|
|
699
|
-
*/
|
|
700
|
-
readonly createLeadRequestDto: CreateLeadRequestDto
|
|
701
|
-
|
|
702
|
-
/**
|
|
703
|
-
* Bearer Token
|
|
704
|
-
* @type {string}
|
|
705
|
-
* @memberof ProductsApiCreateLead
|
|
706
|
-
*/
|
|
707
|
-
readonly authorization?: string
|
|
708
|
-
}
|
|
709
|
-
|
|
710
527
|
/**
|
|
711
528
|
* Request parameters for customApplication operation in ProductsApi.
|
|
712
529
|
* @export
|
|
@@ -804,52 +621,17 @@ export interface ProductsApiGetProductFactorsRequest {
|
|
|
804
621
|
*/
|
|
805
622
|
readonly productCode: string
|
|
806
623
|
|
|
807
|
-
/**
|
|
808
|
-
* Bearer Token
|
|
809
|
-
* @type {string}
|
|
810
|
-
* @memberof ProductsApiGetProductFactors
|
|
811
|
-
*/
|
|
812
|
-
readonly authorization?: string
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
/**
|
|
816
|
-
* Request parameters for initiateLead operation in ProductsApi.
|
|
817
|
-
* @export
|
|
818
|
-
* @interface ProductsApiInitiateLeadRequest
|
|
819
|
-
*/
|
|
820
|
-
export interface ProductsApiInitiateLeadRequest {
|
|
821
|
-
/**
|
|
822
|
-
* Bearer Token
|
|
823
|
-
* @type {string}
|
|
824
|
-
* @memberof ProductsApiInitiateLead
|
|
825
|
-
*/
|
|
826
|
-
readonly authorization?: string
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
/**
|
|
830
|
-
* Request parameters for updateLead operation in ProductsApi.
|
|
831
|
-
* @export
|
|
832
|
-
* @interface ProductsApiUpdateLeadRequest
|
|
833
|
-
*/
|
|
834
|
-
export interface ProductsApiUpdateLeadRequest {
|
|
835
624
|
/**
|
|
836
625
|
*
|
|
837
626
|
* @type {string}
|
|
838
|
-
* @memberof
|
|
839
|
-
*/
|
|
840
|
-
readonly code: string
|
|
841
|
-
|
|
842
|
-
/**
|
|
843
|
-
*
|
|
844
|
-
* @type {CreateLeadRequestDto}
|
|
845
|
-
* @memberof ProductsApiUpdateLead
|
|
627
|
+
* @memberof ProductsApiGetProductFactors
|
|
846
628
|
*/
|
|
847
|
-
readonly
|
|
629
|
+
readonly allValues: string
|
|
848
630
|
|
|
849
631
|
/**
|
|
850
632
|
* Bearer Token
|
|
851
633
|
* @type {string}
|
|
852
|
-
* @memberof
|
|
634
|
+
* @memberof ProductsApiGetProductFactors
|
|
853
635
|
*/
|
|
854
636
|
readonly authorization?: string
|
|
855
637
|
}
|
|
@@ -862,7 +644,8 @@ export interface ProductsApiUpdateLeadRequest {
|
|
|
862
644
|
*/
|
|
863
645
|
export class ProductsApi extends BaseAPI {
|
|
864
646
|
/**
|
|
865
|
-
*
|
|
647
|
+
* This will create an invoice product.
|
|
648
|
+
* @summary Create the invoice product
|
|
866
649
|
* @param {ProductsApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
867
650
|
* @param {*} [options] Override http request option.
|
|
868
651
|
* @throws {RequiredError}
|
|
@@ -873,18 +656,8 @@ export class ProductsApi extends BaseAPI {
|
|
|
873
656
|
}
|
|
874
657
|
|
|
875
658
|
/**
|
|
876
|
-
*
|
|
877
|
-
* @
|
|
878
|
-
* @param {*} [options] Override http request option.
|
|
879
|
-
* @throws {RequiredError}
|
|
880
|
-
* @memberof ProductsApi
|
|
881
|
-
*/
|
|
882
|
-
public createLead(requestParameters: ProductsApiCreateLeadRequest, options?: AxiosRequestConfig) {
|
|
883
|
-
return ProductsApiFp(this.configuration).createLead(requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
884
|
-
}
|
|
885
|
-
|
|
886
|
-
/**
|
|
887
|
-
*
|
|
659
|
+
* This will create a custom application for a specific provider.
|
|
660
|
+
* @summary Create the custom application
|
|
888
661
|
* @param {ProductsApiCustomApplicationRequest} requestParameters Request parameters.
|
|
889
662
|
* @param {*} [options] Override http request option.
|
|
890
663
|
* @throws {RequiredError}
|
|
@@ -895,7 +668,8 @@ export class ProductsApi extends BaseAPI {
|
|
|
895
668
|
}
|
|
896
669
|
|
|
897
670
|
/**
|
|
898
|
-
*
|
|
671
|
+
* Returns a list of insured object types you have previously created. The insured object types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
672
|
+
* @summary List insured object types
|
|
899
673
|
* @param {ProductsApiGetInsuredObjectTypesRequest} requestParameters Request parameters.
|
|
900
674
|
* @param {*} [options] Override http request option.
|
|
901
675
|
* @throws {RequiredError}
|
|
@@ -906,7 +680,8 @@ export class ProductsApi extends BaseAPI {
|
|
|
906
680
|
}
|
|
907
681
|
|
|
908
682
|
/**
|
|
909
|
-
*
|
|
683
|
+
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
684
|
+
* @summary List insured objects
|
|
910
685
|
* @param {ProductsApiGetInsuredObjectsRequest} requestParameters Request parameters.
|
|
911
686
|
* @param {*} [options] Override http request option.
|
|
912
687
|
* @throws {RequiredError}
|
|
@@ -917,7 +692,8 @@ export class ProductsApi extends BaseAPI {
|
|
|
917
692
|
}
|
|
918
693
|
|
|
919
694
|
/**
|
|
920
|
-
*
|
|
695
|
+
* This will generate a custom css for booking funnel, based on product.
|
|
696
|
+
* @summary Generate a custom CSS
|
|
921
697
|
* @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
|
|
922
698
|
* @param {*} [options] Override http request option.
|
|
923
699
|
* @throws {RequiredError}
|
|
@@ -928,35 +704,14 @@ export class ProductsApi extends BaseAPI {
|
|
|
928
704
|
}
|
|
929
705
|
|
|
930
706
|
/**
|
|
931
|
-
*
|
|
707
|
+
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
708
|
+
* @summary List product factors
|
|
932
709
|
* @param {ProductsApiGetProductFactorsRequest} requestParameters Request parameters.
|
|
933
710
|
* @param {*} [options] Override http request option.
|
|
934
711
|
* @throws {RequiredError}
|
|
935
712
|
* @memberof ProductsApi
|
|
936
713
|
*/
|
|
937
714
|
public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
|
|
938
|
-
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
939
|
-
}
|
|
940
|
-
|
|
941
|
-
/**
|
|
942
|
-
*
|
|
943
|
-
* @param {ProductsApiInitiateLeadRequest} requestParameters Request parameters.
|
|
944
|
-
* @param {*} [options] Override http request option.
|
|
945
|
-
* @throws {RequiredError}
|
|
946
|
-
* @memberof ProductsApi
|
|
947
|
-
*/
|
|
948
|
-
public initiateLead(requestParameters: ProductsApiInitiateLeadRequest = {}, options?: AxiosRequestConfig) {
|
|
949
|
-
return ProductsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
950
|
-
}
|
|
951
|
-
|
|
952
|
-
/**
|
|
953
|
-
*
|
|
954
|
-
* @param {ProductsApiUpdateLeadRequest} requestParameters Request parameters.
|
|
955
|
-
* @param {*} [options] Override http request option.
|
|
956
|
-
* @throws {RequiredError}
|
|
957
|
-
* @memberof ProductsApi
|
|
958
|
-
*/
|
|
959
|
-
public updateLead(requestParameters: ProductsApiUpdateLeadRequest, options?: AxiosRequestConfig) {
|
|
960
|
-
return ProductsApiFp(this.configuration).updateLead(requestParameters.code, requestParameters.createLeadRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
715
|
+
return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
961
716
|
}
|
|
962
717
|
}
|