@emilgroup/customer-sdk-node 1.22.0 → 1.23.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.
@@ -101,45 +101,47 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
101
101
  * @summary Create a new claim
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.
106
104
  * @param {*} [options] Override http request option.
107
105
  * @throws {RequiredError}
108
106
  */
109
- createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
107
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
110
108
  if (options === void 0) { options = {}; }
111
109
  return __awaiter(_this, void 0, void 0, function () {
112
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
113
111
  return __generator(this, function (_a) {
114
- // verify required parameter 'customerCode' is not null or undefined
115
- (0, common_1.assertParamExists)('createCustomerClaim', 'customerCode', customerCode);
116
- // verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
117
- (0, common_1.assertParamExists)('createCustomerClaim', 'createCustomerClaimRequestDto', createCustomerClaimRequestDto);
118
- localVarPath = "/v1/customers/{customerCode}/claims"
119
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
120
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
- if (configuration) {
122
- baseOptions = configuration.baseOptions;
123
- baseAccessToken = configuration.accessToken;
124
- }
125
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
126
- localVarHeaderParameter = {};
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);
112
+ switch (_a.label) {
113
+ case 0:
114
+ // verify required parameter 'customerCode' is not null or undefined
115
+ (0, common_1.assertParamExists)('createCustomerClaim', 'customerCode', customerCode);
116
+ // verify required parameter 'createCustomerClaimRequestDto' is not null or undefined
117
+ (0, common_1.assertParamExists)('createCustomerClaim', 'createCustomerClaimRequestDto', createCustomerClaimRequestDto);
118
+ localVarPath = "/v1/customers/{customerCode}/claims"
119
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
120
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ baseAccessToken = configuration.accessToken;
124
+ }
125
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
126
+ localVarHeaderParameter = {};
127
+ localVarQueryParameter = {};
128
+ // authentication bearer required
129
+ // http bearer authentication required
130
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
+ case 1:
132
+ // authentication bearer required
133
+ // http bearer authentication required
134
+ _a.sent();
135
+ localVarHeaderParameter['Content-Type'] = 'application/json';
136
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerClaimRequestDto, localVarRequestOptions, configuration);
140
+ return [2 /*return*/, {
141
+ url: (0, common_1.toPathString)(localVarUrlObj),
142
+ options: localVarRequestOptions,
143
+ }];
133
144
  }
134
- localVarHeaderParameter['Content-Type'] = 'application/json';
135
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
136
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
137
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
138
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCustomerClaimRequestDto, localVarRequestOptions, configuration);
139
- return [2 /*return*/, {
140
- url: (0, common_1.toPathString)(localVarUrlObj),
141
- options: localVarRequestOptions,
142
- }];
143
145
  });
144
146
  });
145
147
  },
@@ -148,44 +150,46 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
148
150
  * @summary Get claim
149
151
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
150
152
  * @param {string} claimCode The claim code to identify a claim.
151
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
155
155
  */
156
- getCustomerClaim: function (customerCode, claimCode, authorization, authorization2, options) {
156
+ getCustomerClaim: function (customerCode, claimCode, options) {
157
157
  if (options === void 0) { options = {}; }
158
158
  return __awaiter(_this, void 0, void 0, function () {
159
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
160
  return __generator(this, function (_a) {
161
- // verify required parameter 'customerCode' is not null or undefined
162
- (0, common_1.assertParamExists)('getCustomerClaim', 'customerCode', customerCode);
163
- // verify required parameter 'claimCode' is not null or undefined
164
- (0, common_1.assertParamExists)('getCustomerClaim', 'claimCode', claimCode);
165
- localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
166
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
167
- .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
168
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
169
- if (configuration) {
170
- baseOptions = configuration.baseOptions;
171
- baseAccessToken = configuration.accessToken;
172
- }
173
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
174
- localVarHeaderParameter = {};
175
- localVarQueryParameter = {};
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
178
- }
179
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
180
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
161
+ switch (_a.label) {
162
+ case 0:
163
+ // verify required parameter 'customerCode' is not null or undefined
164
+ (0, common_1.assertParamExists)('getCustomerClaim', 'customerCode', customerCode);
165
+ // verify required parameter 'claimCode' is not null or undefined
166
+ (0, common_1.assertParamExists)('getCustomerClaim', 'claimCode', claimCode);
167
+ localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
168
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
169
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
170
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
171
+ if (configuration) {
172
+ baseOptions = configuration.baseOptions;
173
+ baseAccessToken = configuration.accessToken;
174
+ }
175
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
176
+ localVarHeaderParameter = {};
177
+ localVarQueryParameter = {};
178
+ // authentication bearer required
179
+ // http bearer authentication required
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ case 1:
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ _a.sent();
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
+ return [2 /*return*/, {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ }];
181
192
  }
182
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
183
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
- return [2 /*return*/, {
186
- url: (0, common_1.toPathString)(localVarUrlObj),
187
- options: localVarRequestOptions,
188
- }];
189
193
  });
190
194
  });
191
195
  },
@@ -193,65 +197,67 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
193
197
  * List claims by customer.
194
198
  * @summary List claims
195
199
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
196
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
200
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
198
201
  * @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.
199
202
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
200
203
  * @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.
201
204
  * @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.
202
205
  * @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.
203
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
204
206
  * @param {*} [options] Override http request option.
205
207
  * @throws {RequiredError}
206
208
  */
207
- listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options) {
209
+ listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
208
210
  if (options === void 0) { options = {}; }
209
211
  return __awaiter(_this, void 0, void 0, function () {
210
212
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
213
  return __generator(this, function (_a) {
212
- // verify required parameter 'customerCode' is not null or undefined
213
- (0, common_1.assertParamExists)('listCustomerClaims', 'customerCode', customerCode);
214
- localVarPath = "/v1/customers/{customerCode}/claims"
215
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
216
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
217
- if (configuration) {
218
- baseOptions = configuration.baseOptions;
219
- baseAccessToken = configuration.accessToken;
220
- }
221
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
222
- localVarHeaderParameter = {};
223
- localVarQueryParameter = {};
224
- if (pageSize !== undefined) {
225
- localVarQueryParameter['pageSize'] = pageSize;
226
- }
227
- if (pageToken !== undefined) {
228
- localVarQueryParameter['pageToken'] = pageToken;
229
- }
230
- if (filter !== undefined) {
231
- localVarQueryParameter['filter'] = filter;
232
- }
233
- if (search !== undefined) {
234
- localVarQueryParameter['search'] = search;
235
- }
236
- if (order !== undefined) {
237
- localVarQueryParameter['order'] = order;
238
- }
239
- if (expand !== undefined) {
240
- localVarQueryParameter['expand'] = expand;
241
- }
242
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
244
- }
245
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
214
+ switch (_a.label) {
215
+ case 0:
216
+ // verify required parameter 'customerCode' is not null or undefined
217
+ (0, common_1.assertParamExists)('listCustomerClaims', 'customerCode', customerCode);
218
+ localVarPath = "/v1/customers/{customerCode}/claims"
219
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)));
220
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
221
+ if (configuration) {
222
+ baseOptions = configuration.baseOptions;
223
+ baseAccessToken = configuration.accessToken;
224
+ }
225
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
226
+ localVarHeaderParameter = {};
227
+ localVarQueryParameter = {};
228
+ // authentication bearer required
229
+ // http bearer authentication required
230
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
231
+ case 1:
232
+ // authentication bearer required
233
+ // http bearer authentication required
234
+ _a.sent();
235
+ if (pageSize !== undefined) {
236
+ localVarQueryParameter['pageSize'] = pageSize;
237
+ }
238
+ if (pageToken !== undefined) {
239
+ localVarQueryParameter['pageToken'] = pageToken;
240
+ }
241
+ if (filter !== undefined) {
242
+ localVarQueryParameter['filter'] = filter;
243
+ }
244
+ if (search !== undefined) {
245
+ localVarQueryParameter['search'] = search;
246
+ }
247
+ if (order !== undefined) {
248
+ localVarQueryParameter['order'] = order;
249
+ }
250
+ if (expand !== undefined) {
251
+ localVarQueryParameter['expand'] = expand;
252
+ }
253
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
254
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
255
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
256
+ return [2 /*return*/, {
257
+ url: (0, common_1.toPathString)(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ }];
247
260
  }
248
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
249
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
251
- return [2 /*return*/, {
252
- url: (0, common_1.toPathString)(localVarUrlObj),
253
- options: localVarRequestOptions,
254
- }];
255
261
  });
256
262
  });
257
263
  },
@@ -261,48 +267,50 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
261
267
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
262
268
  * @param {string} claimCode The claim code to identify a claim.
263
269
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
264
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
265
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
266
270
  * @param {*} [options] Override http request option.
267
271
  * @throws {RequiredError}
268
272
  */
269
- updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options) {
273
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
270
274
  if (options === void 0) { options = {}; }
271
275
  return __awaiter(_this, void 0, void 0, function () {
272
276
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
273
277
  return __generator(this, function (_a) {
274
- // verify required parameter 'customerCode' is not null or undefined
275
- (0, common_1.assertParamExists)('updateCustomerClaim', 'customerCode', customerCode);
276
- // verify required parameter 'claimCode' is not null or undefined
277
- (0, common_1.assertParamExists)('updateCustomerClaim', 'claimCode', claimCode);
278
- // verify required parameter 'updateCustomerClaimRequestDto' is not null or undefined
279
- (0, common_1.assertParamExists)('updateCustomerClaim', 'updateCustomerClaimRequestDto', updateCustomerClaimRequestDto);
280
- localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
281
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
282
- .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
283
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
284
- if (configuration) {
285
- baseOptions = configuration.baseOptions;
286
- baseAccessToken = configuration.accessToken;
287
- }
288
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
289
- localVarHeaderParameter = {};
290
- localVarQueryParameter = {};
291
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
292
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
- }
294
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
295
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
278
+ switch (_a.label) {
279
+ case 0:
280
+ // verify required parameter 'customerCode' is not null or undefined
281
+ (0, common_1.assertParamExists)('updateCustomerClaim', 'customerCode', customerCode);
282
+ // verify required parameter 'claimCode' is not null or undefined
283
+ (0, common_1.assertParamExists)('updateCustomerClaim', 'claimCode', claimCode);
284
+ // verify required parameter 'updateCustomerClaimRequestDto' is not null or undefined
285
+ (0, common_1.assertParamExists)('updateCustomerClaim', 'updateCustomerClaimRequestDto', updateCustomerClaimRequestDto);
286
+ localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}"
287
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
288
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
289
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
290
+ if (configuration) {
291
+ baseOptions = configuration.baseOptions;
292
+ baseAccessToken = configuration.accessToken;
293
+ }
294
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
295
+ localVarHeaderParameter = {};
296
+ localVarQueryParameter = {};
297
+ // authentication bearer required
298
+ // http bearer authentication required
299
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
300
+ case 1:
301
+ // authentication bearer required
302
+ // http bearer authentication required
303
+ _a.sent();
304
+ localVarHeaderParameter['Content-Type'] = 'application/json';
305
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
306
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
307
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
308
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerClaimRequestDto, localVarRequestOptions, configuration);
309
+ return [2 /*return*/, {
310
+ url: (0, common_1.toPathString)(localVarUrlObj),
311
+ options: localVarRequestOptions,
312
+ }];
296
313
  }
297
- localVarHeaderParameter['Content-Type'] = 'application/json';
298
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
299
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
300
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
301
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCustomerClaimRequestDto, localVarRequestOptions, configuration);
302
- return [2 /*return*/, {
303
- url: (0, common_1.toPathString)(localVarUrlObj),
304
- options: localVarRequestOptions,
305
- }];
306
314
  });
307
315
  });
308
316
  },
@@ -312,48 +320,50 @@ var ClaimsApiAxiosParamCreator = function (configuration) {
312
320
  * @param {string} customerCode
313
321
  * @param {string} claimCode The claim code to identify a claim.
314
322
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
315
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
316
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
317
323
  * @param {*} [options] Override http request option.
318
324
  * @throws {RequiredError}
319
325
  */
320
- uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options) {
326
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
321
327
  if (options === void 0) { options = {}; }
322
328
  return __awaiter(_this, void 0, void 0, function () {
323
329
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
324
330
  return __generator(this, function (_a) {
325
- // verify required parameter 'customerCode' is not null or undefined
326
- (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'customerCode', customerCode);
327
- // verify required parameter 'claimCode' is not null or undefined
328
- (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'claimCode', claimCode);
329
- // verify required parameter 'uploadCustomerClaimDocumentsRequestDto' is not null or undefined
330
- (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'uploadCustomerClaimDocumentsRequestDto', uploadCustomerClaimDocumentsRequestDto);
331
- localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}/documents"
332
- .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
333
- .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
334
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
335
- if (configuration) {
336
- baseOptions = configuration.baseOptions;
337
- baseAccessToken = configuration.accessToken;
338
- }
339
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
340
- localVarHeaderParameter = {};
341
- localVarQueryParameter = {};
342
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
343
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
344
- }
345
- if (authorization2 !== undefined && authorization2 !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
- localVarHeaderParameter['Authorization'] = String(authorization2 ? authorization2 : baseAccessToken);
331
+ switch (_a.label) {
332
+ case 0:
333
+ // verify required parameter 'customerCode' is not null or undefined
334
+ (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'customerCode', customerCode);
335
+ // verify required parameter 'claimCode' is not null or undefined
336
+ (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'claimCode', claimCode);
337
+ // verify required parameter 'uploadCustomerClaimDocumentsRequestDto' is not null or undefined
338
+ (0, common_1.assertParamExists)('uploadCustomerClaimDocuments', 'uploadCustomerClaimDocumentsRequestDto', uploadCustomerClaimDocumentsRequestDto);
339
+ localVarPath = "/v1/customers/{customerCode}/claims/{claimCode}/documents"
340
+ .replace("{".concat("customerCode", "}"), encodeURIComponent(String(customerCode)))
341
+ .replace("{".concat("claimCode", "}"), encodeURIComponent(String(claimCode)));
342
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
343
+ if (configuration) {
344
+ baseOptions = configuration.baseOptions;
345
+ baseAccessToken = configuration.accessToken;
346
+ }
347
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
348
+ localVarHeaderParameter = {};
349
+ localVarQueryParameter = {};
350
+ // authentication bearer required
351
+ // http bearer authentication required
352
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
353
+ case 1:
354
+ // authentication bearer required
355
+ // http bearer authentication required
356
+ _a.sent();
357
+ localVarHeaderParameter['Content-Type'] = 'application/json';
358
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
359
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
361
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadCustomerClaimDocumentsRequestDto, localVarRequestOptions, configuration);
362
+ return [2 /*return*/, {
363
+ url: (0, common_1.toPathString)(localVarUrlObj),
364
+ options: localVarRequestOptions,
365
+ }];
347
366
  }
348
- localVarHeaderParameter['Content-Type'] = 'application/json';
349
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
350
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
351
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
352
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(uploadCustomerClaimDocumentsRequestDto, localVarRequestOptions, configuration);
353
- return [2 /*return*/, {
354
- url: (0, common_1.toPathString)(localVarUrlObj),
355
- options: localVarRequestOptions,
356
- }];
357
367
  });
358
368
  });
359
369
  },
@@ -372,17 +382,15 @@ var ClaimsApiFp = function (configuration) {
372
382
  * @summary Create a new claim
373
383
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
374
384
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
375
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
376
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
377
385
  * @param {*} [options] Override http request option.
378
386
  * @throws {RequiredError}
379
387
  */
380
- createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
388
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
381
389
  return __awaiter(this, void 0, void 0, function () {
382
390
  var localVarAxiosArgs;
383
391
  return __generator(this, function (_a) {
384
392
  switch (_a.label) {
385
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options)];
393
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options)];
386
394
  case 1:
387
395
  localVarAxiosArgs = _a.sent();
388
396
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -395,17 +403,15 @@ var ClaimsApiFp = function (configuration) {
395
403
  * @summary Get claim
396
404
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
397
405
  * @param {string} claimCode The claim code to identify a claim.
398
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
399
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
400
406
  * @param {*} [options] Override http request option.
401
407
  * @throws {RequiredError}
402
408
  */
403
- getCustomerClaim: function (customerCode, claimCode, authorization, authorization2, options) {
409
+ getCustomerClaim: function (customerCode, claimCode, options) {
404
410
  return __awaiter(this, void 0, void 0, function () {
405
411
  var localVarAxiosArgs;
406
412
  return __generator(this, function (_a) {
407
413
  switch (_a.label) {
408
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options)];
414
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCustomerClaim(customerCode, claimCode, options)];
409
415
  case 1:
410
416
  localVarAxiosArgs = _a.sent();
411
417
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -417,23 +423,21 @@ var ClaimsApiFp = function (configuration) {
417
423
  * List claims by customer.
418
424
  * @summary List claims
419
425
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
420
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
421
426
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
422
427
  * @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.
423
428
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
424
429
  * @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.
425
430
  * @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.
426
431
  * @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.
427
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
428
432
  * @param {*} [options] Override http request option.
429
433
  * @throws {RequiredError}
430
434
  */
431
- listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options) {
435
+ listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
432
436
  return __awaiter(this, void 0, void 0, function () {
433
437
  var localVarAxiosArgs;
434
438
  return __generator(this, function (_a) {
435
439
  switch (_a.label) {
436
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options)];
440
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options)];
437
441
  case 1:
438
442
  localVarAxiosArgs = _a.sent();
439
443
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -447,17 +451,15 @@ var ClaimsApiFp = function (configuration) {
447
451
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
448
452
  * @param {string} claimCode The claim code to identify a claim.
449
453
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
450
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
452
454
  * @param {*} [options] Override http request option.
453
455
  * @throws {RequiredError}
454
456
  */
455
- updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options) {
457
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
456
458
  return __awaiter(this, void 0, void 0, function () {
457
459
  var localVarAxiosArgs;
458
460
  return __generator(this, function (_a) {
459
461
  switch (_a.label) {
460
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options)];
462
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options)];
461
463
  case 1:
462
464
  localVarAxiosArgs = _a.sent();
463
465
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -471,17 +473,15 @@ var ClaimsApiFp = function (configuration) {
471
473
  * @param {string} customerCode
472
474
  * @param {string} claimCode The claim code to identify a claim.
473
475
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
474
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
475
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
476
476
  * @param {*} [options] Override http request option.
477
477
  * @throws {RequiredError}
478
478
  */
479
- uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options) {
479
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
480
480
  return __awaiter(this, void 0, void 0, function () {
481
481
  var localVarAxiosArgs;
482
482
  return __generator(this, function (_a) {
483
483
  switch (_a.label) {
484
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options)];
484
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options)];
485
485
  case 1:
486
486
  localVarAxiosArgs = _a.sent();
487
487
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -504,44 +504,38 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
504
504
  * @summary Create a new claim
505
505
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
506
506
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
507
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
508
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
509
507
  * @param {*} [options] Override http request option.
510
508
  * @throws {RequiredError}
511
509
  */
512
- createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, authorization, authorization2, options) {
513
- return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
510
+ createCustomerClaim: function (customerCode, createCustomerClaimRequestDto, options) {
511
+ return localVarFp.createCustomerClaim(customerCode, createCustomerClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
514
512
  },
515
513
  /**
516
514
  * Get claim for customer.
517
515
  * @summary Get claim
518
516
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
519
517
  * @param {string} claimCode The claim code to identify a claim.
520
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
521
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
522
518
  * @param {*} [options] Override http request option.
523
519
  * @throws {RequiredError}
524
520
  */
525
- getCustomerClaim: function (customerCode, claimCode, authorization, authorization2, options) {
526
- return localVarFp.getCustomerClaim(customerCode, claimCode, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
521
+ getCustomerClaim: function (customerCode, claimCode, options) {
522
+ return localVarFp.getCustomerClaim(customerCode, claimCode, options).then(function (request) { return request(axios, basePath); });
527
523
  },
528
524
  /**
529
525
  * List claims by customer.
530
526
  * @summary List claims
531
527
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
532
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
533
528
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
534
529
  * @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.
535
530
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
536
531
  * @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.
537
532
  * @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.
538
533
  * @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.
539
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
540
534
  * @param {*} [options] Override http request option.
541
535
  * @throws {RequiredError}
542
536
  */
543
- listCustomerClaims: function (customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options) {
544
- return localVarFp.listCustomerClaims(customerCode, authorization, pageSize, pageToken, filter, search, order, expand, authorization2, options).then(function (request) { return request(axios, basePath); });
537
+ listCustomerClaims: function (customerCode, pageSize, pageToken, filter, search, order, expand, options) {
538
+ return localVarFp.listCustomerClaims(customerCode, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
545
539
  },
546
540
  /**
547
541
  * Update claim for customer.
@@ -549,13 +543,11 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
549
543
  * @param {string} customerCode The customer code or \"me\" for the currently logged in customer.
550
544
  * @param {string} claimCode The claim code to identify a claim.
551
545
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
552
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
553
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
554
546
  * @param {*} [options] Override http request option.
555
547
  * @throws {RequiredError}
556
548
  */
557
- updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options) {
558
- return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
549
+ updateCustomerClaim: function (customerCode, claimCode, updateCustomerClaimRequestDto, options) {
550
+ return localVarFp.updateCustomerClaim(customerCode, claimCode, updateCustomerClaimRequestDto, options).then(function (request) { return request(axios, basePath); });
559
551
  },
560
552
  /**
561
553
  * API to upload and attach documents to a claim.
@@ -563,13 +555,11 @@ var ClaimsApiFactory = function (configuration, basePath, axios) {
563
555
  * @param {string} customerCode
564
556
  * @param {string} claimCode The claim code to identify a claim.
565
557
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
566
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
- * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
568
558
  * @param {*} [options] Override http request option.
569
559
  * @throws {RequiredError}
570
560
  */
571
- uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options) {
572
- return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, authorization, authorization2, options).then(function (request) { return request(axios, basePath); });
561
+ uploadCustomerClaimDocuments: function (customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options) {
562
+ return localVarFp.uploadCustomerClaimDocuments(customerCode, claimCode, uploadCustomerClaimDocumentsRequestDto, options).then(function (request) { return request(axios, basePath); });
573
563
  },
574
564
  };
575
565
  };
@@ -595,7 +585,7 @@ var ClaimsApi = /** @class */ (function (_super) {
595
585
  */
596
586
  ClaimsApi.prototype.createCustomerClaim = function (requestParameters, options) {
597
587
  var _this = this;
598
- 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); });
588
+ return (0, exports.ClaimsApiFp)(this.configuration).createCustomerClaim(requestParameters.customerCode, requestParameters.createCustomerClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
599
589
  };
600
590
  /**
601
591
  * Get claim for customer.
@@ -607,7 +597,7 @@ var ClaimsApi = /** @class */ (function (_super) {
607
597
  */
608
598
  ClaimsApi.prototype.getCustomerClaim = function (requestParameters, options) {
609
599
  var _this = this;
610
- return (0, exports.ClaimsApiFp)(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.authorization, requestParameters.authorization2, options).then(function (request) { return request(_this.axios, _this.basePath); });
600
+ return (0, exports.ClaimsApiFp)(this.configuration).getCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
601
  };
612
602
  /**
613
603
  * List claims by customer.
@@ -619,7 +609,7 @@ var ClaimsApi = /** @class */ (function (_super) {
619
609
  */
620
610
  ClaimsApi.prototype.listCustomerClaims = function (requestParameters, options) {
621
611
  var _this = this;
622
- 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); });
612
+ 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); });
623
613
  };
624
614
  /**
625
615
  * Update claim for customer.
@@ -631,7 +621,7 @@ var ClaimsApi = /** @class */ (function (_super) {
631
621
  */
632
622
  ClaimsApi.prototype.updateCustomerClaim = function (requestParameters, options) {
633
623
  var _this = this;
634
- 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); });
624
+ return (0, exports.ClaimsApiFp)(this.configuration).updateCustomerClaim(requestParameters.customerCode, requestParameters.claimCode, requestParameters.updateCustomerClaimRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
635
625
  };
636
626
  /**
637
627
  * API to upload and attach documents to a claim.
@@ -643,7 +633,7 @@ var ClaimsApi = /** @class */ (function (_super) {
643
633
  */
644
634
  ClaimsApi.prototype.uploadCustomerClaimDocuments = function (requestParameters, options) {
645
635
  var _this = this;
646
- 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); });
636
+ return (0, exports.ClaimsApiFp)(this.configuration).uploadCustomerClaimDocuments(requestParameters.customerCode, requestParameters.claimCode, requestParameters.uploadCustomerClaimDocumentsRequestDto, options).then(function (request) { return request(_this.axios, _this.basePath); });
647
637
  };
648
638
  return ClaimsApi;
649
639
  }(base_1.BaseAPI));