@emilgroup/public-api-sdk 1.38.1-beta.1 → 1.38.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 +165 -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 +224 -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 +1 -1
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@1.38.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.38.1-beta.10 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.38.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.38.1-beta.10
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -98,10 +98,11 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
98
98
|
* @param {string} houseNumber The house number of the address
|
|
99
99
|
* @param {string} [authorization] Bearer Token
|
|
100
100
|
* @param {string} [completeAddress] The complete address to validate
|
|
101
|
+
* @param {any} [limit]
|
|
101
102
|
* @param {*} [options] Override http request option.
|
|
102
103
|
* @throws {RequiredError}
|
|
103
104
|
*/
|
|
104
|
-
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
|
+
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
105
106
|
// verify required parameter 'city' is not null or undefined
|
|
106
107
|
assertParamExists('validateAddress', 'city', city)
|
|
107
108
|
// verify required parameter 'country' is not null or undefined
|
|
@@ -154,6 +155,10 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
154
155
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
155
156
|
}
|
|
156
157
|
|
|
158
|
+
if (limit !== undefined) {
|
|
159
|
+
localVarQueryParameter['limit'] = limit;
|
|
160
|
+
}
|
|
161
|
+
|
|
157
162
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
158
163
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
159
164
|
}
|
|
@@ -203,11 +208,12 @@ export const AddressCompletionsValidationsApiFp = function(configuration?: Confi
|
|
|
203
208
|
* @param {string} houseNumber The house number of the address
|
|
204
209
|
* @param {string} [authorization] Bearer Token
|
|
205
210
|
* @param {string} [completeAddress] The complete address to validate
|
|
211
|
+
* @param {any} [limit]
|
|
206
212
|
* @param {*} [options] Override http request option.
|
|
207
213
|
* @throws {RequiredError}
|
|
208
214
|
*/
|
|
209
|
-
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>> {
|
|
210
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options);
|
|
215
|
+
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>> {
|
|
216
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options);
|
|
211
217
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
212
218
|
},
|
|
213
219
|
}
|
|
@@ -243,11 +249,12 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
|
|
|
243
249
|
* @param {string} houseNumber The house number of the address
|
|
244
250
|
* @param {string} [authorization] Bearer Token
|
|
245
251
|
* @param {string} [completeAddress] The complete address to validate
|
|
252
|
+
* @param {any} [limit]
|
|
246
253
|
* @param {*} [options] Override http request option.
|
|
247
254
|
* @throws {RequiredError}
|
|
248
255
|
*/
|
|
249
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass> {
|
|
250
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then((request) => request(axios, basePath));
|
|
256
|
+
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: any): AxiosPromise<ValidateAddressResponseClass> {
|
|
257
|
+
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options).then((request) => request(axios, basePath));
|
|
251
258
|
},
|
|
252
259
|
};
|
|
253
260
|
};
|
|
@@ -341,6 +348,13 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
|
341
348
|
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
342
349
|
*/
|
|
343
350
|
readonly completeAddress?: string
|
|
351
|
+
|
|
352
|
+
/**
|
|
353
|
+
*
|
|
354
|
+
* @type {any}
|
|
355
|
+
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
356
|
+
*/
|
|
357
|
+
readonly limit?: any
|
|
344
358
|
}
|
|
345
359
|
|
|
346
360
|
/**
|
|
@@ -371,6 +385,6 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
|
|
|
371
385
|
* @memberof AddressCompletionsValidationsApi
|
|
372
386
|
*/
|
|
373
387
|
public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
|
|
374
|
-
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));
|
|
388
|
+
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));
|
|
375
389
|
}
|
|
376
390
|
}
|
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';
|
|
@@ -185,11 +187,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
185
187
|
* @param {string} productCode
|
|
186
188
|
* @param {string} code
|
|
187
189
|
* @param {string} [authorization] Bearer Token
|
|
188
|
-
* @param {
|
|
190
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
189
191
|
* @param {*} [options] Override http request option.
|
|
190
192
|
* @throws {RequiredError}
|
|
191
193
|
*/
|
|
192
|
-
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
194
|
+
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
193
195
|
// verify required parameter 'productCode' is not null or undefined
|
|
194
196
|
assertParamExists('downloadProductDocumentUrl', 'productCode', productCode)
|
|
195
197
|
// verify required parameter 'code' is not null or undefined
|
|
@@ -481,11 +483,11 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
481
483
|
* @param {string} productCode
|
|
482
484
|
* @param {string} code
|
|
483
485
|
* @param {string} [authorization] Bearer Token
|
|
484
|
-
* @param {
|
|
486
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
485
487
|
* @param {*} [options] Override http request option.
|
|
486
488
|
* @throws {RequiredError}
|
|
487
489
|
*/
|
|
488
|
-
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
490
|
+
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
489
491
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options);
|
|
490
492
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
491
493
|
},
|
|
@@ -586,11 +588,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
586
588
|
* @param {string} productCode
|
|
587
589
|
* @param {string} code
|
|
588
590
|
* @param {string} [authorization] Bearer Token
|
|
589
|
-
* @param {
|
|
591
|
+
* @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
590
592
|
* @param {*} [options] Override http request option.
|
|
591
593
|
* @throws {RequiredError}
|
|
592
594
|
*/
|
|
593
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
595
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
594
596
|
return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
595
597
|
},
|
|
596
598
|
/**
|
|
@@ -739,10 +741,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
|
739
741
|
|
|
740
742
|
/**
|
|
741
743
|
* Content disposition override. Default will be depending on the document type.
|
|
742
|
-
* @type {
|
|
744
|
+
* @type {GetProductDocumentDownloadUrlRequestRestDto}
|
|
743
745
|
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
744
746
|
*/
|
|
745
|
-
readonly contentDisposition?:
|
|
747
|
+
readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto
|
|
746
748
|
}
|
|
747
749
|
|
|
748
750
|
/**
|
|
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* HealthApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
@@ -65,11 +65,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* HealthApi - functional programming interface
|
|
69
69
|
* @export
|
|
70
70
|
*/
|
|
71
|
-
export const
|
|
72
|
-
const localVarAxiosParamCreator =
|
|
71
|
+
export const HealthApiFp = function(configuration?: Configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
|
|
73
73
|
return {
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -84,11 +84,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* HealthApi - factory interface
|
|
88
88
|
* @export
|
|
89
89
|
*/
|
|
90
|
-
export const
|
|
91
|
-
const localVarFp =
|
|
90
|
+
export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
91
|
+
const localVarFp = HealthApiFp(configuration)
|
|
92
92
|
return {
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
@@ -102,19 +102,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* HealthApi - object-oriented interface
|
|
106
106
|
* @export
|
|
107
|
-
* @class
|
|
107
|
+
* @class HealthApi
|
|
108
108
|
* @extends {BaseAPI}
|
|
109
109
|
*/
|
|
110
|
-
export class
|
|
110
|
+
export class HealthApi extends BaseAPI {
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
115
|
-
* @memberof
|
|
115
|
+
* @memberof HealthApi
|
|
116
116
|
*/
|
|
117
117
|
public check(options?: AxiosRequestConfig) {
|
|
118
|
-
return
|
|
118
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
119
119
|
}
|
|
120
120
|
}
|
package/api/leads-api.ts
CHANGED
|
@@ -229,14 +229,55 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
229
229
|
/**
|
|
230
230
|
* This will initiate a lead code.
|
|
231
231
|
* @summary Initiate a lead code
|
|
232
|
+
* @param {string} [authorization] Bearer Token
|
|
233
|
+
* @param {*} [options] Override http request option.
|
|
234
|
+
* @throws {RequiredError}
|
|
235
|
+
*/
|
|
236
|
+
initiateLead: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
237
|
+
const localVarPath = `/publicapi/v1/leads/initiate`;
|
|
238
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
239
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
240
|
+
let baseOptions;
|
|
241
|
+
let baseAccessToken;
|
|
242
|
+
if (configuration) {
|
|
243
|
+
baseOptions = configuration.baseOptions;
|
|
244
|
+
baseAccessToken = configuration.accessToken;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
248
|
+
const localVarHeaderParameter = {} as any;
|
|
249
|
+
const localVarQueryParameter = {} as any;
|
|
250
|
+
|
|
251
|
+
// authentication bearer required
|
|
252
|
+
// http bearer authentication required
|
|
253
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
254
|
+
|
|
255
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
256
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
263
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
264
|
+
|
|
265
|
+
return {
|
|
266
|
+
url: toPathString(localVarUrlObj),
|
|
267
|
+
options: localVarRequestOptions,
|
|
268
|
+
};
|
|
269
|
+
},
|
|
270
|
+
/**
|
|
271
|
+
* This will initiate a lead code for the specified product.
|
|
272
|
+
* @summary Initiate a lead code for a product
|
|
232
273
|
* @param {string} productSlug
|
|
233
274
|
* @param {string} [authorization] Bearer Token
|
|
234
275
|
* @param {*} [options] Override http request option.
|
|
235
276
|
* @throws {RequiredError}
|
|
236
277
|
*/
|
|
237
|
-
|
|
278
|
+
initiateLeadWithProduct: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
238
279
|
// verify required parameter 'productSlug' is not null or undefined
|
|
239
|
-
assertParamExists('
|
|
280
|
+
assertParamExists('initiateLeadWithProduct', 'productSlug', productSlug)
|
|
240
281
|
const localVarPath = `/publicapi/v1/leads/initiate/{productSlug}`
|
|
241
282
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
242
283
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -434,13 +475,24 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
434
475
|
/**
|
|
435
476
|
* This will initiate a lead code.
|
|
436
477
|
* @summary Initiate a lead code
|
|
478
|
+
* @param {string} [authorization] Bearer Token
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
async initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
483
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(authorization, options);
|
|
484
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
485
|
+
},
|
|
486
|
+
/**
|
|
487
|
+
* This will initiate a lead code for the specified product.
|
|
488
|
+
* @summary Initiate a lead code for a product
|
|
437
489
|
* @param {string} productSlug
|
|
438
490
|
* @param {string} [authorization] Bearer Token
|
|
439
491
|
* @param {*} [options] Override http request option.
|
|
440
492
|
* @throws {RequiredError}
|
|
441
493
|
*/
|
|
442
|
-
async
|
|
443
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
494
|
+
async initiateLeadWithProduct(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
495
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLeadWithProduct(productSlug, authorization, options);
|
|
444
496
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
445
497
|
},
|
|
446
498
|
/**
|
|
@@ -526,13 +578,23 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
526
578
|
/**
|
|
527
579
|
* This will initiate a lead code.
|
|
528
580
|
* @summary Initiate a lead code
|
|
581
|
+
* @param {string} [authorization] Bearer Token
|
|
582
|
+
* @param {*} [options] Override http request option.
|
|
583
|
+
* @throws {RequiredError}
|
|
584
|
+
*/
|
|
585
|
+
initiateLead(authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
586
|
+
return localVarFp.initiateLead(authorization, options).then((request) => request(axios, basePath));
|
|
587
|
+
},
|
|
588
|
+
/**
|
|
589
|
+
* This will initiate a lead code for the specified product.
|
|
590
|
+
* @summary Initiate a lead code for a product
|
|
529
591
|
* @param {string} productSlug
|
|
530
592
|
* @param {string} [authorization] Bearer Token
|
|
531
593
|
* @param {*} [options] Override http request option.
|
|
532
594
|
* @throws {RequiredError}
|
|
533
595
|
*/
|
|
534
|
-
|
|
535
|
-
return localVarFp.
|
|
596
|
+
initiateLeadWithProduct(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
597
|
+
return localVarFp.initiateLeadWithProduct(productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
536
598
|
},
|
|
537
599
|
/**
|
|
538
600
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -652,16 +714,30 @@ export interface LeadsApiGetLeadRequest {
|
|
|
652
714
|
*/
|
|
653
715
|
export interface LeadsApiInitiateLeadRequest {
|
|
654
716
|
/**
|
|
655
|
-
*
|
|
717
|
+
* Bearer Token
|
|
656
718
|
* @type {string}
|
|
657
719
|
* @memberof LeadsApiInitiateLead
|
|
658
720
|
*/
|
|
721
|
+
readonly authorization?: string
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
/**
|
|
725
|
+
* Request parameters for initiateLeadWithProduct operation in LeadsApi.
|
|
726
|
+
* @export
|
|
727
|
+
* @interface LeadsApiInitiateLeadWithProductRequest
|
|
728
|
+
*/
|
|
729
|
+
export interface LeadsApiInitiateLeadWithProductRequest {
|
|
730
|
+
/**
|
|
731
|
+
*
|
|
732
|
+
* @type {string}
|
|
733
|
+
* @memberof LeadsApiInitiateLeadWithProduct
|
|
734
|
+
*/
|
|
659
735
|
readonly productSlug: string
|
|
660
736
|
|
|
661
737
|
/**
|
|
662
738
|
* Bearer Token
|
|
663
739
|
* @type {string}
|
|
664
|
-
* @memberof
|
|
740
|
+
* @memberof LeadsApiInitiateLeadWithProduct
|
|
665
741
|
*/
|
|
666
742
|
readonly authorization?: string
|
|
667
743
|
}
|
|
@@ -785,8 +861,20 @@ export class LeadsApi extends BaseAPI {
|
|
|
785
861
|
* @throws {RequiredError}
|
|
786
862
|
* @memberof LeadsApi
|
|
787
863
|
*/
|
|
788
|
-
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig) {
|
|
789
|
-
return LeadsApiFp(this.configuration).initiateLead(requestParameters.
|
|
864
|
+
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest = {}, options?: AxiosRequestConfig) {
|
|
865
|
+
return LeadsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
* This will initiate a lead code for the specified product.
|
|
870
|
+
* @summary Initiate a lead code for a product
|
|
871
|
+
* @param {LeadsApiInitiateLeadWithProductRequest} requestParameters Request parameters.
|
|
872
|
+
* @param {*} [options] Override http request option.
|
|
873
|
+
* @throws {RequiredError}
|
|
874
|
+
* @memberof LeadsApi
|
|
875
|
+
*/
|
|
876
|
+
public initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig) {
|
|
877
|
+
return LeadsApiFp(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
790
878
|
}
|
|
791
879
|
|
|
792
880
|
/**
|
|
@@ -0,0 +1,165 @@
|
|
|
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
|
+
/**
|
|
28
|
+
* PartnersApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
* 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.
|
|
35
|
+
* @summary Validate a partner
|
|
36
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
42
|
+
// verify required parameter 'validatePartnerRequestDto' is not null or undefined
|
|
43
|
+
assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
|
|
44
|
+
const localVarPath = `/publicapi/v1/partners/validate`;
|
|
45
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
46
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
47
|
+
let baseOptions;
|
|
48
|
+
let baseAccessToken;
|
|
49
|
+
if (configuration) {
|
|
50
|
+
baseOptions = configuration.baseOptions;
|
|
51
|
+
baseAccessToken = configuration.accessToken;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
55
|
+
const localVarHeaderParameter = {} as any;
|
|
56
|
+
const localVarQueryParameter = {} as any;
|
|
57
|
+
|
|
58
|
+
// authentication bearer required
|
|
59
|
+
// http bearer authentication required
|
|
60
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
61
|
+
|
|
62
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
63
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
+
|
|
70
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
71
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
72
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
73
|
+
localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
url: toPathString(localVarUrlObj),
|
|
77
|
+
options: localVarRequestOptions,
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* PartnersApi - functional programming interface
|
|
85
|
+
* @export
|
|
86
|
+
*/
|
|
87
|
+
export const PartnersApiFp = function(configuration?: Configuration) {
|
|
88
|
+
const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
|
|
89
|
+
return {
|
|
90
|
+
/**
|
|
91
|
+
* 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.
|
|
92
|
+
* @summary Validate a partner
|
|
93
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
94
|
+
* @param {string} [authorization] Bearer Token
|
|
95
|
+
* @param {*} [options] Override http request option.
|
|
96
|
+
* @throws {RequiredError}
|
|
97
|
+
*/
|
|
98
|
+
async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
|
|
99
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
|
|
100
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
101
|
+
},
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* PartnersApi - factory interface
|
|
107
|
+
* @export
|
|
108
|
+
*/
|
|
109
|
+
export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
110
|
+
const localVarFp = PartnersApiFp(configuration)
|
|
111
|
+
return {
|
|
112
|
+
/**
|
|
113
|
+
* 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.
|
|
114
|
+
* @summary Validate a partner
|
|
115
|
+
* @param {ValidatePartnerRequestDto} validatePartnerRequestDto
|
|
116
|
+
* @param {string} [authorization] Bearer Token
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
|
|
121
|
+
return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
122
|
+
},
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Request parameters for validatePartner operation in PartnersApi.
|
|
128
|
+
* @export
|
|
129
|
+
* @interface PartnersApiValidatePartnerRequest
|
|
130
|
+
*/
|
|
131
|
+
export interface PartnersApiValidatePartnerRequest {
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {ValidatePartnerRequestDto}
|
|
135
|
+
* @memberof PartnersApiValidatePartner
|
|
136
|
+
*/
|
|
137
|
+
readonly validatePartnerRequestDto: ValidatePartnerRequestDto
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Bearer Token
|
|
141
|
+
* @type {string}
|
|
142
|
+
* @memberof PartnersApiValidatePartner
|
|
143
|
+
*/
|
|
144
|
+
readonly authorization?: string
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/**
|
|
148
|
+
* PartnersApi - object-oriented interface
|
|
149
|
+
* @export
|
|
150
|
+
* @class PartnersApi
|
|
151
|
+
* @extends {BaseAPI}
|
|
152
|
+
*/
|
|
153
|
+
export class PartnersApi extends BaseAPI {
|
|
154
|
+
/**
|
|
155
|
+
* 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.
|
|
156
|
+
* @summary Validate a partner
|
|
157
|
+
* @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
|
|
158
|
+
* @param {*} [options] Override http request option.
|
|
159
|
+
* @throws {RequiredError}
|
|
160
|
+
* @memberof PartnersApi
|
|
161
|
+
*/
|
|
162
|
+
public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
|
|
163
|
+
return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
164
|
+
}
|
|
165
|
+
}
|