@emilgroup/public-api-sdk 1.38.1-beta.8 → 1.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.openapi-generator/FILES +1 -5
  2. package/README.md +2 -2
  3. package/api/address-completions-validations-api.ts +6 -20
  4. package/api/{health-api.ts → default-api.ts} +13 -13
  5. package/api/documents-api.ts +8 -10
  6. package/api/leads-api.ts +10 -98
  7. package/api/payments-setup-api.ts +11 -113
  8. package/api.ts +2 -4
  9. package/dist/api/address-completions-validations-api.d.ts +3 -12
  10. package/dist/api/address-completions-validations-api.js +6 -12
  11. package/dist/api/{health-api.d.ts → default-api.d.ts} +10 -10
  12. package/dist/api/{health-api.js → default-api.js} +22 -22
  13. package/dist/api/documents-api.d.ts +8 -9
  14. package/dist/api/documents-api.js +3 -3
  15. package/dist/api/leads-api.d.ts +6 -52
  16. package/dist/api/leads-api.js +7 -94
  17. package/dist/api/payments-setup-api.d.ts +7 -62
  18. package/dist/api/payments-setup-api.js +7 -100
  19. package/dist/api.d.ts +1 -2
  20. package/dist/api.js +1 -2
  21. package/dist/models/deductible-class.d.ts +6 -0
  22. package/dist/models/index.d.ts +0 -3
  23. package/dist/models/index.js +0 -3
  24. package/dist/models/tariff-category-summary-class.d.ts +0 -7
  25. package/models/deductible-class.ts +6 -0
  26. package/models/index.ts +0 -3
  27. package/models/tariff-category-summary-class.ts +0 -7
  28. package/package.json +1 -1
  29. package/api/partners-api.ts +0 -165
  30. package/dist/api/partners-api.d.ts +0 -97
  31. package/dist/api/partners-api.js +0 -224
  32. package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +0 -29
  33. package/dist/models/get-product-document-download-url-request-rest-dto.js +0 -20
  34. package/dist/models/validate-partner-request-dto.d.ts +0 -30
  35. package/dist/models/validate-partner-request-dto.js +0 -15
  36. package/dist/models/validate-partner-response-class.d.ts +0 -30
  37. package/dist/models/validate-partner-response-class.js +0 -15
  38. package/models/get-product-document-download-url-request-rest-dto.ts +0 -38
  39. package/models/validate-partner-request-dto.ts +0 -36
  40. package/models/validate-partner-response-class.ts +0 -36
@@ -35,22 +35,13 @@ export declare const PaymentsSetupApiAxiosParamCreator: (configuration?: Configu
35
35
  /**
36
36
  * This will send the customer the public key to load the payment form and complete the payment setup.
37
37
  * @summary Get public key and psp
38
- * @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.
39
- * @param {string} [authorization] Bearer Token
40
- * @param {*} [options] Override http request option.
41
- * @throws {RequiredError}
42
- */
43
- getPublicPSPConfig: (idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
- /**
45
- * 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.
46
- * @summary Retrieve the psp-settings
47
38
  * @param {string} productSlug
48
39
  * @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.
49
40
  * @param {string} [authorization] Bearer Token
50
41
  * @param {*} [options] Override http request option.
51
42
  * @throws {RequiredError}
52
43
  */
53
- getPublicPSPConfigForProduct: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ getPublicPSPConfig: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
45
  /**
55
46
  * 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.
56
47
  * @summary Initiate a payment setup
@@ -80,22 +71,13 @@ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
80
71
  /**
81
72
  * This will send the customer the public key to load the payment form and complete the payment setup.
82
73
  * @summary Get public key and psp
83
- * @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.
84
- * @param {string} [authorization] Bearer Token
85
- * @param {*} [options] Override http request option.
86
- * @throws {RequiredError}
87
- */
88
- getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
89
- /**
90
- * 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.
91
- * @summary Retrieve the psp-settings
92
74
  * @param {string} productSlug
93
75
  * @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.
94
76
  * @param {string} [authorization] Bearer Token
95
77
  * @param {*} [options] Override http request option.
96
78
  * @throws {RequiredError}
97
79
  */
98
- getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
80
+ getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
99
81
  /**
100
82
  * 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.
101
83
  * @summary Initiate a payment setup
@@ -125,22 +107,13 @@ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, ba
125
107
  /**
126
108
  * This will send the customer the public key to load the payment form and complete the payment setup.
127
109
  * @summary Get public key and psp
128
- * @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.
129
- * @param {string} [authorization] Bearer Token
130
- * @param {*} [options] Override http request option.
131
- * @throws {RequiredError}
132
- */
133
- getPublicPSPConfig(idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
134
- /**
135
- * 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.
136
- * @summary Retrieve the psp-settings
137
110
  * @param {string} productSlug
138
111
  * @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.
139
112
  * @param {string} [authorization] Bearer Token
140
113
  * @param {*} [options] Override http request option.
141
114
  * @throws {RequiredError}
142
115
  */
143
- getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
116
+ getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
144
117
  /**
145
118
  * 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.
146
119
  * @summary Initiate a payment setup
@@ -183,41 +156,22 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
183
156
  * @interface PaymentsSetupApiGetPublicPSPConfigRequest
184
157
  */
185
158
  export interface PaymentsSetupApiGetPublicPSPConfigRequest {
186
- /**
187
- * 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.
188
- * @type {string}
189
- * @memberof PaymentsSetupApiGetPublicPSPConfig
190
- */
191
- readonly idempotencyKey?: string;
192
- /**
193
- * Bearer Token
194
- * @type {string}
195
- * @memberof PaymentsSetupApiGetPublicPSPConfig
196
- */
197
- readonly authorization?: string;
198
- }
199
- /**
200
- * Request parameters for getPublicPSPConfigForProduct operation in PaymentsSetupApi.
201
- * @export
202
- * @interface PaymentsSetupApiGetPublicPSPConfigForProductRequest
203
- */
204
- export interface PaymentsSetupApiGetPublicPSPConfigForProductRequest {
205
159
  /**
206
160
  *
207
161
  * @type {string}
208
- * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
162
+ * @memberof PaymentsSetupApiGetPublicPSPConfig
209
163
  */
210
164
  readonly productSlug: string;
211
165
  /**
212
166
  * 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.
213
167
  * @type {string}
214
- * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
168
+ * @memberof PaymentsSetupApiGetPublicPSPConfig
215
169
  */
216
170
  readonly idempotencyKey?: string;
217
171
  /**
218
172
  * Bearer Token
219
173
  * @type {string}
220
- * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
174
+ * @memberof PaymentsSetupApiGetPublicPSPConfig
221
175
  */
222
176
  readonly authorization?: string;
223
177
  }
@@ -270,16 +224,7 @@ export declare class PaymentsSetupApi extends BaseAPI {
270
224
  * @throws {RequiredError}
271
225
  * @memberof PaymentsSetupApi
272
226
  */
273
- getPublicPSPConfig(requestParameters?: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any, {}>>;
274
- /**
275
- * Retrieves the details of the psp-settings that was previously created. Supply the unique psp-settings code that was returned when you created it and Emil Api will return the corresponding psp-settings information.
276
- * @summary Retrieve the psp-settings
277
- * @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- * @memberof PaymentsSetupApi
281
- */
282
- getPublicPSPConfigForProduct(requestParameters: PaymentsSetupApiGetPublicPSPConfigForProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any, {}>>;
227
+ getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any, {}>>;
283
228
  /**
284
229
  * 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.
285
230
  * @summary Initiate a payment setup
@@ -148,61 +148,13 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
148
148
  /**
149
149
  * This will send the customer the public key to load the payment form and complete the payment setup.
150
150
  * @summary Get public key and psp
151
- * @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.
152
- * @param {string} [authorization] Bearer Token
153
- * @param {*} [options] Override http request option.
154
- * @throws {RequiredError}
155
- */
156
- getPublicPSPConfig: function (idempotencyKey, authorization, options) {
157
- if (options === void 0) { options = {}; }
158
- return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
- return __generator(this, function (_a) {
161
- switch (_a.label) {
162
- case 0:
163
- localVarPath = "/publicapi/v1/payment-setup/get-psp-config";
164
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
165
- if (configuration) {
166
- baseOptions = configuration.baseOptions;
167
- baseAccessToken = configuration.accessToken;
168
- }
169
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
170
- localVarHeaderParameter = {};
171
- localVarQueryParameter = {};
172
- // authentication bearer required
173
- // http bearer authentication required
174
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
175
- case 1:
176
- // authentication bearer required
177
- // http bearer authentication required
178
- _a.sent();
179
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
180
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
181
- }
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
- }
185
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
- return [2 /*return*/, {
189
- url: (0, common_1.toPathString)(localVarUrlObj),
190
- options: localVarRequestOptions,
191
- }];
192
- }
193
- });
194
- });
195
- },
196
- /**
197
- * 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.
198
- * @summary Retrieve the psp-settings
199
151
  * @param {string} productSlug
200
152
  * @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.
201
153
  * @param {string} [authorization] Bearer Token
202
154
  * @param {*} [options] Override http request option.
203
155
  * @throws {RequiredError}
204
156
  */
205
- getPublicPSPConfigForProduct: function (productSlug, idempotencyKey, authorization, options) {
157
+ getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
206
158
  if (options === void 0) { options = {}; }
207
159
  return __awaiter(_this, void 0, void 0, function () {
208
160
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -210,7 +162,7 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
210
162
  switch (_a.label) {
211
163
  case 0:
212
164
  // verify required parameter 'productSlug' is not null or undefined
213
- (0, common_1.assertParamExists)('getPublicPSPConfigForProduct', 'productSlug', productSlug);
165
+ (0, common_1.assertParamExists)('getPublicPSPConfig', 'productSlug', productSlug);
214
166
  localVarPath = "/publicapi/v1/payment-setup/get-psp-config/{productSlug}"
215
167
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
216
168
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -333,39 +285,18 @@ var PaymentsSetupApiFp = function (configuration) {
333
285
  /**
334
286
  * This will send the customer the public key to load the payment form and complete the payment setup.
335
287
  * @summary Get public key and psp
336
- * @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.
337
- * @param {string} [authorization] Bearer Token
338
- * @param {*} [options] Override http request option.
339
- * @throws {RequiredError}
340
- */
341
- getPublicPSPConfig: function (idempotencyKey, authorization, options) {
342
- return __awaiter(this, void 0, void 0, function () {
343
- var localVarAxiosArgs;
344
- return __generator(this, function (_a) {
345
- switch (_a.label) {
346
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(idempotencyKey, authorization, options)];
347
- case 1:
348
- localVarAxiosArgs = _a.sent();
349
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
350
- }
351
- });
352
- });
353
- },
354
- /**
355
- * 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.
356
- * @summary Retrieve the psp-settings
357
288
  * @param {string} productSlug
358
289
  * @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.
359
290
  * @param {string} [authorization] Bearer Token
360
291
  * @param {*} [options] Override http request option.
361
292
  * @throws {RequiredError}
362
293
  */
363
- getPublicPSPConfigForProduct: function (productSlug, idempotencyKey, authorization, options) {
294
+ getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
364
295
  return __awaiter(this, void 0, void 0, function () {
365
296
  var localVarAxiosArgs;
366
297
  return __generator(this, function (_a) {
367
298
  switch (_a.label) {
368
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options)];
299
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options)];
369
300
  case 1:
370
301
  localVarAxiosArgs = _a.sent();
371
302
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -420,25 +351,14 @@ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
420
351
  /**
421
352
  * This will send the customer the public key to load the payment form and complete the payment setup.
422
353
  * @summary Get public key and psp
423
- * @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.
424
- * @param {string} [authorization] Bearer Token
425
- * @param {*} [options] Override http request option.
426
- * @throws {RequiredError}
427
- */
428
- getPublicPSPConfig: function (idempotencyKey, authorization, options) {
429
- return localVarFp.getPublicPSPConfig(idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
430
- },
431
- /**
432
- * 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.
433
- * @summary Retrieve the psp-settings
434
354
  * @param {string} productSlug
435
355
  * @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.
436
356
  * @param {string} [authorization] Bearer Token
437
357
  * @param {*} [options] Override http request option.
438
358
  * @throws {RequiredError}
439
359
  */
440
- getPublicPSPConfigForProduct: function (productSlug, idempotencyKey, authorization, options) {
441
- return localVarFp.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
360
+ getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
361
+ return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
442
362
  },
443
363
  /**
444
364
  * 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.
@@ -488,20 +408,7 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
488
408
  */
489
409
  PaymentsSetupApi.prototype.getPublicPSPConfig = function (requestParameters, options) {
490
410
  var _this = this;
491
- if (requestParameters === void 0) { requestParameters = {}; }
492
- return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
493
- };
494
- /**
495
- * 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.
496
- * @summary Retrieve the psp-settings
497
- * @param {PaymentsSetupApiGetPublicPSPConfigForProductRequest} requestParameters Request parameters.
498
- * @param {*} [options] Override http request option.
499
- * @throws {RequiredError}
500
- * @memberof PaymentsSetupApi
501
- */
502
- PaymentsSetupApi.prototype.getPublicPSPConfigForProduct = function (requestParameters, options) {
503
- var _this = this;
504
- return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfigForProduct(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
411
+ return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
505
412
  };
506
413
  /**
507
414
  * 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.
package/dist/api.d.ts CHANGED
@@ -11,12 +11,11 @@
11
11
  */
12
12
  export * from './api/address-completions-validations-api';
13
13
  export * from './api/booking-funnels-api';
14
+ export * from './api/default-api';
14
15
  export * from './api/documents-api';
15
- export * from './api/health-api';
16
16
  export * from './api/leads-api';
17
17
  export * from './api/named-ranges-api';
18
18
  export * from './api/notifications-api';
19
- export * from './api/partners-api';
20
19
  export * from './api/payments-setup-api';
21
20
  export * from './api/product-versions-api';
22
21
  export * from './api/products-api';
package/dist/api.js CHANGED
@@ -29,12 +29,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/address-completions-validations-api"), exports);
31
31
  __exportStar(require("./api/booking-funnels-api"), exports);
32
+ __exportStar(require("./api/default-api"), exports);
32
33
  __exportStar(require("./api/documents-api"), exports);
33
- __exportStar(require("./api/health-api"), exports);
34
34
  __exportStar(require("./api/leads-api"), exports);
35
35
  __exportStar(require("./api/named-ranges-api"), exports);
36
36
  __exportStar(require("./api/notifications-api"), exports);
37
- __exportStar(require("./api/partners-api"), exports);
38
37
  __exportStar(require("./api/payments-setup-api"), exports);
39
38
  __exportStar(require("./api/product-versions-api"), exports);
40
39
  __exportStar(require("./api/products-api"), exports);
@@ -46,6 +46,12 @@ export interface DeductibleClass {
46
46
  * @memberof DeductibleClass
47
47
  */
48
48
  'options': Array<AmountWithLimitClass>;
49
+ /**
50
+ * Categories this deductible applies to
51
+ * @type {Array<string>}
52
+ * @memberof DeductibleClass
53
+ */
54
+ 'applicableCategoryKeys': Array<string>;
49
55
  }
50
56
  export declare const DeductibleClassTypeEnum: {
51
57
  readonly Fixed: "fixed";
@@ -48,7 +48,6 @@ export * from './get-booking-funnel-response-class';
48
48
  export * from './get-custom-css-response-class';
49
49
  export * from './get-lead-response-class';
50
50
  export * from './get-product-config-tariffs-response-class';
51
- export * from './get-product-document-download-url-request-rest-dto';
52
51
  export * from './get-product-document-download-url-response-class';
53
52
  export * from './get-public-psp-settings-response-class';
54
53
  export * from './initiate-adyen-payment-setup-request-dto';
@@ -115,5 +114,3 @@ export * from './update-lead-request-dto';
115
114
  export * from './update-lead-response-class';
116
115
  export * from './uploaded-document-dto';
117
116
  export * from './validate-address-response-class';
118
- export * from './validate-partner-request-dto';
119
- export * from './validate-partner-response-class';
@@ -64,7 +64,6 @@ __exportStar(require("./get-booking-funnel-response-class"), exports);
64
64
  __exportStar(require("./get-custom-css-response-class"), exports);
65
65
  __exportStar(require("./get-lead-response-class"), exports);
66
66
  __exportStar(require("./get-product-config-tariffs-response-class"), exports);
67
- __exportStar(require("./get-product-document-download-url-request-rest-dto"), exports);
68
67
  __exportStar(require("./get-product-document-download-url-response-class"), exports);
69
68
  __exportStar(require("./get-public-psp-settings-response-class"), exports);
70
69
  __exportStar(require("./initiate-adyen-payment-setup-request-dto"), exports);
@@ -131,5 +130,3 @@ __exportStar(require("./update-lead-request-dto"), exports);
131
130
  __exportStar(require("./update-lead-response-class"), exports);
132
131
  __exportStar(require("./uploaded-document-dto"), exports);
133
132
  __exportStar(require("./validate-address-response-class"), exports);
134
- __exportStar(require("./validate-partner-request-dto"), exports);
135
- __exportStar(require("./validate-partner-response-class"), exports);
@@ -11,7 +11,6 @@
11
11
  */
12
12
  import { CategoryCoverageSummaryClass } from './category-coverage-summary-class';
13
13
  import { CoverageTermClass } from './coverage-term-class';
14
- import { DeductibleClass } from './deductible-class';
15
14
  /**
16
15
  *
17
16
  * @export
@@ -48,10 +47,4 @@ export interface TariffCategorySummaryClass {
48
47
  * @memberof TariffCategorySummaryClass
49
48
  */
50
49
  'coverages': Array<CategoryCoverageSummaryClass>;
51
- /**
52
- * List of category deductibles
53
- * @type {Array<DeductibleClass>}
54
- * @memberof TariffCategorySummaryClass
55
- */
56
- 'deductibles': Array<DeductibleClass>;
57
50
  }
@@ -51,6 +51,12 @@ export interface DeductibleClass {
51
51
  * @memberof DeductibleClass
52
52
  */
53
53
  'options': Array<AmountWithLimitClass>;
54
+ /**
55
+ * Categories this deductible applies to
56
+ * @type {Array<string>}
57
+ * @memberof DeductibleClass
58
+ */
59
+ 'applicableCategoryKeys': Array<string>;
54
60
  }
55
61
 
56
62
  export const DeductibleClassTypeEnum = {
package/models/index.ts CHANGED
@@ -48,7 +48,6 @@ export * from './get-booking-funnel-response-class';
48
48
  export * from './get-custom-css-response-class';
49
49
  export * from './get-lead-response-class';
50
50
  export * from './get-product-config-tariffs-response-class';
51
- export * from './get-product-document-download-url-request-rest-dto';
52
51
  export * from './get-product-document-download-url-response-class';
53
52
  export * from './get-public-psp-settings-response-class';
54
53
  export * from './initiate-adyen-payment-setup-request-dto';
@@ -115,5 +114,3 @@ export * from './update-lead-request-dto';
115
114
  export * from './update-lead-response-class';
116
115
  export * from './uploaded-document-dto';
117
116
  export * from './validate-address-response-class';
118
- export * from './validate-partner-request-dto';
119
- export * from './validate-partner-response-class';
@@ -15,7 +15,6 @@
15
15
 
16
16
  import { CategoryCoverageSummaryClass } from './category-coverage-summary-class';
17
17
  import { CoverageTermClass } from './coverage-term-class';
18
- import { DeductibleClass } from './deductible-class';
19
18
 
20
19
  /**
21
20
  *
@@ -53,11 +52,5 @@ export interface TariffCategorySummaryClass {
53
52
  * @memberof TariffCategorySummaryClass
54
53
  */
55
54
  'coverages': Array<CategoryCoverageSummaryClass>;
56
- /**
57
- * List of category deductibles
58
- * @type {Array<DeductibleClass>}
59
- * @memberof TariffCategorySummaryClass
60
- */
61
- 'deductibles': Array<DeductibleClass>;
62
55
  }
63
56
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/public-api-sdk",
3
- "version": "1.38.1-beta.8",
3
+ "version": "1.39.0",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,165 +0,0 @@
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
- import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
- import { Configuration } from '../configuration';
18
- // Some imports not used depending on template conditions
19
- // @ts-ignore
20
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
- // @ts-ignore
22
- import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
- // @ts-ignore
24
- import { ValidatePartnerRequestDto } from '../models';
25
- // @ts-ignore
26
- import { ValidatePartnerResponseClass } from '../models';
27
- /**
28
- * PartnersApi - axios parameter creator
29
- * @export
30
- */
31
- export const PartnersApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
35
- * @summary Validate a partner
36
- * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
37
- * @param {string} [authorization] Bearer Token
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- validatePartner: async (validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'validatePartnerRequestDto' is not null or undefined
43
- assertParamExists('validatePartner', 'validatePartnerRequestDto', validatePartnerRequestDto)
44
- const localVarPath = `/publicapi/v1/partners/validate`;
45
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
- let baseOptions;
48
- let baseAccessToken;
49
- if (configuration) {
50
- baseOptions = configuration.baseOptions;
51
- baseAccessToken = configuration.accessToken;
52
- }
53
-
54
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
55
- const localVarHeaderParameter = {} as any;
56
- const localVarQueryParameter = {} as any;
57
-
58
- // authentication bearer required
59
- // http bearer authentication required
60
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
61
-
62
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
63
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
64
- }
65
-
66
-
67
-
68
- localVarHeaderParameter['Content-Type'] = 'application/json';
69
-
70
- setSearchParams(localVarUrlObj, localVarQueryParameter);
71
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
72
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
73
- localVarRequestOptions.data = serializeDataIfNeeded(validatePartnerRequestDto, localVarRequestOptions, configuration)
74
-
75
- return {
76
- url: toPathString(localVarUrlObj),
77
- options: localVarRequestOptions,
78
- };
79
- },
80
- }
81
- };
82
-
83
- /**
84
- * PartnersApi - functional programming interface
85
- * @export
86
- */
87
- export const PartnersApiFp = function(configuration?: Configuration) {
88
- const localVarAxiosParamCreator = PartnersApiAxiosParamCreator(configuration)
89
- return {
90
- /**
91
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
92
- * @summary Validate a partner
93
- * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
94
- * @param {string} [authorization] Bearer Token
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- */
98
- async validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ValidatePartnerResponseClass>> {
99
- const localVarAxiosArgs = await localVarAxiosParamCreator.validatePartner(validatePartnerRequestDto, authorization, options);
100
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
101
- },
102
- }
103
- };
104
-
105
- /**
106
- * PartnersApi - factory interface
107
- * @export
108
- */
109
- export const PartnersApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
110
- const localVarFp = PartnersApiFp(configuration)
111
- return {
112
- /**
113
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
114
- * @summary Validate a partner
115
- * @param {ValidatePartnerRequestDto} validatePartnerRequestDto
116
- * @param {string} [authorization] Bearer Token
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- validatePartner(validatePartnerRequestDto: ValidatePartnerRequestDto, authorization?: string, options?: any): AxiosPromise<ValidatePartnerResponseClass> {
121
- return localVarFp.validatePartner(validatePartnerRequestDto, authorization, options).then((request) => request(axios, basePath));
122
- },
123
- };
124
- };
125
-
126
- /**
127
- * Request parameters for validatePartner operation in PartnersApi.
128
- * @export
129
- * @interface PartnersApiValidatePartnerRequest
130
- */
131
- export interface PartnersApiValidatePartnerRequest {
132
- /**
133
- *
134
- * @type {ValidatePartnerRequestDto}
135
- * @memberof PartnersApiValidatePartner
136
- */
137
- readonly validatePartnerRequestDto: ValidatePartnerRequestDto
138
-
139
- /**
140
- * Bearer Token
141
- * @type {string}
142
- * @memberof PartnersApiValidatePartner
143
- */
144
- readonly authorization?: string
145
- }
146
-
147
- /**
148
- * PartnersApi - object-oriented interface
149
- * @export
150
- * @class PartnersApi
151
- * @extends {BaseAPI}
152
- */
153
- export class PartnersApi extends BaseAPI {
154
- /**
155
- * Validates a partner identity by partnerNumber and optional custom field values. All provided validationFields must match (AND logic). If validationFields is omitted the call succeeds as long as the partner exists. Never returns partner data — only isValid and an optional error message.
156
- * @summary Validate a partner
157
- * @param {PartnersApiValidatePartnerRequest} requestParameters Request parameters.
158
- * @param {*} [options] Override http request option.
159
- * @throws {RequiredError}
160
- * @memberof PartnersApi
161
- */
162
- public validatePartner(requestParameters: PartnersApiValidatePartnerRequest, options?: AxiosRequestConfig) {
163
- return PartnersApiFp(this.configuration).validatePartner(requestParameters.validatePartnerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
164
- }
165
- }