@emilgroup/customer-sdk-node 1.10.0 → 1.11.1

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 (41) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +58 -2
  3. package/api/claims-api.ts +142 -24
  4. package/api/payments-api.ts +20 -6
  5. package/api/policies-api.ts +4 -4
  6. package/api.ts +1 -0
  7. package/base.ts +1 -5
  8. package/dist/api/claims-api.d.ts +90 -15
  9. package/dist/api/claims-api.js +72 -24
  10. package/dist/api/payments-api.d.ts +12 -3
  11. package/dist/api/payments-api.js +12 -6
  12. package/dist/api/policies-api.d.ts +4 -4
  13. package/dist/api/policies-api.js +4 -4
  14. package/dist/api.d.ts +2 -1
  15. package/dist/api.js +1 -0
  16. package/dist/base.d.ts +1 -4
  17. package/dist/base.js +3 -7
  18. package/dist/models/account-class.d.ts +7 -2
  19. package/dist/models/account-class.js +5 -1
  20. package/dist/models/claim-class.d.ts +132 -0
  21. package/dist/models/claim-class.js +15 -0
  22. package/dist/models/create-customer-claim-response-class.d.ts +25 -0
  23. package/dist/models/create-customer-claim-response-class.js +15 -0
  24. package/dist/models/index.d.ts +4 -0
  25. package/dist/models/index.js +4 -0
  26. package/dist/models/list-customer-claims-response-class.d.ts +31 -0
  27. package/dist/models/list-customer-claims-response-class.js +15 -0
  28. package/dist/models/policy-class.d.ts +2 -2
  29. package/dist/models/update-account-request-dto.d.ts +17 -0
  30. package/dist/models/update-account-request-dto.js +5 -1
  31. package/dist/models/update-customer-claim-response-class.d.ts +25 -0
  32. package/dist/models/update-customer-claim-response-class.js +15 -0
  33. package/models/account-class.ts +8 -2
  34. package/models/claim-class.ts +138 -0
  35. package/models/create-customer-claim-response-class.ts +31 -0
  36. package/models/index.ts +4 -0
  37. package/models/list-customer-claims-response-class.ts +37 -0
  38. package/models/policy-class.ts +2 -2
  39. package/models/update-account-request-dto.ts +18 -0
  40. package/models/update-customer-claim-response-class.ts +31 -0
  41. package/package.json +2 -2
@@ -26,10 +26,11 @@ export declare const PaymentsApiAxiosParamCreator: (configuration?: Configuratio
26
26
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
27
27
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
28
28
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
29
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
29
30
  * @param {*} [options] Override http request option.
30
31
  * @throws {RequiredError}
31
32
  */
32
- completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
+ completePaymentSetup: (customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
34
  /**
34
35
  * Request to initiate a payment change by customer.
35
36
  * @summary Request payment setup initiation by customer
@@ -51,10 +52,11 @@ export declare const PaymentsApiFp: (configuration?: Configuration) => {
51
52
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
52
53
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
53
54
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
55
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
54
56
  * @param {*} [options] Override http request option.
55
57
  * @throws {RequiredError}
56
58
  */
57
- completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
59
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CompletePaymentSetupResponseClass>>;
58
60
  /**
59
61
  * Request to initiate a payment change by customer.
60
62
  * @summary Request payment setup initiation by customer
@@ -76,10 +78,11 @@ export declare const PaymentsApiFactory: (configuration?: Configuration, basePat
76
78
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
77
79
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
78
80
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
81
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
79
82
  * @param {*} [options] Override http request option.
80
83
  * @throws {RequiredError}
81
84
  */
82
- completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
85
+ completePaymentSetup(customerCode: string, completePaymentSetupPspRequest: CompletePaymentSetupPspRequest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CompletePaymentSetupResponseClass>;
83
86
  /**
84
87
  * Request to initiate a payment change by customer.
85
88
  * @summary Request payment setup initiation by customer
@@ -114,6 +117,12 @@ export interface PaymentsApiCompletePaymentSetupRequest {
114
117
  * @memberof PaymentsApiCompletePaymentSetup
115
118
  */
116
119
  readonly authorization?: string;
120
+ /**
121
+ * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
122
+ * @type {string}
123
+ * @memberof PaymentsApiCompletePaymentSetup
124
+ */
125
+ readonly idempotencyKey?: string;
117
126
  }
118
127
  /**
119
128
  * Request parameters for initiatePaymentSetup operation in PaymentsApi.
@@ -102,10 +102,11 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
102
102
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
103
103
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
104
104
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
105
106
  * @param {*} [options] Override http request option.
106
107
  * @throws {RequiredError}
107
108
  */
108
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
109
+ completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options) {
109
110
  if (options === void 0) { options = {}; }
110
111
  return __awaiter(_this, void 0, void 0, function () {
111
112
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -127,6 +128,9 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
127
128
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
128
129
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
130
  }
131
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
133
+ }
130
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
131
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -193,15 +197,16 @@ var PaymentsApiFp = function (configuration) {
193
197
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
194
198
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
195
199
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
200
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
196
201
  * @param {*} [options] Override http request option.
197
202
  * @throws {RequiredError}
198
203
  */
199
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
204
+ completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options) {
200
205
  return __awaiter(this, void 0, void 0, function () {
201
206
  var localVarAxiosArgs;
202
207
  return __generator(this, function (_a) {
203
208
  switch (_a.label) {
204
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options)];
209
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options)];
205
210
  case 1:
206
211
  localVarAxiosArgs = _a.sent();
207
212
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -246,11 +251,12 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
246
251
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
247
252
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
248
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough. For more information about Idempotency, check out the documentation.
249
255
  * @param {*} [options] Override http request option.
250
256
  * @throws {RequiredError}
251
257
  */
252
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
253
- return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then(function (request) { return request(axios, basePath); });
258
+ completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options) {
259
+ return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
254
260
  },
255
261
  /**
256
262
  * Request to initiate a payment change by customer.
@@ -287,7 +293,7 @@ var PaymentsApi = /** @class */ (function (_super) {
287
293
  */
288
294
  PaymentsApi.prototype.completePaymentSetup = function (requestParameters, options) {
289
295
  var _this = this;
290
- return (0, exports.PaymentsApiFp)(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
296
+ return (0, exports.PaymentsApiFp)(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
291
297
  };
292
298
  /**
293
299
  * Request to initiate a payment change by customer.
@@ -28,7 +28,7 @@ import { WithdrawCustomerPolicyResponseClass } from '../models';
28
28
  export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
29
29
  /**
30
30
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
31
- * @summary Get current policy version details. Can be filtered by a specific date.
31
+ * @summary Get current version details
32
32
  * @param {string} policyCode The policy code.
33
33
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
34
34
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
@@ -113,7 +113,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
113
113
  export declare const PoliciesApiFp: (configuration?: Configuration) => {
114
114
  /**
115
115
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
116
- * @summary Get current policy version details. Can be filtered by a specific date.
116
+ * @summary Get current version details
117
117
  * @param {string} policyCode The policy code.
118
118
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
119
119
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
@@ -198,7 +198,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
198
198
  export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
199
199
  /**
200
200
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
201
- * @summary Get current policy version details. Can be filtered by a specific date.
201
+ * @summary Get current version details
202
202
  * @param {string} policyCode The policy code.
203
203
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
204
204
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
@@ -514,7 +514,7 @@ export interface PoliciesApiWithdrawCustomerPolicyRequest {
514
514
  export declare class PoliciesApi extends BaseAPI {
515
515
  /**
516
516
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
517
- * @summary Get current policy version details. Can be filtered by a specific date.
517
+ * @summary Get current version details
518
518
  * @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
519
519
  * @param {*} [options] Override http request option.
520
520
  * @throws {RequiredError}
@@ -98,7 +98,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
101
- * @summary Get current policy version details. Can be filtered by a specific date.
101
+ * @summary Get current version details
102
102
  * @param {string} policyCode The policy code.
103
103
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
104
104
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
@@ -441,7 +441,7 @@ var PoliciesApiFp = function (configuration) {
441
441
  return {
442
442
  /**
443
443
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
444
- * @summary Get current policy version details. Can be filtered by a specific date.
444
+ * @summary Get current version details
445
445
  * @param {string} policyCode The policy code.
446
446
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
447
447
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
@@ -614,7 +614,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
614
614
  return {
615
615
  /**
616
616
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
617
- * @summary Get current policy version details. Can be filtered by a specific date.
617
+ * @summary Get current version details
618
618
  * @param {string} policyCode The policy code.
619
619
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
620
620
  * @param {string} [timesliceDate] This date is used to filter data of the policy, to select the appropriate timeslice. If no date is specified, the system returns all the timeslices.
@@ -721,7 +721,7 @@ var PoliciesApi = /** @class */ (function (_super) {
721
721
  }
722
722
  /**
723
723
  * Get detailed policy that belongs to a customer; the details are filtered to return only the current version and the interval timeline that the provided date is included. If the date is not specified, the system will return the whole timeline.
724
- * @summary Get current policy version details. Can be filtered by a specific date.
724
+ * @summary Get current version details
725
725
  * @param {PoliciesApiGetCustomerPolicyDataByDateRequest} requestParameters Request parameters.
726
726
  * @param {*} [options] Override http request option.
727
727
  * @throws {RequiredError}
package/dist/api.d.ts CHANGED
@@ -20,5 +20,6 @@ export * from './api/policies-api';
20
20
  export * from './api/products-api';
21
21
  export declare enum Environment {
22
22
  Production = "https://apiv2.emil.de",
23
- Test = "https://apiv2-test.emil.de"
23
+ Test = "https://apiv2-test.emil.de",
24
+ Development = "https://apiv2-dev.emil.de"
24
25
  }
package/dist/api.js CHANGED
@@ -41,4 +41,5 @@ var Environment;
41
41
  (function (Environment) {
42
42
  Environment["Production"] = "https://apiv2.emil.de";
43
43
  Environment["Test"] = "https://apiv2-test.emil.de";
44
+ Environment["Development"] = "https://apiv2-dev.emil.de";
44
45
  })(Environment = exports.Environment || (exports.Environment = {}));
package/dist/base.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import { Configuration } from "./configuration";
13
+ import { Environment } from "./api";
13
14
  import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
14
15
  import { InitiateAuthResponseClass, RespondToAuthChallengeClass, RespondToAuthChallengeRequestDto } from "./models";
15
16
  export declare const BASE_PATH: string;
@@ -27,10 +28,6 @@ export interface LoginClass {
27
28
  accessToken: string;
28
29
  permissions: Array<string>;
29
30
  }
30
- export declare enum Environment {
31
- Production = "https://apiv2.emil.de",
32
- Test = "https://apiv2-test.emil.de"
33
- }
34
31
  export declare function resetRetry(): void;
35
32
  /**
36
33
  *
package/dist/base.js CHANGED
@@ -101,8 +101,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
101
101
  return (mod && mod.__esModule) ? mod : { "default": mod };
102
102
  };
103
103
  Object.defineProperty(exports, "__esModule", { value: true });
104
- exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
104
+ exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
105
105
  var configuration_1 = require("./configuration");
106
+ var api_1 = require("./api");
106
107
  // Some imports not used depending on template conditions
107
108
  // @ts-ignore
108
109
  var axios_1 = __importDefault(require("axios"));
@@ -125,11 +126,6 @@ exports.COLLECTION_FORMATS = {
125
126
  tsv: "\t",
126
127
  pipes: "|",
127
128
  };
128
- var Environment;
129
- (function (Environment) {
130
- Environment["Production"] = "https://apiv2.emil.de";
131
- Environment["Test"] = "https://apiv2-test.emil.de";
132
- })(Environment = exports.Environment || (exports.Environment = {}));
133
129
  var _retry_count = 0;
134
130
  var _retry = null;
135
131
  function resetRetry() {
@@ -161,7 +157,7 @@ var BaseAPI = /** @class */ (function () {
161
157
  this.attachInterceptor(axios);
162
158
  }
163
159
  BaseAPI.prototype.initialize = function (env) {
164
- if (env === void 0) { env = Environment.Production; }
160
+ if (env === void 0) { env = api_1.Environment.Production; }
165
161
  return __awaiter(this, void 0, void 0, function () {
166
162
  return __generator(this, function (_a) {
167
163
  switch (_a.label) {
@@ -105,13 +105,13 @@ export interface AccountClass {
105
105
  * @type {string}
106
106
  * @memberof AccountClass
107
107
  */
108
- 'type': string;
108
+ 'type': AccountClassTypeEnum;
109
109
  /**
110
110
  * The company name of account, required for account type org
111
111
  * @type {string}
112
112
  * @memberof AccountClass
113
113
  */
114
- 'companyName': string;
114
+ 'companyName'?: string;
115
115
  /**
116
116
  * The account\'s version.
117
117
  * @type {number}
@@ -156,3 +156,8 @@ export declare const AccountClassTitleEnum: {
156
156
  readonly ProfDrMed: "Prof. Dr. med.";
157
157
  };
158
158
  export type AccountClassTitleEnum = typeof AccountClassTitleEnum[keyof typeof AccountClassTitleEnum];
159
+ export declare const AccountClassTypeEnum: {
160
+ readonly Person: "person";
161
+ readonly Org: "org";
162
+ };
163
+ export type AccountClassTypeEnum = typeof AccountClassTypeEnum[keyof typeof AccountClassTypeEnum];
@@ -13,10 +13,14 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.AccountClassTitleEnum = void 0;
16
+ exports.AccountClassTypeEnum = exports.AccountClassTitleEnum = void 0;
17
17
  exports.AccountClassTitleEnum = {
18
18
  Empty: '',
19
19
  Dr: 'Dr.',
20
20
  DrMed: 'Dr. med.',
21
21
  ProfDrMed: 'Prof. Dr. med.'
22
22
  };
23
+ exports.AccountClassTypeEnum = {
24
+ Person: 'person',
25
+ Org: 'org'
26
+ };
@@ -0,0 +1,132 @@
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 ClaimClass
16
+ */
17
+ export interface ClaimClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof ClaimClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof ClaimClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * Title of the claim
32
+ * @type {string}
33
+ * @memberof ClaimClass
34
+ */
35
+ 'title': string;
36
+ /**
37
+ * Unique identifier of the account that the claim belongs to
38
+ * @type {string}
39
+ * @memberof ClaimClass
40
+ */
41
+ 'accountCode': string;
42
+ /**
43
+ * Field for the policy code that the claim belongs to
44
+ * @type {string}
45
+ * @memberof ClaimClass
46
+ */
47
+ 'policyCode': string;
48
+ /**
49
+ * The policy number that the claim belongs to
50
+ * @type {string}
51
+ * @memberof ClaimClass
52
+ */
53
+ 'policyNumber': string;
54
+ /**
55
+ * Unique identifier of the product that the claim is made against
56
+ * @type {number}
57
+ * @memberof ClaimClass
58
+ */
59
+ 'productId': number;
60
+ /**
61
+ * Unique identifier for the specific version of the product
62
+ * @type {number}
63
+ * @memberof ClaimClass
64
+ */
65
+ 'productVersionId': number;
66
+ /**
67
+ * The name of the product
68
+ * @type {string}
69
+ * @memberof ClaimClass
70
+ */
71
+ 'productName': string;
72
+ /**
73
+ * The insured object identifier that the claim is made for
74
+ * @type {number}
75
+ * @memberof ClaimClass
76
+ */
77
+ 'insuredObjectId': number;
78
+ /**
79
+ * claim description
80
+ * @type {string}
81
+ * @memberof ClaimClass
82
+ */
83
+ 'description': string;
84
+ /**
85
+ * A claim adjuster investigates insurance claims by interviewing the claimant and witnesses, consulting police and hospital records, and inspecting property damage to determine the extent of the insurance company\'s liability.
86
+ * @type {string}
87
+ * @memberof ClaimClass
88
+ */
89
+ 'adjuster': string;
90
+ /**
91
+ * A claim reporter is the person who is responsible for submitting this claim to the platform. A claim reporter is not necessarily the same as the policy holder.
92
+ * @type {string}
93
+ * @memberof ClaimClass
94
+ */
95
+ 'reporter': string;
96
+ /**
97
+ * Contact phone number
98
+ * @type {string}
99
+ * @memberof ClaimClass
100
+ */
101
+ 'contactPhone': string;
102
+ /**
103
+ * Contact email address
104
+ * @type {string}
105
+ * @memberof ClaimClass
106
+ */
107
+ 'contactEmail': string;
108
+ /**
109
+ * The date on which the actual damage happened
110
+ * @type {string}
111
+ * @memberof ClaimClass
112
+ */
113
+ 'damageDate': string;
114
+ /**
115
+ * The date on which the damage was reported
116
+ * @type {string}
117
+ * @memberof ClaimClass
118
+ */
119
+ 'notificationDate': string;
120
+ /**
121
+ * Time at which the object was created.
122
+ * @type {string}
123
+ * @memberof ClaimClass
124
+ */
125
+ 'createdAt': string;
126
+ /**
127
+ * Time at which the object was updated.
128
+ * @type {string}
129
+ * @memberof ClaimClass
130
+ */
131
+ 'updatedAt': string;
132
+ }
@@ -0,0 +1,15 @@
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 });
@@ -0,0 +1,25 @@
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
+ import { ClaimClass } from './claim-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCustomerClaimResponseClass
17
+ */
18
+ export interface CreateCustomerClaimResponseClass {
19
+ /**
20
+ * Claim
21
+ * @type {ClaimClass}
22
+ * @memberof CreateCustomerClaimResponseClass
23
+ */
24
+ 'claim': ClaimClass;
25
+ }
@@ -0,0 +1,15 @@
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 });
@@ -1,12 +1,14 @@
1
1
  export * from './account-class';
2
2
  export * from './account-policy-class';
3
3
  export * from './authentication-result-class';
4
+ export * from './claim-class';
4
5
  export * from './complete-braintree-payment-setup-request-dto';
5
6
  export * from './complete-payment-setup-psp-request';
6
7
  export * from './complete-payment-setup-response-class';
7
8
  export * from './complete-stripe-payment-setup-request-dto';
8
9
  export * from './create-account-request-dto';
9
10
  export * from './create-customer-claim-request-dto';
11
+ export * from './create-customer-claim-response-class';
10
12
  export * from './create-customer-request-dto';
11
13
  export * from './create-customer-response-class';
12
14
  export * from './create-presigned-post-response-class';
@@ -28,6 +30,7 @@ export * from './invite-by-customer-response-class';
28
30
  export * from './invite-by-tenant-response-class';
29
31
  export * from './invite-class';
30
32
  export * from './invoice-class';
33
+ export * from './list-customer-claims-response-class';
31
34
  export * from './list-documents-response-class';
32
35
  export * from './list-invoices-response-class';
33
36
  export * from './list-policies-response-class';
@@ -50,6 +53,7 @@ export * from './terminate-customer-policy-response-class';
50
53
  export * from './timeslice-class';
51
54
  export * from './update-account-request-dto';
52
55
  export * from './update-customer-claim-request-dto';
56
+ export * from './update-customer-claim-response-class';
53
57
  export * from './update-customer-request-dto';
54
58
  export * from './update-customer-response-class';
55
59
  export * from './upload-customer-claim-documents-request-dto';
@@ -17,12 +17,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./account-class"), exports);
18
18
  __exportStar(require("./account-policy-class"), exports);
19
19
  __exportStar(require("./authentication-result-class"), exports);
20
+ __exportStar(require("./claim-class"), exports);
20
21
  __exportStar(require("./complete-braintree-payment-setup-request-dto"), exports);
21
22
  __exportStar(require("./complete-payment-setup-psp-request"), exports);
22
23
  __exportStar(require("./complete-payment-setup-response-class"), exports);
23
24
  __exportStar(require("./complete-stripe-payment-setup-request-dto"), exports);
24
25
  __exportStar(require("./create-account-request-dto"), exports);
25
26
  __exportStar(require("./create-customer-claim-request-dto"), exports);
27
+ __exportStar(require("./create-customer-claim-response-class"), exports);
26
28
  __exportStar(require("./create-customer-request-dto"), exports);
27
29
  __exportStar(require("./create-customer-response-class"), exports);
28
30
  __exportStar(require("./create-presigned-post-response-class"), exports);
@@ -44,6 +46,7 @@ __exportStar(require("./invite-by-customer-response-class"), exports);
44
46
  __exportStar(require("./invite-by-tenant-response-class"), exports);
45
47
  __exportStar(require("./invite-class"), exports);
46
48
  __exportStar(require("./invoice-class"), exports);
49
+ __exportStar(require("./list-customer-claims-response-class"), exports);
47
50
  __exportStar(require("./list-documents-response-class"), exports);
48
51
  __exportStar(require("./list-invoices-response-class"), exports);
49
52
  __exportStar(require("./list-policies-response-class"), exports);
@@ -66,6 +69,7 @@ __exportStar(require("./terminate-customer-policy-response-class"), exports);
66
69
  __exportStar(require("./timeslice-class"), exports);
67
70
  __exportStar(require("./update-account-request-dto"), exports);
68
71
  __exportStar(require("./update-customer-claim-request-dto"), exports);
72
+ __exportStar(require("./update-customer-claim-response-class"), exports);
69
73
  __exportStar(require("./update-customer-request-dto"), exports);
70
74
  __exportStar(require("./update-customer-response-class"), exports);
71
75
  __exportStar(require("./upload-customer-claim-documents-request-dto"), exports);
@@ -0,0 +1,31 @@
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
+ import { ClaimClass } from './claim-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListCustomerClaimsResponseClass
17
+ */
18
+ export interface ListCustomerClaimsResponseClass {
19
+ /**
20
+ * Claims list items
21
+ * @type {Array<ClaimClass>}
22
+ * @memberof ListCustomerClaimsResponseClass
23
+ */
24
+ 'items': Array<ClaimClass>;
25
+ /**
26
+ * Next page token
27
+ * @type {string}
28
+ * @memberof ListCustomerClaimsResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ }
@@ -0,0 +1,15 @@
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 });
@@ -61,8 +61,8 @@ export interface PolicyClass {
61
61
  'updatedAt': string;
62
62
  /**
63
63
  * Policy status
64
- * @type {number}
64
+ * @type {string}
65
65
  * @memberof PolicyClass
66
66
  */
67
- 'status': number;
67
+ 'status': string;
68
68
  }
@@ -27,6 +27,12 @@ export interface UpdateAccountRequestDto {
27
27
  * @memberof UpdateAccountRequestDto
28
28
  */
29
29
  'lastName'?: string;
30
+ /**
31
+ * Optional field to enter the type of the account holder.
32
+ * @type {string}
33
+ * @memberof UpdateAccountRequestDto
34
+ */
35
+ 'type'?: UpdateAccountRequestDtoTypeEnum;
30
36
  /**
31
37
  * The account\'s email address. It is displayed alongside the account in the admin dashboard and can be useful for searching and tracking.
32
38
  * @type {string}
@@ -87,7 +93,18 @@ export interface UpdateAccountRequestDto {
87
93
  * @memberof UpdateAccountRequestDto
88
94
  */
89
95
  'customFields'?: object;
96
+ /**
97
+ * The account\'s holder company name (Required for account of type org).
98
+ * @type {string}
99
+ * @memberof UpdateAccountRequestDto
100
+ */
101
+ 'companyName'?: string;
90
102
  }
103
+ export declare const UpdateAccountRequestDtoTypeEnum: {
104
+ readonly Person: "person";
105
+ readonly Org: "org";
106
+ };
107
+ export type UpdateAccountRequestDtoTypeEnum = typeof UpdateAccountRequestDtoTypeEnum[keyof typeof UpdateAccountRequestDtoTypeEnum];
91
108
  export declare const UpdateAccountRequestDtoGenderEnum: {
92
109
  readonly Male: "male";
93
110
  readonly Female: "female";