@emilgroup/public-api-sdk 1.38.1-beta.3 → 1.38.1-beta.5

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