@emilgroup/public-api-sdk-node 1.40.1-beta.4 → 1.40.1-beta.6

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.
@@ -5,8 +5,8 @@ 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
@@ -68,6 +68,7 @@ models/get-booking-funnel-response-class.ts
68
68
  models/get-custom-css-response-class.ts
69
69
  models/get-lead-response-class.ts
70
70
  models/get-product-config-tariffs-response-class.ts
71
+ models/get-product-document-download-url-request-rest-dto.ts
71
72
  models/get-product-document-download-url-response-class.ts
72
73
  models/get-public-psp-settings-response-class.ts
73
74
  models/index.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/public-api-sdk-node@1.40.1-beta.4 --save
20
+ npm install @emilgroup/public-api-sdk-node@1.40.1-beta.6 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk-node@1.40.1-beta.4
24
+ yarn add @emilgroup/public-api-sdk-node@1.40.1-beta.6
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -102,10 +102,11 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
102
102
  * @param {string} houseNumber The house number of the address
103
103
  * @param {string} [authorization] Bearer Token
104
104
  * @param {string} [completeAddress] The complete address to validate
105
+ * @param {any} [limit]
105
106
  * @param {*} [options] Override http request option.
106
107
  * @throws {RequiredError}
107
108
  */
108
- validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
+ validateAddress: async (city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
109
110
  // verify required parameter 'city' is not null or undefined
110
111
  assertParamExists('validateAddress', 'city', city)
111
112
  // verify required parameter 'country' is not null or undefined
@@ -158,6 +159,10 @@ export const AddressCompletionsValidationsApiAxiosParamCreator = function (confi
158
159
  localVarQueryParameter['houseNumber'] = houseNumber;
159
160
  }
160
161
 
162
+ if (limit !== undefined) {
163
+ localVarQueryParameter['limit'] = limit;
164
+ }
165
+
161
166
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
162
167
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
163
168
  }
@@ -207,11 +212,12 @@ export const AddressCompletionsValidationsApiFp = function(configuration?: Confi
207
212
  * @param {string} houseNumber The house number of the address
208
213
  * @param {string} [authorization] Bearer Token
209
214
  * @param {string} [completeAddress] The complete address to validate
215
+ * @param {any} [limit]
210
216
  * @param {*} [options] Override http request option.
211
217
  * @throws {RequiredError}
212
218
  */
213
- async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>> {
214
- const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options);
219
+ async validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidateAddressResponseClass>> {
220
+ const localVarAxiosArgs = await localVarAxiosParamCreator.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options);
215
221
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
216
222
  },
217
223
  }
@@ -247,11 +253,12 @@ export const AddressCompletionsValidationsApiFactory = function (configuration?:
247
253
  * @param {string} houseNumber The house number of the address
248
254
  * @param {string} [authorization] Bearer Token
249
255
  * @param {string} [completeAddress] The complete address to validate
256
+ * @param {any} [limit]
250
257
  * @param {*} [options] Override http request option.
251
258
  * @throws {RequiredError}
252
259
  */
253
- validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, options?: any): AxiosPromise<ValidateAddressResponseClass> {
254
- return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, options).then((request) => request(axios, basePath));
260
+ validateAddress(city: string, country: string, postalCode: string, street: string, houseNumber: string, authorization?: string, completeAddress?: string, limit?: any, options?: any): AxiosPromise<ValidateAddressResponseClass> {
261
+ return localVarFp.validateAddress(city, country, postalCode, street, houseNumber, authorization, completeAddress, limit, options).then((request) => request(axios, basePath));
255
262
  },
256
263
  };
257
264
  };
@@ -345,6 +352,13 @@ export interface AddressCompletionsValidationsApiValidateAddressRequest {
345
352
  * @memberof AddressCompletionsValidationsApiValidateAddress
346
353
  */
347
354
  readonly completeAddress?: string
355
+
356
+ /**
357
+ *
358
+ * @type {any}
359
+ * @memberof AddressCompletionsValidationsApiValidateAddress
360
+ */
361
+ readonly limit?: any
348
362
  }
349
363
 
350
364
  /**
@@ -375,6 +389,6 @@ export class AddressCompletionsValidationsApi extends BaseAPI {
375
389
  * @memberof AddressCompletionsValidationsApi
376
390
  */
377
391
  public validateAddress(requestParameters: AddressCompletionsValidationsApiValidateAddressRequest, options?: AxiosRequestConfig) {
378
- return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, options).then((request) => request(this.axios, this.basePath));
392
+ return AddressCompletionsValidationsApiFp(this.configuration).validateAddress(requestParameters.city, requestParameters.country, requestParameters.postalCode, requestParameters.street, requestParameters.houseNumber, requestParameters.authorization, requestParameters.completeAddress, requestParameters.limit, options).then((request) => request(this.axios, this.basePath));
379
393
  }
380
394
  }
@@ -27,6 +27,8 @@ import { CreatePresignedPostRequestDto } from '../models';
27
27
  // @ts-ignore
28
28
  import { CreatePresignedPostResponseClass } from '../models';
29
29
  // @ts-ignore
30
+ import { GetProductDocumentDownloadUrlRequestRestDto } from '../models';
31
+ // @ts-ignore
30
32
  import { GetProductDocumentDownloadUrlResponseClass } from '../models';
31
33
  // @ts-ignore
32
34
  import { ListDocumentsResponseClass } from '../models';
@@ -189,11 +191,11 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
189
191
  * @param {string} productCode
190
192
  * @param {string} code
191
193
  * @param {string} [authorization] Bearer Token
192
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
194
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
193
195
  * @param {*} [options] Override http request option.
194
196
  * @throws {RequiredError}
195
197
  */
196
- downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
+ downloadProductDocumentUrl: async (productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
199
  // verify required parameter 'productCode' is not null or undefined
198
200
  assertParamExists('downloadProductDocumentUrl', 'productCode', productCode)
199
201
  // verify required parameter 'code' is not null or undefined
@@ -485,11 +487,11 @@ export const DocumentsApiFp = function(configuration?: Configuration) {
485
487
  * @param {string} productCode
486
488
  * @param {string} code
487
489
  * @param {string} [authorization] Bearer Token
488
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
490
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
489
491
  * @param {*} [options] Override http request option.
490
492
  * @throws {RequiredError}
491
493
  */
492
- async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
494
+ async downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductDocumentDownloadUrlResponseClass>> {
493
495
  const localVarAxiosArgs = await localVarAxiosParamCreator.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options);
494
496
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
495
497
  },
@@ -590,11 +592,11 @@ export const DocumentsApiFactory = function (configuration?: Configuration, base
590
592
  * @param {string} productCode
591
593
  * @param {string} code
592
594
  * @param {string} [authorization] Bearer Token
593
- * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
595
+ * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition override. Default will be depending on the document type.
594
596
  * @param {*} [options] Override http request option.
595
597
  * @throws {RequiredError}
596
598
  */
597
- downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: 'attachment' | 'inline', options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
599
+ downloadProductDocumentUrl(productCode: string, code: string, authorization?: string, contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto, options?: any): AxiosPromise<GetProductDocumentDownloadUrlResponseClass> {
598
600
  return localVarFp.downloadProductDocumentUrl(productCode, code, authorization, contentDisposition, options).then((request) => request(axios, basePath));
599
601
  },
600
602
  /**
@@ -743,10 +745,10 @@ export interface DocumentsApiDownloadProductDocumentUrlRequest {
743
745
 
744
746
  /**
745
747
  * Content disposition override. Default will be depending on the document type.
746
- * @type {'attachment' | 'inline'}
748
+ * @type {GetProductDocumentDownloadUrlRequestRestDto}
747
749
  * @memberof DocumentsApiDownloadProductDocumentUrl
748
750
  */
749
- readonly contentDisposition?: 'attachment' | 'inline'
751
+ readonly contentDisposition?: GetProductDocumentDownloadUrlRequestRestDto
750
752
  }
751
753
 
752
754
  /**
@@ -29,10 +29,10 @@ import { InlineResponse503 } from '../models';
29
29
  import { URL, URLSearchParams } from 'url';
30
30
  const FormData = require('form-data');
31
31
  /**
32
- * DefaultApi - axios parameter creator
32
+ * HealthApi - axios parameter creator
33
33
  * @export
34
34
  */
35
- export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
35
+ export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
38
  *
@@ -69,11 +69,11 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
69
69
  };
70
70
 
71
71
  /**
72
- * DefaultApi - functional programming interface
72
+ * HealthApi - functional programming interface
73
73
  * @export
74
74
  */
75
- export const DefaultApiFp = function(configuration?: Configuration) {
76
- const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
75
+ export const HealthApiFp = function(configuration?: Configuration) {
76
+ const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
77
77
  return {
78
78
  /**
79
79
  *
@@ -88,11 +88,11 @@ export const DefaultApiFp = function(configuration?: Configuration) {
88
88
  };
89
89
 
90
90
  /**
91
- * DefaultApi - factory interface
91
+ * HealthApi - factory interface
92
92
  * @export
93
93
  */
94
- export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
95
- const localVarFp = DefaultApiFp(configuration)
94
+ export const HealthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
95
+ const localVarFp = HealthApiFp(configuration)
96
96
  return {
97
97
  /**
98
98
  *
@@ -106,19 +106,19 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
106
106
  };
107
107
 
108
108
  /**
109
- * DefaultApi - object-oriented interface
109
+ * HealthApi - object-oriented interface
110
110
  * @export
111
- * @class DefaultApi
111
+ * @class HealthApi
112
112
  * @extends {BaseAPI}
113
113
  */
114
- export class DefaultApi extends BaseAPI {
114
+ export class HealthApi extends BaseAPI {
115
115
  /**
116
116
  *
117
117
  * @param {*} [options] Override http request option.
118
118
  * @throws {RequiredError}
119
- * @memberof DefaultApi
119
+ * @memberof HealthApi
120
120
  */
121
121
  public check(options?: AxiosRequestConfig) {
122
- return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
122
+ return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
123
123
  }
124
124
  }
package/api/leads-api.ts CHANGED
@@ -233,14 +233,55 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
233
233
  /**
234
234
  * This will initiate a lead code.
235
235
  * @summary Initiate a lead code
236
+ * @param {string} [authorization] Bearer Token
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ initiateLead: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
241
+ const localVarPath = `/publicapi/v1/leads/initiate`;
242
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
243
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
244
+ let baseOptions;
245
+ let baseAccessToken;
246
+ if (configuration) {
247
+ baseOptions = configuration.baseOptions;
248
+ baseAccessToken = configuration.accessToken;
249
+ }
250
+
251
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
252
+ const localVarHeaderParameter = {} as any;
253
+ const localVarQueryParameter = {} as any;
254
+
255
+ // authentication bearer required
256
+ // http bearer authentication required
257
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
258
+
259
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
260
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
261
+ }
262
+
263
+
264
+
265
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
266
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
267
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
268
+
269
+ return {
270
+ url: toPathString(localVarUrlObj),
271
+ options: localVarRequestOptions,
272
+ };
273
+ },
274
+ /**
275
+ * This will initiate a lead code for the specified product.
276
+ * @summary Initiate a lead code for a product
236
277
  * @param {string} productSlug
237
278
  * @param {string} [authorization] Bearer Token
238
279
  * @param {*} [options] Override http request option.
239
280
  * @throws {RequiredError}
240
281
  */
241
- initiateLead: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
282
+ initiateLeadWithProduct: async (productSlug: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
242
283
  // verify required parameter 'productSlug' is not null or undefined
243
- assertParamExists('initiateLead', 'productSlug', productSlug)
284
+ assertParamExists('initiateLeadWithProduct', 'productSlug', productSlug)
244
285
  const localVarPath = `/publicapi/v1/leads/initiate/{productSlug}`
245
286
  .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
246
287
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -438,13 +479,24 @@ export const LeadsApiFp = function(configuration?: Configuration) {
438
479
  /**
439
480
  * This will initiate a lead code.
440
481
  * @summary Initiate a lead code
482
+ * @param {string} [authorization] Bearer Token
483
+ * @param {*} [options] Override http request option.
484
+ * @throws {RequiredError}
485
+ */
486
+ async initiateLead(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
487
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(authorization, options);
488
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
489
+ },
490
+ /**
491
+ * This will initiate a lead code for the specified product.
492
+ * @summary Initiate a lead code for a product
441
493
  * @param {string} productSlug
442
494
  * @param {string} [authorization] Bearer Token
443
495
  * @param {*} [options] Override http request option.
444
496
  * @throws {RequiredError}
445
497
  */
446
- async initiateLead(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
447
- const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLead(productSlug, authorization, options);
498
+ async initiateLeadWithProduct(productSlug: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InitiateLeadResponseClass>> {
499
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initiateLeadWithProduct(productSlug, authorization, options);
448
500
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
449
501
  },
450
502
  /**
@@ -530,13 +582,23 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
530
582
  /**
531
583
  * This will initiate a lead code.
532
584
  * @summary Initiate a lead code
585
+ * @param {string} [authorization] Bearer Token
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ initiateLead(authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
590
+ return localVarFp.initiateLead(authorization, options).then((request) => request(axios, basePath));
591
+ },
592
+ /**
593
+ * This will initiate a lead code for the specified product.
594
+ * @summary Initiate a lead code for a product
533
595
  * @param {string} productSlug
534
596
  * @param {string} [authorization] Bearer Token
535
597
  * @param {*} [options] Override http request option.
536
598
  * @throws {RequiredError}
537
599
  */
538
- initiateLead(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
539
- return localVarFp.initiateLead(productSlug, authorization, options).then((request) => request(axios, basePath));
600
+ initiateLeadWithProduct(productSlug: string, authorization?: string, options?: any): AxiosPromise<InitiateLeadResponseClass> {
601
+ return localVarFp.initiateLeadWithProduct(productSlug, authorization, options).then((request) => request(axios, basePath));
540
602
  },
541
603
  /**
542
604
  * Updates the specified lead by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -656,16 +718,30 @@ export interface LeadsApiGetLeadRequest {
656
718
  */
657
719
  export interface LeadsApiInitiateLeadRequest {
658
720
  /**
659
- *
721
+ * Bearer Token
660
722
  * @type {string}
661
723
  * @memberof LeadsApiInitiateLead
662
724
  */
725
+ readonly authorization?: string
726
+ }
727
+
728
+ /**
729
+ * Request parameters for initiateLeadWithProduct operation in LeadsApi.
730
+ * @export
731
+ * @interface LeadsApiInitiateLeadWithProductRequest
732
+ */
733
+ export interface LeadsApiInitiateLeadWithProductRequest {
734
+ /**
735
+ *
736
+ * @type {string}
737
+ * @memberof LeadsApiInitiateLeadWithProduct
738
+ */
663
739
  readonly productSlug: string
664
740
 
665
741
  /**
666
742
  * Bearer Token
667
743
  * @type {string}
668
- * @memberof LeadsApiInitiateLead
744
+ * @memberof LeadsApiInitiateLeadWithProduct
669
745
  */
670
746
  readonly authorization?: string
671
747
  }
@@ -789,8 +865,20 @@ export class LeadsApi extends BaseAPI {
789
865
  * @throws {RequiredError}
790
866
  * @memberof LeadsApi
791
867
  */
792
- public initiateLead(requestParameters: LeadsApiInitiateLeadRequest, options?: AxiosRequestConfig) {
793
- return LeadsApiFp(this.configuration).initiateLead(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
868
+ public initiateLead(requestParameters: LeadsApiInitiateLeadRequest = {}, options?: AxiosRequestConfig) {
869
+ return LeadsApiFp(this.configuration).initiateLead(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
870
+ }
871
+
872
+ /**
873
+ * This will initiate a lead code for the specified product.
874
+ * @summary Initiate a lead code for a product
875
+ * @param {LeadsApiInitiateLeadWithProductRequest} requestParameters Request parameters.
876
+ * @param {*} [options] Override http request option.
877
+ * @throws {RequiredError}
878
+ * @memberof LeadsApi
879
+ */
880
+ public initiateLeadWithProduct(requestParameters: LeadsApiInitiateLeadWithProductRequest, options?: AxiosRequestConfig) {
881
+ return LeadsApiFp(this.configuration).initiateLeadWithProduct(requestParameters.productSlug, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
794
882
  }
795
883
 
796
884
  /**
@@ -95,15 +95,61 @@ 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
98
144
  * @param {string} productSlug
99
145
  * @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.
100
146
  * @param {string} [authorization] Bearer Token
101
147
  * @param {*} [options] Override http request option.
102
148
  * @throws {RequiredError}
103
149
  */
104
- getPublicPSPConfig: async (productSlug: string, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ getPublicPSPConfigForProduct: async (productSlug: string, idempotencyKey?: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
105
151
  // verify required parameter 'productSlug' is not null or undefined
106
- assertParamExists('getPublicPSPConfig', 'productSlug', productSlug)
152
+ assertParamExists('getPublicPSPConfigForProduct', 'productSlug', productSlug)
107
153
  const localVarPath = `/publicapi/v1/payment-setup/get-psp-config/{productSlug}`
108
154
  .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
109
155
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -220,14 +266,26 @@ export const PaymentsSetupApiFp = function(configuration?: Configuration) {
220
266
  /**
221
267
  * This will send the customer the public key to load the payment form and complete the payment setup.
222
268
  * @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
223
281
  * @param {string} productSlug
224
282
  * @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.
225
283
  * @param {string} [authorization] Bearer Token
226
284
  * @param {*} [options] Override http request option.
227
285
  * @throws {RequiredError}
228
286
  */
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);
287
+ async getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>> {
288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options);
231
289
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
232
290
  },
233
291
  /**
@@ -268,14 +326,25 @@ export const PaymentsSetupApiFactory = function (configuration?: Configuration,
268
326
  /**
269
327
  * This will send the customer the public key to load the payment form and complete the payment setup.
270
328
  * @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
271
340
  * @param {string} productSlug
272
341
  * @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.
273
342
  * @param {string} [authorization] Bearer Token
274
343
  * @param {*} [options] Override http request option.
275
344
  * @throws {RequiredError}
276
345
  */
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));
346
+ getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass> {
347
+ return localVarFp.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options).then((request) => request(axios, basePath));
279
348
  },
280
349
  /**
281
350
  * 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.
@@ -327,23 +396,44 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
327
396
  */
328
397
  export interface PaymentsSetupApiGetPublicPSPConfigRequest {
329
398
  /**
330
- *
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
331
407
  * @type {string}
332
408
  * @memberof PaymentsSetupApiGetPublicPSPConfig
333
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
+ /**
420
+ *
421
+ * @type {string}
422
+ * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
423
+ */
334
424
  readonly productSlug: string
335
425
 
336
426
  /**
337
427
  * 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
428
  * @type {string}
339
- * @memberof PaymentsSetupApiGetPublicPSPConfig
429
+ * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
340
430
  */
341
431
  readonly idempotencyKey?: string
342
432
 
343
433
  /**
344
434
  * Bearer Token
345
435
  * @type {string}
346
- * @memberof PaymentsSetupApiGetPublicPSPConfig
436
+ * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
347
437
  */
348
438
  readonly authorization?: string
349
439
  }
@@ -403,8 +493,20 @@ export class PaymentsSetupApi extends BaseAPI {
403
493
  * @throws {RequiredError}
404
494
  * @memberof PaymentsSetupApi
405
495
  */
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));
496
+ public getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest = {}, options?: AxiosRequestConfig) {
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));
408
510
  }
409
511
 
410
512
  /**
package/api.ts CHANGED
@@ -26,8 +26,8 @@ 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';
30
29
  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';
@@ -38,8 +38,8 @@ import { ProductsApi } from './api';
38
38
 
39
39
  export * from './api/address-completions-validations-api';
40
40
  export * from './api/booking-funnels-api';
41
- export * from './api/default-api';
42
41
  export * from './api/documents-api';
42
+ export * from './api/health-api';
43
43
  export * from './api/leads-api';
44
44
  export * from './api/named-ranges-api';
45
45
  export * from './api/notifications-api';
package/base.ts CHANGED
@@ -60,6 +60,7 @@ export enum Environment {
60
60
  Staging = 'https://apiv2-staging.emil.de',
61
61
  Development = 'https://apiv2-dev.emil.de',
62
62
  ProductionZurich = 'https://eu-central-2.apiv2.emil.de',
63
+ StagingZurich = 'https://eu-central-2.apiv2-staging.emil.de',
63
64
  }
64
65
 
65
66
  let _retry_count = 0