@emilgroup/customer-sdk-node 1.10.0 → 1.11.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +58 -2
  3. package/api/claims-api.ts +142 -24
  4. package/api/payments-api.ts +20 -6
  5. package/api/policies-api.ts +4 -4
  6. package/api.ts +1 -0
  7. package/base.ts +1 -5
  8. package/dist/api/claims-api.d.ts +90 -15
  9. package/dist/api/claims-api.js +72 -24
  10. package/dist/api/payments-api.d.ts +12 -3
  11. package/dist/api/payments-api.js +12 -6
  12. package/dist/api/policies-api.d.ts +4 -4
  13. package/dist/api/policies-api.js +4 -4
  14. package/dist/api.d.ts +2 -1
  15. package/dist/api.js +1 -0
  16. package/dist/base.d.ts +1 -4
  17. package/dist/base.js +3 -7
  18. package/dist/models/account-class.d.ts +7 -2
  19. package/dist/models/account-class.js +5 -1
  20. package/dist/models/claim-class.d.ts +132 -0
  21. package/dist/models/claim-class.js +15 -0
  22. package/dist/models/create-customer-claim-response-class.d.ts +25 -0
  23. package/dist/models/create-customer-claim-response-class.js +15 -0
  24. package/dist/models/index.d.ts +4 -0
  25. package/dist/models/index.js +4 -0
  26. package/dist/models/list-customer-claims-response-class.d.ts +31 -0
  27. package/dist/models/list-customer-claims-response-class.js +15 -0
  28. package/dist/models/policy-class.d.ts +2 -2
  29. package/dist/models/update-account-request-dto.d.ts +17 -0
  30. package/dist/models/update-account-request-dto.js +5 -1
  31. package/dist/models/update-customer-claim-response-class.d.ts +25 -0
  32. package/dist/models/update-customer-claim-response-class.js +15 -0
  33. package/models/account-class.ts +8 -2
  34. package/models/claim-class.ts +138 -0
  35. package/models/create-customer-claim-response-class.ts +31 -0
  36. package/models/index.ts +4 -0
  37. package/models/list-customer-claims-response-class.ts +37 -0
  38. package/models/policy-class.ts +2 -2
  39. package/models/update-account-request-dto.ts +18 -0
  40. package/models/update-customer-claim-response-class.ts +31 -0
  41. package/package.json +2 -2
package/base.ts CHANGED
@@ -14,6 +14,7 @@
14
14
 
15
15
 
16
16
  import { Configuration } from "./configuration";
17
+ import { Environment } from "./api";
17
18
  // Some imports not used depending on template conditions
18
19
  // @ts-ignore
19
20
  import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
@@ -45,11 +46,6 @@ export interface LoginClass {
45
46
  permissions: Array<string>;
46
47
  }
47
48
 
48
- export enum Environment {
49
- Production = 'https://apiv2.emil.de',
50
- Test = 'https://apiv2-test.emil.de',
51
- }
52
-
53
49
  let _retry_count = 0
54
50
  let _retry = null
55
51
 
@@ -13,8 +13,11 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateCustomerClaimRequestDto } from '../models';
16
+ import { CreateCustomerClaimResponseClass } from '../models';
16
17
  import { CreatePresignedPostResponseClass } from '../models';
18
+ import { ListCustomerClaimsResponseClass } from '../models';
17
19
  import { UpdateCustomerClaimRequestDto } from '../models';
20
+ import { UpdateCustomerClaimResponseClass } from '../models';
18
21
  import { UploadCustomerClaimDocumentsRequestDto } from '../models';
19
22
  /**
20
23
  * ClaimsApi - axios parameter creator
@@ -26,44 +29,52 @@ export declare const ClaimsApiAxiosParamCreator: (configuration?: Configuration)
26
29
  * @summary Create a new claim for customer
27
30
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
28
31
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
32
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
33
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
29
34
  * @param {*} [options] Override http request option.
30
35
  * @throws {RequiredError}
31
36
  */
32
- createCustomerClaim: (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
+ createCustomerClaim: (customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
33
38
  /**
34
39
  * List claims by customer.
35
40
  * @summary List claims by customer
36
41
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
42
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
37
43
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
38
44
  * @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.
39
45
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
40
46
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
41
47
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
42
48
  * @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.
49
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
43
50
  * @param {*} [options] Override http request option.
44
51
  * @throws {RequiredError}
45
52
  */
46
- listCustomerClaims: (customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ listCustomerClaims: (customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
54
  /**
48
55
  * Update claim for customer.
49
56
  * @summary Update claim for customer
50
57
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
51
58
  * @param {string} claimCode The claim code to identify a claim.
52
59
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
60
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
61
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
53
62
  * @param {*} [options] Override http request option.
54
63
  * @throws {RequiredError}
55
64
  */
56
- updateCustomerClaim: (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ updateCustomerClaim: (customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
66
  /**
58
67
  * API to upload and attach documents to a claim.
59
68
  * @summary Upload claim documents
60
69
  * @param {string} customerCode
61
70
  * @param {string} claimCode The claim code to identify a claim.
62
71
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
72
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
73
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
63
74
  * @param {*} [options] Override http request option.
64
75
  * @throws {RequiredError}
65
76
  */
66
- uploadCustomerClaimDocuments: (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
77
+ uploadCustomerClaimDocuments: (customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
78
  };
68
79
  /**
69
80
  * ClaimsApi - functional programming interface
@@ -75,44 +86,52 @@ export declare const ClaimsApiFp: (configuration?: Configuration) => {
75
86
  * @summary Create a new claim for customer
76
87
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
77
88
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
89
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
90
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
78
91
  * @param {*} [options] Override http request option.
79
92
  * @throws {RequiredError}
80
93
  */
81
- createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
94
+ createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomerClaimResponseClass>>;
82
95
  /**
83
96
  * List claims by customer.
84
97
  * @summary List claims by customer
85
98
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
86
100
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
87
101
  * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
88
102
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
89
103
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
90
104
  * @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
91
105
  * @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
106
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
92
107
  * @param {*} [options] Override http request option.
93
108
  * @throws {RequiredError}
94
109
  */
95
- listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
110
+ listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCustomerClaimsResponseClass>>;
96
111
  /**
97
112
  * Update claim for customer.
98
113
  * @summary Update claim for customer
99
114
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
100
115
  * @param {string} claimCode The claim code to identify a claim.
101
116
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
117
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
102
119
  * @param {*} [options] Override http request option.
103
120
  * @throws {RequiredError}
104
121
  */
105
- updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>>;
122
+ updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCustomerClaimResponseClass>>;
106
123
  /**
107
124
  * API to upload and attach documents to a claim.
108
125
  * @summary Upload claim documents
109
126
  * @param {string} customerCode
110
127
  * @param {string} claimCode The claim code to identify a claim.
111
128
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
129
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
130
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
112
131
  * @param {*} [options] Override http request option.
113
132
  * @throws {RequiredError}
114
133
  */
115
- uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
134
+ uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>>;
116
135
  };
117
136
  /**
118
137
  * ClaimsApi - factory interface
@@ -124,44 +143,52 @@ export declare const ClaimsApiFactory: (configuration?: Configuration, basePath?
124
143
  * @summary Create a new claim for customer
125
144
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
126
145
  * @param {CreateCustomerClaimRequestDto} createCustomerClaimRequestDto
146
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
127
148
  * @param {*} [options] Override http request option.
128
149
  * @throws {RequiredError}
129
150
  */
130
- createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, options?: any): AxiosPromise<object>;
151
+ createCustomerClaim(customerCode: string, createCustomerClaimRequestDto: CreateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreateCustomerClaimResponseClass>;
131
152
  /**
132
153
  * List claims by customer.
133
154
  * @summary List claims by customer
134
155
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
156
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
135
157
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
136
158
  * @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.
137
159
  * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
138
160
  * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
139
161
  * @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.
140
162
  * @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.
163
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
141
164
  * @param {*} [options] Override http request option.
142
165
  * @throws {RequiredError}
143
166
  */
144
- listCustomerClaims(customerCode: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<object>;
167
+ listCustomerClaims(customerCode: string, authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, authorization2?: string, options?: any): AxiosPromise<ListCustomerClaimsResponseClass>;
145
168
  /**
146
169
  * Update claim for customer.
147
170
  * @summary Update claim for customer
148
171
  * @param {string} customerCode The customer code or \&quot;me\&quot; for the currently logged in customer.
149
172
  * @param {string} claimCode The claim code to identify a claim.
150
173
  * @param {UpdateCustomerClaimRequestDto} updateCustomerClaimRequestDto
174
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
175
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
151
176
  * @param {*} [options] Override http request option.
152
177
  * @throws {RequiredError}
153
178
  */
154
- updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, options?: any): AxiosPromise<object>;
179
+ updateCustomerClaim(customerCode: string, claimCode: string, updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<UpdateCustomerClaimResponseClass>;
155
180
  /**
156
181
  * API to upload and attach documents to a claim.
157
182
  * @summary Upload claim documents
158
183
  * @param {string} customerCode
159
184
  * @param {string} claimCode The claim code to identify a claim.
160
185
  * @param {UploadCustomerClaimDocumentsRequestDto} uploadCustomerClaimDocumentsRequestDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
187
+ * @param {string} [authorization2] Bearer Token: provided by the login endpoint under the name accessToken.
161
188
  * @param {*} [options] Override http request option.
162
189
  * @throws {RequiredError}
163
190
  */
164
- uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
191
+ uploadCustomerClaimDocuments(customerCode: string, claimCode: string, uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto, authorization?: string, authorization2?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass>;
165
192
  };
166
193
  /**
167
194
  * Request parameters for createCustomerClaim operation in ClaimsApi.
@@ -181,6 +208,18 @@ export interface ClaimsApiCreateCustomerClaimRequest {
181
208
  * @memberof ClaimsApiCreateCustomerClaim
182
209
  */
183
210
  readonly createCustomerClaimRequestDto: CreateCustomerClaimRequestDto;
211
+ /**
212
+ * Bearer Token: provided by the login endpoint under the name accessToken.
213
+ * @type {string}
214
+ * @memberof ClaimsApiCreateCustomerClaim
215
+ */
216
+ readonly authorization?: string;
217
+ /**
218
+ * Bearer Token: provided by the login endpoint under the name accessToken.
219
+ * @type {string}
220
+ * @memberof ClaimsApiCreateCustomerClaim
221
+ */
222
+ readonly authorization2?: string;
184
223
  }
185
224
  /**
186
225
  * Request parameters for listCustomerClaims operation in ClaimsApi.
@@ -194,6 +233,12 @@ export interface ClaimsApiListCustomerClaimsRequest {
194
233
  * @memberof ClaimsApiListCustomerClaims
195
234
  */
196
235
  readonly customerCode: string;
236
+ /**
237
+ * Bearer Token: provided by the login endpoint under the name accessToken.
238
+ * @type {string}
239
+ * @memberof ClaimsApiListCustomerClaims
240
+ */
241
+ readonly authorization?: string;
197
242
  /**
198
243
  * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
199
244
  * @type {any}
@@ -230,6 +275,12 @@ export interface ClaimsApiListCustomerClaimsRequest {
230
275
  * @memberof ClaimsApiListCustomerClaims
231
276
  */
232
277
  readonly expand?: any;
278
+ /**
279
+ * Bearer Token: provided by the login endpoint under the name accessToken.
280
+ * @type {string}
281
+ * @memberof ClaimsApiListCustomerClaims
282
+ */
283
+ readonly authorization2?: string;
233
284
  }
234
285
  /**
235
286
  * Request parameters for updateCustomerClaim operation in ClaimsApi.
@@ -255,6 +306,18 @@ export interface ClaimsApiUpdateCustomerClaimRequest {
255
306
  * @memberof ClaimsApiUpdateCustomerClaim
256
307
  */
257
308
  readonly updateCustomerClaimRequestDto: UpdateCustomerClaimRequestDto;
309
+ /**
310
+ * Bearer Token: provided by the login endpoint under the name accessToken.
311
+ * @type {string}
312
+ * @memberof ClaimsApiUpdateCustomerClaim
313
+ */
314
+ readonly authorization?: string;
315
+ /**
316
+ * Bearer Token: provided by the login endpoint under the name accessToken.
317
+ * @type {string}
318
+ * @memberof ClaimsApiUpdateCustomerClaim
319
+ */
320
+ readonly authorization2?: string;
258
321
  }
259
322
  /**
260
323
  * Request parameters for uploadCustomerClaimDocuments operation in ClaimsApi.
@@ -280,6 +343,18 @@ export interface ClaimsApiUploadCustomerClaimDocumentsRequest {
280
343
  * @memberof ClaimsApiUploadCustomerClaimDocuments
281
344
  */
282
345
  readonly uploadCustomerClaimDocumentsRequestDto: UploadCustomerClaimDocumentsRequestDto;
346
+ /**
347
+ * Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @type {string}
349
+ * @memberof ClaimsApiUploadCustomerClaimDocuments
350
+ */
351
+ readonly authorization?: string;
352
+ /**
353
+ * Bearer Token: provided by the login endpoint under the name accessToken.
354
+ * @type {string}
355
+ * @memberof ClaimsApiUploadCustomerClaimDocuments
356
+ */
357
+ readonly authorization2?: string;
283
358
  }
284
359
  /**
285
360
  * ClaimsApi - object-oriented interface
@@ -296,7 +371,7 @@ export declare class ClaimsApi extends BaseAPI {
296
371
  * @throws {RequiredError}
297
372
  * @memberof ClaimsApi
298
373
  */
299
- createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
374
+ createCustomerClaim(requestParameters: ClaimsApiCreateCustomerClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomerClaimResponseClass, any>>;
300
375
  /**
301
376
  * List claims by customer.
302
377
  * @summary List claims by customer
@@ -305,7 +380,7 @@ export declare class ClaimsApi extends BaseAPI {
305
380
  * @throws {RequiredError}
306
381
  * @memberof ClaimsApi
307
382
  */
308
- listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
383
+ listCustomerClaims(requestParameters: ClaimsApiListCustomerClaimsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListCustomerClaimsResponseClass, any>>;
309
384
  /**
310
385
  * Update claim for customer.
311
386
  * @summary Update claim for customer
@@ -314,7 +389,7 @@ export declare class ClaimsApi extends BaseAPI {
314
389
  * @throws {RequiredError}
315
390
  * @memberof ClaimsApi
316
391
  */
317
- updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any>>;
392
+ updateCustomerClaim(requestParameters: ClaimsApiUpdateCustomerClaimRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateCustomerClaimResponseClass, any>>;
318
393
  /**
319
394
  * API to upload and attach documents to a claim.
320
395
  * @summary Upload claim documents
@@ -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 \&quot;me\&quot; 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 \&quot;me\&quot; for the currently logged in customer.
150
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
151
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
143
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;xxx in order to fetch the result.
146
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.
147
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 \&quot;me\&quot; 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 \&quot;me\&quot; 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 \&quot;me\&quot; for the currently logged in customer.
351
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
317
352
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
318
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;xxx in order to fetch the result.
321
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.
322
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 \&quot;me\&quot; 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 \&quot;me\&quot; 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 \&quot;me\&quot; for the currently logged in customer.
450
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
408
451
  * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
409
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&#x3D;1, your subsequent call can include pageToken&#x3D;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&#x3D;xxx in order to fetch the result.
412
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.
413
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 \&quot;me\&quot; 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));