@emilgroup/customer-sdk-node 1.11.3 → 1.13.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 (46) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/authentication-api.ts +8 -8
  4. package/api/claims-api.ts +138 -12
  5. package/api/documents-api.ts +4 -4
  6. package/api/invites-api.ts +16 -14
  7. package/api/payments-api.ts +14 -28
  8. package/api/policies-api.ts +16 -16
  9. package/api/products-api.ts +4 -4
  10. package/base.ts +1 -1
  11. package/dist/api/authentication-api.d.ts +8 -8
  12. package/dist/api/authentication-api.js +8 -8
  13. package/dist/api/claims-api.d.ts +86 -12
  14. package/dist/api/claims-api.js +106 -12
  15. package/dist/api/documents-api.d.ts +4 -4
  16. package/dist/api/documents-api.js +4 -4
  17. package/dist/api/invites-api.d.ts +9 -8
  18. package/dist/api/invites-api.js +12 -12
  19. package/dist/api/payments-api.d.ts +11 -20
  20. package/dist/api/payments-api.js +14 -20
  21. package/dist/api/policies-api.d.ts +16 -16
  22. package/dist/api/policies-api.js +16 -16
  23. package/dist/api/products-api.d.ts +4 -4
  24. package/dist/api/products-api.js +4 -4
  25. package/dist/base.js +1 -1
  26. package/dist/models/currency-class.d.ts +48 -0
  27. package/dist/models/currency-class.js +15 -0
  28. package/dist/models/get-customer-claim-response-class.d.ts +25 -0
  29. package/dist/models/get-customer-claim-response-class.js +15 -0
  30. package/dist/models/index.d.ts +3 -0
  31. package/dist/models/index.js +3 -0
  32. package/dist/models/invite-by-tenant-request-dto.d.ts +24 -0
  33. package/dist/models/invite-by-tenant-request-dto.js +15 -0
  34. package/dist/models/invoice-class.d.ts +7 -0
  35. package/dist/models/policy-object-class.d.ts +18 -0
  36. package/dist/models/shared-customer-policy-object-request-dto.d.ts +7 -1
  37. package/dist/models/terminate-customer-policy-request-dto.d.ts +1 -1
  38. package/models/currency-class.ts +54 -0
  39. package/models/get-customer-claim-response-class.ts +31 -0
  40. package/models/index.ts +3 -0
  41. package/models/invite-by-tenant-request-dto.ts +30 -0
  42. package/models/invoice-class.ts +7 -0
  43. package/models/policy-object-class.ts +18 -0
  44. package/models/shared-customer-policy-object-request-dto.ts +7 -1
  45. package/models/terminate-customer-policy-request-dto.ts +1 -1
  46. package/package.json +1 -1
@@ -98,15 +98,14 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
98
98
  return {
99
99
  /**
100
100
  * Request to complete a payment change by customer.
101
- * @summary Request payment setup complete by customer
101
+ * @summary Request payment setup complete
102
102
  * @param {string} customerCode The customer code or \"me\" 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.
106
105
  * @param {*} [options] Override http request option.
107
106
  * @throws {RequiredError}
108
107
  */
109
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options) {
108
+ completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
110
109
  if (options === void 0) { options = {}; }
111
110
  return __awaiter(_this, void 0, void 0, function () {
112
111
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -128,9 +127,6 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
128
127
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
128
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
129
  }
131
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
133
- }
134
130
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
131
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
132
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -145,7 +141,7 @@ var PaymentsApiAxiosParamCreator = function (configuration) {
145
141
  },
146
142
  /**
147
143
  * Request to initiate a payment change by customer.
148
- * @summary Request payment setup initiation by customer
144
+ * @summary Request payment setup initiation
149
145
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
150
146
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
151
147
  * @param {*} [options] Override http request option.
@@ -193,20 +189,19 @@ var PaymentsApiFp = function (configuration) {
193
189
  return {
194
190
  /**
195
191
  * Request to complete a payment change by customer.
196
- * @summary Request payment setup complete by customer
192
+ * @summary Request payment setup complete
197
193
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
198
194
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
199
195
  * @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.
201
196
  * @param {*} [options] Override http request option.
202
197
  * @throws {RequiredError}
203
198
  */
204
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options) {
199
+ completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
205
200
  return __awaiter(this, void 0, void 0, function () {
206
201
  var localVarAxiosArgs;
207
202
  return __generator(this, function (_a) {
208
203
  switch (_a.label) {
209
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options)];
204
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options)];
210
205
  case 1:
211
206
  localVarAxiosArgs = _a.sent();
212
207
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -216,7 +211,7 @@ var PaymentsApiFp = function (configuration) {
216
211
  },
217
212
  /**
218
213
  * Request to initiate a payment change by customer.
219
- * @summary Request payment setup initiation by customer
214
+ * @summary Request payment setup initiation
220
215
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
221
216
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
222
217
  * @param {*} [options] Override http request option.
@@ -247,20 +242,19 @@ var PaymentsApiFactory = function (configuration, basePath, axios) {
247
242
  return {
248
243
  /**
249
244
  * Request to complete a payment change by customer.
250
- * @summary Request payment setup complete by customer
245
+ * @summary Request payment setup complete
251
246
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
252
247
  * @param {CompletePaymentSetupPspRequest} completePaymentSetupPspRequest
253
248
  * @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.
255
249
  * @param {*} [options] Override http request option.
256
250
  * @throws {RequiredError}
257
251
  */
258
- completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options) {
259
- return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
252
+ completePaymentSetup: function (customerCode, completePaymentSetupPspRequest, authorization, options) {
253
+ return localVarFp.completePaymentSetup(customerCode, completePaymentSetupPspRequest, authorization, options).then(function (request) { return request(axios, basePath); });
260
254
  },
261
255
  /**
262
256
  * Request to initiate a payment change by customer.
263
- * @summary Request payment setup initiation by customer
257
+ * @summary Request payment setup initiation
264
258
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
265
259
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
266
260
  * @param {*} [options] Override http request option.
@@ -285,7 +279,7 @@ var PaymentsApi = /** @class */ (function (_super) {
285
279
  }
286
280
  /**
287
281
  * Request to complete a payment change by customer.
288
- * @summary Request payment setup complete by customer
282
+ * @summary Request payment setup complete
289
283
  * @param {PaymentsApiCompletePaymentSetupRequest} requestParameters Request parameters.
290
284
  * @param {*} [options] Override http request option.
291
285
  * @throws {RequiredError}
@@ -293,11 +287,11 @@ var PaymentsApi = /** @class */ (function (_super) {
293
287
  */
294
288
  PaymentsApi.prototype.completePaymentSetup = function (requestParameters, options) {
295
289
  var _this = this;
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); });
290
+ return (0, exports.PaymentsApiFp)(this.configuration).completePaymentSetup(requestParameters.customerCode, requestParameters.completePaymentSetupPspRequest, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
297
291
  };
298
292
  /**
299
293
  * Request to initiate a payment change by customer.
300
- * @summary Request payment setup initiation by customer
294
+ * @summary Request payment setup initiation
301
295
  * @param {PaymentsApiInitiatePaymentSetupRequest} requestParameters Request parameters.
302
296
  * @param {*} [options] Override http request option.
303
297
  * @throws {RequiredError}
@@ -50,7 +50,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
50
50
  getPolicy: (policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
51
  /**
52
52
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
53
- * @summary List policies of a customer
53
+ * @summary List policies
54
54
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
55
55
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
56
56
  * @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.
@@ -65,7 +65,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
65
65
  listPolicies: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
66
  /**
67
67
  * Request to update an existing policy by customer.
68
- * @summary Request policy update by customer
68
+ * @summary Request policy update
69
69
  * @param {string} policyCode The code of the policy that the customer wants to update.
70
70
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
71
71
  * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
@@ -76,7 +76,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
76
76
  requestPolicyUpdate: (policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
77
  /**
78
78
  * Request to terminate an existing policy by customer.
79
- * @summary Terminate a policy by customer
79
+ * @summary Terminate a policy
80
80
  * @param {string} policyCode The code of the policy that the customer wants to terminate.
81
81
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
82
82
  * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
@@ -97,7 +97,7 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
97
97
  uploadCustomerPolicyDocuments: (customerCode: string, policyCode: string, uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
98
98
  /**
99
99
  * Withdraw policy by customer.
100
- * @summary Withdraw policy by customer
100
+ * @summary Withdraw the policy
101
101
  * @param {string} policyCode The code of the policy that the customer wants to withdraw.
102
102
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
103
103
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -135,7 +135,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
135
135
  getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>>;
136
136
  /**
137
137
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
138
- * @summary List policies of a customer
138
+ * @summary List policies
139
139
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
140
140
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
141
141
  * @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.
@@ -150,7 +150,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
150
150
  listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
151
151
  /**
152
152
  * Request to update an existing policy by customer.
153
- * @summary Request policy update by customer
153
+ * @summary Request policy update
154
154
  * @param {string} policyCode The code of the policy that the customer wants to update.
155
155
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
156
156
  * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
@@ -161,7 +161,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
161
161
  requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RequestPolicyUpdateResponseClass>>;
162
162
  /**
163
163
  * Request to terminate an existing policy by customer.
164
- * @summary Terminate a policy by customer
164
+ * @summary Terminate a policy
165
165
  * @param {string} policyCode The code of the policy that the customer wants to terminate.
166
166
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
167
167
  * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
@@ -182,7 +182,7 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
182
182
  uploadCustomerPolicyDocuments(customerCode: string, policyCode: string, uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
183
183
  /**
184
184
  * Withdraw policy by customer.
185
- * @summary Withdraw policy by customer
185
+ * @summary Withdraw the policy
186
186
  * @param {string} policyCode The code of the policy that the customer wants to withdraw.
187
187
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -220,7 +220,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
220
220
  getPolicy(policyCode: string, customerCode: string, expand?: string, authorization?: string, options?: any): AxiosPromise<GetPolicyResponseClass>;
221
221
  /**
222
222
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
223
- * @summary List policies of a customer
223
+ * @summary List policies
224
224
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
225
225
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
226
226
  * @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.
@@ -235,7 +235,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
235
235
  listPolicies(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization?: string, options?: any): AxiosPromise<ListPoliciesResponseClass>;
236
236
  /**
237
237
  * Request to update an existing policy by customer.
238
- * @summary Request policy update by customer
238
+ * @summary Request policy update
239
239
  * @param {string} policyCode The code of the policy that the customer wants to update.
240
240
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
241
241
  * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
@@ -246,7 +246,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
246
246
  requestPolicyUpdate(policyCode: string, customerCode: string, requestPolicyUpdateRequestDto: RequestPolicyUpdateRequestDto, authorization?: string, options?: any): AxiosPromise<RequestPolicyUpdateResponseClass>;
247
247
  /**
248
248
  * Request to terminate an existing policy by customer.
249
- * @summary Terminate a policy by customer
249
+ * @summary Terminate a policy
250
250
  * @param {string} policyCode The code of the policy that the customer wants to terminate.
251
251
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
252
252
  * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
@@ -267,7 +267,7 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
267
267
  uploadCustomerPolicyDocuments(customerCode: string, policyCode: string, uploadCustomerPolicyDocumentsRequestDto: UploadCustomerPolicyDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
268
268
  /**
269
269
  * Withdraw policy by customer.
270
- * @summary Withdraw policy by customer
270
+ * @summary Withdraw the policy
271
271
  * @param {string} policyCode The code of the policy that the customer wants to withdraw.
272
272
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
273
273
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -532,7 +532,7 @@ export declare class PoliciesApi extends BaseAPI {
532
532
  getPolicy(requestParameters: PoliciesApiGetPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPolicyResponseClass, any>>;
533
533
  /**
534
534
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
535
- * @summary List policies of a customer
535
+ * @summary List policies
536
536
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
537
537
  * @param {*} [options] Override http request option.
538
538
  * @throws {RequiredError}
@@ -541,7 +541,7 @@ export declare class PoliciesApi extends BaseAPI {
541
541
  listPolicies(requestParameters: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
542
542
  /**
543
543
  * Request to update an existing policy by customer.
544
- * @summary Request policy update by customer
544
+ * @summary Request policy update
545
545
  * @param {PoliciesApiRequestPolicyUpdateRequest} requestParameters Request parameters.
546
546
  * @param {*} [options] Override http request option.
547
547
  * @throws {RequiredError}
@@ -550,7 +550,7 @@ export declare class PoliciesApi extends BaseAPI {
550
550
  requestPolicyUpdate(requestParameters: PoliciesApiRequestPolicyUpdateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<RequestPolicyUpdateResponseClass, any>>;
551
551
  /**
552
552
  * Request to terminate an existing policy by customer.
553
- * @summary Terminate a policy by customer
553
+ * @summary Terminate a policy
554
554
  * @param {PoliciesApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
555
555
  * @param {*} [options] Override http request option.
556
556
  * @throws {RequiredError}
@@ -568,7 +568,7 @@ export declare class PoliciesApi extends BaseAPI {
568
568
  uploadCustomerPolicyDocuments(requestParameters: PoliciesApiUploadCustomerPolicyDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any>>;
569
569
  /**
570
570
  * Withdraw policy by customer.
571
- * @summary Withdraw policy by customer
571
+ * @summary Withdraw the policy
572
572
  * @param {PoliciesApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
573
573
  * @param {*} [options] Override http request option.
574
574
  * @throws {RequiredError}
@@ -190,7 +190,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
190
190
  },
191
191
  /**
192
192
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
193
- * @summary List policies of a customer
193
+ * @summary List policies
194
194
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
195
195
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
196
196
  * @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.
@@ -252,7 +252,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
252
252
  },
253
253
  /**
254
254
  * Request to update an existing policy by customer.
255
- * @summary Request policy update by customer
255
+ * @summary Request policy update
256
256
  * @param {string} policyCode The code of the policy that the customer wants to update.
257
257
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
258
258
  * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
@@ -299,7 +299,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
299
299
  },
300
300
  /**
301
301
  * Request to terminate an existing policy by customer.
302
- * @summary Terminate a policy by customer
302
+ * @summary Terminate a policy
303
303
  * @param {string} policyCode The code of the policy that the customer wants to terminate.
304
304
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
305
305
  * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
@@ -389,7 +389,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
389
389
  },
390
390
  /**
391
391
  * Withdraw policy by customer.
392
- * @summary Withdraw policy by customer
392
+ * @summary Withdraw the policy
393
393
  * @param {string} policyCode The code of the policy that the customer wants to withdraw.
394
394
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
395
395
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -487,7 +487,7 @@ var PoliciesApiFp = function (configuration) {
487
487
  },
488
488
  /**
489
489
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
490
- * @summary List policies of a customer
490
+ * @summary List policies
491
491
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
492
492
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
493
493
  * @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.
@@ -514,7 +514,7 @@ var PoliciesApiFp = function (configuration) {
514
514
  },
515
515
  /**
516
516
  * Request to update an existing policy by customer.
517
- * @summary Request policy update by customer
517
+ * @summary Request policy update
518
518
  * @param {string} policyCode The code of the policy that the customer wants to update.
519
519
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
520
520
  * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
@@ -537,7 +537,7 @@ var PoliciesApiFp = function (configuration) {
537
537
  },
538
538
  /**
539
539
  * Request to terminate an existing policy by customer.
540
- * @summary Terminate a policy by customer
540
+ * @summary Terminate a policy
541
541
  * @param {string} policyCode The code of the policy that the customer wants to terminate.
542
542
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
543
543
  * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
@@ -582,7 +582,7 @@ var PoliciesApiFp = function (configuration) {
582
582
  },
583
583
  /**
584
584
  * Withdraw policy by customer.
585
- * @summary Withdraw policy by customer
585
+ * @summary Withdraw the policy
586
586
  * @param {string} policyCode The code of the policy that the customer wants to withdraw.
587
587
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
588
588
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -640,7 +640,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
640
640
  },
641
641
  /**
642
642
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
643
- * @summary List policies of a customer
643
+ * @summary List policies
644
644
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
645
645
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
646
646
  * @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.
@@ -657,7 +657,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
657
657
  },
658
658
  /**
659
659
  * Request to update an existing policy by customer.
660
- * @summary Request policy update by customer
660
+ * @summary Request policy update
661
661
  * @param {string} policyCode The code of the policy that the customer wants to update.
662
662
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
663
663
  * @param {RequestPolicyUpdateRequestDto} requestPolicyUpdateRequestDto
@@ -670,7 +670,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
670
670
  },
671
671
  /**
672
672
  * Request to terminate an existing policy by customer.
673
- * @summary Terminate a policy by customer
673
+ * @summary Terminate a policy
674
674
  * @param {string} policyCode The code of the policy that the customer wants to terminate.
675
675
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
676
676
  * @param {TerminateCustomerPolicyRequestDto} terminateCustomerPolicyRequestDto
@@ -695,7 +695,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
695
695
  },
696
696
  /**
697
697
  * Withdraw policy by customer.
698
- * @summary Withdraw policy by customer
698
+ * @summary Withdraw the policy
699
699
  * @param {string} policyCode The code of the policy that the customer wants to withdraw.
700
700
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
701
701
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
@@ -745,7 +745,7 @@ var PoliciesApi = /** @class */ (function (_super) {
745
745
  };
746
746
  /**
747
747
  * List all the policies that belong to a customer, the policies can be filtered by policy code, policy number.
748
- * @summary List policies of a customer
748
+ * @summary List policies
749
749
  * @param {PoliciesApiListPoliciesRequest} requestParameters Request parameters.
750
750
  * @param {*} [options] Override http request option.
751
751
  * @throws {RequiredError}
@@ -757,7 +757,7 @@ var PoliciesApi = /** @class */ (function (_super) {
757
757
  };
758
758
  /**
759
759
  * Request to update an existing policy by customer.
760
- * @summary Request policy update by customer
760
+ * @summary Request policy update
761
761
  * @param {PoliciesApiRequestPolicyUpdateRequest} requestParameters Request parameters.
762
762
  * @param {*} [options] Override http request option.
763
763
  * @throws {RequiredError}
@@ -769,7 +769,7 @@ var PoliciesApi = /** @class */ (function (_super) {
769
769
  };
770
770
  /**
771
771
  * Request to terminate an existing policy by customer.
772
- * @summary Terminate a policy by customer
772
+ * @summary Terminate a policy
773
773
  * @param {PoliciesApiTerminateCustomerPolicyRequest} requestParameters Request parameters.
774
774
  * @param {*} [options] Override http request option.
775
775
  * @throws {RequiredError}
@@ -793,7 +793,7 @@ var PoliciesApi = /** @class */ (function (_super) {
793
793
  };
794
794
  /**
795
795
  * Withdraw policy by customer.
796
- * @summary Withdraw policy by customer
796
+ * @summary Withdraw the policy
797
797
  * @param {PoliciesApiWithdrawCustomerPolicyRequest} requestParameters Request parameters.
798
798
  * @param {*} [options] Override http request option.
799
799
  * @throws {RequiredError}
@@ -31,7 +31,7 @@ export declare const ProductsApiAxiosParamCreator: (configuration?: Configuratio
31
31
  getProduct: (productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
32
  /**
33
33
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
34
- * @summary List products available to insure for a customer
34
+ * @summary List available products
35
35
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
36
36
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. 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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
@@ -62,7 +62,7 @@ export declare const ProductsApiFp: (configuration?: Configuration) => {
62
62
  getProduct(productCode: string, customerCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>>;
63
63
  /**
64
64
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
65
- * @summary List products available to insure for a customer
65
+ * @summary List available products
66
66
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
67
67
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
68
68
  * @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.
@@ -93,7 +93,7 @@ export declare const ProductsApiFactory: (configuration?: Configuration, basePat
93
93
  getProduct(productCode: string, customerCode: string, authorization?: string, options?: any): AxiosPromise<GetProductResponseClass>;
94
94
  /**
95
95
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
96
- * @summary List products available to insure for a customer
96
+ * @summary List available products
97
97
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
98
98
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
99
99
  * @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.
@@ -205,7 +205,7 @@ export declare class ProductsApi extends BaseAPI {
205
205
  getProduct(requestParameters: ProductsApiGetProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductResponseClass, any>>;
206
206
  /**
207
207
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
208
- * @summary List products available to insure for a customer
208
+ * @summary List available products
209
209
  * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
210
210
  * @param {*} [options] Override http request option.
211
211
  * @throws {RequiredError}
@@ -140,7 +140,7 @@ var ProductsApiAxiosParamCreator = function (configuration) {
140
140
  },
141
141
  /**
142
142
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
143
- * @summary List products available to insure for a customer
143
+ * @summary List available products
144
144
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
145
145
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. 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.
@@ -234,7 +234,7 @@ var ProductsApiFp = function (configuration) {
234
234
  },
235
235
  /**
236
236
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
237
- * @summary List products available to insure for a customer
237
+ * @summary List available products
238
238
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
239
239
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
240
240
  * @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.
@@ -283,7 +283,7 @@ var ProductsApiFactory = function (configuration, basePath, axios) {
283
283
  },
284
284
  /**
285
285
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
286
- * @summary List products available to insure for a customer
286
+ * @summary List available products
287
287
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
288
288
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
289
289
  * @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.
@@ -326,7 +326,7 @@ var ProductsApi = /** @class */ (function (_super) {
326
326
  };
327
327
  /**
328
328
  * List all the products that a customer can insure, the products can be filtered by product code, product number.
329
- * @summary List products available to insure for a customer
329
+ * @summary List available products
330
330
  * @param {ProductsApiListProductsRequest} requestParameters Request parameters.
331
331
  * @param {*} [options] Override http request option.
332
332
  * @throws {RequiredError}
package/dist/base.js CHANGED
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
109
109
  var fs = __importStar(require("fs"));
110
110
  var path = __importStar(require("path"));
111
111
  var os = __importStar(require("os"));
112
- exports.BASE_PATH = "https://apiv2.emil.de".replace(/\/+$/, "");
112
+ exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
113
113
  var CONFIG_DIRECTORY = '.emil';
114
114
  var CONFIG_FILENAME = 'credentials';
115
115
  var KEY_USERNAME = 'emil_username';
@@ -0,0 +1,48 @@
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 CurrencyClass
16
+ */
17
+ export interface CurrencyClass {
18
+ /**
19
+ * Internal unique identifier for the object. You should not have to use this, use code instead.
20
+ * @type {number}
21
+ * @memberof CurrencyClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Name of currency in English.
26
+ * @type {string}
27
+ * @memberof CurrencyClass
28
+ */
29
+ 'name': string;
30
+ /**
31
+ * Name of currency in native language.
32
+ * @type {string}
33
+ * @memberof CurrencyClass
34
+ */
35
+ 'nativeName': string;
36
+ /**
37
+ * Code defined by ISO 4217 standard.
38
+ * @type {string}
39
+ * @memberof CurrencyClass
40
+ */
41
+ 'code': string;
42
+ /**
43
+ * Currency symbols are graphical representations used to denote a particular currency in written or printed form.
44
+ * @type {string}
45
+ * @memberof CurrencyClass
46
+ */
47
+ 'symbol': string;
48
+ }
@@ -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 GetCustomerClaimResponseClass
17
+ */
18
+ export interface GetCustomerClaimResponseClass {
19
+ /**
20
+ * Claim
21
+ * @type {ClaimClass}
22
+ * @memberof GetCustomerClaimResponseClass
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 });
@@ -12,10 +12,12 @@ export * from './create-customer-claim-response-class';
12
12
  export * from './create-customer-request-dto';
13
13
  export * from './create-customer-response-class';
14
14
  export * from './create-presigned-post-response-class';
15
+ export * from './currency-class';
15
16
  export * from './customer-class';
16
17
  export * from './customer-document-class';
17
18
  export * from './customer-product-class';
18
19
  export * from './forgot-password-request-dto';
20
+ export * from './get-customer-claim-response-class';
19
21
  export * from './get-customer-document-download-url-response-class';
20
22
  export * from './get-customer-response-class';
21
23
  export * from './get-policy-response-class';
@@ -27,6 +29,7 @@ export * from './initiate-payment-setup-response-class';
27
29
  export * from './initiate-stripe-payment-setup-response-class';
28
30
  export * from './invite-by-customer-request-dto';
29
31
  export * from './invite-by-customer-response-class';
32
+ export * from './invite-by-tenant-request-dto';
30
33
  export * from './invite-by-tenant-response-class';
31
34
  export * from './invite-class';
32
35
  export * from './invoice-class';
@@ -28,10 +28,12 @@ __exportStar(require("./create-customer-claim-response-class"), exports);
28
28
  __exportStar(require("./create-customer-request-dto"), exports);
29
29
  __exportStar(require("./create-customer-response-class"), exports);
30
30
  __exportStar(require("./create-presigned-post-response-class"), exports);
31
+ __exportStar(require("./currency-class"), exports);
31
32
  __exportStar(require("./customer-class"), exports);
32
33
  __exportStar(require("./customer-document-class"), exports);
33
34
  __exportStar(require("./customer-product-class"), exports);
34
35
  __exportStar(require("./forgot-password-request-dto"), exports);
36
+ __exportStar(require("./get-customer-claim-response-class"), exports);
35
37
  __exportStar(require("./get-customer-document-download-url-response-class"), exports);
36
38
  __exportStar(require("./get-customer-response-class"), exports);
37
39
  __exportStar(require("./get-policy-response-class"), exports);
@@ -43,6 +45,7 @@ __exportStar(require("./initiate-payment-setup-response-class"), exports);
43
45
  __exportStar(require("./initiate-stripe-payment-setup-response-class"), exports);
44
46
  __exportStar(require("./invite-by-customer-request-dto"), exports);
45
47
  __exportStar(require("./invite-by-customer-response-class"), exports);
48
+ __exportStar(require("./invite-by-tenant-request-dto"), exports);
46
49
  __exportStar(require("./invite-by-tenant-response-class"), exports);
47
50
  __exportStar(require("./invite-class"), exports);
48
51
  __exportStar(require("./invoice-class"), exports);