@emilgroup/public-api-sdk 1.38.1-beta.9 → 1.39.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 -165
- package/dist/api/partners-api.d.ts +0 -97
- package/dist/api/partners-api.js +0 -224
- 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@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.39.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.39.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -98,11 +98,10 @@ 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]
|
|
102
101
|
* @param {*} [options] Override http request option.
|
|
103
102
|
* @throws {RequiredError}
|
|
104
103
|
*/
|
|
105
|
-
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
104
|
+
validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
106
105
|
// verify required parameter 'city' is not null or undefined
|
|
107
106
|
assertParamExists('validateAddress', 'city', city)
|
|
108
107
|
// verify required parameter 'country' is not null or undefined
|
|
@@ -155,10 +154,6 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
|
|
|
155
154
|
localVarQueryParameter['houseNumber'] = houseNumber;
|
|
156
155
|
}
|
|
157
156
|
|
|
158
|
-
if (limit !== undefined) {
|
|
159
|
-
localVarQueryParameter['limit'] = limit;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
157
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
163
158
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
164
159
|
}
|
|
@@ -208,12 +203,11 @@ export const AddressCompletionsValidationsApiFp = function(configuration?: Confi
|
|
|
208
203
|
* @param {string} houseNumber The house number of the address
|
|
209
204
|
* @param {string} [authorization] Bearer Token
|
|
210
205
|
* @param {string} [completeAddress] The complete address to validate
|
|
211
|
-
* @param {any} [limit]
|
|
212
206
|
* @param {*} [options] Override http request option.
|
|
213
207
|
* @throws {RequiredError}
|
|
214
208
|
*/
|
|
215
|
-
async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
216
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
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);
|
|
217
211
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
218
212
|
},
|
|
219
213
|
}
|
|
@@ -249,12 +243,11 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
|
|
|
249
243
|
* @param {string} houseNumber The house number of the address
|
|
250
244
|
* @param {string} [authorization] Bearer Token
|
|
251
245
|
* @param {string} [completeAddress] The complete address to validate
|
|
252
|
-
* @param {any} [limit]
|
|
253
246
|
* @param {*} [options] Override http request option.
|
|
254
247
|
* @throws {RequiredError}
|
|
255
248
|
*/
|
|
256
|
-
validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string,
|
|
257
|
-
return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress,
|
|
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));
|
|
258
251
|
},
|
|
259
252
|
};
|
|
260
253
|
};
|
|
@@ -348,13 +341,6 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
|
|
|
348
341
|
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
349
342
|
*/
|
|
350
343
|
readonly completeAddress?: string
|
|
351
|
-
|
|
352
|
-
/**
|
|
353
|
-
*
|
|
354
|
-
* @type {any}
|
|
355
|
-
* @memberof AddressCompletionsValidationsApiValidateAddress
|
|
356
|
-
*/
|
|
357
|
-
readonly limit?: any
|
|
358
344
|
}
|
|
359
345
|
|
|
360
346
|
/**
|
|
@@ -385,6 +371,6 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
|
|
|
385
371
|
* @memberof AddressCompletionsValidationsApi
|
|
386
372
|
*/
|
|
387
373
|
public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
|
|
388
|
-
return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress,
|
|
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));
|
|
389
375
|
}
|
|
390
376
|
}
|
|
@@ -25,10 +25,10 @@ import { InlineResponse200 } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { InlineResponse503 } from '../models';
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* DefaultApi - axios parameter creator
|
|
29
29
|
* @export
|
|
30
30
|
*/
|
|
31
|
-
export const
|
|
31
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
32
|
return {
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
@@ -65,11 +65,11 @@ export const HealthApiAxiosParamCreator = function (configuration?: Configuratio
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* DefaultApi - functional programming interface
|
|
69
69
|
* @export
|
|
70
70
|
*/
|
|
71
|
-
export const
|
|
72
|
-
const localVarAxiosParamCreator =
|
|
71
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
72
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
73
73
|
return {
|
|
74
74
|
/**
|
|
75
75
|
*
|
|
@@ -84,11 +84,11 @@ export const HealthApiFp = function(configuration?: Configuration) {
|
|
|
84
84
|
};
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* DefaultApi - factory interface
|
|
88
88
|
* @export
|
|
89
89
|
*/
|
|
90
|
-
export const
|
|
91
|
-
const localVarFp =
|
|
90
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
91
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
92
92
|
return {
|
|
93
93
|
/**
|
|
94
94
|
*
|
|
@@ -102,19 +102,19 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
|
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
*
|
|
105
|
+
* DefaultApi - object-oriented interface
|
|
106
106
|
* @export
|
|
107
|
-
* @class
|
|
107
|
+
* @class DefaultApi
|
|
108
108
|
* @extends {BaseAPI}
|
|
109
109
|
*/
|
|
110
|
-
export class
|
|
110
|
+
export class DefaultApi extends BaseAPI {
|
|
111
111
|
/**
|
|
112
112
|
*
|
|
113
113
|
* @param {*} [options] Override http request option.
|
|
114
114
|
* @throws {RequiredError}
|
|
115
|
-
* @memberof
|
|
115
|
+
* @memberof DefaultApi
|
|
116
116
|
*/
|
|
117
117
|
public check(options?: AxiosRequestConfig) {
|
|
118
|
-
return
|
|
118
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
119
119
|
}
|
|
120
120
|
}
|
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';
|
|
@@ -187,11 +185,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
187
185
|
* @param {string} productCode
|
|
188
186
|
* @param {string} code
|
|
189
187
|
* @param {string} [authorization] Bearer Token
|
|
190
|
-
* @param {
|
|
188
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
191
189
|
* @param {*} [options] Override http request option.
|
|
192
190
|
* @throws {RequiredError}
|
|
193
191
|
*/
|
|
194
|
-
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
192
|
+
downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
195
193
|
// verify required parameter 'productCode' is not null or undefined
|
|
196
194
|
assertParamExists('downloadProductDocumentUrl', 'productCode', productCode)
|
|
197
195
|
// verify required parameter 'code' is not null or undefined
|
|
@@ -483,11 +481,11 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
|
|
|
483
481
|
* @param {string} productCode
|
|
484
482
|
* @param {string} code
|
|
485
483
|
* @param {string} [authorization] Bearer Token
|
|
486
|
-
* @param {
|
|
484
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
487
485
|
* @param {*} [options] Override http request option.
|
|
488
486
|
* @throws {RequiredError}
|
|
489
487
|
*/
|
|
490
|
-
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
488
|
+
async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
|
|
491
489
|
const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options);
|
|
492
490
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
493
491
|
},
|
|
@@ -588,11 +586,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
|
|
|
588
586
|
* @param {string} productCode
|
|
589
587
|
* @param {string} code
|
|
590
588
|
* @param {string} [authorization] Bearer Token
|
|
591
|
-
* @param {
|
|
589
|
+
* @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
|
|
592
590
|
* @param {*} [options] Override http request option.
|
|
593
591
|
* @throws {RequiredError}
|
|
594
592
|
*/
|
|
595
|
-
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?:
|
|
593
|
+
downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
|
|
596
594
|
return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
|
|
597
595
|
},
|
|
598
596
|
/**
|
|
@@ -741,10 +739,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
|
|
|
741
739
|
|
|
742
740
|
/**
|
|
743
741
|
* Content disposition override. Default will be depending on the document type.
|
|
744
|
-
* @type {
|
|
742
|
+
* @type {'attachment' | 'inline'}
|
|
745
743
|
* @memberof DocumentsApiDownloadProductDocumentUrl
|
|
746
744
|
*/
|
|
747
|
-
readonly contentDisposition?:
|
|
745
|
+
readonly contentDisposition?: 'attachment' | 'inline'
|
|
748
746
|
}
|
|
749
747
|
|
|
750
748
|
/**
|
package/api/leads-api.ts
CHANGED
|
@@ -229,55 +229,14 @@ 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
|
|
273
232
|
* @param {string} productSlug
|
|
274
233
|
* @param {string} [authorization] Bearer Token
|
|
275
234
|
* @param {*} [options] Override http request option.
|
|
276
235
|
* @throws {RequiredError}
|
|
277
236
|
*/
|
|
278
|
-
|
|
237
|
+
initiateLead: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
279
238
|
// verify required parameter 'productSlug' is not null or undefined
|
|
280
|
-
assertParamExists('
|
|
239
|
+
assertParamExists('initiateLead', 'productSlug', productSlug)
|
|
281
240
|
const localVarPath = `/publicapi/v1/leads/initiate/{productSlug}`
|
|
282
241
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
283
242
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -475,24 +434,13 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
475
434
|
/**
|
|
476
435
|
* This will initiate a lead code.
|
|
477
436
|
* @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
|
|
489
437
|
* @param {string} productSlug
|
|
490
438
|
* @param {string} [authorization] Bearer Token
|
|
491
439
|
* @param {*} [options] Override http request option.
|
|
492
440
|
* @throws {RequiredError}
|
|
493
441
|
*/
|
|
494
|
-
async
|
|
495
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
442
|
+
async initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
|
|
443
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(productSlug, authorization, options);
|
|
496
444
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
497
445
|
},
|
|
498
446
|
/**
|
|
@@ -578,23 +526,13 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
578
526
|
/**
|
|
579
527
|
* This will initiate a lead code.
|
|
580
528
|
* @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
|
|
591
529
|
* @param {string} productSlug
|
|
592
530
|
* @param {string} [authorization] Bearer Token
|
|
593
531
|
* @param {*} [options] Override http request option.
|
|
594
532
|
* @throws {RequiredError}
|
|
595
533
|
*/
|
|
596
|
-
|
|
597
|
-
return localVarFp.
|
|
534
|
+
initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
|
|
535
|
+
return localVarFp.initiateLead(productSlug, authorization, options).then((request) => request(axios, basePath));
|
|
598
536
|
},
|
|
599
537
|
/**
|
|
600
538
|
* Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -713,31 +651,17 @@ export interface LeadsApiGetLeadRequest {
|
|
|
713
651
|
* @interface LeadsApiInitiateLeadRequest
|
|
714
652
|
*/
|
|
715
653
|
export interface LeadsApiInitiateLeadRequest {
|
|
716
|
-
/**
|
|
717
|
-
* Bearer Token
|
|
718
|
-
* @type {string}
|
|
719
|
-
* @memberof LeadsApiInitiateLead
|
|
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
654
|
/**
|
|
731
655
|
*
|
|
732
656
|
* @type {string}
|
|
733
|
-
* @memberof
|
|
657
|
+
* @memberof LeadsApiInitiateLead
|
|
734
658
|
*/
|
|
735
659
|
readonly productSlug: string
|
|
736
660
|
|
|
737
661
|
/**
|
|
738
662
|
* Bearer Token
|
|
739
663
|
* @type {string}
|
|
740
|
-
* @memberof
|
|
664
|
+
* @memberof LeadsApiInitiateLead
|
|
741
665
|
*/
|
|
742
666
|
readonly authorization?: string
|
|
743
667
|
}
|
|
@@ -861,20 +785,8 @@ export class LeadsApi extends BaseAPI {
|
|
|
861
785
|
* @throws {RequiredError}
|
|
862
786
|
* @memberof LeadsApi
|
|
863
787
|
*/
|
|
864
|
-
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest
|
|
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));
|
|
788
|
+
public initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig) {
|
|
789
|
+
return LeadsApiFp(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
878
790
|
}
|
|
879
791
|
|
|
880
792
|
/**
|
|
@@ -91,61 +91,15 @@ export const PaymentsSetupApiAxiosParamCreator = function (configuration?: Confi
|
|
|
91
91
|
/**
|
|
92
92
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
93
93
|
* @summary Get public key and psp
|
|
94
|
-
* @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.
|
|
95
|
-
* @param {string} [authorization] Bearer Token
|
|
96
|
-
* @param {*} [options] Override http request option.
|
|
97
|
-
* @throws {RequiredError}
|
|
98
|
-
*/
|
|
99
|
-
getPublicPSPConfig: async (idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
100
|
-
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config`;
|
|
101
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
-
let baseOptions;
|
|
104
|
-
let baseAccessToken;
|
|
105
|
-
if (configuration) {
|
|
106
|
-
baseOptions = configuration.baseOptions;
|
|
107
|
-
baseAccessToken = configuration.accessToken;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
111
|
-
const localVarHeaderParameter = {} as any;
|
|
112
|
-
const localVarQueryParameter = {} as any;
|
|
113
|
-
|
|
114
|
-
// authentication bearer required
|
|
115
|
-
// http bearer authentication required
|
|
116
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
-
|
|
118
|
-
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
123
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
129
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
130
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
131
|
-
|
|
132
|
-
return {
|
|
133
|
-
url: toPathString(localVarUrlObj),
|
|
134
|
-
options: localVarRequestOptions,
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
/**
|
|
138
|
-
* 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.
|
|
139
|
-
* @summary Retrieve the psp-settings
|
|
140
94
|
* @param {string} productSlug
|
|
141
95
|
* @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.
|
|
142
96
|
* @param {string} [authorization] Bearer Token
|
|
143
97
|
* @param {*} [options] Override http request option.
|
|
144
98
|
* @throws {RequiredError}
|
|
145
99
|
*/
|
|
146
|
-
|
|
100
|
+
getPublicPSPConfig: async (productSlug: string, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
147
101
|
// verify required parameter 'productSlug' is not null or undefined
|
|
148
|
-
assertParamExists('
|
|
102
|
+
assertParamExists('getPublicPSPConfig', 'productSlug', productSlug)
|
|
149
103
|
const localVarPath = `/publicapi/v1/payment-setup/get-psp-config/{productSlug}`
|
|
150
104
|
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
151
105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -262,26 +216,14 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
|
|
|
262
216
|
/**
|
|
263
217
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
264
218
|
* @summary Get public key and psp
|
|
265
|
-
* @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.
|
|
266
|
-
* @param {string} [authorization] Bearer Token
|
|
267
|
-
* @param {*} [options] Override http request option.
|
|
268
|
-
* @throws {RequiredError}
|
|
269
|
-
*/
|
|
270
|
-
async getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
271
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options);
|
|
272
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
273
|
-
},
|
|
274
|
-
/**
|
|
275
|
-
* 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.
|
|
276
|
-
* @summary Retrieve the psp-settings
|
|
277
219
|
* @param {string} productSlug
|
|
278
220
|
* @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.
|
|
279
221
|
* @param {string} [authorization] Bearer Token
|
|
280
222
|
* @param {*} [options] Override http request option.
|
|
281
223
|
* @throws {RequiredError}
|
|
282
224
|
*/
|
|
283
|
-
async
|
|
284
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
225
|
+
async getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
|
|
226
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options);
|
|
285
227
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
286
228
|
},
|
|
287
229
|
/**
|
|
@@ -322,25 +264,14 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
|
|
|
322
264
|
/**
|
|
323
265
|
* This will send the customer the public key to load the payment form and complete the payment setup.
|
|
324
266
|
* @summary Get public key and psp
|
|
325
|
-
* @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.
|
|
326
|
-
* @param {string} [authorization] Bearer Token
|
|
327
|
-
* @param {*} [options] Override http request option.
|
|
328
|
-
* @throws {RequiredError}
|
|
329
|
-
*/
|
|
330
|
-
getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
331
|
-
return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
332
|
-
},
|
|
333
|
-
/**
|
|
334
|
-
* 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.
|
|
335
|
-
* @summary Retrieve the psp-settings
|
|
336
267
|
* @param {string} productSlug
|
|
337
268
|
* @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.
|
|
338
269
|
* @param {string} [authorization] Bearer Token
|
|
339
270
|
* @param {*} [options] Override http request option.
|
|
340
271
|
* @throws {RequiredError}
|
|
341
272
|
*/
|
|
342
|
-
|
|
343
|
-
return localVarFp.
|
|
273
|
+
getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
|
|
274
|
+
return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
|
|
344
275
|
},
|
|
345
276
|
/**
|
|
346
277
|
* 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.
|
|
@@ -391,45 +322,24 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
|
|
|
391
322
|
* @interface PaymentsSetupApiGetPublicPSPConfigRequest
|
|
392
323
|
*/
|
|
393
324
|
export interface PaymentsSetupApiGetPublicPSPConfigRequest {
|
|
394
|
-
/**
|
|
395
|
-
* 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.
|
|
396
|
-
* @type {string}
|
|
397
|
-
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
398
|
-
*/
|
|
399
|
-
readonly idempotencyKey?: string
|
|
400
|
-
|
|
401
|
-
/**
|
|
402
|
-
* Bearer Token
|
|
403
|
-
* @type {string}
|
|
404
|
-
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
405
|
-
*/
|
|
406
|
-
readonly authorization?: string
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
/**
|
|
410
|
-
* Request parameters for getPublicPSPConfigForProduct operation in PaymentsSetupApi.
|
|
411
|
-
* @export
|
|
412
|
-
* @interface PaymentsSetupApiGetPublicPSPConfigForProductRequest
|
|
413
|
-
*/
|
|
414
|
-
export interface PaymentsSetupApiGetPublicPSPConfigForProductRequest {
|
|
415
325
|
/**
|
|
416
326
|
*
|
|
417
327
|
* @type {string}
|
|
418
|
-
* @memberof
|
|
328
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
419
329
|
*/
|
|
420
330
|
readonly productSlug: string
|
|
421
331
|
|
|
422
332
|
/**
|
|
423
333
|
* 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.
|
|
424
334
|
* @type {string}
|
|
425
|
-
* @memberof
|
|
335
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
426
336
|
*/
|
|
427
337
|
readonly idempotencyKey?: string
|
|
428
338
|
|
|
429
339
|
/**
|
|
430
340
|
* Bearer Token
|
|
431
341
|
* @type {string}
|
|
432
|
-
* @memberof
|
|
342
|
+
* @memberof PaymentsSetupApiGetPublicPSPConfig
|
|
433
343
|
*/
|
|
434
344
|
readonly authorization?: string
|
|
435
345
|
}
|
|
@@ -489,20 +399,8 @@ export class PaymentsSetupApi extends BaseAPI {
|
|
|
489
399
|
* @throws {RequiredError}
|
|
490
400
|
* @memberof PaymentsSetupApi
|
|
491
401
|
*/
|
|
492
|
-
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest
|
|
493
|
-
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
494
|
-
}
|
|
495
|
-
|
|
496
|
-
/**
|
|
497
|
-
* 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.
|
|
498
|
-
* @summary Retrieve the psp-settings
|
|
499
|
-
* @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
|
|
500
|
-
* @param {*} [options] Override http request option.
|
|
501
|
-
* @throws {RequiredError}
|
|
502
|
-
* @memberof PaymentsSetupApi
|
|
503
|
-
*/
|
|
504
|
-
public getPublicPSPConfigForProduct(requestParameters: PaymentsSetupApiGetPublicPSPConfigForProductRequest, options?: AxiosRequestConfig) {
|
|
505
|
-
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfigForProduct(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
402
|
+
public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig) {
|
|
403
|
+
return PaymentsSetupApiFp(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
506
404
|
}
|
|
507
405
|
|
|
508
406
|
/**
|
package/api.ts
CHANGED
|
@@ -22,12 +22,11 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
23
|
import { AddressCompletionsValidationsApi } from './api';
|
|
24
24
|
import { BookingFunnelsApi } from './api';
|
|
25
|
+
import { DefaultApi } from './api';
|
|
25
26
|
import { DocumentsApi } from './api';
|
|
26
|
-
import { HealthApi } from './api';
|
|
27
27
|
import { LeadsApi } from './api';
|
|
28
28
|
import { NamedRangesApi } from './api';
|
|
29
29
|
import { NotificationsApi } from './api';
|
|
30
|
-
import { PartnersApi } from './api';
|
|
31
30
|
import { PaymentsSetupApi } from './api';
|
|
32
31
|
import { ProductVersionsApi } from './api';
|
|
33
32
|
import { ProductsApi } from './api';
|
|
@@ -35,12 +34,11 @@ import { ProductsApi } from './api';
|
|
|
35
34
|
|
|
36
35
|
export * from './api/address-completions-validations-api';
|
|
37
36
|
export * from './api/booking-funnels-api';
|
|
37
|
+
export * from './api/default-api';
|
|
38
38
|
export * from './api/documents-api';
|
|
39
|
-
export * from './api/health-api';
|
|
40
39
|
export * from './api/leads-api';
|
|
41
40
|
export * from './api/named-ranges-api';
|
|
42
41
|
export * from './api/notifications-api';
|
|
43
|
-
export * from './api/partners-api';
|
|
44
42
|
export * from './api/payments-setup-api';
|
|
45
43
|
export * from './api/product-versions-api';
|
|
46
44
|
export * from './api/products-api';
|