@emilgroup/claim-sdk-node 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/.openapi-generator/FILES +8 -3
  2. package/README.md +2 -2
  3. package/api/claim-statuses-api.ts +547 -0
  4. package/api/claims-api.ts +189 -81
  5. package/api/settlements-api.ts +105 -198
  6. package/api.ts +2 -0
  7. package/base.ts +1 -1
  8. package/dist/api/claim-statuses-api.d.ts +309 -0
  9. package/dist/api/claim-statuses-api.js +535 -0
  10. package/dist/api/claims-api.d.ts +124 -59
  11. package/dist/api/claims-api.js +142 -52
  12. package/dist/api/settlements-api.d.ts +85 -140
  13. package/dist/api/settlements-api.js +70 -117
  14. package/dist/api.d.ts +1 -0
  15. package/dist/api.js +1 -0
  16. package/dist/base.js +1 -1
  17. package/dist/models/claim-class.d.ts +18 -0
  18. package/dist/models/claim-status-class.d.ts +36 -0
  19. package/dist/models/create-claim-request-dto.d.ts +13 -1
  20. package/dist/models/create-claim-status-request-dto.d.ts +30 -0
  21. package/dist/models/{delete-settlement-request-dto.d.ts → create-claim-status-response-class.d.ts} +7 -12
  22. package/dist/models/index.d.ts +7 -3
  23. package/dist/models/index.js +7 -3
  24. package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
  25. package/{models/delete-response-class.ts → dist/models/list-claim-statuses-response-class.js} +2 -17
  26. package/dist/models/{list-claim-response-class.d.ts → list-claims-response-class.d.ts} +4 -4
  27. package/dist/models/list-claims-response-class.js +15 -0
  28. package/dist/models/patch-claim-request-dto.d.ts +126 -0
  29. package/dist/models/patch-claim-request-dto.js +15 -0
  30. package/dist/models/{delete-response-class.d.ts → patch-claim-response-class.d.ts} +7 -6
  31. package/dist/models/patch-claim-response-class.js +15 -0
  32. package/dist/models/settlement-class.d.ts +6 -0
  33. package/dist/models/update-claim-request-dto.d.ts +8 -2
  34. package/dist/models/update-settlement-request-dto.d.ts +6 -0
  35. package/models/claim-class.ts +18 -0
  36. package/models/claim-status-class.ts +42 -0
  37. package/models/create-claim-request-dto.ts +13 -1
  38. package/models/create-claim-status-request-dto.ts +36 -0
  39. package/models/create-claim-status-response-class.ts +31 -0
  40. package/models/index.ts +7 -3
  41. package/models/list-claim-statuses-response-class.ts +37 -0
  42. package/models/{list-claim-response-class.ts → list-claims-response-class.ts} +4 -4
  43. package/models/patch-claim-request-dto.ts +132 -0
  44. package/models/{delete-settlement-request-dto.ts → patch-claim-response-class.ts} +7 -12
  45. package/models/settlement-class.ts +6 -0
  46. package/models/update-claim-request-dto.ts +8 -2
  47. package/models/update-settlement-request-dto.ts +6 -0
  48. package/package.json +2 -2
  49. /package/dist/models/{delete-response-class.js → claim-status-class.js} +0 -0
  50. /package/dist/models/{delete-settlement-request-dto.js → create-claim-status-request-dto.js} +0 -0
  51. /package/dist/models/{list-claim-response-class.js → create-claim-status-response-class.js} +0 -0
@@ -14,7 +14,6 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateSettlementRequestDto } from '../models';
16
16
  import { CreateSettlementResponseClass } from '../models';
17
- import { DeleteResponseClass } from '../models';
18
17
  import { GetSettlementResponseClass } from '../models';
19
18
  import { ListSettlementsResponseClass } from '../models';
20
19
  import { UpdateSettlementRequestDto } from '../models';
@@ -27,60 +26,54 @@ export declare const SettlementsApiAxiosParamCreator: (configuration?: Configura
27
26
  /**
28
27
  * This will create a settlement against a claim in the database
29
28
  * @summary Create the settlement
30
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
31
- * @param {string} claimCode
32
29
  * @param {CreateSettlementRequestDto} createSettlementRequestDto
30
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
33
31
  * @param {*} [options] Override http request option.
34
32
  * @throws {RequiredError}
35
33
  */
36
- createSettlement: (authorization: string, claimCode: string, createSettlementRequestDto: CreateSettlementRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
34
+ createSettlement: (createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
37
35
  /**
38
36
  * This will delete the requested settlement from the database.
39
37
  * @summary Delete the settlement
40
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
41
38
  * @param {string} code
42
- * @param {string} claimCode
39
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
43
40
  * @param {*} [options] Override http request option.
44
41
  * @throws {RequiredError}
45
42
  */
46
- deleteSettlement: (authorization: string, code: string, claimCode: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ deleteSettlement: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
47
44
  /**
48
45
  * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
49
46
  * @summary Retrieve the settlement
50
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
51
- * @param {string} claimCode
52
47
  * @param {string} code
48
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
49
  * @param {*} [options] Override http request option.
54
50
  * @throws {RequiredError}
55
51
  */
56
- getSettlement: (authorization: string, claimCode: string, code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
52
+ getSettlement: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
57
53
  /**
58
54
  * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
59
55
  * @summary List settlements
60
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
61
- * @param {string} claimCode
62
- * @param {string} claimCode2 The identifier code of the claim.
63
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
64
- * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
65
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
66
- * @param {string} [search] Searching the response for a pattern to match for specific request results
67
- * @param {string} [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
68
- * @param {string} [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. Parameters: claim.
56
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
57
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
58
+ * @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.
59
+ * @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
60
+ * @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.
61
+ * @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.
62
+ * @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.
69
63
  * @param {*} [options] Override http request option.
70
64
  * @throws {RequiredError}
71
65
  */
72
- listSettlements: (authorization: string, claimCode: string, claimCode2: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
+ listSettlements: (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
73
67
  /**
74
68
  * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
75
69
  * @summary Update the settlement
76
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
77
- * @param {string} claimCode
78
70
  * @param {string} code
79
71
  * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
72
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
80
73
  * @param {*} [options] Override http request option.
81
74
  * @throws {RequiredError}
82
75
  */
83
- updateSettlement: (authorization: string, claimCode: string, code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, options?: AxiosRequestConfig) => Promise<RequestArgs>;
76
+ updateSettlement: (code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
77
  };
85
78
  /**
86
79
  * SettlementsApi - functional programming interface
@@ -90,60 +83,54 @@ export declare const SettlementsApiFp: (configuration?: Configuration) => {
90
83
  /**
91
84
  * This will create a settlement against a claim in the database
92
85
  * @summary Create the settlement
93
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
94
- * @param {string} claimCode
95
86
  * @param {CreateSettlementRequestDto} createSettlementRequestDto
87
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
96
88
  * @param {*} [options] Override http request option.
97
89
  * @throws {RequiredError}
98
90
  */
99
- createSettlement(authorization: string, claimCode: string, createSettlementRequestDto: CreateSettlementRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>>;
91
+ createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateSettlementResponseClass>>;
100
92
  /**
101
93
  * This will delete the requested settlement from the database.
102
94
  * @summary Delete the settlement
103
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
104
95
  * @param {string} code
105
- * @param {string} claimCode
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
106
97
  * @param {*} [options] Override http request option.
107
98
  * @throws {RequiredError}
108
99
  */
109
- deleteSettlement(authorization: string, code: string, claimCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>>;
100
+ deleteSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
110
101
  /**
111
102
  * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
112
103
  * @summary Retrieve the settlement
113
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
114
- * @param {string} claimCode
115
104
  * @param {string} code
105
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
116
106
  * @param {*} [options] Override http request option.
117
107
  * @throws {RequiredError}
118
108
  */
119
- getSettlement(authorization: string, claimCode: string, code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>>;
109
+ getSettlement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetSettlementResponseClass>>;
120
110
  /**
121
111
  * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
122
112
  * @summary List settlements
123
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
124
- * @param {string} claimCode
125
- * @param {string} claimCode2 The identifier code of the claim.
126
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
127
- * @param {string} [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.
128
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
129
- * @param {string} [search] Searching the response for a pattern to match for specific request results
130
- * @param {string} [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
131
- * @param {string} [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. Parameters: claim.
113
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
115
+ * @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.
116
+ * @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
117
+ * @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.
118
+ * @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.
119
+ * @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.
132
120
  * @param {*} [options] Override http request option.
133
121
  * @throws {RequiredError}
134
122
  */
135
- listSettlements(authorization: string, claimCode: string, claimCode2: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettlementsResponseClass>>;
123
+ listSettlements(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListSettlementsResponseClass>>;
136
124
  /**
137
125
  * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
138
126
  * @summary Update the settlement
139
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
140
- * @param {string} claimCode
141
127
  * @param {string} code
142
128
  * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
129
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
130
  * @param {*} [options] Override http request option.
144
131
  * @throws {RequiredError}
145
132
  */
146
- updateSettlement(authorization: string, claimCode: string, code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSettlementResponseClass>>;
133
+ updateSettlement(code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateSettlementResponseClass>>;
147
134
  };
148
135
  /**
149
136
  * SettlementsApi - factory interface
@@ -153,60 +140,54 @@ export declare const SettlementsApiFactory: (configuration?: Configuration, base
153
140
  /**
154
141
  * This will create a settlement against a claim in the database
155
142
  * @summary Create the settlement
156
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
157
- * @param {string} claimCode
158
143
  * @param {CreateSettlementRequestDto} createSettlementRequestDto
144
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
159
145
  * @param {*} [options] Override http request option.
160
146
  * @throws {RequiredError}
161
147
  */
162
- createSettlement(authorization: string, claimCode: string, createSettlementRequestDto: CreateSettlementRequestDto, options?: any): AxiosPromise<CreateSettlementResponseClass>;
148
+ createSettlement(createSettlementRequestDto: CreateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateSettlementResponseClass>;
163
149
  /**
164
150
  * This will delete the requested settlement from the database.
165
151
  * @summary Delete the settlement
166
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
167
152
  * @param {string} code
168
- * @param {string} claimCode
153
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
154
  * @param {*} [options] Override http request option.
170
155
  * @throws {RequiredError}
171
156
  */
172
- deleteSettlement(authorization: string, code: string, claimCode: string, options?: any): AxiosPromise<DeleteResponseClass>;
157
+ deleteSettlement(code: string, authorization?: string, options?: any): AxiosPromise<void>;
173
158
  /**
174
159
  * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
175
160
  * @summary Retrieve the settlement
176
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
177
- * @param {string} claimCode
178
161
  * @param {string} code
162
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
179
163
  * @param {*} [options] Override http request option.
180
164
  * @throws {RequiredError}
181
165
  */
182
- getSettlement(authorization: string, claimCode: string, code: string, options?: any): AxiosPromise<GetSettlementResponseClass>;
166
+ getSettlement(code: string, authorization?: string, options?: any): AxiosPromise<GetSettlementResponseClass>;
183
167
  /**
184
168
  * Returns a list of settlements you have previously created. The settlements are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
185
169
  * @summary List settlements
186
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
187
- * @param {string} claimCode
188
- * @param {string} claimCode2 The identifier code of the claim.
189
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
190
- * @param {string} [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.
191
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
192
- * @param {string} [search] Searching the response for a pattern to match for specific request results
193
- * @param {string} [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
194
- * @param {string} [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. Parameters: claim.
170
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
171
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
172
+ * @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.
173
+ * @param {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
174
+ * @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.
175
+ * @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.
176
+ * @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.
195
177
  * @param {*} [options] Override http request option.
196
178
  * @throws {RequiredError}
197
179
  */
198
- listSettlements(authorization: string, claimCode: string, claimCode2: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListSettlementsResponseClass>;
180
+ listSettlements(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId', search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListSettlementsResponseClass>;
199
181
  /**
200
182
  * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
201
183
  * @summary Update the settlement
202
- * @param {string} authorization Bearer Token: provided by the login endpoint under the name accessToken.
203
- * @param {string} claimCode
204
184
  * @param {string} code
205
185
  * @param {UpdateSettlementRequestDto} updateSettlementRequestDto
186
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
187
  * @param {*} [options] Override http request option.
207
188
  * @throws {RequiredError}
208
189
  */
209
- updateSettlement(authorization: string, claimCode: string, code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, options?: any): AxiosPromise<UpdateSettlementResponseClass>;
190
+ updateSettlement(code: string, updateSettlementRequestDto: UpdateSettlementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateSettlementResponseClass>;
210
191
  };
211
192
  /**
212
193
  * Request parameters for createSettlement operation in SettlementsApi.
@@ -214,24 +195,18 @@ export declare const SettlementsApiFactory: (configuration?: Configuration, base
214
195
  * @interface SettlementsApiCreateSettlementRequest
215
196
  */
216
197
  export interface SettlementsApiCreateSettlementRequest {
217
- /**
218
- * Bearer Token: provided by the login endpoint under the name accessToken.
219
- * @type {string}
220
- * @memberof SettlementsApiCreateSettlement
221
- */
222
- readonly authorization: string;
223
198
  /**
224
199
  *
225
- * @type {string}
200
+ * @type {CreateSettlementRequestDto}
226
201
  * @memberof SettlementsApiCreateSettlement
227
202
  */
228
- readonly claimCode: string;
203
+ readonly createSettlementRequestDto: CreateSettlementRequestDto;
229
204
  /**
230
- *
231
- * @type {CreateSettlementRequestDto}
205
+ * Bearer Token: provided by the login endpoint under the name accessToken.
206
+ * @type {string}
232
207
  * @memberof SettlementsApiCreateSettlement
233
208
  */
234
- readonly createSettlementRequestDto: CreateSettlementRequestDto;
209
+ readonly authorization?: string;
235
210
  }
236
211
  /**
237
212
  * Request parameters for deleteSettlement operation in SettlementsApi.
@@ -239,12 +214,6 @@ export interface SettlementsApiCreateSettlementRequest {
239
214
  * @interface SettlementsApiDeleteSettlementRequest
240
215
  */
241
216
  export interface SettlementsApiDeleteSettlementRequest {
242
- /**
243
- * Bearer Token: provided by the login endpoint under the name accessToken.
244
- * @type {string}
245
- * @memberof SettlementsApiDeleteSettlement
246
- */
247
- readonly authorization: string;
248
217
  /**
249
218
  *
250
219
  * @type {string}
@@ -252,11 +221,11 @@ export interface SettlementsApiDeleteSettlementRequest {
252
221
  */
253
222
  readonly code: string;
254
223
  /**
255
- *
224
+ * Bearer Token: provided by the login endpoint under the name accessToken.
256
225
  * @type {string}
257
226
  * @memberof SettlementsApiDeleteSettlement
258
227
  */
259
- readonly claimCode: string;
228
+ readonly authorization?: string;
260
229
  }
261
230
  /**
262
231
  * Request parameters for getSettlement operation in SettlementsApi.
@@ -264,24 +233,18 @@ export interface SettlementsApiDeleteSettlementRequest {
264
233
  * @interface SettlementsApiGetSettlementRequest
265
234
  */
266
235
  export interface SettlementsApiGetSettlementRequest {
267
- /**
268
- * Bearer Token: provided by the login endpoint under the name accessToken.
269
- * @type {string}
270
- * @memberof SettlementsApiGetSettlement
271
- */
272
- readonly authorization: string;
273
236
  /**
274
237
  *
275
238
  * @type {string}
276
239
  * @memberof SettlementsApiGetSettlement
277
240
  */
278
- readonly claimCode: string;
241
+ readonly code: string;
279
242
  /**
280
- *
243
+ * Bearer Token: provided by the login endpoint under the name accessToken.
281
244
  * @type {string}
282
245
  * @memberof SettlementsApiGetSettlement
283
246
  */
284
- readonly code: string;
247
+ readonly authorization?: string;
285
248
  }
286
249
  /**
287
250
  * Request parameters for listSettlements operation in SettlementsApi.
@@ -294,55 +257,43 @@ export interface SettlementsApiListSettlementsRequest {
294
257
  * @type {string}
295
258
  * @memberof SettlementsApiListSettlements
296
259
  */
297
- readonly authorization: string;
260
+ readonly authorization?: string;
298
261
  /**
299
- *
300
- * @type {string}
262
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
263
+ * @type {any}
301
264
  * @memberof SettlementsApiListSettlements
302
265
  */
303
- readonly claimCode: string;
266
+ readonly pageSize?: any;
304
267
  /**
305
- * The identifier code of the claim.
306
- * @type {string}
268
+ * 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.
269
+ * @type {any}
307
270
  * @memberof SettlementsApiListSettlements
308
271
  */
309
- readonly claimCode2: string;
272
+ readonly pageToken?: any;
310
273
  /**
311
- * A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
312
- * @type {number}
274
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
275
+ * @type {'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId'}
313
276
  * @memberof SettlementsApiListSettlements
314
277
  */
315
- readonly pageSize?: number;
278
+ readonly filter?: 'policyNumber' | 'productId' | 'accountCode' | 'claimCode' | 'InsuredObjectId';
316
279
  /**
317
- * 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.
318
- * @type {string}
280
+ * 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.
281
+ * @type {any}
319
282
  * @memberof SettlementsApiListSettlements
320
283
  */
321
- readonly pageToken?: string;
284
+ readonly search?: any;
322
285
  /**
323
- * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time. Parameters: claimCode, accountNumber
324
- * @type {string}
286
+ * 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.
287
+ * @type {any}
325
288
  * @memberof SettlementsApiListSettlements
326
289
  */
327
- readonly filter?: string;
290
+ readonly order?: any;
328
291
  /**
329
- * Searching the response for a pattern to match for specific request results
330
- * @type {string}
292
+ * 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.
293
+ * @type {any}
331
294
  * @memberof SettlementsApiListSettlements
332
295
  */
333
- readonly search?: string;
334
- /**
335
- * 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
336
- * @type {string}
337
- * @memberof SettlementsApiListSettlements
338
- */
339
- readonly order?: string;
340
- /**
341
- * 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. Parameters: claim.
342
- * @type {string}
343
- * @memberof SettlementsApiListSettlements
344
- */
345
- readonly expand?: string;
296
+ readonly expand?: any;
346
297
  }
347
298
  /**
348
299
  * Request parameters for updateSettlement operation in SettlementsApi.
@@ -350,18 +301,6 @@ export interface SettlementsApiListSettlementsRequest {
350
301
  * @interface SettlementsApiUpdateSettlementRequest
351
302
  */
352
303
  export interface SettlementsApiUpdateSettlementRequest {
353
- /**
354
- * Bearer Token: provided by the login endpoint under the name accessToken.
355
- * @type {string}
356
- * @memberof SettlementsApiUpdateSettlement
357
- */
358
- readonly authorization: string;
359
- /**
360
- *
361
- * @type {string}
362
- * @memberof SettlementsApiUpdateSettlement
363
- */
364
- readonly claimCode: string;
365
304
  /**
366
305
  *
367
306
  * @type {string}
@@ -374,6 +313,12 @@ export interface SettlementsApiUpdateSettlementRequest {
374
313
  * @memberof SettlementsApiUpdateSettlement
375
314
  */
376
315
  readonly updateSettlementRequestDto: UpdateSettlementRequestDto;
316
+ /**
317
+ * Bearer Token: provided by the login endpoint under the name accessToken.
318
+ * @type {string}
319
+ * @memberof SettlementsApiUpdateSettlement
320
+ */
321
+ readonly authorization?: string;
377
322
  }
378
323
  /**
379
324
  * SettlementsApi - object-oriented interface
@@ -399,7 +344,7 @@ export declare class SettlementsApi extends BaseAPI {
399
344
  * @throws {RequiredError}
400
345
  * @memberof SettlementsApi
401
346
  */
402
- deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any>>;
347
+ deleteSettlement(requestParameters: SettlementsApiDeleteSettlementRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
403
348
  /**
404
349
  * Retrieves the details of the settlement that was previously created. Supply the unique settlement code that was returned when you created it and Emil Api will return the corresponding settlement information.
405
350
  * @summary Retrieve the settlement
@@ -417,7 +362,7 @@ export declare class SettlementsApi extends BaseAPI {
417
362
  * @throws {RequiredError}
418
363
  * @memberof SettlementsApi
419
364
  */
420
- listSettlements(requestParameters: SettlementsApiListSettlementsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSettlementsResponseClass, any>>;
365
+ listSettlements(requestParameters?: SettlementsApiListSettlementsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSettlementsResponseClass, any>>;
421
366
  /**
422
367
  * Updates the specified settlement by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
423
368
  * @summary Update the settlement