@emilgroup/public-api-sdk-node 1.42.1-beta.8 → 1.42.1-beta.9

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.
@@ -73,6 +73,7 @@ models/get-lead-response-class.ts
73
73
  models/get-product-config-tariffs-response-class.ts
74
74
  models/get-product-document-download-url-request-rest-dto.ts
75
75
  models/get-product-document-download-url-response-class.ts
76
+ models/get-product-languages-response-class.ts
76
77
  models/get-public-psp-settings-response-class.ts
77
78
  models/index.ts
78
79
  models/initiate-adyen-payment-setup-request-dto.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.42.1-beta.8 --save
20
+ npm install @emilgroup/public-api-sdk-node@1.42.1-beta.9 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk-node@1.42.1-beta.8
24
+ yarn add @emilgroup/public-api-sdk-node@1.42.1-beta.9
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -37,10 +37,11 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
37
37
  * @summary Retrieve the booking funnel
38
38
  * @param {string} code Unique identifier for the object.
39
39
  * @param {string} [authorization] Bearer Token
40
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\'s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
40
41
  * @param {*} [options] Override http request option.
41
42
  * @throws {RequiredError}
42
43
  */
43
- getBookingFunnel: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
+ getBookingFunnel: async (code: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
45
  // verify required parameter 'code' is not null or undefined
45
46
  assertParamExists('getBookingFunnel', 'code', code)
46
47
  const localVarPath = `/publicapi/v1/booking-funnels/{code}`
@@ -62,6 +63,10 @@ export const BookingFunnelsApiAxiosParamCreator = function (configuration?: Conf
62
63
  // http bearer authentication required
63
64
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
64
65
 
66
+ if (language !== undefined) {
67
+ localVarQueryParameter['language'] = language;
68
+ }
69
+
65
70
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
66
71
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
67
72
  }
@@ -92,11 +97,12 @@ export const BookingFunnelsApiFp = function(configuration?: Configuration) {
92
97
  * @summary Retrieve the booking funnel
93
98
  * @param {string} code Unique identifier for the object.
94
99
  * @param {string} [authorization] Bearer Token
100
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
95
101
  * @param {*} [options] Override http request option.
96
102
  * @throws {RequiredError}
97
103
  */
98
- async getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, options);
104
+ async getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>> {
105
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options);
100
106
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
107
  },
102
108
  }
@@ -114,11 +120,12 @@ export const BookingFunnelsApiFactory = function (configuration?: Configuration,
114
120
  * @summary Retrieve the booking funnel
115
121
  * @param {string} code Unique identifier for the object.
116
122
  * @param {string} [authorization] Bearer Token
123
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
117
124
  * @param {*} [options] Override http request option.
118
125
  * @throws {RequiredError}
119
126
  */
120
- getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
121
- return localVarFp.getBookingFunnel(code, authorization, options).then((request) => request(axios, basePath));
127
+ getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass> {
128
+ return localVarFp.getBookingFunnel(code, authorization, language, options).then((request) => request(axios, basePath));
122
129
  },
123
130
  };
124
131
  };
@@ -142,6 +149,13 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
142
149
  * @memberof BookingFunnelsApiGetBookingFunnel
143
150
  */
144
151
  readonly authorization?: string
152
+
153
+ /**
154
+ * Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
155
+ * @type {string}
156
+ * @memberof BookingFunnelsApiGetBookingFunnel
157
+ */
158
+ readonly language?: string
145
159
  }
146
160
 
147
161
  /**
@@ -160,6 +174,6 @@ export class BookingFunnelsApi extends BaseAPI {
160
174
  * @memberof BookingFunnelsApi
161
175
  */
162
176
  public getBookingFunnel(requestParameters: BookingFunnelsApiGetBookingFunnelRequest, options?: AxiosRequestConfig) {
163
- return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
177
+ return BookingFunnelsApiFp(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
164
178
  }
165
179
  }
@@ -35,6 +35,8 @@ import { CreateEstimatedInvoiceResponseClass } from '../models';
35
35
  // @ts-ignore
36
36
  import { GetCustomCssResponseClass } from '../models';
37
37
  // @ts-ignore
38
+ import { GetProductLanguagesResponseClass } from '../models';
39
+ // @ts-ignore
38
40
  import { InsuredObjectClass } from '../models';
39
41
  // @ts-ignore
40
42
  import { InsuredObjectTypeClass } from '../models';
@@ -255,10 +257,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
255
257
  * @summary List insured objects
256
258
  * @param {string} productCode
257
259
  * @param {string} [authorization] Bearer Token
260
+ * @param {string} [language]
261
+ * @param {number} [productVersionId]
258
262
  * @param {*} [options] Override http request option.
259
263
  * @throws {RequiredError}
260
264
  */
261
- getInsuredObjects: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
+ getInsuredObjects: async (productCode: string, authorization?: string, language?: string, productVersionId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
262
266
  // verify required parameter 'productCode' is not null or undefined
263
267
  assertParamExists('getInsuredObjects', 'productCode', productCode)
264
268
  const localVarPath = `/publicapi/v1/products/{product_code}/insured-objects`
@@ -280,6 +284,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
280
284
  // http bearer authentication required
281
285
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
282
286
 
287
+ if (language !== undefined) {
288
+ localVarQueryParameter['language'] = language;
289
+ }
290
+
291
+ if (productVersionId !== undefined) {
292
+ localVarQueryParameter['product_version_id'] = productVersionId;
293
+ }
294
+
283
295
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
296
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
285
297
  }
@@ -296,14 +308,15 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
296
308
  };
297
309
  },
298
310
  /**
299
- * This will generate a custom css for booking funnel, based on product.
311
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
300
312
  * @summary Generate a custom CSS
301
313
  * @param {string} productCode
302
314
  * @param {string} [authorization] Bearer Token
315
+ * @param {string} [language]
303
316
  * @param {*} [options] Override http request option.
304
317
  * @throws {RequiredError}
305
318
  */
306
- getProductCustomCss: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
319
+ getProductCustomCss: async (productCode: string, authorization?: string, language?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
307
320
  // verify required parameter 'productCode' is not null or undefined
308
321
  assertParamExists('getProductCustomCss', 'productCode', productCode)
309
322
  const localVarPath = `/publicapi/v1/products/{product_code}/custom-css`
@@ -325,6 +338,10 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
325
338
  // http bearer authentication required
326
339
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
327
340
 
341
+ if (language !== undefined) {
342
+ localVarQueryParameter['language'] = language;
343
+ }
344
+
328
345
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
329
346
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
330
347
  }
@@ -346,10 +363,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
346
363
  * @param {string} productCode
347
364
  * @param {string} allValues
348
365
  * @param {string} [authorization] Bearer Token
366
+ * @param {string} [language]
367
+ * @param {number} [productVersionId]
349
368
  * @param {*} [options] Override http request option.
350
369
  * @throws {RequiredError}
351
370
  */
352
- getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
371
+ getProductFactors: async (productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
353
372
  // verify required parameter 'productCode' is not null or undefined
354
373
  assertParamExists('getProductFactors', 'productCode', productCode)
355
374
  // verify required parameter 'allValues' is not null or undefined
@@ -377,6 +396,59 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
377
396
  localVarQueryParameter['all_values'] = allValues;
378
397
  }
379
398
 
399
+ if (language !== undefined) {
400
+ localVarQueryParameter['language'] = language;
401
+ }
402
+
403
+ if (productVersionId !== undefined) {
404
+ localVarQueryParameter['product_version_id'] = productVersionId;
405
+ }
406
+
407
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
408
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
409
+ }
410
+
411
+
412
+
413
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
414
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
415
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
416
+
417
+ return {
418
+ url: toPathString(localVarUrlObj),
419
+ options: localVarRequestOptions,
420
+ };
421
+ },
422
+ /**
423
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
424
+ * @summary Retrieve the product languages
425
+ * @param {string} productCode
426
+ * @param {string} [authorization] Bearer Token
427
+ * @param {*} [options] Override http request option.
428
+ * @throws {RequiredError}
429
+ */
430
+ getProductLanguages: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
431
+ // verify required parameter 'productCode' is not null or undefined
432
+ assertParamExists('getProductLanguages', 'productCode', productCode)
433
+ const localVarPath = `/publicapi/v1/products/{product_code}/languages`
434
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
435
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
436
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
437
+ let baseOptions;
438
+ let baseAccessToken;
439
+ if (configuration) {
440
+ baseOptions = configuration.baseOptions;
441
+ baseAccessToken = configuration.accessToken;
442
+ }
443
+
444
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
445
+ const localVarHeaderParameter = {} as any;
446
+ const localVarQueryParameter = {} as any;
447
+
448
+ // authentication bearer required
449
+ // http bearer authentication required
450
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
451
+
380
452
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
381
453
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
382
454
  }
@@ -534,23 +606,26 @@ export const ProductsApiFp = function(configuration?: Configuration) {
534
606
  * @summary List insured objects
535
607
  * @param {string} productCode
536
608
  * @param {string} [authorization] Bearer Token
609
+ * @param {string} [language]
610
+ * @param {number} [productVersionId]
537
611
  * @param {*} [options] Override http request option.
538
612
  * @throws {RequiredError}
539
613
  */
540
- async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
541
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
614
+ async getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
615
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, language, productVersionId, options);
542
616
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
543
617
  },
544
618
  /**
545
- * This will generate a custom css for booking funnel, based on product.
619
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
546
620
  * @summary Generate a custom CSS
547
621
  * @param {string} productCode
548
622
  * @param {string} [authorization] Bearer Token
623
+ * @param {string} [language]
549
624
  * @param {*} [options] Override http request option.
550
625
  * @throws {RequiredError}
551
626
  */
552
- async getProductCustomCss(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
553
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, options);
627
+ async getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomCssResponseClass>> {
628
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductCustomCss(productCode, authorization, language, options);
554
629
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
555
630
  },
556
631
  /**
@@ -559,11 +634,25 @@ export const ProductsApiFp = function(configuration?: Configuration) {
559
634
  * @param {string} productCode
560
635
  * @param {string} allValues
561
636
  * @param {string} [authorization] Bearer Token
637
+ * @param {string} [language]
638
+ * @param {number} [productVersionId]
562
639
  * @param {*} [options] Override http request option.
563
640
  * @throws {RequiredError}
564
641
  */
565
- async getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
566
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
642
+ async getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
643
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, language, productVersionId, options);
644
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
645
+ },
646
+ /**
647
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
648
+ * @summary Retrieve the product languages
649
+ * @param {string} productCode
650
+ * @param {string} [authorization] Bearer Token
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ async getProductLanguages(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguagesResponseClass>> {
655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options);
567
656
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
568
657
  },
569
658
  /**
@@ -646,22 +735,25 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
646
735
  * @summary List insured objects
647
736
  * @param {string} productCode
648
737
  * @param {string} [authorization] Bearer Token
738
+ * @param {string} [language]
739
+ * @param {number} [productVersionId]
649
740
  * @param {*} [options] Override http request option.
650
741
  * @throws {RequiredError}
651
742
  */
652
- getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
653
- return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
743
+ getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
744
+ return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
654
745
  },
655
746
  /**
656
- * This will generate a custom css for booking funnel, based on product.
747
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
657
748
  * @summary Generate a custom CSS
658
749
  * @param {string} productCode
659
750
  * @param {string} [authorization] Bearer Token
751
+ * @param {string} [language]
660
752
  * @param {*} [options] Override http request option.
661
753
  * @throws {RequiredError}
662
754
  */
663
- getProductCustomCss(productCode: string, authorization?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
664
- return localVarFp.getProductCustomCss(productCode, authorization, options).then((request) => request(axios, basePath));
755
+ getProductCustomCss(productCode: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetCustomCssResponseClass> {
756
+ return localVarFp.getProductCustomCss(productCode, authorization, language, options).then((request) => request(axios, basePath));
665
757
  },
666
758
  /**
667
759
  * Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -669,11 +761,24 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
669
761
  * @param {string} productCode
670
762
  * @param {string} allValues
671
763
  * @param {string} [authorization] Bearer Token
764
+ * @param {string} [language]
765
+ * @param {number} [productVersionId]
672
766
  * @param {*} [options] Override http request option.
673
767
  * @throws {RequiredError}
674
768
  */
675
- getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
676
- return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
769
+ getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
770
+ return localVarFp.getProductFactors(productCode, allValues, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
771
+ },
772
+ /**
773
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
774
+ * @summary Retrieve the product languages
775
+ * @param {string} productCode
776
+ * @param {string} [authorization] Bearer Token
777
+ * @param {*} [options] Override http request option.
778
+ * @throws {RequiredError}
779
+ */
780
+ getProductLanguages(productCode: string, authorization?: string, options?: any): AxiosPromise<GetProductLanguagesResponseClass> {
781
+ return localVarFp.getProductLanguages(productCode, authorization, options).then((request) => request(axios, basePath));
677
782
  },
678
783
  /**
679
784
  * Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
@@ -819,6 +924,20 @@ export interface ProductsApiGetInsuredObjectsRequest {
819
924
  * @memberof ProductsApiGetInsuredObjects
820
925
  */
821
926
  readonly authorization?: string
927
+
928
+ /**
929
+ *
930
+ * @type {string}
931
+ * @memberof ProductsApiGetInsuredObjects
932
+ */
933
+ readonly language?: string
934
+
935
+ /**
936
+ *
937
+ * @type {number}
938
+ * @memberof ProductsApiGetInsuredObjects
939
+ */
940
+ readonly productVersionId?: number
822
941
  }
823
942
 
824
943
  /**
@@ -840,6 +959,13 @@ export interface ProductsApiGetProductCustomCssRequest {
840
959
  * @memberof ProductsApiGetProductCustomCss
841
960
  */
842
961
  readonly authorization?: string
962
+
963
+ /**
964
+ *
965
+ * @type {string}
966
+ * @memberof ProductsApiGetProductCustomCss
967
+ */
968
+ readonly language?: string
843
969
  }
844
970
 
845
971
  /**
@@ -868,6 +994,41 @@ export interface ProductsApiGetProductFactorsRequest {
868
994
  * @memberof ProductsApiGetProductFactors
869
995
  */
870
996
  readonly authorization?: string
997
+
998
+ /**
999
+ *
1000
+ * @type {string}
1001
+ * @memberof ProductsApiGetProductFactors
1002
+ */
1003
+ readonly language?: string
1004
+
1005
+ /**
1006
+ *
1007
+ * @type {number}
1008
+ * @memberof ProductsApiGetProductFactors
1009
+ */
1010
+ readonly productVersionId?: number
1011
+ }
1012
+
1013
+ /**
1014
+ * Request parameters for getProductLanguages operation in ProductsApi.
1015
+ * @export
1016
+ * @interface ProductsApiGetProductLanguagesRequest
1017
+ */
1018
+ export interface ProductsApiGetProductLanguagesRequest {
1019
+ /**
1020
+ *
1021
+ * @type {string}
1022
+ * @memberof ProductsApiGetProductLanguages
1023
+ */
1024
+ readonly productCode: string
1025
+
1026
+ /**
1027
+ * Bearer Token
1028
+ * @type {string}
1029
+ * @memberof ProductsApiGetProductLanguages
1030
+ */
1031
+ readonly authorization?: string
871
1032
  }
872
1033
 
873
1034
  /**
@@ -997,11 +1158,11 @@ export class ProductsApi extends BaseAPI {
997
1158
  * @memberof ProductsApi
998
1159
  */
999
1160
  public getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig) {
1000
- return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1161
+ return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then((request) => request(this.axios, this.basePath));
1001
1162
  }
1002
1163
 
1003
1164
  /**
1004
- * This will generate a custom css for booking funnel, based on product.
1165
+ * This will generate a custom css for booking funnel, based on product. Pass `language` to have the funnel texts it carries returned translated; without it the setting is returned exactly as it is stored.
1005
1166
  * @summary Generate a custom CSS
1006
1167
  * @param {ProductsApiGetProductCustomCssRequest} requestParameters Request parameters.
1007
1168
  * @param {*} [options] Override http request option.
@@ -1009,7 +1170,7 @@ export class ProductsApi extends BaseAPI {
1009
1170
  * @memberof ProductsApi
1010
1171
  */
1011
1172
  public getProductCustomCss(requestParameters: ProductsApiGetProductCustomCssRequest, options?: AxiosRequestConfig) {
1012
- return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1173
+ return ProductsApiFp(this.configuration).getProductCustomCss(requestParameters.productCode, requestParameters.authorization, requestParameters.language, options).then((request) => request(this.axios, this.basePath));
1013
1174
  }
1014
1175
 
1015
1176
  /**
@@ -1021,7 +1182,19 @@ export class ProductsApi extends BaseAPI {
1021
1182
  * @memberof ProductsApi
1022
1183
  */
1023
1184
  public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
1024
- return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1185
+ return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then((request) => request(this.axios, this.basePath));
1186
+ }
1187
+
1188
+ /**
1189
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
1190
+ * @summary Retrieve the product languages
1191
+ * @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
1192
+ * @param {*} [options] Override http request option.
1193
+ * @throws {RequiredError}
1194
+ * @memberof ProductsApi
1195
+ */
1196
+ public getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig) {
1197
+ return ProductsApiFp(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1025
1198
  }
1026
1199
 
1027
1200
  /**
@@ -23,10 +23,11 @@ export declare const BookingFunnelsApiAxiosParamCreator: (configuration?: Config
23
23
  * @summary Retrieve the booking funnel
24
24
  * @param {string} code Unique identifier for the object.
25
25
  * @param {string} [authorization] Bearer Token
26
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
26
27
  * @param {*} [options] Override http request option.
27
28
  * @throws {RequiredError}
28
29
  */
29
- getBookingFunnel: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
+ getBookingFunnel: (code: string, authorization?: string, language?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
31
  };
31
32
  /**
32
33
  * BookingFunnelsApi - functional programming interface
@@ -38,10 +39,11 @@ export declare const BookingFunnelsApiFp: (configuration?: Configuration) => {
38
39
  * @summary Retrieve the booking funnel
39
40
  * @param {string} code Unique identifier for the object.
40
41
  * @param {string} [authorization] Bearer Token
42
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
41
43
  * @param {*} [options] Override http request option.
42
44
  * @throws {RequiredError}
43
45
  */
44
- getBookingFunnel(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>>;
46
+ getBookingFunnel(code: string, authorization?: string, language?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingFunnelResponseClass>>;
45
47
  };
46
48
  /**
47
49
  * BookingFunnelsApi - factory interface
@@ -53,10 +55,11 @@ export declare const BookingFunnelsApiFactory: (configuration?: Configuration, b
53
55
  * @summary Retrieve the booking funnel
54
56
  * @param {string} code Unique identifier for the object.
55
57
  * @param {string} [authorization] Bearer Token
58
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
56
59
  * @param {*} [options] Override http request option.
57
60
  * @throws {RequiredError}
58
61
  */
59
- getBookingFunnel(code: string, authorization?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass>;
62
+ getBookingFunnel(code: string, authorization?: string, language?: string, options?: any): AxiosPromise<GetBookingFunnelResponseClass>;
60
63
  };
61
64
  /**
62
65
  * Request parameters for getBookingFunnel operation in BookingFunnelsApi.
@@ -76,6 +79,12 @@ export interface BookingFunnelsApiGetBookingFunnelRequest {
76
79
  * @memberof BookingFunnelsApiGetBookingFunnel
77
80
  */
78
81
  readonly authorization?: string;
82
+ /**
83
+ * Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
84
+ * @type {string}
85
+ * @memberof BookingFunnelsApiGetBookingFunnel
86
+ */
87
+ readonly language?: string;
79
88
  }
80
89
  /**
81
90
  * BookingFunnelsApi - object-oriented interface
@@ -101,10 +101,11 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
101
101
  * @summary Retrieve the booking funnel
102
102
  * @param {string} code Unique identifier for the object.
103
103
  * @param {string} [authorization] Bearer Token
104
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
104
105
  * @param {*} [options] Override http request option.
105
106
  * @throws {RequiredError}
106
107
  */
107
- getBookingFunnel: function (code, authorization, options) {
108
+ getBookingFunnel: function (code, authorization, language, options) {
108
109
  if (options === void 0) { options = {}; }
109
110
  return __awaiter(_this, void 0, void 0, function () {
110
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -130,6 +131,9 @@ var BookingFunnelsApiAxiosParamCreator = function (configuration) {
130
131
  // authentication bearer required
131
132
  // http bearer authentication required
132
133
  _a.sent();
134
+ if (language !== undefined) {
135
+ localVarQueryParameter['language'] = language;
136
+ }
133
137
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
138
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
139
  }
@@ -159,15 +163,16 @@ var BookingFunnelsApiFp = function (configuration) {
159
163
  * @summary Retrieve the booking funnel
160
164
  * @param {string} code Unique identifier for the object.
161
165
  * @param {string} [authorization] Bearer Token
166
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
162
167
  * @param {*} [options] Override http request option.
163
168
  * @throws {RequiredError}
164
169
  */
165
- getBookingFunnel: function (code, authorization, options) {
170
+ getBookingFunnel: function (code, authorization, language, options) {
166
171
  return __awaiter(this, void 0, void 0, function () {
167
172
  var localVarAxiosArgs;
168
173
  return __generator(this, function (_a) {
169
174
  switch (_a.label) {
170
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, options)];
175
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingFunnel(code, authorization, language, options)];
171
176
  case 1:
172
177
  localVarAxiosArgs = _a.sent();
173
178
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -190,11 +195,12 @@ var BookingFunnelsApiFactory = function (configuration, basePath, axios) {
190
195
  * @summary Retrieve the booking funnel
191
196
  * @param {string} code Unique identifier for the object.
192
197
  * @param {string} [authorization] Bearer Token
198
+ * @param {string} [language] Language to return the funnel text in. Omit it, or pass the product\&#39;s default language, to get the funnel as it was authored. Any text that has no translation stays in the default language.
193
199
  * @param {*} [options] Override http request option.
194
200
  * @throws {RequiredError}
195
201
  */
196
- getBookingFunnel: function (code, authorization, options) {
197
- return localVarFp.getBookingFunnel(code, authorization, options).then(function (request) { return request(axios, basePath); });
202
+ getBookingFunnel: function (code, authorization, language, options) {
203
+ return localVarFp.getBookingFunnel(code, authorization, language, options).then(function (request) { return request(axios, basePath); });
198
204
  },
199
205
  };
200
206
  };
@@ -220,7 +226,7 @@ var BookingFunnelsApi = /** @class */ (function (_super) {
220
226
  */
221
227
  BookingFunnelsApi.prototype.getBookingFunnel = function (requestParameters, options) {
222
228
  var _this = this;
223
- return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
229
+ return (0, exports.BookingFunnelsApiFp)(this.configuration).getBookingFunnel(requestParameters.code, requestParameters.authorization, requestParameters.language, options).then(function (request) { return request(_this.axios, _this.basePath); });
224
230
  };
225
231
  return BookingFunnelsApi;
226
232
  }(base_1.BaseAPI));