@emilgroup/public-api-sdk 1.39.1-beta.9 → 1.40.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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@1.39.1-beta.9 --save
20
+ npm install @emilgroup/public-api-sdk@1.40.1-beta.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/public-api-sdk@1.39.1-beta.9
24
+ yarn add @emilgroup/public-api-sdk@1.40.1-beta.0
25
25
  ```
26
26
 
27
27
  And then you can import `PublicApi`.
@@ -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';
@@ -251,10 +253,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
251
253
  * @summary List insured objects
252
254
  * @param {string} productCode
253
255
  * @param {string} [authorization] Bearer Token
256
+ * @param {string} [language]
257
+ * @param {number} [productVersionId]
254
258
  * @param {*} [options] Override http request option.
255
259
  * @throws {RequiredError}
256
260
  */
257
- getInsuredObjects: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
+ getInsuredObjects: async (productCode: string, authorization?: string, language?: string, productVersionId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
258
262
  // verify required parameter 'productCode' is not null or undefined
259
263
  assertParamExists('getInsuredObjects', 'productCode', productCode)
260
264
  const localVarPath = `/publicapi/v1/products/{product_code}/insured-objects`
@@ -276,6 +280,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
276
280
  // http bearer authentication required
277
281
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
278
282
 
283
+ if (language !== undefined) {
284
+ localVarQueryParameter['language'] = language;
285
+ }
286
+
287
+ if (productVersionId !== undefined) {
288
+ localVarQueryParameter['product_version_id'] = productVersionId;
289
+ }
290
+
279
291
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
292
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
281
293
  }
@@ -342,10 +354,12 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
342
354
  * @param {string} productCode
343
355
  * @param {string} allValues
344
356
  * @param {string} [authorization] Bearer Token
357
+ * @param {string} [language]
358
+ * @param {number} [productVersionId]
345
359
  * @param {*} [options] Override http request option.
346
360
  * @throws {RequiredError}
347
361
  */
348
- getProductFactors: async (productCode: string, allValues: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
362
+ getProductFactors: async (productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
349
363
  // verify required parameter 'productCode' is not null or undefined
350
364
  assertParamExists('getProductFactors', 'productCode', productCode)
351
365
  // verify required parameter 'allValues' is not null or undefined
@@ -373,6 +387,59 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
373
387
  localVarQueryParameter['all_values'] = allValues;
374
388
  }
375
389
 
390
+ if (language !== undefined) {
391
+ localVarQueryParameter['language'] = language;
392
+ }
393
+
394
+ if (productVersionId !== undefined) {
395
+ localVarQueryParameter['product_version_id'] = productVersionId;
396
+ }
397
+
398
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
399
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
400
+ }
401
+
402
+
403
+
404
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
405
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
406
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
407
+
408
+ return {
409
+ url: toPathString(localVarUrlObj),
410
+ options: localVarRequestOptions,
411
+ };
412
+ },
413
+ /**
414
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
415
+ * @summary Retrieve the product languages
416
+ * @param {string} productCode
417
+ * @param {string} [authorization] Bearer Token
418
+ * @param {*} [options] Override http request option.
419
+ * @throws {RequiredError}
420
+ */
421
+ getProductLanguages: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
422
+ // verify required parameter 'productCode' is not null or undefined
423
+ assertParamExists('getProductLanguages', 'productCode', productCode)
424
+ const localVarPath = `/publicapi/v1/products/{product_code}/languages`
425
+ .replace(`{${"product_code"}}`, encodeURIComponent(String(productCode)));
426
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
427
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
428
+ let baseOptions;
429
+ let baseAccessToken;
430
+ if (configuration) {
431
+ baseOptions = configuration.baseOptions;
432
+ baseAccessToken = configuration.accessToken;
433
+ }
434
+
435
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
436
+ const localVarHeaderParameter = {} as any;
437
+ const localVarQueryParameter = {} as any;
438
+
439
+ // authentication bearer required
440
+ // http bearer authentication required
441
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
442
+
376
443
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
377
444
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
378
445
  }
@@ -530,11 +597,13 @@ export const ProductsApiFp = function(configuration?: Configuration) {
530
597
  * @summary List insured objects
531
598
  * @param {string} productCode
532
599
  * @param {string} [authorization] Bearer Token
600
+ * @param {string} [language]
601
+ * @param {number} [productVersionId]
533
602
  * @param {*} [options] Override http request option.
534
603
  * @throws {RequiredError}
535
604
  */
536
- async getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
537
- const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options);
605
+ async getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>> {
606
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, language, productVersionId, options);
538
607
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
539
608
  },
540
609
  /**
@@ -555,11 +624,25 @@ export const ProductsApiFp = function(configuration?: Configuration) {
555
624
  * @param {string} productCode
556
625
  * @param {string} allValues
557
626
  * @param {string} [authorization] Bearer Token
627
+ * @param {string} [language]
628
+ * @param {number} [productVersionId]
558
629
  * @param {*} [options] Override http request option.
559
630
  * @throws {RequiredError}
560
631
  */
561
- async getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
562
- const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options);
632
+ async getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>> {
633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, language, productVersionId, options);
634
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
635
+ },
636
+ /**
637
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
638
+ * @summary Retrieve the product languages
639
+ * @param {string} productCode
640
+ * @param {string} [authorization] Bearer Token
641
+ * @param {*} [options] Override http request option.
642
+ * @throws {RequiredError}
643
+ */
644
+ async getProductLanguages(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguagesResponseClass>> {
645
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options);
563
646
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
564
647
  },
565
648
  /**
@@ -642,11 +725,13 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
642
725
  * @summary List insured objects
643
726
  * @param {string} productCode
644
727
  * @param {string} [authorization] Bearer Token
728
+ * @param {string} [language]
729
+ * @param {number} [productVersionId]
645
730
  * @param {*} [options] Override http request option.
646
731
  * @throws {RequiredError}
647
732
  */
648
- getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
649
- return localVarFp.getInsuredObjects(productCode, authorization, options).then((request) => request(axios, basePath));
733
+ getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
734
+ return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
650
735
  },
651
736
  /**
652
737
  * This will generate a custom css for booking funnel, based on product.
@@ -665,11 +750,24 @@ export const ProductsApiFactory = function (configuration?: Configuration, baseP
665
750
  * @param {string} productCode
666
751
  * @param {string} allValues
667
752
  * @param {string} [authorization] Bearer Token
753
+ * @param {string} [language]
754
+ * @param {number} [productVersionId]
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
759
+ return localVarFp.getProductFactors(productCode, allValues, authorization, language, productVersionId, options).then((request) => request(axios, basePath));
760
+ },
761
+ /**
762
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
763
+ * @summary Retrieve the product languages
764
+ * @param {string} productCode
765
+ * @param {string} [authorization] Bearer Token
668
766
  * @param {*} [options] Override http request option.
669
767
  * @throws {RequiredError}
670
768
  */
671
- getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>> {
672
- return localVarFp.getProductFactors(productCode, allValues, authorization, options).then((request) => request(axios, basePath));
769
+ getProductLanguages(productCode: string, authorization?: string, options?: any): AxiosPromise<GetProductLanguagesResponseClass> {
770
+ return localVarFp.getProductLanguages(productCode, authorization, options).then((request) => request(axios, basePath));
673
771
  },
674
772
  /**
675
773
  * 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.
@@ -815,6 +913,20 @@ export interface ProductsApiGetInsuredObjectsRequest {
815
913
  * @memberof ProductsApiGetInsuredObjects
816
914
  */
817
915
  readonly authorization?: string
916
+
917
+ /**
918
+ *
919
+ * @type {string}
920
+ * @memberof ProductsApiGetInsuredObjects
921
+ */
922
+ readonly language?: string
923
+
924
+ /**
925
+ *
926
+ * @type {number}
927
+ * @memberof ProductsApiGetInsuredObjects
928
+ */
929
+ readonly productVersionId?: number
818
930
  }
819
931
 
820
932
  /**
@@ -864,6 +976,41 @@ export interface ProductsApiGetProductFactorsRequest {
864
976
  * @memberof ProductsApiGetProductFactors
865
977
  */
866
978
  readonly authorization?: string
979
+
980
+ /**
981
+ *
982
+ * @type {string}
983
+ * @memberof ProductsApiGetProductFactors
984
+ */
985
+ readonly language?: string
986
+
987
+ /**
988
+ *
989
+ * @type {number}
990
+ * @memberof ProductsApiGetProductFactors
991
+ */
992
+ readonly productVersionId?: number
993
+ }
994
+
995
+ /**
996
+ * Request parameters for getProductLanguages operation in ProductsApi.
997
+ * @export
998
+ * @interface ProductsApiGetProductLanguagesRequest
999
+ */
1000
+ export interface ProductsApiGetProductLanguagesRequest {
1001
+ /**
1002
+ *
1003
+ * @type {string}
1004
+ * @memberof ProductsApiGetProductLanguages
1005
+ */
1006
+ readonly productCode: string
1007
+
1008
+ /**
1009
+ * Bearer Token
1010
+ * @type {string}
1011
+ * @memberof ProductsApiGetProductLanguages
1012
+ */
1013
+ readonly authorization?: string
867
1014
  }
868
1015
 
869
1016
  /**
@@ -993,7 +1140,7 @@ export class ProductsApi extends BaseAPI {
993
1140
  * @memberof ProductsApi
994
1141
  */
995
1142
  public getInsuredObjects(requestParameters: ProductsApiGetInsuredObjectsRequest, options?: AxiosRequestConfig) {
996
- return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1143
+ return ProductsApiFp(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then((request) => request(this.axios, this.basePath));
997
1144
  }
998
1145
 
999
1146
  /**
@@ -1017,7 +1164,19 @@ export class ProductsApi extends BaseAPI {
1017
1164
  * @memberof ProductsApi
1018
1165
  */
1019
1166
  public getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig) {
1020
- return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1167
+ return ProductsApiFp(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then((request) => request(this.axios, this.basePath));
1168
+ }
1169
+
1170
+ /**
1171
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
1172
+ * @summary Retrieve the product languages
1173
+ * @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
1174
+ * @param {*} [options] Override http request option.
1175
+ * @throws {RequiredError}
1176
+ * @memberof ProductsApi
1177
+ */
1178
+ public getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig) {
1179
+ return ProductsApiFp(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1021
1180
  }
1022
1181
 
1023
1182
  /**
@@ -19,6 +19,7 @@ import { CreateCustomApplicationResponseClass } from '../models';
19
19
  import { CreateEstimatedInvoiceRequestDto } from '../models';
20
20
  import { CreateEstimatedInvoiceResponseClass } from '../models';
21
21
  import { GetCustomCssResponseClass } from '../models';
22
+ import { GetProductLanguagesResponseClass } from '../models';
22
23
  import { InsuredObjectClass } from '../models';
23
24
  import { InsuredObjectTypeClass } from '../models';
24
25
  import { ListProductsResponseClass } from '../models';
@@ -72,10 +73,12 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
72
73
  * @summary List insured objects
73
74
  * @param {string} productCode
74
75
  * @param {string} [authorization] Bearer Token
76
+ * @param {string} [language]
77
+ * @param {number} [productVersionId]
75
78
  * @param {*} [options] Override http request option.
76
79
  * @throws {RequiredError}
77
80
  */
78
- getInsuredObjects: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
81
+ getInsuredObjects: (productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
79
82
  /**
80
83
  * This will generate a custom css for booking funnel, based on product.
81
84
  * @summary Generate a custom CSS
@@ -91,10 +94,21 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
91
94
  * @param {string} productCode
92
95
  * @param {string} allValues
93
96
  * @param {string} [authorization] Bearer Token
97
+ * @param {string} [language]
98
+ * @param {number} [productVersionId]
94
99
  * @param {*} [options] Override http request option.
95
100
  * @throws {RequiredError}
96
101
  */
97
- getProductFactors: (productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
102
+ getProductFactors: (productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig) => Promise<RequestArgs>;
103
+ /**
104
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
105
+ * @summary Retrieve the product languages
106
+ * @param {string} productCode
107
+ * @param {string} [authorization] Bearer Token
108
+ * @param {*} [options] Override http request option.
109
+ * @throws {RequiredError}
110
+ */
111
+ getProductLanguages: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
98
112
  /**
99
113
  * 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.
100
114
  * @summary List products
@@ -160,10 +174,12 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
160
174
  * @summary List insured objects
161
175
  * @param {string} productCode
162
176
  * @param {string} [authorization] Bearer Token
177
+ * @param {string} [language]
178
+ * @param {number} [productVersionId]
163
179
  * @param {*} [options] Override http request option.
164
180
  * @throws {RequiredError}
165
181
  */
166
- getInsuredObjects(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
182
+ getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
167
183
  /**
168
184
  * This will generate a custom css for booking funnel, based on product.
169
185
  * @summary Generate a custom CSS
@@ -179,10 +195,21 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
179
195
  * @param {string} productCode
180
196
  * @param {string} allValues
181
197
  * @param {string} [authorization] Bearer Token
198
+ * @param {string} [language]
199
+ * @param {number} [productVersionId]
182
200
  * @param {*} [options] Override http request option.
183
201
  * @throws {RequiredError}
184
202
  */
185
- getProductFactors(productCode: string, allValues: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>>;
203
+ getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<ProductFactorForVersionClass>>>;
204
+ /**
205
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
206
+ * @summary Retrieve the product languages
207
+ * @param {string} productCode
208
+ * @param {string} [authorization] Bearer Token
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ getProductLanguages(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductLanguagesResponseClass>>;
186
213
  /**
187
214
  * 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.
188
215
  * @summary List products
@@ -248,10 +275,12 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
248
275
  * @summary List insured objects
249
276
  * @param {string} productCode
250
277
  * @param {string} [authorization] Bearer Token
278
+ * @param {string} [language]
279
+ * @param {number} [productVersionId]
251
280
  * @param {*} [options] Override http request option.
252
281
  * @throws {RequiredError}
253
282
  */
254
- getInsuredObjects(productCode: string, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
283
+ getInsuredObjects(productCode: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
255
284
  /**
256
285
  * This will generate a custom css for booking funnel, based on product.
257
286
  * @summary Generate a custom CSS
@@ -267,10 +296,21 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
267
296
  * @param {string} productCode
268
297
  * @param {string} allValues
269
298
  * @param {string} [authorization] Bearer Token
299
+ * @param {string} [language]
300
+ * @param {number} [productVersionId]
270
301
  * @param {*} [options] Override http request option.
271
302
  * @throws {RequiredError}
272
303
  */
273
- getProductFactors(productCode: string, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>>;
304
+ getProductFactors(productCode: string, allValues: string, authorization?: string, language?: string, productVersionId?: number, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>>;
305
+ /**
306
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
307
+ * @summary Retrieve the product languages
308
+ * @param {string} productCode
309
+ * @param {string} [authorization] Bearer Token
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ getProductLanguages(productCode: string, authorization?: string, options?: any): AxiosPromise<GetProductLanguagesResponseClass>;
274
314
  /**
275
315
  * 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.
276
316
  * @summary List products
@@ -399,6 +439,18 @@ export interface ProductsApiGetInsuredObjectsRequest {
399
439
  * @memberof ProductsApiGetInsuredObjects
400
440
  */
401
441
  readonly authorization?: string;
442
+ /**
443
+ *
444
+ * @type {string}
445
+ * @memberof ProductsApiGetInsuredObjects
446
+ */
447
+ readonly language?: string;
448
+ /**
449
+ *
450
+ * @type {number}
451
+ * @memberof ProductsApiGetInsuredObjects
452
+ */
453
+ readonly productVersionId?: number;
402
454
  }
403
455
  /**
404
456
  * Request parameters for getProductCustomCss operation in ProductsApi.
@@ -443,6 +495,37 @@ export interface ProductsApiGetProductFactorsRequest {
443
495
  * @memberof ProductsApiGetProductFactors
444
496
  */
445
497
  readonly authorization?: string;
498
+ /**
499
+ *
500
+ * @type {string}
501
+ * @memberof ProductsApiGetProductFactors
502
+ */
503
+ readonly language?: string;
504
+ /**
505
+ *
506
+ * @type {number}
507
+ * @memberof ProductsApiGetProductFactors
508
+ */
509
+ readonly productVersionId?: number;
510
+ }
511
+ /**
512
+ * Request parameters for getProductLanguages operation in ProductsApi.
513
+ * @export
514
+ * @interface ProductsApiGetProductLanguagesRequest
515
+ */
516
+ export interface ProductsApiGetProductLanguagesRequest {
517
+ /**
518
+ *
519
+ * @type {string}
520
+ * @memberof ProductsApiGetProductLanguages
521
+ */
522
+ readonly productCode: string;
523
+ /**
524
+ * Bearer Token
525
+ * @type {string}
526
+ * @memberof ProductsApiGetProductLanguages
527
+ */
528
+ readonly authorization?: string;
446
529
  }
447
530
  /**
448
531
  * Request parameters for listProducts operation in ProductsApi.
@@ -569,6 +652,15 @@ export declare class ProductsApi extends BaseAPI {
569
652
  * @memberof ProductsApi
570
653
  */
571
654
  getProductFactors(requestParameters: ProductsApiGetProductFactorsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductFactorForVersionClass[], any, {}>>;
655
+ /**
656
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
657
+ * @summary Retrieve the product languages
658
+ * @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
659
+ * @param {*} [options] Override http request option.
660
+ * @throws {RequiredError}
661
+ * @memberof ProductsApi
662
+ */
663
+ getProductLanguages(requestParameters: ProductsApiGetProductLanguagesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductLanguagesResponseClass, any, {}>>;
572
664
  /**
573
665
  * 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.
574
666
  * @summary List products
@@ -304,10 +304,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
304
304
  * @summary List insured objects
305
305
  * @param {string} productCode
306
306
  * @param {string} [authorization] Bearer Token
307
+ * @param {string} [language]
308
+ * @param {number} [productVersionId]
307
309
  * @param {*} [options] Override http request option.
308
310
  * @throws {RequiredError}
309
311
  */
310
- getInsuredObjects: function (productCode, authorization, options) {
312
+ getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
311
313
  if (options === void 0) { options = {}; }
312
314
  return __awaiter(_this, void 0, void 0, function () {
313
315
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -333,6 +335,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
333
335
  // authentication bearer required
334
336
  // http bearer authentication required
335
337
  _a.sent();
338
+ if (language !== undefined) {
339
+ localVarQueryParameter['language'] = language;
340
+ }
341
+ if (productVersionId !== undefined) {
342
+ localVarQueryParameter['product_version_id'] = productVersionId;
343
+ }
336
344
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
337
345
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
338
346
  }
@@ -401,10 +409,12 @@ var ProductsApiAxiosParamCreator = function (configuration) {
401
409
  * @param {string} productCode
402
410
  * @param {string} allValues
403
411
  * @param {string} [authorization] Bearer Token
412
+ * @param {string} [language]
413
+ * @param {number} [productVersionId]
404
414
  * @param {*} [options] Override http request option.
405
415
  * @throws {RequiredError}
406
416
  */
407
- getProductFactors: function (productCode, allValues, authorization, options) {
417
+ getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
408
418
  if (options === void 0) { options = {}; }
409
419
  return __awaiter(_this, void 0, void 0, function () {
410
420
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -435,6 +445,60 @@ var ProductsApiAxiosParamCreator = function (configuration) {
435
445
  if (allValues !== undefined) {
436
446
  localVarQueryParameter['all_values'] = allValues;
437
447
  }
448
+ if (language !== undefined) {
449
+ localVarQueryParameter['language'] = language;
450
+ }
451
+ if (productVersionId !== undefined) {
452
+ localVarQueryParameter['product_version_id'] = productVersionId;
453
+ }
454
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
455
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
456
+ }
457
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
458
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
459
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
460
+ return [2 /*return*/, {
461
+ url: (0, common_1.toPathString)(localVarUrlObj),
462
+ options: localVarRequestOptions,
463
+ }];
464
+ }
465
+ });
466
+ });
467
+ },
468
+ /**
469
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
470
+ * @summary Retrieve the product languages
471
+ * @param {string} productCode
472
+ * @param {string} [authorization] Bearer Token
473
+ * @param {*} [options] Override http request option.
474
+ * @throws {RequiredError}
475
+ */
476
+ getProductLanguages: function (productCode, authorization, options) {
477
+ if (options === void 0) { options = {}; }
478
+ return __awaiter(_this, void 0, void 0, function () {
479
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
480
+ return __generator(this, function (_a) {
481
+ switch (_a.label) {
482
+ case 0:
483
+ // verify required parameter 'productCode' is not null or undefined
484
+ (0, common_1.assertParamExists)('getProductLanguages', 'productCode', productCode);
485
+ localVarPath = "/publicapi/v1/products/{product_code}/languages"
486
+ .replace("{".concat("product_code", "}"), encodeURIComponent(String(productCode)));
487
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
488
+ if (configuration) {
489
+ baseOptions = configuration.baseOptions;
490
+ baseAccessToken = configuration.accessToken;
491
+ }
492
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
493
+ localVarHeaderParameter = {};
494
+ localVarQueryParameter = {};
495
+ // authentication bearer required
496
+ // http bearer authentication required
497
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
498
+ case 1:
499
+ // authentication bearer required
500
+ // http bearer authentication required
501
+ _a.sent();
438
502
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
439
503
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
440
504
  }
@@ -623,15 +687,17 @@ var ProductsApiFp = function (configuration) {
623
687
  * @summary List insured objects
624
688
  * @param {string} productCode
625
689
  * @param {string} [authorization] Bearer Token
690
+ * @param {string} [language]
691
+ * @param {number} [productVersionId]
626
692
  * @param {*} [options] Override http request option.
627
693
  * @throws {RequiredError}
628
694
  */
629
- getInsuredObjects: function (productCode, authorization, options) {
695
+ getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
630
696
  return __awaiter(this, void 0, void 0, function () {
631
697
  var localVarAxiosArgs;
632
698
  return __generator(this, function (_a) {
633
699
  switch (_a.label) {
634
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, options)];
700
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInsuredObjects(productCode, authorization, language, productVersionId, options)];
635
701
  case 1:
636
702
  localVarAxiosArgs = _a.sent();
637
703
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -666,15 +732,38 @@ var ProductsApiFp = function (configuration) {
666
732
  * @param {string} productCode
667
733
  * @param {string} allValues
668
734
  * @param {string} [authorization] Bearer Token
735
+ * @param {string} [language]
736
+ * @param {number} [productVersionId]
669
737
  * @param {*} [options] Override http request option.
670
738
  * @throws {RequiredError}
671
739
  */
672
- getProductFactors: function (productCode, allValues, authorization, options) {
740
+ getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
673
741
  return __awaiter(this, void 0, void 0, function () {
674
742
  var localVarAxiosArgs;
675
743
  return __generator(this, function (_a) {
676
744
  switch (_a.label) {
677
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, options)];
745
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductFactors(productCode, allValues, authorization, language, productVersionId, options)];
746
+ case 1:
747
+ localVarAxiosArgs = _a.sent();
748
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
749
+ }
750
+ });
751
+ });
752
+ },
753
+ /**
754
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
755
+ * @summary Retrieve the product languages
756
+ * @param {string} productCode
757
+ * @param {string} [authorization] Bearer Token
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ */
761
+ getProductLanguages: function (productCode, authorization, options) {
762
+ return __awaiter(this, void 0, void 0, function () {
763
+ var localVarAxiosArgs;
764
+ return __generator(this, function (_a) {
765
+ switch (_a.label) {
766
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getProductLanguages(productCode, authorization, options)];
678
767
  case 1:
679
768
  localVarAxiosArgs = _a.sent();
680
769
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -771,11 +860,13 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
771
860
  * @summary List insured objects
772
861
  * @param {string} productCode
773
862
  * @param {string} [authorization] Bearer Token
863
+ * @param {string} [language]
864
+ * @param {number} [productVersionId]
774
865
  * @param {*} [options] Override http request option.
775
866
  * @throws {RequiredError}
776
867
  */
777
- getInsuredObjects: function (productCode, authorization, options) {
778
- return localVarFp.getInsuredObjects(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
868
+ getInsuredObjects: function (productCode, authorization, language, productVersionId, options) {
869
+ return localVarFp.getInsuredObjects(productCode, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
779
870
  },
780
871
  /**
781
872
  * This will generate a custom css for booking funnel, based on product.
@@ -794,11 +885,24 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
794
885
  * @param {string} productCode
795
886
  * @param {string} allValues
796
887
  * @param {string} [authorization] Bearer Token
888
+ * @param {string} [language]
889
+ * @param {number} [productVersionId]
797
890
  * @param {*} [options] Override http request option.
798
891
  * @throws {RequiredError}
799
892
  */
800
- getProductFactors: function (productCode, allValues, authorization, options) {
801
- return localVarFp.getProductFactors(productCode, allValues, authorization, options).then(function (request) { return request(axios, basePath); });
893
+ getProductFactors: function (productCode, allValues, authorization, language, productVersionId, options) {
894
+ return localVarFp.getProductFactors(productCode, allValues, authorization, language, productVersionId, options).then(function (request) { return request(axios, basePath); });
895
+ },
896
+ /**
897
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
898
+ * @summary Retrieve the product languages
899
+ * @param {string} productCode
900
+ * @param {string} [authorization] Bearer Token
901
+ * @param {*} [options] Override http request option.
902
+ * @throws {RequiredError}
903
+ */
904
+ getProductLanguages: function (productCode, authorization, options) {
905
+ return localVarFp.getProductLanguages(productCode, authorization, options).then(function (request) { return request(axios, basePath); });
802
906
  },
803
907
  /**
804
908
  * 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.
@@ -889,7 +993,7 @@ var ProductsApi = /** @class */ (function (_super) {
889
993
  */
890
994
  ProductsApi.prototype.getInsuredObjects = function (requestParameters, options) {
891
995
  var _this = this;
892
- return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
996
+ return (0, exports.ProductsApiFp)(this.configuration).getInsuredObjects(requestParameters.productCode, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
893
997
  };
894
998
  /**
895
999
  * This will generate a custom css for booking funnel, based on product.
@@ -913,7 +1017,19 @@ var ProductsApi = /** @class */ (function (_super) {
913
1017
  */
914
1018
  ProductsApi.prototype.getProductFactors = function (requestParameters, options) {
915
1019
  var _this = this;
916
- return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1020
+ return (0, exports.ProductsApiFp)(this.configuration).getProductFactors(requestParameters.productCode, requestParameters.allValues, requestParameters.authorization, requestParameters.language, requestParameters.productVersionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
1021
+ };
1022
+ /**
1023
+ * This returns the languages a product can be shown in: its default language, followed by every additional language that has been activated.
1024
+ * @summary Retrieve the product languages
1025
+ * @param {ProductsApiGetProductLanguagesRequest} requestParameters Request parameters.
1026
+ * @param {*} [options] Override http request option.
1027
+ * @throws {RequiredError}
1028
+ * @memberof ProductsApi
1029
+ */
1030
+ ProductsApi.prototype.getProductLanguages = function (requestParameters, options) {
1031
+ var _this = this;
1032
+ return (0, exports.ProductsApiFp)(this.configuration).getProductLanguages(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
917
1033
  };
918
1034
  /**
919
1035
  * 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.
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Emil PublicAPI
3
+ * The Emil Public API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface GetProductLanguagesResponseClass
16
+ */
17
+ export interface GetProductLanguagesResponseClass {
18
+ /**
19
+ * The language the product itself is written in.
20
+ * @type {string}
21
+ * @memberof GetProductLanguagesResponseClass
22
+ */
23
+ 'defaultLanguage': string;
24
+ /**
25
+ * Languages the product can be shown in: its default language, followed by every additional language that has been activated.
26
+ * @type {Array<string>}
27
+ * @memberof GetProductLanguagesResponseClass
28
+ */
29
+ 'languages': Array<string>;
30
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Emil PublicAPI
6
+ * The Emil Public API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -51,6 +51,7 @@ export * from './get-lead-response-class';
51
51
  export * from './get-product-config-tariffs-response-class';
52
52
  export * from './get-product-document-download-url-request-rest-dto';
53
53
  export * from './get-product-document-download-url-response-class';
54
+ export * from './get-product-languages-response-class';
54
55
  export * from './get-public-psp-settings-response-class';
55
56
  export * from './initiate-adyen-payment-setup-request-dto';
56
57
  export * from './initiate-adyen-payment-setup-response-class';
@@ -67,6 +67,7 @@ __exportStar(require("./get-lead-response-class"), exports);
67
67
  __exportStar(require("./get-product-config-tariffs-response-class"), exports);
68
68
  __exportStar(require("./get-product-document-download-url-request-rest-dto"), exports);
69
69
  __exportStar(require("./get-product-document-download-url-response-class"), exports);
70
+ __exportStar(require("./get-product-languages-response-class"), exports);
70
71
  __exportStar(require("./get-public-psp-settings-response-class"), exports);
71
72
  __exportStar(require("./initiate-adyen-payment-setup-request-dto"), exports);
72
73
  __exportStar(require("./initiate-adyen-payment-setup-response-class"), exports);
@@ -39,6 +39,24 @@ export interface ProductFieldClass {
39
39
  * @memberof ProductFieldClass
40
40
  */
41
41
  'label': string;
42
+ /**
43
+ * Label shown for this field on the booking funnel.
44
+ * @type {string}
45
+ * @memberof ProductFieldClass
46
+ */
47
+ 'bfLabel'?: string;
48
+ /**
49
+ * Description shown under this field on the booking funnel.
50
+ * @type {string}
51
+ * @memberof ProductFieldClass
52
+ */
53
+ 'bfDescription'?: string;
54
+ /**
55
+ * Tooltip shown next to this field on the booking funnel.
56
+ * @type {string}
57
+ * @memberof ProductFieldClass
58
+ */
59
+ 'bfTooltip'?: string;
42
60
  /**
43
61
  * Product field type.
44
62
  * @type {string}
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface GetProductLanguagesResponseClass
21
+ */
22
+ export interface GetProductLanguagesResponseClass {
23
+ /**
24
+ * The language the product itself is written in.
25
+ * @type {string}
26
+ * @memberof GetProductLanguagesResponseClass
27
+ */
28
+ 'defaultLanguage': string;
29
+ /**
30
+ * Languages the product can be shown in: its default language, followed by every additional language that has been activated.
31
+ * @type {Array<string>}
32
+ * @memberof GetProductLanguagesResponseClass
33
+ */
34
+ 'languages': Array<string>;
35
+ }
36
+
package/models/index.ts CHANGED
@@ -51,6 +51,7 @@ export * from './get-lead-response-class';
51
51
  export * from './get-product-config-tariffs-response-class';
52
52
  export * from './get-product-document-download-url-request-rest-dto';
53
53
  export * from './get-product-document-download-url-response-class';
54
+ export * from './get-product-languages-response-class';
54
55
  export * from './get-public-psp-settings-response-class';
55
56
  export * from './initiate-adyen-payment-setup-request-dto';
56
57
  export * from './initiate-adyen-payment-setup-response-class';
@@ -44,6 +44,24 @@ export interface ProductFieldClass {
44
44
  * @memberof ProductFieldClass
45
45
  */
46
46
  'label': string;
47
+ /**
48
+ * Label shown for this field on the booking funnel.
49
+ * @type {string}
50
+ * @memberof ProductFieldClass
51
+ */
52
+ 'bfLabel'?: string;
53
+ /**
54
+ * Description shown under this field on the booking funnel.
55
+ * @type {string}
56
+ * @memberof ProductFieldClass
57
+ */
58
+ 'bfDescription'?: string;
59
+ /**
60
+ * Tooltip shown next to this field on the booking funnel.
61
+ * @type {string}
62
+ * @memberof ProductFieldClass
63
+ */
64
+ 'bfTooltip'?: string;
47
65
  /**
48
66
  * Product field type.
49
67
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/public-api-sdk",
3
- "version": "1.39.1-beta.9",
3
+ "version": "1.40.1-beta.0",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [