@emilgroup/public-api-sdk 1.38.1-beta.1 → 1.38.1-beta.11

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 (43) hide show
  1. package/.openapi-generator/FILES +5 -1
  2. package/README.md +2 -2
  3. package/api/address-completions-validations-api.ts +20 -6
  4. package/api/documents-api.ts +10 -8
  5. package/api/{default-api.ts → health-api.ts} +13 -13
  6. package/api/leads-api.ts +98 -10
  7. package/api/partners-api.ts +165 -0
  8. package/api/payments-setup-api.ts +113 -11
  9. package/api.ts +4 -2
  10. package/base.ts +1 -0
  11. package/dist/api/address-completions-validations-api.d.ts +12 -3
  12. package/dist/api/address-completions-validations-api.js +12 -6
  13. package/dist/api/documents-api.d.ts +9 -8
  14. package/dist/api/documents-api.js +3 -3
  15. package/dist/api/{default-api.d.ts → health-api.d.ts} +10 -10
  16. package/dist/api/{default-api.js → health-api.js} +22 -22
  17. package/dist/api/leads-api.d.ts +52 -6
  18. package/dist/api/leads-api.js +94 -7
  19. package/dist/api/partners-api.d.ts +97 -0
  20. package/dist/api/partners-api.js +224 -0
  21. package/dist/api/payments-setup-api.d.ts +62 -7
  22. package/dist/api/payments-setup-api.js +100 -7
  23. package/dist/api.d.ts +2 -1
  24. package/dist/api.js +2 -1
  25. package/dist/base.d.ts +2 -1
  26. package/dist/base.js +1 -0
  27. package/dist/models/deductible-class.d.ts +6 -0
  28. package/dist/models/get-product-document-download-url-request-rest-dto.d.ts +29 -0
  29. package/dist/models/get-product-document-download-url-request-rest-dto.js +20 -0
  30. package/dist/models/index.d.ts +3 -0
  31. package/dist/models/index.js +3 -0
  32. package/dist/models/tariff-category-summary-class.d.ts +0 -7
  33. package/dist/models/validate-partner-request-dto.d.ts +30 -0
  34. package/dist/models/validate-partner-request-dto.js +15 -0
  35. package/dist/models/validate-partner-response-class.d.ts +30 -0
  36. package/dist/models/validate-partner-response-class.js +15 -0
  37. package/models/deductible-class.ts +6 -0
  38. package/models/get-product-document-download-url-request-rest-dto.ts +38 -0
  39. package/models/index.ts +3 -0
  40. package/models/tariff-category-summary-class.ts +0 -7
  41. package/models/validate-partner-request-dto.ts +36 -0
  42. package/models/validate-partner-response-class.ts +36 -0
  43. package/package.json +1 -1
@@ -35,13 +35,22 @@ 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
38
47
  * @param {string} productSlug
39
48
  * @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.
40
49
  * @param {string} [authorization] Bearer Token
41
50
  * @param {*} [options] Override http request option.
42
51
  * @throws {RequiredError}
43
52
  */
44
- getPublicPSPConfig: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ getPublicPSPConfigForProduct: (productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
54
  /**
46
55
  * 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.
47
56
  * @summary Initiate a payment setup
@@ -71,13 +80,22 @@ export declare const PaymentsSetupApiFp: (configuration?: Configuration) => {
71
80
  /**
72
81
  * This will send the customer the public key to load the payment form and complete the payment setup.
73
82
  * @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
74
92
  * @param {string} productSlug
75
93
  * @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.
76
94
  * @param {string} [authorization] Bearer Token
77
95
  * @param {*} [options] Override http request option.
78
96
  * @throws {RequiredError}
79
97
  */
80
- getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
98
+ getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPublicPspSettingsResponseClass>>;
81
99
  /**
82
100
  * 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.
83
101
  * @summary Initiate a payment setup
@@ -107,13 +125,22 @@ export declare const PaymentsSetupApiFactory: (configuration?: Configuration, ba
107
125
  /**
108
126
  * This will send the customer the public key to load the payment form and complete the payment setup.
109
127
  * @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
110
137
  * @param {string} productSlug
111
138
  * @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.
112
139
  * @param {string} [authorization] Bearer Token
113
140
  * @param {*} [options] Override http request option.
114
141
  * @throws {RequiredError}
115
142
  */
116
- getPublicPSPConfig(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
143
+ getPublicPSPConfigForProduct(productSlug: string, idempotencyKey?: string, authorization?: string, options?: any): AxiosPromise<GetPublicPspSettingsResponseClass>;
117
144
  /**
118
145
  * 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.
119
146
  * @summary Initiate a payment setup
@@ -157,21 +184,40 @@ export interface PaymentsSetupApiCompletePaymentSetupRequest {
157
184
  */
158
185
  export interface PaymentsSetupApiGetPublicPSPConfigRequest {
159
186
  /**
160
- *
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
161
194
  * @type {string}
162
195
  * @memberof PaymentsSetupApiGetPublicPSPConfig
163
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
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
209
+ */
164
210
  readonly productSlug: string;
165
211
  /**
166
212
  * 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.
167
213
  * @type {string}
168
- * @memberof PaymentsSetupApiGetPublicPSPConfig
214
+ * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
169
215
  */
170
216
  readonly idempotencyKey?: string;
171
217
  /**
172
218
  * Bearer Token
173
219
  * @type {string}
174
- * @memberof PaymentsSetupApiGetPublicPSPConfig
220
+ * @memberof PaymentsSetupApiGetPublicPSPConfigForProduct
175
221
  */
176
222
  readonly authorization?: string;
177
223
  }
@@ -224,7 +270,16 @@ export declare class PaymentsSetupApi extends BaseAPI {
224
270
  * @throws {RequiredError}
225
271
  * @memberof PaymentsSetupApi
226
272
  */
227
- getPublicPSPConfig(requestParameters: PaymentsSetupApiGetPublicPSPConfigRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPublicPspSettingsResponseClass, any, {}>>;
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, {}>>;
228
283
  /**
229
284
  * 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.
230
285
  * @summary Initiate a payment setup
@@ -148,13 +148,61 @@ 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
151
199
  * @param {string} productSlug
152
200
  * @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.
153
201
  * @param {string} [authorization] Bearer Token
154
202
  * @param {*} [options] Override http request option.
155
203
  * @throws {RequiredError}
156
204
  */
157
- getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
205
+ getPublicPSPConfigForProduct: function (productSlug, idempotencyKey, authorization, options) {
158
206
  if (options === void 0) { options = {}; }
159
207
  return __awaiter(_this, void 0, void 0, function () {
160
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -162,7 +210,7 @@ var PaymentsSetupApiAxiosParamCreator = function (configuration) {
162
210
  switch (_a.label) {
163
211
  case 0:
164
212
  // verify required parameter 'productSlug' is not null or undefined
165
- (0, common_1.assertParamExists)('getPublicPSPConfig', 'productSlug', productSlug);
213
+ (0, common_1.assertParamExists)('getPublicPSPConfigForProduct', 'productSlug', productSlug);
166
214
  localVarPath = "/publicapi/v1/payment-setup/get-psp-config/{productSlug}"
167
215
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
168
216
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -285,18 +333,39 @@ var PaymentsSetupApiFp = function (configuration) {
285
333
  /**
286
334
  * This will send the customer the public key to load the payment form and complete the payment setup.
287
335
  * @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
288
357
  * @param {string} productSlug
289
358
  * @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.
290
359
  * @param {string} [authorization] Bearer Token
291
360
  * @param {*} [options] Override http request option.
292
361
  * @throws {RequiredError}
293
362
  */
294
- getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
363
+ getPublicPSPConfigForProduct: function (productSlug, idempotencyKey, authorization, options) {
295
364
  return __awaiter(this, void 0, void 0, function () {
296
365
  var localVarAxiosArgs;
297
366
  return __generator(this, function (_a) {
298
367
  switch (_a.label) {
299
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options)];
368
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options)];
300
369
  case 1:
301
370
  localVarAxiosArgs = _a.sent();
302
371
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -351,14 +420,25 @@ var PaymentsSetupApiFactory = function (configuration, basePath, axios) {
351
420
  /**
352
421
  * This will send the customer the public key to load the payment form and complete the payment setup.
353
422
  * @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
354
434
  * @param {string} productSlug
355
435
  * @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.
356
436
  * @param {string} [authorization] Bearer Token
357
437
  * @param {*} [options] Override http request option.
358
438
  * @throws {RequiredError}
359
439
  */
360
- getPublicPSPConfig: function (productSlug, idempotencyKey, authorization, options) {
361
- return localVarFp.getPublicPSPConfig(productSlug, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
440
+ getPublicPSPConfigForProduct: function (productSlug, idempotencyKey, authorization, options) {
441
+ return localVarFp.getPublicPSPConfigForProduct(productSlug, idempotencyKey, authorization, options).then(function (request) { return request(axios, basePath); });
362
442
  },
363
443
  /**
364
444
  * 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.
@@ -408,7 +488,20 @@ var PaymentsSetupApi = /** @class */ (function (_super) {
408
488
  */
409
489
  PaymentsSetupApi.prototype.getPublicPSPConfig = function (requestParameters, options) {
410
490
  var _this = this;
411
- return (0, exports.PaymentsSetupApiFp)(this.configuration).getPublicPSPConfig(requestParameters.productSlug, requestParameters.idempotencyKey, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
412
505
  };
413
506
  /**
414
507
  * 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,11 +11,12 @@
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';
15
14
  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';
19
20
  export * from './api/payments-setup-api';
20
21
  export * from './api/product-versions-api';
21
22
  export * from './api/products-api';
package/dist/api.js CHANGED
@@ -29,11 +29,12 @@ 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);
33
32
  __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);
37
38
  __exportStar(require("./api/payments-setup-api"), exports);
38
39
  __exportStar(require("./api/product-versions-api"), exports);
39
40
  __exportStar(require("./api/products-api"), exports);
package/dist/base.d.ts CHANGED
@@ -39,7 +39,8 @@ export declare enum Environment {
39
39
  Test = "https://apiv2-test.emil.de",
40
40
  Staging = "https://apiv2-staging.emil.de",
41
41
  Development = "https://apiv2-dev.emil.de",
42
- ProductionZurich = "https://eu-central-2.apiv2.emil.de"
42
+ ProductionZurich = "https://eu-central-2.apiv2.emil.de",
43
+ StagingZurich = "https://eu-central-2.apiv2-staging.emil.de"
43
44
  }
44
45
  export declare function resetRetry(): void;
45
46
  /**
package/dist/base.js CHANGED
@@ -102,6 +102,7 @@ var Environment;
102
102
  Environment["Staging"] = "https://apiv2-staging.emil.de";
103
103
  Environment["Development"] = "https://apiv2-dev.emil.de";
104
104
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
105
+ Environment["StagingZurich"] = "https://eu-central-2.apiv2-staging.emil.de";
105
106
  })(Environment = exports.Environment || (exports.Environment = {}));
106
107
  var _retry_count = 0;
107
108
  var _retry = null;
@@ -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";
@@ -0,0 +1,29 @@
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 GetProductDocumentDownloadUrlRequestRestDto
16
+ */
17
+ export interface GetProductDocumentDownloadUrlRequestRestDto {
18
+ /**
19
+ * Content disposition override. Default will be depending on the document type.
20
+ * @type {string}
21
+ * @memberof GetProductDocumentDownloadUrlRequestRestDto
22
+ */
23
+ 'contentDisposition'?: GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum;
24
+ }
25
+ export declare const GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum: {
26
+ readonly Attachment: "attachment";
27
+ readonly Inline: "inline";
28
+ };
29
+ export type GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum[keyof typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum];
@@ -0,0 +1,20 @@
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 });
16
+ exports.GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = void 0;
17
+ exports.GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = {
18
+ Attachment: 'attachment',
19
+ Inline: 'inline'
20
+ };
@@ -48,6 +48,7 @@ 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';
51
52
  export * from './get-product-document-download-url-response-class';
52
53
  export * from './get-public-psp-settings-response-class';
53
54
  export * from './initiate-adyen-payment-setup-request-dto';
@@ -114,3 +115,5 @@ export * from './update-lead-request-dto';
114
115
  export * from './update-lead-response-class';
115
116
  export * from './uploaded-document-dto';
116
117
  export * from './validate-address-response-class';
118
+ export * from './validate-partner-request-dto';
119
+ export * from './validate-partner-response-class';
@@ -64,6 +64,7 @@ __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);
67
68
  __exportStar(require("./get-product-document-download-url-response-class"), exports);
68
69
  __exportStar(require("./get-public-psp-settings-response-class"), exports);
69
70
  __exportStar(require("./initiate-adyen-payment-setup-request-dto"), exports);
@@ -130,3 +131,5 @@ __exportStar(require("./update-lead-request-dto"), exports);
130
131
  __exportStar(require("./update-lead-response-class"), exports);
131
132
  __exportStar(require("./uploaded-document-dto"), exports);
132
133
  __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
  }
@@ -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 ValidatePartnerRequestDto
16
+ */
17
+ export interface ValidatePartnerRequestDto {
18
+ /**
19
+ * Unique number assigned to the partner.
20
+ * @type {string}
21
+ * @memberof ValidatePartnerRequestDto
22
+ */
23
+ 'partnerNumber': string;
24
+ /**
25
+ * Dynamic key-value pairs matched against partner custom fields (top-level or one level deep). All provided fields must match — AND logic. If omitted or empty, validation passes without checking custom fields.
26
+ * @type {object}
27
+ * @memberof ValidatePartnerRequestDto
28
+ */
29
+ 'validationFields'?: object;
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 });
@@ -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 ValidatePartnerResponseClass
16
+ */
17
+ export interface ValidatePartnerResponseClass {
18
+ /**
19
+ * True when the partner was found and all provided validationFields matched. Also true when validationFields is absent or empty.
20
+ * @type {boolean}
21
+ * @memberof ValidatePartnerResponseClass
22
+ */
23
+ 'isValid': boolean;
24
+ /**
25
+ * Describes why validation failed. Possible values: \"Partner not found with partnerNumber: [partnerNumber]\" | \"Validation failed: field \\\"[name]\\\" was not found in partner data\" | \"Validation failed: value for field \\\"[name]\\\" does not match\". Only present when isValid is false.
26
+ * @type {string}
27
+ * @memberof ValidatePartnerResponseClass
28
+ */
29
+ 'errorMessage'?: 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,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 = {
@@ -0,0 +1,38 @@
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 GetProductDocumentDownloadUrlRequestRestDto
21
+ */
22
+ export interface GetProductDocumentDownloadUrlRequestRestDto {
23
+ /**
24
+ * Content disposition override. Default will be depending on the document type.
25
+ * @type {string}
26
+ * @memberof GetProductDocumentDownloadUrlRequestRestDto
27
+ */
28
+ 'contentDisposition'?: GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum;
29
+ }
30
+
31
+ export const GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = {
32
+ Attachment: 'attachment',
33
+ Inline: 'inline'
34
+ } as const;
35
+
36
+ export type GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum[keyof typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum];
37
+
38
+
package/models/index.ts CHANGED
@@ -48,6 +48,7 @@ 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';
51
52
  export * from './get-product-document-download-url-response-class';
52
53
  export * from './get-public-psp-settings-response-class';
53
54
  export * from './initiate-adyen-payment-setup-request-dto';
@@ -114,3 +115,5 @@ export * from './update-lead-request-dto';
114
115
  export * from './update-lead-response-class';
115
116
  export * from './uploaded-document-dto';
116
117
  export * from './validate-address-response-class';
118
+ export * from './validate-partner-request-dto';
119
+ export * from './validate-partner-response-class';