@emilgroup/customer-sdk-node 1.9.1 → 1.11.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 (57) hide show
  1. package/.openapi-generator/FILES +9 -0
  2. package/README.md +58 -2
  3. package/api/authentication-api.ts +601 -0
  4. package/api/claims-api.ts +158 -40
  5. package/api/customers-api.ts +72 -1770
  6. package/api/documents-api.ts +442 -0
  7. package/api/invites-api.ts +443 -0
  8. package/api/invoices-api.ts +245 -0
  9. package/api/payments-api.ts +291 -0
  10. package/api/policies-api.ts +16 -16
  11. package/api/products-api.ts +16 -16
  12. package/api.ts +11 -0
  13. package/dist/api/authentication-api.d.ts +332 -0
  14. package/dist/api/authentication-api.js +604 -0
  15. package/dist/api/claims-api.d.ts +106 -31
  16. package/dist/api/claims-api.js +84 -36
  17. package/dist/api/customers-api.d.ts +0 -954
  18. package/dist/api/customers-api.js +20 -1381
  19. package/dist/api/documents-api.d.ts +262 -0
  20. package/dist/api/documents-api.js +417 -0
  21. package/dist/api/invites-api.d.ts +248 -0
  22. package/dist/api/invites-api.js +456 -0
  23. package/dist/api/invoices-api.d.ts +150 -0
  24. package/dist/api/invoices-api.js +253 -0
  25. package/dist/api/payments-api.d.ts +171 -0
  26. package/dist/api/payments-api.js +312 -0
  27. package/dist/api/policies-api.d.ts +16 -16
  28. package/dist/api/policies-api.js +12 -12
  29. package/dist/api/products-api.d.ts +16 -16
  30. package/dist/api/products-api.js +12 -12
  31. package/dist/api.d.ts +7 -1
  32. package/dist/api.js +6 -0
  33. package/dist/models/account-class.d.ts +31 -1
  34. package/dist/models/account-class.js +11 -0
  35. package/dist/models/claim-class.d.ts +132 -0
  36. package/dist/models/claim-class.js +15 -0
  37. package/dist/models/create-account-request-dto.d.ts +39 -9
  38. package/dist/models/create-account-request-dto.js +11 -1
  39. package/dist/models/create-customer-claim-response-class.d.ts +25 -0
  40. package/dist/models/create-customer-claim-response-class.js +15 -0
  41. package/dist/models/index.d.ts +4 -0
  42. package/dist/models/index.js +4 -0
  43. package/dist/models/list-customer-claims-response-class.d.ts +31 -0
  44. package/dist/models/list-customer-claims-response-class.js +15 -0
  45. package/dist/models/update-account-request-dto.d.ts +17 -0
  46. package/dist/models/update-account-request-dto.js +5 -1
  47. package/dist/models/update-customer-claim-response-class.d.ts +25 -0
  48. package/dist/models/update-customer-claim-response-class.js +15 -0
  49. package/models/account-class.ts +35 -1
  50. package/models/claim-class.ts +138 -0
  51. package/models/create-account-request-dto.ts +41 -9
  52. package/models/create-customer-claim-response-class.ts +31 -0
  53. package/models/index.ts +4 -0
  54. package/models/list-customer-claims-response-class.ts +37 -0
  55. package/models/update-account-request-dto.ts +18 -0
  56. package/models/update-customer-claim-response-class.ts +31 -0
  57. package/package.json +1 -1
@@ -101,10 +101,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
101
101
  * @summary Create a new claim for customer
102
102
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
103
103
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
104
106
  * @param {*} [options] Override http request option.
105
107
  * @throws {RequiredError}
106
108
  */
107
- createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
109
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
108
110
  if (options === void 0) { options = {}; }
109
111
  return __awaiter(_this, void 0, void 0, function () {
110
112
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -123,6 +125,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
123
125
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
124
126
  localVarHeaderParameter = {};
125
127
  localVarQueryParameter = {};
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
+ localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
133
+ }
126
134
  localVarHeaderParameter['Content-Type'] = 'application/json';
127
135
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
136
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -139,16 +147,18 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
139
147
  * List claims by customer.
140
148
  * @summary List claims by customer
141
149
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
142
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
143
- * @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.
150
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
151
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
152
+ * @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.
144
153
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
145
154
  * @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.
146
- * @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.
147
- * @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.
155
+ * @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.
156
+ * @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.
157
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
148
158
  * @param {*} [options] Override http request option.
149
159
  * @throws {RequiredError}
150
160
  */
151
- listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
161
+ listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options) {
152
162
  if (options === void 0) { options = {}; }
153
163
  return __awaiter(_this, void 0, void 0, function () {
154
164
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -183,6 +193,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
183
193
  if (expand !== undefined) {
184
194
  localVarQueryParameter['expand'] = expand;
185
195
  }
196
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
197
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
198
+ }
199
+ if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
200
+ localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
201
+ }
186
202
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
187
203
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
188
204
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -199,10 +215,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
199
215
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
200
216
  * @param {string} claimCode The claim code to identify a claim.
201
217
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
218
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
219
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
202
220
  * @param {*} [options] Override http request option.
203
221
  * @throws {RequiredError}
204
222
  */
205
- updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
223
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options) {
206
224
  if (options === void 0) { options = {}; }
207
225
  return __awaiter(_this, void 0, void 0, function () {
208
226
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -224,6 +242,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
224
242
  localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
225
243
  localVarHeaderParameter = {};
226
244
  localVarQueryParameter = {};
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
+ }
248
+ if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
249
+ localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
250
+ }
227
251
  localVarHeaderParameter['Content-Type'] = 'application/json';
228
252
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
229
253
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -242,10 +266,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
242
266
  * @param {string} customerCode
243
267
  * @param {string} claimCode The claim code to identify a claim.
244
268
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
269
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
245
271
  * @param {*} [options] Override http request option.
246
272
  * @throws {RequiredError}
247
273
  */
248
- uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
274
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options) {
249
275
  if (options === void 0) { options = {}; }
250
276
  return __awaiter(_this, void 0, void 0, function () {
251
277
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -267,6 +293,12 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
267
293
  localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
268
294
  localVarHeaderParameter = {};
269
295
  localVarQueryParameter = {};
296
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
297
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
298
+ }
299
+ if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
300
+ localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
301
+ }
270
302
  localVarHeaderParameter['Content-Type'] = 'application/json';
271
303
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
272
304
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -294,15 +326,17 @@ var ClaimsApiFp = function (configuration) {
294
326
  * @summary Create a new claim for customer
295
327
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
296
328
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
329
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
330
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
297
331
  * @param {*} [options] Override http request option.
298
332
  * @throws {RequiredError}
299
333
  */
300
- createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
334
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
301
335
  return __awaiter(this, void 0, void 0, function () {
302
336
  var localVarAxiosArgs;
303
337
  return __generator(this, function (_a) {
304
338
  switch (_a.label) {
305
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options)];
339
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options)];
306
340
  case 1:
307
341
  localVarAxiosArgs = _a.sent();
308
342
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -314,21 +348,23 @@ var ClaimsApiFp = function (configuration) {
314
348
  * List claims by customer.
315
349
  * @summary List claims by customer
316
350
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
317
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
318
- * @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.
351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
352
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
353
+ * @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.
319
354
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
320
355
  * @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.
321
- * @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.
322
- * @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.
356
+ * @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.
357
+ * @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.
358
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
323
359
  * @param {*} [options] Override http request option.
324
360
  * @throws {RequiredError}
325
361
  */
326
- listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
362
+ listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options) {
327
363
  return __awaiter(this, void 0, void 0, function () {
328
364
  var localVarAxiosArgs;
329
365
  return __generator(this, function (_a) {
330
366
  switch (_a.label) {
331
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options)];
367
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options)];
332
368
  case 1:
333
369
  localVarAxiosArgs = _a.sent();
334
370
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -342,15 +378,17 @@ var ClaimsApiFp = function (configuration) {
342
378
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
343
379
  * @param {string} claimCode The claim code to identify a claim.
344
380
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
381
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
345
383
  * @param {*} [options] Override http request option.
346
384
  * @throws {RequiredError}
347
385
  */
348
- updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
386
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options) {
349
387
  return __awaiter(this, void 0, void 0, function () {
350
388
  var localVarAxiosArgs;
351
389
  return __generator(this, function (_a) {
352
390
  switch (_a.label) {
353
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options)];
391
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options)];
354
392
  case 1:
355
393
  localVarAxiosArgs = _a.sent();
356
394
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -364,15 +402,17 @@ var ClaimsApiFp = function (configuration) {
364
402
  * @param {string} customerCode
365
403
  * @param {string} claimCode The claim code to identify a claim.
366
404
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
405
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
367
407
  * @param {*} [options] Override http request option.
368
408
  * @throws {RequiredError}
369
409
  */
370
- uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
410
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options) {
371
411
  return __awaiter(this, void 0, void 0, function () {
372
412
  var localVarAxiosArgs;
373
413
  return __generator(this, function (_a) {
374
414
  switch (_a.label) {
375
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options)];
415
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options)];
376
416
  case 1:
377
417
  localVarAxiosArgs = _a.sent();
378
418
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -395,27 +435,31 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
395
435
  * @summary Create a new claim for customer
396
436
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
397
437
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
438
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
439
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
398
440
  * @param {*} [options] Override http request option.
399
441
  * @throws {RequiredError}
400
442
  */
401
- createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
402
- return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
443
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
444
+ return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
403
445
  },
404
446
  /**
405
447
  * List claims by customer.
406
448
  * @summary List claims by customer
407
449
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
408
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
409
- * @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.
450
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
452
+ * @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.
410
453
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
411
454
  * @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.
412
- * @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.
413
- * @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.
455
+ * @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.
456
+ * @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.
457
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
414
458
  * @param {*} [options] Override http request option.
415
459
  * @throws {RequiredError}
416
460
  */
417
- listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
418
- return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
461
+ listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options) {
462
+ return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options).then(function (request) { return request(axios, basePath); });
419
463
  },
420
464
  /**
421
465
  * Update claim for customer.
@@ -423,11 +467,13 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
423
467
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
424
468
  * @param {string} claimCode The claim code to identify a claim.
425
469
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
426
472
  * @param {*} [options] Override http request option.
427
473
  * @throws {RequiredError}
428
474
  */
429
- updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
430
- return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
475
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options) {
476
+ return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
431
477
  },
432
478
  /**
433
479
  * API to upload and attach documents to a claim.
@@ -435,11 +481,13 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
435
481
  * @param {string} customerCode
436
482
  * @param {string} claimCode The claim code to identify a claim.
437
483
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
484
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
485
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
438
486
  * @param {*} [options] Override http request option.
439
487
  * @throws {RequiredError}
440
488
  */
441
- uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
442
- return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then(function (request) { return request(axios, basePath); });
489
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options) {
490
+ return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
443
491
  },
444
492
  };
445
493
  };
@@ -465,7 +513,7 @@ var ClaimsApi = /** @class */ (function (_super) {
465
513
  */
466
514
  ClaimsApi.prototype.createCustomerClaim = function (requestParameters, options) {
467
515
  var _this = this;
468
- return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
516
+ return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
469
517
  };
470
518
  /**
471
519
  * List claims by customer.
@@ -477,7 +525,7 @@ var ClaimsApi = /** @class */ (function (_super) {
477
525
  */
478
526
  ClaimsApi.prototype.listCustomerClaims = function (requestParameters, options) {
479
527
  var _this = this;
480
- return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
528
+ return (0, exports.ClaimsApiFp)(this.configuration).listCustomerClaims(requestParameters.customerCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
481
529
  };
482
530
  /**
483
531
  * Update claim for customer.
@@ -489,7 +537,7 @@ var ClaimsApi = /** @class */ (function (_super) {
489
537
  */
490
538
  ClaimsApi.prototype.updateCustomerClaim = function (requestParameters, options) {
491
539
  var _this = this;
492
- return (0, exports.ClaimsApiFp)(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
540
+ return (0, exports.ClaimsApiFp)(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
493
541
  };
494
542
  /**
495
543
  * API to upload and attach documents to a claim.
@@ -501,7 +549,7 @@ var ClaimsApi = /** @class */ (function (_super) {
501
549
  */
502
550
  ClaimsApi.prototype.uploadCustomerClaimDocuments = function (requestParameters, options) {
503
551
  var _this = this;
504
- return (0, exports.ClaimsApiFp)(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
552
+ return (0, exports.ClaimsApiFp)(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
505
553
  };
506
554
  return ClaimsApi;
507
555
  }(base_1.BaseAPI));