@emilgroup/customer-sdk-node 1.41.0 → 1.44.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.
Files changed (55) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +2 -2
  3. package/api/claims-api.ts +28 -28
  4. package/api/customers-api.ts +28 -28
  5. package/api/documents-api.ts +51 -34
  6. package/api/invoices-api.ts +28 -28
  7. package/api/leads-api.ts +62 -62
  8. package/api/policies-api.ts +28 -28
  9. package/api/products-api.ts +28 -28
  10. package/base.ts +1 -0
  11. package/dist/api/claims-api.d.ts +20 -20
  12. package/dist/api/claims-api.js +18 -18
  13. package/dist/api/customers-api.d.ts +20 -20
  14. package/dist/api/customers-api.js +18 -18
  15. package/dist/api/documents-api.d.ts +33 -23
  16. package/dist/api/documents-api.js +31 -24
  17. package/dist/api/invoices-api.d.ts +20 -20
  18. package/dist/api/invoices-api.js +18 -18
  19. package/dist/api/leads-api.d.ts +40 -40
  20. package/dist/api/leads-api.js +48 -48
  21. package/dist/api/policies-api.d.ts +20 -20
  22. package/dist/api/policies-api.js +18 -18
  23. package/dist/api/products-api.d.ts +20 -20
  24. package/dist/api/products-api.js +18 -18
  25. package/dist/base.d.ts +1 -0
  26. package/dist/base.js +1 -0
  27. package/dist/models/account-class.d.ts +1 -1
  28. package/dist/models/account-class.js +1 -1
  29. package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +19 -0
  30. package/dist/models/create-account-request-dto.d.ts +2 -8
  31. package/dist/models/create-account-request-dto.js +1 -1
  32. package/dist/models/customer-product-class.d.ts +2 -2
  33. package/dist/models/index.d.ts +1 -0
  34. package/dist/models/index.js +1 -0
  35. package/dist/models/inline-response200.d.ts +6 -6
  36. package/dist/models/inline-response503.d.ts +6 -6
  37. package/dist/models/link-lead-partner-request-dto.d.ts +16 -4
  38. package/dist/models/policy-object-dto.d.ts +2 -2
  39. package/dist/models/policy-premium-class.d.ts +2 -2
  40. package/dist/models/update-lead-request-dto.d.ts +1 -1
  41. package/dist/models/upload-account-documents-request-dto.d.ts +46 -0
  42. package/dist/models/upload-account-documents-request-dto.js +19 -0
  43. package/models/account-class.ts +1 -1
  44. package/models/complete-stripe-payment-setup-request-dto.ts +19 -0
  45. package/models/create-account-request-dto.ts +2 -8
  46. package/models/customer-product-class.ts +2 -2
  47. package/models/index.ts +1 -0
  48. package/models/inline-response200.ts +6 -6
  49. package/models/inline-response503.ts +6 -6
  50. package/models/link-lead-partner-request-dto.ts +16 -4
  51. package/models/policy-object-dto.ts +2 -2
  52. package/models/policy-premium-class.ts +2 -2
  53. package/models/update-lead-request-dto.ts +1 -1
  54. package/models/upload-account-documents-request-dto.ts +55 -0
  55. package/package.json +1 -1
@@ -33,18 +33,18 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
33
33
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
34
34
  * @summary List available products
35
35
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
36
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
36
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
37
37
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
38
38
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
39
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
40
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
39
+ * @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
41
40
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
42
41
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
42
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
43
43
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
44
44
  * @param {*} [options] Override http request option.
45
45
  * @throws {RequiredError}
46
46
  */
47
- listProducts: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
+ listProducts: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
48
48
  };
49
49
  /**
50
50
  * ProductsApi - functional programming interface
@@ -65,18 +65,18 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
65
65
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
66
66
  * @summary List available products
67
67
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
68
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
68
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
69
69
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
70
70
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
71
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
72
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
71
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
73
72
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
74
73
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
74
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
75
75
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
76
76
  * @param {*} [options] Override http request option.
77
77
  * @throws {RequiredError}
78
78
  */
79
- listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>>;
79
+ listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>>;
80
80
  };
81
81
  /**
82
82
  * ProductsApi - factory interface
@@ -97,18 +97,18 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
97
97
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
98
98
  * @summary List available products
99
99
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
100
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
100
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
101
101
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
102
102
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
103
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
104
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
103
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
105
104
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
106
105
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
106
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
107
107
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
108
108
  * @param {*} [options] Override http request option.
109
109
  * @throws {RequiredError}
110
110
  */
111
- listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, filters?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
111
+ listProducts(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, authorization?: string, options?: any): AxiosPromise<ListProductsResponseClass>;
112
112
  };
113
113
  /**
114
114
  * Request parameters for getProduct operation in ProductsApi.
@@ -148,7 +148,7 @@ export interface ProductsApiListProductsRequest {
148
148
  */
149
149
  readonly customerCode: string;
150
150
  /**
151
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
151
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
152
152
  * @type {any}
153
153
  * @memberof ProductsApiListProducts
154
154
  */
@@ -166,13 +166,7 @@ export interface ProductsApiListProductsRequest {
166
166
  */
167
167
  readonly filter?: any;
168
168
  /**
169
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
170
- * @type {any}
171
- * @memberof ProductsApiListProducts
172
- */
173
- readonly filters?: any;
174
- /**
175
- * Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
169
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
176
170
  * @type {any}
177
171
  * @memberof ProductsApiListProducts
178
172
  */
@@ -189,6 +183,12 @@ export interface ProductsApiListProductsRequest {
189
183
  * @memberof ProductsApiListProducts
190
184
  */
191
185
  readonly expand?: any;
186
+ /**
187
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
188
+ * @type {any}
189
+ * @memberof ProductsApiListProducts
190
+ */
191
+ readonly filters?: any;
192
192
  /**
193
193
  * Bearer Token: provided by the login endpoint under the name accessToken.
194
194
  * @type {string}
@@ -142,18 +142,18 @@ var ProductsApiAxiosParamCreator = function (configuration) {
142
142
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
143
143
  * @summary List available products
144
144
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
145
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
145
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
146
146
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
147
147
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
148
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
149
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
148
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
150
149
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
151
150
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
151
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
155
155
  */
156
- listProducts: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
156
+ listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
157
157
  if (options === void 0) { options = {}; }
158
158
  return __awaiter(_this, void 0, void 0, function () {
159
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -179,9 +179,6 @@ var ProductsApiAxiosParamCreator = function (configuration) {
179
179
  if (filter !== undefined) {
180
180
  localVarQueryParameter['filter'] = filter;
181
181
  }
182
- if (filters !== undefined) {
183
- localVarQueryParameter['filters'] = filters;
184
- }
185
182
  if (search !== undefined) {
186
183
  localVarQueryParameter['search'] = search;
187
184
  }
@@ -191,6 +188,9 @@ var ProductsApiAxiosParamCreator = function (configuration) {
191
188
  if (expand !== undefined) {
192
189
  localVarQueryParameter['expand'] = expand;
193
190
  }
191
+ if (filters !== undefined) {
192
+ localVarQueryParameter['filters'] = filters;
193
+ }
194
194
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
195
195
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
196
196
  }
@@ -240,23 +240,23 @@ var ProductsApiFp = function (configuration) {
240
240
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
241
241
  * @summary List available products
242
242
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
243
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
243
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
244
244
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
245
245
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
246
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
247
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
246
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
248
247
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
249
248
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
249
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
250
250
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
251
  * @param {*} [options] Override http request option.
252
252
  * @throws {RequiredError}
253
253
  */
254
- listProducts: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
254
+ listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
255
255
  return __awaiter(this, void 0, void 0, function () {
256
256
  var localVarAxiosArgs;
257
257
  return __generator(this, function (_a) {
258
258
  switch (_a.label) {
259
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options)];
259
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options)];
260
260
  case 1:
261
261
  localVarAxiosArgs = _a.sent();
262
262
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -290,19 +290,19 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
290
290
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
291
291
  * @summary List available products
292
292
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
293
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
293
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
294
294
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
295
295
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
296
- * @param {any} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
297
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
296
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
298
297
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
299
298
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
299
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
300
300
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
301
301
  * @param {*} [options] Override http request option.
302
302
  * @throws {RequiredError}
303
303
  */
304
- listProducts: function (customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options) {
305
- return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, filters, search, order, expand, authorization, options).then(function (request) { return request(axios, basePath); });
304
+ listProducts: function (customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options) {
305
+ return localVarFp.listProducts(customerCode, pageSize, pageToken, filter, search, order, expand, filters, authorization, options).then(function (request) { return request(axios, basePath); });
306
306
  },
307
307
  };
308
308
  };
@@ -340,7 +340,7 @@ var ProductsApi = /** @class */ (function (_super) {
340
340
  */
341
341
  ProductsApi.prototype.listProducts = function (requestParameters, options) {
342
342
  var _this = this;
343
- return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
343
+ return (0, exports.ProductsApiFp)(this.configuration).listProducts(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
344
344
  };
345
345
  return ProductsApi;
346
346
  }(base_1.BaseAPI));
package/dist/base.d.ts CHANGED
@@ -30,6 +30,7 @@ export interface LoginClass {
30
30
  export declare enum Environment {
31
31
  Production = "https://apiv2.emil.de",
32
32
  Test = "https://apiv2-test.emil.de",
33
+ Staging = "https://apiv2-staging.emil.de",
33
34
  Development = "https://apiv2-dev.emil.de",
34
35
  ProductionZurich = "https://eu-central-2.apiv2.emil.de"
35
36
  }
package/dist/base.js CHANGED
@@ -129,6 +129,7 @@ var Environment;
129
129
  (function (Environment) {
130
130
  Environment["Production"] = "https://apiv2.emil.de";
131
131
  Environment["Test"] = "https://apiv2-test.emil.de";
132
+ Environment["Staging"] = "https://apiv2-staging.emil.de";
132
133
  Environment["Development"] = "https://apiv2-dev.emil.de";
133
134
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
134
135
  })(Environment = exports.Environment || (exports.Environment = {}));
@@ -159,7 +159,7 @@ export declare const AccountClassTitleEnum: {
159
159
  readonly Empty: "";
160
160
  readonly Dr: "Dr.";
161
161
  readonly DrMed: "Dr. med.";
162
- readonly ProfDrMed: "Prof. Dr. med.";
162
+ readonly Prof: "Prof.";
163
163
  };
164
164
  export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
165
165
  export declare const AccountClassTypeEnum: {
@@ -18,7 +18,7 @@ exports.AccountClassTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
- ProfDrMed: 'Prof. Dr. med.'
21
+ Prof: 'Prof.'
22
22
  };
23
23
  exports.AccountClassTypeEnum = {
24
24
  Person: 'person',
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { SepaDirectDto } from './sepa-direct-dto';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -57,4 +58,22 @@ export interface CompleteStripePaymentSetupRequestDto {
57
58
  * @memberof CompleteStripePaymentSetupRequestDto
58
59
  */
59
60
  'paymentMethodType'?: string;
61
+ /**
62
+ * The account\'s type.
63
+ * @type {string}
64
+ * @memberof CompleteStripePaymentSetupRequestDto
65
+ */
66
+ 'accountType'?: string;
67
+ /**
68
+ * The account\'s company name.
69
+ * @type {string}
70
+ * @memberof CompleteStripePaymentSetupRequestDto
71
+ */
72
+ 'companyName'?: string;
73
+ /**
74
+ *
75
+ * @type {SepaDirectDto}
76
+ * @memberof CompleteStripePaymentSetupRequestDto
77
+ */
78
+ 'sepaDetails'?: SepaDirectDto;
60
79
  }
@@ -70,7 +70,7 @@ export interface CreateAccountRequestDto {
70
70
  */
71
71
  'type'?: CreateAccountRequestDtoTypeEnum;
72
72
  /**
73
- * The account\'s holder date of birth (Required for account of type person).
73
+ * Account\'s birth date.
74
74
  * @type {string}
75
75
  * @memberof CreateAccountRequestDto
76
76
  */
@@ -105,18 +105,12 @@ export interface CreateAccountRequestDto {
105
105
  * @memberof CreateAccountRequestDto
106
106
  */
107
107
  'customFields'?: object;
108
- /**
109
- * Customer email.
110
- * @type {string}
111
- * @memberof CreateAccountRequestDto
112
- */
113
- 'email': string;
114
108
  }
115
109
  export declare const CreateAccountRequestDtoTitleEnum: {
116
110
  readonly Empty: "";
117
111
  readonly Dr: "Dr.";
118
112
  readonly DrMed: "Dr. med.";
119
- readonly ProfDrMed: "Prof. Dr. med.";
113
+ readonly Prof: "Prof.";
120
114
  };
121
115
  export type CreateAccountRequestDtoTitleEnum = typeof CreateAccountRequestDtoTitleEnum[keyof typeof CreateAccountRequestDtoTitleEnum];
122
116
  export declare const CreateAccountRequestDtoGenderEnum: {
@@ -18,7 +18,7 @@ exports.CreateAccountRequestDtoTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
- ProfDrMed: 'Prof. Dr. med.'
21
+ Prof: 'Prof.'
22
22
  };
23
23
  exports.CreateAccountRequestDtoGenderEnum = {
24
24
  Male: 'male',
@@ -40,13 +40,13 @@ export interface CustomerProductClass {
40
40
  */
41
41
  'contractDurationDays': number;
42
42
  /**
43
- * Date created
43
+ * Time at which the object was created.
44
44
  * @type {string}
45
45
  * @memberof CustomerProductClass
46
46
  */
47
47
  'createdAt': string;
48
48
  /**
49
- * Date updated
49
+ * Time at which the object was updated.
50
50
  * @type {string}
51
51
  * @memberof CustomerProductClass
52
52
  */
@@ -91,6 +91,7 @@ export * from './update-customer-request-dto';
91
91
  export * from './update-customer-response-class';
92
92
  export * from './update-lead-request-dto';
93
93
  export * from './update-lead-response-class';
94
+ export * from './upload-account-documents-request-dto';
94
95
  export * from './upload-customer-claim-documents-request-dto';
95
96
  export * from './upload-customer-policy-documents-request-dto';
96
97
  export * from './uploaded-document-dto';
@@ -107,6 +107,7 @@ __exportStar(require("./update-customer-request-dto"), exports);
107
107
  __exportStar(require("./update-customer-response-class"), exports);
108
108
  __exportStar(require("./update-lead-request-dto"), exports);
109
109
  __exportStar(require("./update-lead-response-class"), exports);
110
+ __exportStar(require("./upload-account-documents-request-dto"), exports);
110
111
  __exportStar(require("./upload-customer-claim-documents-request-dto"), exports);
111
112
  __exportStar(require("./upload-customer-policy-documents-request-dto"), exports);
112
113
  __exportStar(require("./uploaded-document-dto"), exports);
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -16,17 +16,29 @@
16
16
  */
17
17
  export interface LinkLeadPartnerRequestDto {
18
18
  /**
19
- * The code of the partner with which the lead will be linked.
19
+ * The code of the partner with which the lead will be linked. Either this field or \'partnerNumber\' must be passed (\'partnerNumber\' is preferred).
20
20
  * @type {string}
21
21
  * @memberof LinkLeadPartnerRequestDto
22
22
  */
23
- 'partnerCode': string;
23
+ 'partnerCode'?: string;
24
24
  /**
25
- * The code of role that the partner will have in the established link between the lead and the partner.
25
+ * The number of the partner with which the lead will be linked. Either this field or \'partnerCode\' must be passed (this is preferred).
26
26
  * @type {string}
27
27
  * @memberof LinkLeadPartnerRequestDto
28
28
  */
29
- 'partnerRoleCode': string;
29
+ 'partnerNumber'?: string;
30
+ /**
31
+ * The code of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleSlug\' must be passed (\'partnerRoleSlug\' is preferred).
32
+ * @type {string}
33
+ * @memberof LinkLeadPartnerRequestDto
34
+ */
35
+ 'partnerRoleCode'?: string;
36
+ /**
37
+ * The slug of role that the partner will have in the established link between the lead and the partner. Either this field or \'partnerRoleCode\' must be passed (this is preferred).
38
+ * @type {string}
39
+ * @memberof LinkLeadPartnerRequestDto
40
+ */
41
+ 'partnerRoleSlug'?: string;
30
42
  /**
31
43
  * The date of the start of linking with a partner.
32
44
  * @type {string}
@@ -23,10 +23,10 @@ export interface PolicyObjectDto {
23
23
  'insuredObjectId': number;
24
24
  /**
25
25
  * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
26
- * @type {object}
26
+ * @type {string}
27
27
  * @memberof PolicyObjectDto
28
28
  */
29
- 'insuredObjectName'?: object;
29
+ 'insuredObjectName'?: string;
30
30
  /**
31
31
  * Insured object data.
32
32
  * @type {object}
@@ -29,13 +29,13 @@ export interface PolicyPremiumClass {
29
29
  */
30
30
  'grandTotal': number;
31
31
  /**
32
- * Date created
32
+ * Time at which the object was created.
33
33
  * @type {string}
34
34
  * @memberof PolicyPremiumClass
35
35
  */
36
36
  'createdAt': string;
37
37
  /**
38
- * Date updated
38
+ * Time at which the object was updated.
39
39
  * @type {string}
40
40
  * @memberof PolicyPremiumClass
41
41
  */
@@ -43,7 +43,7 @@ export interface UpdateLeadRequestDto {
43
43
  */
44
44
  'paymentMethod': CreatePaymentMethodRequestDto;
45
45
  /**
46
- * Optional partner object contains necessary information to link a partner to the policy.
46
+ * Optional partner object contains necessary information to link a partner to the policy. The partner content will be validated if the \'validate\' flag is set to true.
47
47
  * @type {LinkLeadPartnerRequestDto}
48
48
  * @memberof UpdateLeadRequestDto
49
49
  */
@@ -0,0 +1,46 @@
1
+ /**
2
+ * EMIL CustomerService
3
+ * The EMIL CustomerService 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 UploadAccountDocumentsRequestDto
16
+ */
17
+ export interface UploadAccountDocumentsRequestDto {
18
+ /**
19
+ * Mime-Type of the file. Valid mime-types are: image/jpeg, image/png
20
+ * @type {string}
21
+ * @memberof UploadAccountDocumentsRequestDto
22
+ */
23
+ 'contentType': string;
24
+ /**
25
+ * Name of the file.
26
+ * @type {string}
27
+ * @memberof UploadAccountDocumentsRequestDto
28
+ */
29
+ 'fileName': string;
30
+ /**
31
+ * This is the document entity type. It describes what kind of document it is.
32
+ * @type {string}
33
+ * @memberof UploadAccountDocumentsRequestDto
34
+ */
35
+ 'entityType': UploadAccountDocumentsRequestDtoEntityTypeEnum;
36
+ /**
37
+ * Optional description for the document.
38
+ * @type {string}
39
+ * @memberof UploadAccountDocumentsRequestDto
40
+ */
41
+ 'description'?: string;
42
+ }
43
+ export declare const UploadAccountDocumentsRequestDtoEntityTypeEnum: {
44
+ readonly AccountAvatar: "AccountAvatar";
45
+ };
46
+ export type UploadAccountDocumentsRequestDtoEntityTypeEnum = typeof UploadAccountDocumentsRequestDtoEntityTypeEnum[keyof typeof UploadAccountDocumentsRequestDtoEntityTypeEnum];
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CustomerService
6
+ * The EMIL CustomerService 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.UploadAccountDocumentsRequestDtoEntityTypeEnum = void 0;
17
+ exports.UploadAccountDocumentsRequestDtoEntityTypeEnum = {
18
+ AccountAvatar: 'AccountAvatar'
19
+ };
@@ -165,7 +165,7 @@ export const AccountClassTitleEnum = {
165
165
  Empty: '',
166
166
  Dr: 'Dr.',
167
167
  DrMed: 'Dr. med.',
168
- ProfDrMed: 'Prof. Dr. med.'
168
+ Prof: 'Prof.'
169
169
  } as const;
170
170
 
171
171
  export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
@@ -13,6 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
+ import { SepaDirectDto } from './sepa-direct-dto';
16
17
 
17
18
  /**
18
19
  *
@@ -62,5 +63,23 @@ export interface CompleteStripePaymentSetupRequestDto {
62
63
  * @memberof CompleteStripePaymentSetupRequestDto
63
64
  */
64
65
  'paymentMethodType'?: string;
66
+ /**
67
+ * The account\'s type.
68
+ * @type {string}
69
+ * @memberof CompleteStripePaymentSetupRequestDto
70
+ */
71
+ 'accountType'?: string;
72
+ /**
73
+ * The account\'s company name.
74
+ * @type {string}
75
+ * @memberof CompleteStripePaymentSetupRequestDto
76
+ */
77
+ 'companyName'?: string;
78
+ /**
79
+ *
80
+ * @type {SepaDirectDto}
81
+ * @memberof CompleteStripePaymentSetupRequestDto
82
+ */
83
+ 'sepaDetails'?: SepaDirectDto;
65
84
  }
66
85