@emilgroup/public-api-sdk-node 1.40.1-beta.9 → 1.41.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 +1 -5
- package/README.md +2 -2
- package/api/address-completions-validations-api.ts +6 -20
- package/api/{health-api.ts → default-api.ts} +13 -13
- package/api/documents-api.ts +8 -10
- package/api/leads-api.ts +10 -98
- package/api/payments-setup-api.ts +11 -113
- package/api.ts +2 -4
- package/dist/api/address-completions-validations-api.d.ts +3 -12
- package/dist/api/address-completions-validations-api.js +6 -12
- package/dist/api/{health-api.d.ts → default-api.d.ts} +10 -10
- package/dist/api/{health-api.js → default-api.js} +22 -22
- package/dist/api/documents-api.d.ts +8 -9
- package/dist/api/documents-api.js +3 -3
- package/dist/api/leads-api.d.ts +6 -52
- package/dist/api/leads-api.js +7 -94
- package/dist/api/payments-setup-api.d.ts +7 -62
- package/dist/api/payments-setup-api.js +7 -100
- package/dist/api.d.ts +1 -2
- package/dist/api.js +1 -2
- package/dist/models/deductible-class.d.ts +6 -0
- package/dist/models/index.d.ts +0 -3
- package/dist/models/index.js +0 -3
- package/dist/models/tariff-category-summary-class.d.ts +0 -7
- package/models/deductible-class.ts +6 -0
- package/models/index.ts +0 -3
- package/models/tariff-category-summary-class.ts +0 -7
- package/package.json +1 -1
- package/api/partners-api.ts +0 -169
- package/dist/api/partners-api.d.ts +0 -97
- package/dist/api/partners-api.js +0 -228
- package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +0 -29
- package/dist/models/get-product-document-download-url-request-rest-dto.js +0 -20
- package/dist/models/validate-partner-request-dto.d.ts +0 -30
- package/dist/models/validate-partner-request-dto.js +0 -15
- package/dist/models/validate-partner-response-class.d.ts +0 -30
- package/dist/models/validate-partner-response-class.js +0 -15
- package/models/get-product-document-download-url-request-rest-dto.ts +0 -38
- package/models/validate-partner-request-dto.ts +0 -36
- package/models/validate-partner-response-class.ts +0 -36
package/.openapi-generator/FILES
CHANGED
|
@@ -5,12 +5,11 @@ 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
|
|
8
9
|
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
|
|
14
13
|
api/payments-setup-api.ts
|
|
15
14
|
api/product-versions-api.ts
|
|
16
15
|
api/products-api.ts
|
|
@@ -69,7 +68,6 @@ models/get-booking-funnel-response-class.ts
|
|
|
69
68
|
models/get-custom-css-response-class.ts
|
|
70
69
|
models/get-lead-response-class.ts
|
|
71
70
|
models/get-product-config-tariffs-response-class.ts
|
|
72
|
-
models/get-product-document-download-url-request-rest-dto.ts
|
|
73
71
|
models/get-product-document-download-url-response-class.ts
|
|
74
72
|
models/get-public-psp-settings-response-class.ts
|
|
75
73
|
models/index.ts
|
|
@@ -137,7 +135,5 @@ models/update-lead-request-dto.ts
|
|
|
137
135
|
models/update-lead-response-class.ts
|
|
138
136
|
models/uploaded-document-dto.ts
|
|
139
137
|
models/validate-address-response-class.ts
|
|
140
|
-
models/validate-partner-request-dto.ts
|
|
141
|
-
models/validate-partner-response-class.ts
|
|
142
138
|
package.json
|
|
143
139
|
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.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.41.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.41.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -102,11 +102,10 @@ 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]
|
|
106
105
|
* @param {*} [options] Override http request option.
|
|
107
106
|
* @throws {RequiredError}
|
|
108
107
|
*/
|
|
109
|
-
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
108
|
+
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
110
109
|
// verify required parameter 'city' is not null or undefined
|
|
111
110
|
assertParamExists('validateAddress', 'city', city)
|
|
112
111
|
// verify required parameter 'country' is not null or undefined
|
|
@@ -159,10 +158,6 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
159
158
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
160
159
|
}
|
|
161
160
|
|
|
162
|
-
if (limit !== undefined) {
|
|
163
|
-
localVarQueryParameter['limit'] = limit;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
161
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
167
162
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
168
163
|
}
|
|
@@ -212,12 +207,11 @@ export const AddressCompletionsValidationsApiFp = function(configuration?: Confi
|
|
|
212
207
|
* @param {string} houseNumber The house number of the address
|
|
213
208
|
* @param {string} [authorization] Bearer Token
|
|
214
209
|
* @param {string} [completeAddress] The complete address to validate
|
|
215
|
-
* @param {any} [limit]
|
|
216
210
|
* @param {*} [options] Override http request option.
|
|
217
211
|
* @throws {RequiredError}
|
|
218
212
|
*/
|
|
219
|
-
async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
220
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
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);
|
|
221
215
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
222
216
|
},
|
|
223
217
|
}
|
|
@@ -253,12 +247,11 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
|
|
|
253
247
|
* @param {string} houseNumber The house number of the address
|
|
254
248
|
* @param {string} [authorization] Bearer Token
|
|
255
249
|
* @param {string} [completeAddress] The complete address to validate
|
|
256
|
-
* @param {any} [limit]
|
|
257
250
|
* @param {*} [options] Override http request option.
|
|
258
251
|
* @throws {RequiredError}
|
|
259
252
|
*/
|
|
260
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
261
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
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));
|
|
262
255
|
},
|
|
263
256
|
};
|
|
264
257
|
};
|
|
@@ -352,13 +345,6 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
|
352
345
|
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
353
346
|
*/
|
|
354
347
|
readonly completeAddress?: string
|
|
355
|
-
|
|
356
|
-
/**
|
|
357
|
-
*
|
|
358
|
-
* @type {any}
|
|
359
|
-
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
360
|
-
*/
|
|
361
|
-
readonly limit?: any
|
|
362
348
|
}
|
|
363
349
|
|
|
364
350
|
/**
|
|
@@ -389,6 +375,6 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
|
|
|
389
375
|
* @memberof AddressCompletionsValidationsApi
|
|
390
376
|
*/
|
|
391
377
|
public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
|
|
392
|
-
return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress,
|
|
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));
|
|
393
379
|
}
|
|
394
380
|
}
|
|
@@ -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
|
+
* DefaultApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
38
|
*
|
|
@@ -69,11 +69,11 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* DefaultApi - functional programming interface
|
|
73
73
|
* @export
|
|
74
74
|
*/
|
|
75
|
-
export const
|
|
76
|
-
const localVarAxiosParamCreator =
|
|
75
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
77
77
|
return {
|
|
78
78
|
/**
|
|
79
79
|
*
|
|
@@ -88,11 +88,11 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
88
88
|
};
|
|
89
89
|
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* DefaultApi - factory interface
|
|
92
92
|
* @export
|
|
93
93
|
*/
|
|
94
|
-
export const
|
|
95
|
-
const localVarFp =
|
|
94
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
96
96
|
return {
|
|
97
97
|
/**
|
|
98
98
|
*
|
|
@@ -106,19 +106,19 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
106
106
|
};
|
|
107
107
|
|
|
108
108
|
/**
|
|
109
|
-
*
|
|
109
|
+
* DefaultApi - object-oriented interface
|
|
110
110
|
* @export
|
|
111
|
-
* @class
|
|
111
|
+
* @class DefaultApi
|
|
112
112
|
* @extends {BaseAPI}
|
|
113
113
|
*/
|
|
114
|
-
export class
|
|
114
|
+
export class DefaultApi extends BaseAPI {
|
|
115
115
|
/**
|
|
116
116
|
*
|
|
117
117
|
* @param {*} [options] Override http request option.
|
|
118
118
|
* @throws {RequiredError}
|
|
119
|
-
* @memberof
|
|
119
|
+
* @memberof DefaultApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|
package/api/documents-api.ts
CHANGED
|
@@ -27,8 +27,6 @@ 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
|
|
32
30
|
import { GetProductDocumentDownloadUrlResponseClass } from '../models';
|
|
33
31
|
// @ts-ignore
|
|
34
32
|
import { ListDocumentsResponseClass } from '../models';
|
|
@@ -191,11 +189,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
191
189
|
* @param {string} productCode
|
|
192
190
|
* @param {string} code
|
|
193
191
|
* @param {string} [authorization] Bearer Token
|
|
194
|
-
* @param {
|
|
192
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
195
193
|
* @param {*} [options] Override http request option.
|
|
196
194
|
* @throws {RequiredError}
|
|
197
195
|
*/
|
|
198
|
-
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
196
|
+
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
197
|
// verify required parameter 'productCode' is not null or undefined
|
|
200
198
|
assertParamExists('downloadProductDocumentUrl', 'productCode', productCode)
|
|
201
199
|
// verify required parameter 'code' is not null or undefined
|
|
@@ -487,11 +485,11 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
487
485
|
* @param {string} productCode
|
|
488
486
|
* @param {string} code
|
|
489
487
|
* @param {string} [authorization] Bearer Token
|
|
490
|
-
* @param {
|
|
488
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
491
489
|
* @param {*} [options] Override http request option.
|
|
492
490
|
* @throws {RequiredError}
|
|
493
491
|
*/
|
|
494
|
-
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
492
|
+
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
495
493
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options);
|
|
496
494
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
497
495
|
},
|
|
@@ -592,11 +590,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
592
590
|
* @param {string} productCode
|
|
593
591
|
* @param {string} code
|
|
594
592
|
* @param {string} [authorization] Bearer Token
|
|
595
|
-
* @param {
|
|
593
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
596
594
|
* @param {*} [options] Override http request option.
|
|
597
595
|
* @throws {RequiredError}
|
|
598
596
|
*/
|
|
599
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
597
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
600
598
|
return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
601
599
|
},
|
|
602
600
|
/**
|
|
@@ -745,10 +743,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
|
745
743
|
|
|
746
744
|
/**
|
|
747
745
|
* Content disposition override. Default will be depending on the document type.
|
|
748
|
-
* @type {
|
|
746
|
+
* @type {'attachment' | 'inline'}
|
|
749
747
|
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
750
748
|
*/
|
|
751
|
-
readonly contentDisposition?:
|
|
749
|
+
readonly contentDisposition?: 'attachment' | 'inline'
|
|
752
750
|
}
|
|
753
751
|
|
|
754
752
|
/**
|
package/api/leads-api.ts
CHANGED
|
@@ -233,55 +233,14 @@ 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
|
|
277
236
|
* @param {string} productSlug
|
|
278
237
|
* @param {string} [authorization] Bearer Token
|
|
279
238
|
* @param {*} [options] Override http request option.
|
|
280
239
|
* @throws {RequiredError}
|
|
281
240
|
*/
|
|
282
|
-
|
|
241
|
+
initiateLead: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
283
242
|
// verify required parameter 'productSlug' is not null or undefined
|
|
284
|
-
assertParamExists('
|
|
243
|
+
assertParamExists('initiateLead', 'productSlug', productSlug)
|
|
285
244
|
const localVarPath = `/publicapi/v1/leads/initiate/{productSlug}`
|
|
286
245
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
287
246
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -479,24 +438,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
479
438
|
/**
|
|
480
439
|
* This will initiate a lead code.
|
|
481
440
|
* @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
|
|
493
441
|
* @param {string} productSlug
|
|
494
442
|
* @param {string} [authorization] Bearer Token
|
|
495
443
|
* @param {*} [options] Override http request option.
|
|
496
444
|
* @throws {RequiredError}
|
|
497
445
|
*/
|
|
498
|
-
async
|
|
499
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
446
|
+
async initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(productSlug, authorization, options);
|
|
500
448
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
501
449
|
},
|
|
502
450
|
/**
|
|
@@ -582,23 +530,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
582
530
|
/**
|
|
583
531
|
* This will initiate a lead code.
|
|
584
532
|
* @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
|
|
595
533
|
* @param {string} productSlug
|
|
596
534
|
* @param {string} [authorization] Bearer Token
|
|
597
535
|
* @param {*} [options] Override http request option.
|
|
598
536
|
* @throws {RequiredError}
|
|
599
537
|
*/
|
|
600
|
-
|
|
601
|
-
return localVarFp.
|
|
538
|
+
initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
539
|
+
return localVarFp.initiateLead(productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
602
540
|
},
|
|
603
541
|
/**
|
|
604
542
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -717,31 +655,17 @@ export interface LeadsApiGetLeadRequest {
|
|
|
717
655
|
* @interface LeadsApiInitiateLeadRequest
|
|
718
656
|
*/
|
|
719
657
|
export interface LeadsApiInitiateLeadRequest {
|
|
720
|
-
/**
|
|
721
|
-
* Bearer Token
|
|
722
|
-
* @type {string}
|
|
723
|
-
* @memberof LeadsApiInitiateLead
|
|
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
658
|
/**
|
|
735
659
|
*
|
|
736
660
|
* @type {string}
|
|
737
|
-
* @memberof
|
|
661
|
+
* @memberof LeadsApiInitiateLead
|
|
738
662
|
*/
|
|
739
663
|
readonly productSlug: string
|
|
740
664
|
|
|
741
665
|
/**
|
|
742
666
|
* Bearer Token
|
|
743
667
|
* @type {string}
|
|
744
|
-
* @memberof
|
|
668
|
+
* @memberof LeadsApiInitiateLead
|
|
745
669
|
*/
|
|
746
670
|
readonly authorization?: string
|
|
747
671
|
}
|
|
@@ -865,20 +789,8 @@ export class LeadsApi extends BaseAPI {
|
|
|
865
789
|
* @throws {RequiredError}
|
|
866
790
|
* @memberof LeadsApi
|
|
867
791
|
*/
|
|
868
|
-
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest
|
|
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));
|
|
792
|
+
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig) {
|
|
793
|
+
return LeadsApiFp(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
882
794
|
}
|
|
883
795
|
|
|
884
796
|
/**
|
|
@@ -95,61 +95,15 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
95
95
|
/**
|
|
96
96
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
97
97
|
* @summary Get public key and psp
|
|
98
|
-
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
99
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
getPublicPSPConfig: async (idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
104
|
-
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config`;
|
|
105
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
106
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
107
|
-
let baseOptions;
|
|
108
|
-
let baseAccessToken;
|
|
109
|
-
if (configuration) {
|
|
110
|
-
baseOptions = configuration.baseOptions;
|
|
111
|
-
baseAccessToken = configuration.accessToken;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
115
|
-
const localVarHeaderParameter = {} as any;
|
|
116
|
-
const localVarQueryParameter = {} as any;
|
|
117
|
-
|
|
118
|
-
// authentication bearer required
|
|
119
|
-
// http bearer authentication required
|
|
120
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
|
-
|
|
122
|
-
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
127
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
133
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
134
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
135
|
-
|
|
136
|
-
return {
|
|
137
|
-
url: toPathString(localVarUrlObj),
|
|
138
|
-
options: localVarRequestOptions,
|
|
139
|
-
};
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
143
|
-
* @summary Retrieve the psp-settings
|
|
144
98
|
* @param {string} productSlug
|
|
145
99
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
146
100
|
* @param {string} [authorization] Bearer Token
|
|
147
101
|
* @param {*} [options] Override http request option.
|
|
148
102
|
* @throws {RequiredError}
|
|
149
103
|
*/
|
|
150
|
-
|
|
104
|
+
getPublicPSPConfig: async (productSlug: string, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
151
105
|
// verify required parameter 'productSlug' is not null or undefined
|
|
152
|
-
assertParamExists('
|
|
106
|
+
assertParamExists('getPublicPSPConfig', 'productSlug', productSlug)
|
|
153
107
|
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config/{productSlug}`
|
|
154
108
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
155
109
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -266,26 +220,14 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
266
220
|
/**
|
|
267
221
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
268
222
|
* @summary Get public key and psp
|
|
269
|
-
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
270
|
-
* @param {string} [authorization] Bearer Token
|
|
271
|
-
* @param {*} [options] Override http request option.
|
|
272
|
-
* @throws {RequiredError}
|
|
273
|
-
*/
|
|
274
|
-
async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
275
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
|
|
276
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
277
|
-
},
|
|
278
|
-
/**
|
|
279
|
-
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
280
|
-
* @summary Retrieve the psp-settings
|
|
281
223
|
* @param {string} productSlug
|
|
282
224
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
283
225
|
* @param {string} [authorization] Bearer Token
|
|
284
226
|
* @param {*} [options] Override http request option.
|
|
285
227
|
* @throws {RequiredError}
|
|
286
228
|
*/
|
|
287
|
-
async
|
|
288
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
229
|
+
async getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
230
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options);
|
|
289
231
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
232
|
},
|
|
291
233
|
/**
|
|
@@ -326,25 +268,14 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
326
268
|
/**
|
|
327
269
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
328
270
|
* @summary Get public key and psp
|
|
329
|
-
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
330
|
-
* @param {string} [authorization] Bearer Token
|
|
331
|
-
* @param {*} [options] Override http request option.
|
|
332
|
-
* @throws {RequiredError}
|
|
333
|
-
*/
|
|
334
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
335
|
-
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
336
|
-
},
|
|
337
|
-
/**
|
|
338
|
-
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
339
|
-
* @summary Retrieve the psp-settings
|
|
340
271
|
* @param {string} productSlug
|
|
341
272
|
* @param {string} [idempotencyKey] An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
342
273
|
* @param {string} [authorization] Bearer Token
|
|
343
274
|
* @param {*} [options] Override http request option.
|
|
344
275
|
* @throws {RequiredError}
|
|
345
276
|
*/
|
|
346
|
-
|
|
347
|
-
return localVarFp.
|
|
277
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
278
|
+
return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
348
279
|
},
|
|
349
280
|
/**
|
|
350
281
|
* This will Initiate an account inside the payment service providers and they will generate a secret token which is allow user add its payment information.
|
|
@@ -395,45 +326,24 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
395
326
|
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
396
327
|
*/
|
|
397
328
|
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
398
|
-
/**
|
|
399
|
-
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
400
|
-
* @type {string}
|
|
401
|
-
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
402
|
-
*/
|
|
403
|
-
readonly idempotencyKey?: string
|
|
404
|
-
|
|
405
|
-
/**
|
|
406
|
-
* Bearer Token
|
|
407
|
-
* @type {string}
|
|
408
|
-
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
409
|
-
*/
|
|
410
|
-
readonly authorization?: string
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
/**
|
|
414
|
-
* Request parameters for getPublicPSPConfigForProduct operation in PaymentsSetupApi.
|
|
415
|
-
* @export
|
|
416
|
-
* @interface PaymentsSetupApiGetPublicPSPConfigForProductRequest
|
|
417
|
-
*/
|
|
418
|
-
export interface PaymentsSetupApiGetPublicPSPConfigForProductRequest {
|
|
419
329
|
/**
|
|
420
330
|
*
|
|
421
331
|
* @type {string}
|
|
422
|
-
* @memberof
|
|
332
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
423
333
|
*/
|
|
424
334
|
readonly productSlug: string
|
|
425
335
|
|
|
426
336
|
/**
|
|
427
337
|
* An idempotency key is a unique value generated by the client which the server uses to recognize subsequent retries of the same request. How you create unique keys is up to you, but we suggest using V4 UUIDs, or another random string with enough entropy to avoid collisions. Idempotency keys can be up to 255 characters long.
|
|
428
338
|
* @type {string}
|
|
429
|
-
* @memberof
|
|
339
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
430
340
|
*/
|
|
431
341
|
readonly idempotencyKey?: string
|
|
432
342
|
|
|
433
343
|
/**
|
|
434
344
|
* Bearer Token
|
|
435
345
|
* @type {string}
|
|
436
|
-
* @memberof
|
|
346
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
437
347
|
*/
|
|
438
348
|
readonly authorization?: string
|
|
439
349
|
}
|
|
@@ -493,20 +403,8 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
493
403
|
* @throws {RequiredError}
|
|
494
404
|
* @memberof PaymentsSetupApi
|
|
495
405
|
*/
|
|
496
|
-
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest
|
|
497
|
-
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
|
|
502
|
-
* @summary Retrieve the psp-settings
|
|
503
|
-
* @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
|
|
504
|
-
* @param {*} [options] Override http request option.
|
|
505
|
-
* @throws {RequiredError}
|
|
506
|
-
* @memberof PaymentsSetupApi
|
|
507
|
-
*/
|
|
508
|
-
public getPublicPSPConfigForProduct(requestParameters: PaymentsSetupApiGetPublicPSPConfigForProductRequest, options?: AxiosRequestConfig) {
|
|
509
|
-
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfigForProduct(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
406
|
+
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig) {
|
|
407
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
510
408
|
}
|
|
511
409
|
|
|
512
410
|
/**
|
package/api.ts
CHANGED
|
@@ -26,12 +26,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { AddressCompletionsValidationsApi } from './api';
|
|
28
28
|
import { BookingFunnelsApi } from './api';
|
|
29
|
+
import { DefaultApi } from './api';
|
|
29
30
|
import { DocumentsApi } from './api';
|
|
30
|
-
import { HealthApi } from './api';
|
|
31
31
|
import { LeadsApi } from './api';
|
|
32
32
|
import { NamedRangesApi } from './api';
|
|
33
33
|
import { NotificationsApi } from './api';
|
|
34
|
-
import { PartnersApi } from './api';
|
|
35
34
|
import { PaymentsSetupApi } from './api';
|
|
36
35
|
import { ProductVersionsApi } from './api';
|
|
37
36
|
import { ProductsApi } from './api';
|
|
@@ -39,12 +38,11 @@ import { ProductsApi } from './api';
|
|
|
39
38
|
|
|
40
39
|
export * from './api/address-completions-validations-api';
|
|
41
40
|
export * from './api/booking-funnels-api';
|
|
41
|
+
export * from './api/default-api';
|
|
42
42
|
export * from './api/documents-api';
|
|
43
|
-
export * from './api/health-api';
|
|
44
43
|
export * from './api/leads-api';
|
|
45
44
|
export * from './api/named-ranges-api';
|
|
46
45
|
export * from './api/notifications-api';
|
|
47
|
-
export * from './api/partners-api';
|
|
48
46
|
export * from './api/payments-setup-api';
|
|
49
47
|
export * from './api/product-versions-api';
|
|
50
48
|
export * from './api/products-api';
|