@emilgroup/public-api-sdk-node 1.40.1-beta.0 → 1.40.1-beta.10
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 +5 -1
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +20 -6
- package/api/documents-api.ts +10 -8
- package/api/{default-api.ts → health-api.ts} +13 -13
- package/api/leads-api.ts +98 -10
- package/api/partners-api.ts +169 -0
- package/api/payments-setup-api.ts +113 -11
- package/api.ts +4 -2
- package/base.ts +1 -0
- package/dist/api/address-completions-validations-api.d.ts +12 -3
- package/dist/api/address-completions-validations-api.js +12 -6
- package/dist/api/documents-api.d.ts +9 -8
- package/dist/api/documents-api.js +3 -3
- package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
- package/dist/api/{default-api.js → health-api.js} +22 -22
- package/dist/api/leads-api.d.ts +52 -6
- package/dist/api/leads-api.js +94 -7
- package/dist/api/partners-api.d.ts +97 -0
- package/dist/api/partners-api.js +228 -0
- package/dist/api/payments-setup-api.d.ts +62 -7
- package/dist/api/payments-setup-api.js +100 -7
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/base.d.ts +2 -1
- package/dist/base.js +1 -0
- package/dist/models/deductible-class.d.ts +6 -0
- package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +29 -0
- package/dist/models/get-product-document-download-url-request-rest-dto.js +20 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/tariff-category-summary-class.d.ts +0 -7
- package/dist/models/validate-partner-request-dto.d.ts +30 -0
- package/dist/models/validate-partner-request-dto.js +15 -0
- package/dist/models/validate-partner-response-class.d.ts +30 -0
- package/dist/models/validate-partner-response-class.js +15 -0
- package/models/deductible-class.ts +6 -0
- package/models/get-product-document-download-url-request-rest-dto.ts +38 -0
- package/models/index.ts +3 -0
- package/models/tariff-category-summary-class.ts +0 -7
- package/models/validate-partner-request-dto.ts +36 -0
- package/models/validate-partner-response-class.ts +36 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -5,11 +5,12 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/address-completions-validations-api.ts
|
|
7
7
|
api/booking-funnels-api.ts
|
|
8
|
-
api/default-api.ts
|
|
9
8
|
api/documents-api.ts
|
|
9
|
+
api/health-api.ts
|
|
10
10
|
api/leads-api.ts
|
|
11
11
|
api/named-ranges-api.ts
|
|
12
12
|
api/notifications-api.ts
|
|
13
|
+
api/partners-api.ts
|
|
13
14
|
api/payments-setup-api.ts
|
|
14
15
|
api/product-versions-api.ts
|
|
15
16
|
api/products-api.ts
|
|
@@ -68,6 +69,7 @@ models/get-booking-funnel-response-class.ts
|
|
|
68
69
|
models/get-custom-css-response-class.ts
|
|
69
70
|
models/get-lead-response-class.ts
|
|
70
71
|
models/get-product-config-tariffs-response-class.ts
|
|
72
|
+
models/get-product-document-download-url-request-rest-dto.ts
|
|
71
73
|
models/get-product-document-download-url-response-class.ts
|
|
72
74
|
models/get-public-psp-settings-response-class.ts
|
|
73
75
|
models/index.ts
|
|
@@ -135,5 +137,7 @@ models/update-lead-request-dto.ts
|
|
|
135
137
|
models/update-lead-response-class.ts
|
|
136
138
|
models/uploaded-document-dto.ts
|
|
137
139
|
models/validate-address-response-class.ts
|
|
140
|
+
models/validate-partner-request-dto.ts
|
|
141
|
+
models/validate-partner-response-class.ts
|
|
138
142
|
package.json
|
|
139
143
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/public-api-sdk-node@1.40.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.40.1-beta.10 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.40.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.40.1-beta.10
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -102,10 +102,11 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
102
102
|
* @param {string} houseNumber The house number of the address
|
|
103
103
|
* @param {string} [authorization] Bearer Token
|
|
104
104
|
* @param {string} [completeAddress] The complete address to validate
|
|
105
|
+
* @param {any} [limit]
|
|
105
106
|
* @param {*} [options] Override http request option.
|
|
106
107
|
* @throws {RequiredError}
|
|
107
108
|
*/
|
|
108
|
-
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
109
|
+
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
109
110
|
// verify required parameter 'city' is not null or undefined
|
|
110
111
|
assertParamExists('validateAddress', 'city', city)
|
|
111
112
|
// verify required parameter 'country' is not null or undefined
|
|
@@ -158,6 +159,10 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
158
159
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
159
160
|
}
|
|
160
161
|
|
|
162
|
+
if (limit !== undefined) {
|
|
163
|
+
localVarQueryParameter['limit'] = limit;
|
|
164
|
+
}
|
|
165
|
+
|
|
161
166
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
162
167
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
163
168
|
}
|
|
@@ -207,11 +212,12 @@ export const AddressCompletionsValidationsApiFp = function(configuration?: Confi
|
|
|
207
212
|
* @param {string} houseNumber The house number of the address
|
|
208
213
|
* @param {string} [authorization] Bearer Token
|
|
209
214
|
* @param {string} [completeAddress] The complete address to validate
|
|
215
|
+
* @param {any} [limit]
|
|
210
216
|
* @param {*} [options] Override http request option.
|
|
211
217
|
* @throws {RequiredError}
|
|
212
218
|
*/
|
|
213
|
-
async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>> {
|
|
214
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options);
|
|
219
|
+
async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>> {
|
|
220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options);
|
|
215
221
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
216
222
|
},
|
|
217
223
|
}
|
|
@@ -247,11 +253,12 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
|
|
|
247
253
|
* @param {string} houseNumber The house number of the address
|
|
248
254
|
* @param {string} [authorization] Bearer Token
|
|
249
255
|
* @param {string} [completeAddress] The complete address to validate
|
|
256
|
+
* @param {any} [limit]
|
|
250
257
|
* @param {*} [options] Override http request option.
|
|
251
258
|
* @throws {RequiredError}
|
|
252
259
|
*/
|
|
253
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass> {
|
|
254
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then((request) => request(axios, basePath));
|
|
260
|
+
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: any): AxiosPromise<ValidateAddressResponseClass> {
|
|
261
|
+
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options).then((request) => request(axios, basePath));
|
|
255
262
|
},
|
|
256
263
|
};
|
|
257
264
|
};
|
|
@@ -345,6 +352,13 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
|
345
352
|
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
346
353
|
*/
|
|
347
354
|
readonly completeAddress?: string
|
|
355
|
+
|
|
356
|
+
/**
|
|
357
|
+
*
|
|
358
|
+
* @type {any}
|
|
359
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
360
|
+
*/
|
|
361
|
+
readonly limit?: any
|
|
348
362
|
}
|
|
349
363
|
|
|
350
364
|
/**
|
|
@@ -375,6 +389,6 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
|
|
|
375
389
|
* @memberof AddressCompletionsValidationsApi
|
|
376
390
|
*/
|
|
377
391
|
public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
|
|
378
|
-
return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, options).then((request) => request(this.axios, this.basePath));
|
|
392
|
+
return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
|
|
379
393
|
}
|
|
380
394
|
}
|
package/api/documents-api.ts
CHANGED
|
@@ -27,6 +27,8 @@ import { CreatePresignedPostRequestDto } from '../models';
|
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { CreatePresignedPostResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
|
+
import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
30
32
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
31
33
|
// @ts-ignore
|
|
32
34
|
import { ListDocumentsResponseClass } from '../models';
|
|
@@ -189,11 +191,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
189
191
|
* @param {string} productCode
|
|
190
192
|
* @param {string} code
|
|
191
193
|
* @param {string} [authorization] Bearer Token
|
|
192
|
-
* @param {
|
|
194
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
193
195
|
* @param {*} [options] Override http request option.
|
|
194
196
|
* @throws {RequiredError}
|
|
195
197
|
*/
|
|
196
|
-
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
198
|
+
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
199
|
// verify required parameter 'productCode' is not null or undefined
|
|
198
200
|
assertParamExists('downloadProductDocumentUrl', 'productCode', productCode)
|
|
199
201
|
// verify required parameter 'code' is not null or undefined
|
|
@@ -485,11 +487,11 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
485
487
|
* @param {string} productCode
|
|
486
488
|
* @param {string} code
|
|
487
489
|
* @param {string} [authorization] Bearer Token
|
|
488
|
-
* @param {
|
|
490
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
489
491
|
* @param {*} [options] Override http request option.
|
|
490
492
|
* @throws {RequiredError}
|
|
491
493
|
*/
|
|
492
|
-
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
494
|
+
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
493
495
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options);
|
|
494
496
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
495
497
|
},
|
|
@@ -590,11 +592,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
590
592
|
* @param {string} productCode
|
|
591
593
|
* @param {string} code
|
|
592
594
|
* @param {string} [authorization] Bearer Token
|
|
593
|
-
* @param {
|
|
595
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
594
596
|
* @param {*} [options] Override http request option.
|
|
595
597
|
* @throws {RequiredError}
|
|
596
598
|
*/
|
|
597
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
599
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
598
600
|
return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
599
601
|
},
|
|
600
602
|
/**
|
|
@@ -743,10 +745,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
|
743
745
|
|
|
744
746
|
/**
|
|
745
747
|
* Content disposition override. Default will be depending on the document type.
|
|
746
|
-
* @type {
|
|
748
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
747
749
|
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
748
750
|
*/
|
|
749
|
-
readonly contentDisposition?:
|
|
751
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto
|
|
750
752
|
}
|
|
751
753
|
|
|
752
754
|
/**
|
|
@@ -29,10 +29,10 @@ import { InlineResponse503 } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* HealthApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
@@ -69,11 +69,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* HealthApi - functional programming interface
|
|
73
73
|
* @export
|
|
74
74
|
*/
|
|
75
|
-
export const
|
|
76
|
-
const localVarAxiosParamCreator =
|
|
75
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
77
77
|
return {
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
@@ -88,11 +88,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* HealthApi - factory interface
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
|
-
export const
|
|
95
|
-
const localVarFp =
|
|
94
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = HealthApiFp(configuration)
|
|
96
96
|
return {
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
@@ -106,19 +106,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* HealthApi - object-oriented interface
|
|
110
110
|
* @export
|
|
111
|
-
* @class
|
|
111
|
+
* @class HealthApi
|
|
112
112
|
* @extends {BaseAPI}
|
|
113
113
|
*/
|
|
114
|
-
export class
|
|
114
|
+
export class HealthApi extends BaseAPI {
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
122
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api/leads-api.ts
CHANGED
|
@@ -233,14 +233,55 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
233
233
|
/**
|
|
234
234
|
* This will initiate a lead code.
|
|
235
235
|
* @summary Initiate a lead code
|
|
236
|
+
* @param {string} [authorization] Bearer Token
|
|
237
|
+
* @param {*} [options] Override http request option.
|
|
238
|
+
* @throws {RequiredError}
|
|
239
|
+
*/
|
|
240
|
+
initiateLead: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
241
|
+
const localVarPath = `/publicapi/v1/leads/initiate`;
|
|
242
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
243
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
244
|
+
let baseOptions;
|
|
245
|
+
let baseAccessToken;
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
baseAccessToken = configuration.accessToken;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
252
|
+
const localVarHeaderParameter = {} as any;
|
|
253
|
+
const localVarQueryParameter = {} as any;
|
|
254
|
+
|
|
255
|
+
// authentication bearer required
|
|
256
|
+
// http bearer authentication required
|
|
257
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
258
|
+
|
|
259
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
260
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
266
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
267
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
268
|
+
|
|
269
|
+
return {
|
|
270
|
+
url: toPathString(localVarUrlObj),
|
|
271
|
+
options: localVarRequestOptions,
|
|
272
|
+
};
|
|
273
|
+
},
|
|
274
|
+
/**
|
|
275
|
+
* This will initiate a lead code for the specified product.
|
|
276
|
+
* @summary Initiate a lead code for a product
|
|
236
277
|
* @param {string} productSlug
|
|
237
278
|
* @param {string} [authorization] Bearer Token
|
|
238
279
|
* @param {*} [options] Override http request option.
|
|
239
280
|
* @throws {RequiredError}
|
|
240
281
|
*/
|
|
241
|
-
|
|
282
|
+
initiateLeadWithProduct: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
242
283
|
// verify required parameter 'productSlug' is not null or undefined
|
|
243
|
-
assertParamExists('
|
|
284
|
+
assertParamExists('initiateLeadWithProduct', 'productSlug', productSlug)
|
|
244
285
|
const localVarPath = `/publicapi/v1/leads/initiate/{productSlug}`
|
|
245
286
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
246
287
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -438,13 +479,24 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
438
479
|
/**
|
|
439
480
|
* This will initiate a lead code.
|
|
440
481
|
* @summary Initiate a lead code
|
|
482
|
+
* @param {string} [authorization] Bearer Token
|
|
483
|
+
* @param {*} [options] Override http request option.
|
|
484
|
+
* @throws {RequiredError}
|
|
485
|
+
*/
|
|
486
|
+
async initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
487
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(authorization, options);
|
|
488
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
489
|
+
},
|
|
490
|
+
/**
|
|
491
|
+
* This will initiate a lead code for the specified product.
|
|
492
|
+
* @summary Initiate a lead code for a product
|
|
441
493
|
* @param {string} productSlug
|
|
442
494
|
* @param {string} [authorization] Bearer Token
|
|
443
495
|
* @param {*} [options] Override http request option.
|
|
444
496
|
* @throws {RequiredError}
|
|
445
497
|
*/
|
|
446
|
-
async
|
|
447
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
498
|
+
async initiateLeadWithProduct(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
499
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLeadWithProduct(productSlug, authorization, options);
|
|
448
500
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
449
501
|
},
|
|
450
502
|
/**
|
|
@@ -530,13 +582,23 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
530
582
|
/**
|
|
531
583
|
* This will initiate a lead code.
|
|
532
584
|
* @summary Initiate a lead code
|
|
585
|
+
* @param {string} [authorization] Bearer Token
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
initiateLead(authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
590
|
+
return localVarFp.initiateLead(authorization, options).then((request) => request(axios, basePath));
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
* This will initiate a lead code for the specified product.
|
|
594
|
+
* @summary Initiate a lead code for a product
|
|
533
595
|
* @param {string} productSlug
|
|
534
596
|
* @param {string} [authorization] Bearer Token
|
|
535
597
|
* @param {*} [options] Override http request option.
|
|
536
598
|
* @throws {RequiredError}
|
|
537
599
|
*/
|
|
538
|
-
|
|
539
|
-
return localVarFp.
|
|
600
|
+
initiateLeadWithProduct(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
601
|
+
return localVarFp.initiateLeadWithProduct(productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
540
602
|
},
|
|
541
603
|
/**
|
|
542
604
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -656,16 +718,30 @@ export interface LeadsApiGetLeadRequest {
|
|
|
656
718
|
*/
|
|
657
719
|
export interface LeadsApiInitiateLeadRequest {
|
|
658
720
|
/**
|
|
659
|
-
*
|
|
721
|
+
* Bearer Token
|
|
660
722
|
* @type {string}
|
|
661
723
|
* @memberof LeadsApiInitiateLead
|
|
662
724
|
*/
|
|
725
|
+
readonly authorization?: string
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Request parameters for initiateLeadWithProduct operation in LeadsApi.
|
|
730
|
+
* @export
|
|
731
|
+
* @interface LeadsApiInitiateLeadWithProductRequest
|
|
732
|
+
*/
|
|
733
|
+
export interface LeadsApiInitiateLeadWithProductRequest {
|
|
734
|
+
/**
|
|
735
|
+
*
|
|
736
|
+
* @type {string}
|
|
737
|
+
* @memberof LeadsApiInitiateLeadWithProduct
|
|
738
|
+
*/
|
|
663
739
|
readonly productSlug: string
|
|
664
740
|
|
|
665
741
|
/**
|
|
666
742
|
* Bearer Token
|
|
667
743
|
* @type {string}
|
|
668
|
-
* @memberof
|
|
744
|
+
* @memberof LeadsApiInitiateLeadWithProduct
|
|
669
745
|
*/
|
|
670
746
|
readonly authorization?: string
|
|
671
747
|
}
|
|
@@ -789,8 +865,20 @@ export class LeadsApi extends BaseAPI {
|
|
|
789
865
|
* @throws {RequiredError}
|
|
790
866
|
* @memberof LeadsApi
|
|
791
867
|
*/
|
|
792
|
-
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig) {
|
|
793
|
-
return LeadsApiFp(this.configuration).initiateLead(requestParameters.
|
|
868
|
+
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest = {}, options?: AxiosRequestConfig) {
|
|
869
|
+
return LeadsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* This will initiate a lead code for the specified product.
|
|
874
|
+
* @summary Initiate a lead code for a product
|
|
875
|
+
* @param {LeadsApiInitiateLeadWithProductRequest} requestParameters Request parameters.
|
|
876
|
+
* @param {*} [options] Override http request option.
|
|
877
|
+
* @throws {RequiredError}
|
|
878
|
+
* @memberof LeadsApi
|
|
879
|
+
*/
|
|
880
|
+
public initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig) {
|
|
881
|
+
return LeadsApiFp(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
794
882
|
}
|
|
795
883
|
|
|
796
884
|
/**
|
|
@@ -0,0 +1,169 @@
|
|
|
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
|
+
* Contact: kontakt@emil.de
|
|
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 { ValidatePartnerRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ValidatePartnerResponseClass } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* PartnersApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
39
|
+
* @summary Validate a partner
|
|
40
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'validatePartnerRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
|
|
48
|
+
const localVarPath = `/publicapi/v1/partners/validate`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* PartnersApi - functional programming interface
|
|
89
|
+
* @export
|
|
90
|
+
*/
|
|
91
|
+
export const PartnersApiFp = function(configuration?: Configuration) {
|
|
92
|
+
const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
|
|
93
|
+
return {
|
|
94
|
+
/**
|
|
95
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
96
|
+
* @summary Validate a partner
|
|
97
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
|
|
103
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
|
|
104
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
105
|
+
},
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* PartnersApi - factory interface
|
|
111
|
+
* @export
|
|
112
|
+
*/
|
|
113
|
+
export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
114
|
+
const localVarFp = PartnersApiFp(configuration)
|
|
115
|
+
return {
|
|
116
|
+
/**
|
|
117
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
118
|
+
* @summary Validate a partner
|
|
119
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
120
|
+
* @param {string} [authorization] Bearer Token
|
|
121
|
+
* @param {*} [options] Override http request option.
|
|
122
|
+
* @throws {RequiredError}
|
|
123
|
+
*/
|
|
124
|
+
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
|
|
125
|
+
return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
126
|
+
},
|
|
127
|
+
};
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Request parameters for validatePartner operation in PartnersApi.
|
|
132
|
+
* @export
|
|
133
|
+
* @interface PartnersApiValidatePartnerRequest
|
|
134
|
+
*/
|
|
135
|
+
export interface PartnersApiValidatePartnerRequest {
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @type {ValidatePartnerRequestDto}
|
|
139
|
+
* @memberof PartnersApiValidatePartner
|
|
140
|
+
*/
|
|
141
|
+
readonly validatePartnerRequestDto: ValidatePartnerRequestDto
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* Bearer Token
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof PartnersApiValidatePartner
|
|
147
|
+
*/
|
|
148
|
+
readonly authorization?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* PartnersApi - object-oriented interface
|
|
153
|
+
* @export
|
|
154
|
+
* @class PartnersApi
|
|
155
|
+
* @extends {BaseAPI}
|
|
156
|
+
*/
|
|
157
|
+
export class PartnersApi extends BaseAPI {
|
|
158
|
+
/**
|
|
159
|
+
* Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
|
|
160
|
+
* @summary Validate a partner
|
|
161
|
+
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
162
|
+
* @param {*} [options] Override http request option.
|
|
163
|
+
* @throws {RequiredError}
|
|
164
|
+
* @memberof PartnersApi
|
|
165
|
+
*/
|
|
166
|
+
public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
|
|
167
|
+
return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
168
|
+
}
|
|
169
|
+
}
|