@emilgroup/claim-sdk 1.0.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.
- package/.openapi-generator/FILES +40 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +51 -0
- package/api/claim-statuses-api.ts +543 -0
- package/api/claims-api.ts +783 -0
- package/api/default-api.ts +120 -0
- package/api/settlements-api.ts +663 -0
- package/api.ts +33 -0
- package/base.ts +250 -0
- package/common.ts +198 -0
- package/configuration.ts +101 -0
- package/dist/api/claim-statuses-api.d.ts +309 -0
- package/dist/api/claim-statuses-api.js +531 -0
- package/dist/api/claims-api.d.ts +441 -0
- package/dist/api/claims-api.js +729 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/settlements-api.d.ts +375 -0
- package/dist/api/settlements-api.js +630 -0
- package/dist/api.d.ts +15 -0
- package/dist/api.js +33 -0
- package/dist/base.d.ts +73 -0
- package/dist/base.js +297 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +276 -0
- package/dist/configuration.d.ts +83 -0
- package/dist/configuration.js +44 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/claim-class.d.ts +156 -0
- package/dist/models/claim-class.js +15 -0
- package/dist/models/claim-status-class.d.ts +36 -0
- package/dist/models/claim-status-class.js +15 -0
- package/dist/models/create-claim-request-dto.d.ts +126 -0
- package/dist/models/create-claim-request-dto.js +15 -0
- package/dist/models/create-claim-response-class.d.ts +25 -0
- package/dist/models/create-claim-response-class.js +15 -0
- package/dist/models/create-claim-status-request-dto.d.ts +30 -0
- package/dist/models/create-claim-status-request-dto.js +15 -0
- package/dist/models/create-claim-status-response-class.d.ts +25 -0
- package/dist/models/create-claim-status-response-class.js +15 -0
- package/dist/models/create-settlement-request-dto.d.ts +48 -0
- package/dist/models/create-settlement-request-dto.js +15 -0
- package/dist/models/create-settlement-response-class.d.ts +25 -0
- package/dist/models/create-settlement-response-class.js +15 -0
- package/dist/models/get-claim-response-class.d.ts +25 -0
- package/dist/models/get-claim-response-class.js +15 -0
- package/dist/models/get-claim-status-response-class.d.ts +25 -0
- package/dist/models/get-claim-status-response-class.js +15 -0
- package/dist/models/get-settlement-response-class.d.ts +25 -0
- package/dist/models/get-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +23 -0
- package/dist/models/index.js +39 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/list-claim-statuses-response-class.d.ts +31 -0
- package/dist/models/list-claim-statuses-response-class.js +15 -0
- package/dist/models/list-claims-response-class.d.ts +31 -0
- package/dist/models/list-claims-response-class.js +15 -0
- package/dist/models/list-settlements-response-class.d.ts +31 -0
- package/dist/models/list-settlements-response-class.js +15 -0
- package/dist/models/patch-claim-request-dto.d.ts +126 -0
- package/dist/models/patch-claim-request-dto.js +15 -0
- package/dist/models/patch-claim-response-class.d.ts +25 -0
- package/dist/models/patch-claim-response-class.js +15 -0
- package/dist/models/settlement-class.d.ts +78 -0
- package/dist/models/settlement-class.js +15 -0
- package/dist/models/update-claim-request-dto.d.ts +126 -0
- package/dist/models/update-claim-request-dto.js +15 -0
- package/dist/models/update-claim-response-class.d.ts +25 -0
- package/dist/models/update-claim-response-class.js +15 -0
- package/dist/models/update-settlement-request-dto.d.ts +54 -0
- package/dist/models/update-settlement-request-dto.js +15 -0
- package/dist/models/update-settlement-response-class.d.ts +25 -0
- package/dist/models/update-settlement-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/claim-class.ts +162 -0
- package/models/claim-status-class.ts +42 -0
- package/models/create-claim-request-dto.ts +132 -0
- package/models/create-claim-response-class.ts +31 -0
- package/models/create-claim-status-request-dto.ts +36 -0
- package/models/create-claim-status-response-class.ts +31 -0
- package/models/create-settlement-request-dto.ts +54 -0
- package/models/create-settlement-response-class.ts +31 -0
- package/models/get-claim-response-class.ts +31 -0
- package/models/get-claim-status-response-class.ts +31 -0
- package/models/get-settlement-response-class.ts +31 -0
- package/models/index.ts +23 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/list-claim-statuses-response-class.ts +37 -0
- package/models/list-claims-response-class.ts +37 -0
- package/models/list-settlements-response-class.ts +37 -0
- package/models/patch-claim-request-dto.ts +132 -0
- package/models/patch-claim-response-class.ts +31 -0
- package/models/settlement-class.ts +84 -0
- package/models/update-claim-request-dto.ts +132 -0
- package/models/update-claim-response-class.ts +31 -0
- package/models/update-settlement-request-dto.ts +60 -0
- package/models/update-settlement-response-class.ts +31 -0
- package/package.json +27 -0
- package/tsconfig.json +22 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
.gitignore
|
|
2
|
+
.npmignore
|
|
3
|
+
.openapi-generator-ignore
|
|
4
|
+
README.md
|
|
5
|
+
api.ts
|
|
6
|
+
api/claim-statuses-api.ts
|
|
7
|
+
api/claims-api.ts
|
|
8
|
+
api/default-api.ts
|
|
9
|
+
api/settlements-api.ts
|
|
10
|
+
base.ts
|
|
11
|
+
common.ts
|
|
12
|
+
configuration.ts
|
|
13
|
+
git_push.sh
|
|
14
|
+
index.ts
|
|
15
|
+
models/claim-class.ts
|
|
16
|
+
models/claim-status-class.ts
|
|
17
|
+
models/create-claim-request-dto.ts
|
|
18
|
+
models/create-claim-response-class.ts
|
|
19
|
+
models/create-claim-status-request-dto.ts
|
|
20
|
+
models/create-claim-status-response-class.ts
|
|
21
|
+
models/create-settlement-request-dto.ts
|
|
22
|
+
models/create-settlement-response-class.ts
|
|
23
|
+
models/get-claim-response-class.ts
|
|
24
|
+
models/get-claim-status-response-class.ts
|
|
25
|
+
models/get-settlement-response-class.ts
|
|
26
|
+
models/index.ts
|
|
27
|
+
models/inline-response200.ts
|
|
28
|
+
models/inline-response503.ts
|
|
29
|
+
models/list-claim-statuses-response-class.ts
|
|
30
|
+
models/list-claims-response-class.ts
|
|
31
|
+
models/list-settlements-response-class.ts
|
|
32
|
+
models/patch-claim-request-dto.ts
|
|
33
|
+
models/patch-claim-response-class.ts
|
|
34
|
+
models/settlement-class.ts
|
|
35
|
+
models/update-claim-request-dto.ts
|
|
36
|
+
models/update-claim-response-class.ts
|
|
37
|
+
models/update-settlement-request-dto.ts
|
|
38
|
+
models/update-settlement-response-class.ts
|
|
39
|
+
package.json
|
|
40
|
+
tsconfig.json
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5.4.0
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# OpenAPI Generator Ignore
|
|
2
|
+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
|
3
|
+
|
|
4
|
+
# Use this file to prevent files from being overwritten by the generator.
|
|
5
|
+
# The patterns follow closely to .gitignore or .dockerignore.
|
|
6
|
+
|
|
7
|
+
# As an example, the C# client generator defines ApiClient.cs.
|
|
8
|
+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
|
9
|
+
#ApiClient.cs
|
|
10
|
+
|
|
11
|
+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
|
12
|
+
#foo/*/qux
|
|
13
|
+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
|
14
|
+
|
|
15
|
+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
|
16
|
+
#foo/**/qux
|
|
17
|
+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
|
18
|
+
|
|
19
|
+
# You can also negate patterns with an exclamation (!).
|
|
20
|
+
# For example, you can ignore all files in a docs folder with the file extension .md:
|
|
21
|
+
#docs/*.md
|
|
22
|
+
# Then explicitly reverse the ignore rule for a single file:
|
|
23
|
+
#!docs/README.md
|
package/README.md
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Emil Account SDK
|
|
2
|
+
|
|
3
|
+
This TypeScript/JavaScript client utilizes [axios](https://github.com/axios/axios). The generated module can be used with client-based applications (i.e. React).
|
|
4
|
+
|
|
5
|
+
Language level
|
|
6
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
7
|
+
* ES6
|
|
8
|
+
|
|
9
|
+
Module system
|
|
10
|
+
* CommonJS
|
|
11
|
+
* ES6 module system
|
|
12
|
+
|
|
13
|
+
Although this package can be used in both TypeScript and JavaScript, it is intended to be used with TypeScript. The definition should be automatically resolved via `package.json`. ([Reference](http://www.typescriptlang.org/docs/handbook/typings-for-npm-packages.html)). For more information, you can go to [Emil Api documentation](https://emil.stoplight.io/docs/emil-api/).
|
|
14
|
+
|
|
15
|
+
## Consuming
|
|
16
|
+
|
|
17
|
+
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
npm install @emilgroup/claim-sdk@1.0.0 --save
|
|
21
|
+
```
|
|
22
|
+
or
|
|
23
|
+
```
|
|
24
|
+
yarn add @emilgroup/claim-sdk@1.0.0
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
And then you can import `listClaimsApi`.
|
|
28
|
+
|
|
29
|
+
```ts
|
|
30
|
+
import { listClaimsApi } from '@emilgroup/claim-sdk'
|
|
31
|
+
|
|
32
|
+
const claimsApi = new listClaimsApi();
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
To use authentication protected endpoints, you have to first authorize. To do so, use the `authorize` function in `listClaimsApi`:
|
|
36
|
+
|
|
37
|
+
```ts
|
|
38
|
+
async function listClaims(): Promise<Void> {
|
|
39
|
+
try {
|
|
40
|
+
const claimsApi = new listClaimsApi();
|
|
41
|
+
|
|
42
|
+
await claimsApi.authorize('username', 'password');
|
|
43
|
+
|
|
44
|
+
const { data: { items } } = await claimsApi.listClaims();
|
|
45
|
+
|
|
46
|
+
console.log(items);
|
|
47
|
+
} catch(error) {
|
|
48
|
+
// process error
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
```
|
|
@@ -0,0 +1,543 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL ClaimService
|
|
5
|
+
* The EMIL ClaimService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateClaimStatusRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateClaimStatusResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetClaimStatusResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListClaimStatusesResponseClass } from '../models';
|
|
31
|
+
/**
|
|
32
|
+
* ClaimStatusesApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const ClaimStatusesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
* This creates a claim status in the database
|
|
39
|
+
* @summary Create the claim status
|
|
40
|
+
* @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
|
|
41
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
|
+
* @param {*} [options] Override http request option.
|
|
43
|
+
* @throws {RequiredError}
|
|
44
|
+
*/
|
|
45
|
+
createClaimStatus: async (createClaimStatusRequestDto: CreateClaimStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
46
|
+
// verify required parameter 'createClaimStatusRequestDto' is not null or undefined
|
|
47
|
+
assertParamExists('createClaimStatus', 'createClaimStatusRequestDto', createClaimStatusRequestDto)
|
|
48
|
+
const localVarPath = `/v1/claim-statuses`;
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
let baseAccessToken;
|
|
53
|
+
if (configuration) {
|
|
54
|
+
baseOptions = configuration.baseOptions;
|
|
55
|
+
baseAccessToken = configuration.accessToken;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
59
|
+
const localVarHeaderParameter = {} as any;
|
|
60
|
+
const localVarQueryParameter = {} as any;
|
|
61
|
+
|
|
62
|
+
// authentication bearer required
|
|
63
|
+
// http bearer authentication required
|
|
64
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
|
+
|
|
66
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
67
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
75
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
76
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
77
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createClaimStatusRequestDto, localVarRequestOptions, configuration)
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
url: toPathString(localVarUrlObj),
|
|
81
|
+
options: localVarRequestOptions,
|
|
82
|
+
};
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
|
|
86
|
+
* @summary Delete the claim status
|
|
87
|
+
* @param {number} id
|
|
88
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
89
|
+
* @param {*} [options] Override http request option.
|
|
90
|
+
* @throws {RequiredError}
|
|
91
|
+
*/
|
|
92
|
+
deleteClaimStatus: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
93
|
+
// verify required parameter 'id' is not null or undefined
|
|
94
|
+
assertParamExists('deleteClaimStatus', 'id', id)
|
|
95
|
+
const localVarPath = `/v1/claim-statuses/{id}`
|
|
96
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
97
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
98
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
99
|
+
let baseOptions;
|
|
100
|
+
let baseAccessToken;
|
|
101
|
+
if (configuration) {
|
|
102
|
+
baseOptions = configuration.baseOptions;
|
|
103
|
+
baseAccessToken = configuration.accessToken;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
107
|
+
const localVarHeaderParameter = {} as any;
|
|
108
|
+
const localVarQueryParameter = {} as any;
|
|
109
|
+
|
|
110
|
+
// authentication bearer required
|
|
111
|
+
// http bearer authentication required
|
|
112
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
|
+
|
|
114
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
115
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
122
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
url: toPathString(localVarUrlObj),
|
|
126
|
+
options: localVarRequestOptions,
|
|
127
|
+
};
|
|
128
|
+
},
|
|
129
|
+
/**
|
|
130
|
+
* Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
|
|
131
|
+
* @summary Retrieve the claim status
|
|
132
|
+
* @param {number} id
|
|
133
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
getClaimStatus: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
138
|
+
// verify required parameter 'id' is not null or undefined
|
|
139
|
+
assertParamExists('getClaimStatus', 'id', id)
|
|
140
|
+
const localVarPath = `/v1/claim-statuses/{id}`
|
|
141
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
142
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
143
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
144
|
+
let baseOptions;
|
|
145
|
+
let baseAccessToken;
|
|
146
|
+
if (configuration) {
|
|
147
|
+
baseOptions = configuration.baseOptions;
|
|
148
|
+
baseAccessToken = configuration.accessToken;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
152
|
+
const localVarHeaderParameter = {} as any;
|
|
153
|
+
const localVarQueryParameter = {} as any;
|
|
154
|
+
|
|
155
|
+
// authentication bearer required
|
|
156
|
+
// http bearer authentication required
|
|
157
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
158
|
+
|
|
159
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
160
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
167
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
168
|
+
|
|
169
|
+
return {
|
|
170
|
+
url: toPathString(localVarUrlObj),
|
|
171
|
+
options: localVarRequestOptions,
|
|
172
|
+
};
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
* Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
176
|
+
* @summary List claim statuses
|
|
177
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
178
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
179
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
180
|
+
* @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
181
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
182
|
+
* @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.
|
|
183
|
+
* @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.
|
|
184
|
+
* @param {*} [options] Override http request option.
|
|
185
|
+
* @throws {RequiredError}
|
|
186
|
+
*/
|
|
187
|
+
listClaimStatuses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
188
|
+
const localVarPath = `/v1/claim-statuses`;
|
|
189
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
190
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
191
|
+
let baseOptions;
|
|
192
|
+
let baseAccessToken;
|
|
193
|
+
if (configuration) {
|
|
194
|
+
baseOptions = configuration.baseOptions;
|
|
195
|
+
baseAccessToken = configuration.accessToken;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
199
|
+
const localVarHeaderParameter = {} as any;
|
|
200
|
+
const localVarQueryParameter = {} as any;
|
|
201
|
+
|
|
202
|
+
// authentication bearer required
|
|
203
|
+
// http bearer authentication required
|
|
204
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
205
|
+
|
|
206
|
+
if (pageSize !== undefined) {
|
|
207
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (pageToken !== undefined) {
|
|
211
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
if (filter !== undefined) {
|
|
215
|
+
localVarQueryParameter['filter'] = filter;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
if (search !== undefined) {
|
|
219
|
+
localVarQueryParameter['search'] = search;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (order !== undefined) {
|
|
223
|
+
localVarQueryParameter['order'] = order;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
if (expand !== undefined) {
|
|
227
|
+
localVarQueryParameter['expand'] = expand;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
237
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
238
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
239
|
+
|
|
240
|
+
return {
|
|
241
|
+
url: toPathString(localVarUrlObj),
|
|
242
|
+
options: localVarRequestOptions,
|
|
243
|
+
};
|
|
244
|
+
},
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* ClaimStatusesApi - functional programming interface
|
|
250
|
+
* @export
|
|
251
|
+
*/
|
|
252
|
+
export const ClaimStatusesApiFp = function(configuration?: Configuration) {
|
|
253
|
+
const localVarAxiosParamCreator = ClaimStatusesApiAxiosParamCreator(configuration)
|
|
254
|
+
return {
|
|
255
|
+
/**
|
|
256
|
+
* This creates a claim status in the database
|
|
257
|
+
* @summary Create the claim status
|
|
258
|
+
* @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
|
|
259
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
260
|
+
* @param {*} [options] Override http request option.
|
|
261
|
+
* @throws {RequiredError}
|
|
262
|
+
*/
|
|
263
|
+
async createClaimStatus(createClaimStatusRequestDto: CreateClaimStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateClaimStatusResponseClass>> {
|
|
264
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createClaimStatus(createClaimStatusRequestDto, authorization, options);
|
|
265
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
|
|
269
|
+
* @summary Delete the claim status
|
|
270
|
+
* @param {number} id
|
|
271
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
async deleteClaimStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
276
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteClaimStatus(id, authorization, options);
|
|
277
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
|
|
281
|
+
* @summary Retrieve the claim status
|
|
282
|
+
* @param {number} id
|
|
283
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
async getClaimStatus(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetClaimStatusResponseClass>> {
|
|
288
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getClaimStatus(id, authorization, options);
|
|
289
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
290
|
+
},
|
|
291
|
+
/**
|
|
292
|
+
* Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
293
|
+
* @summary List claim statuses
|
|
294
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
295
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
296
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
297
|
+
* @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
298
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
299
|
+
* @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.
|
|
300
|
+
* @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.
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
async listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListClaimStatusesResponseClass>> {
|
|
305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
306
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
|
+
},
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* ClaimStatusesApi - factory interface
|
|
313
|
+
* @export
|
|
314
|
+
*/
|
|
315
|
+
export const ClaimStatusesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
316
|
+
const localVarFp = ClaimStatusesApiFp(configuration)
|
|
317
|
+
return {
|
|
318
|
+
/**
|
|
319
|
+
* This creates a claim status in the database
|
|
320
|
+
* @summary Create the claim status
|
|
321
|
+
* @param {CreateClaimStatusRequestDto} createClaimStatusRequestDto
|
|
322
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
323
|
+
* @param {*} [options] Override http request option.
|
|
324
|
+
* @throws {RequiredError}
|
|
325
|
+
*/
|
|
326
|
+
createClaimStatus(createClaimStatusRequestDto: CreateClaimStatusRequestDto, authorization?: string, options?: any): AxiosPromise<CreateClaimStatusResponseClass> {
|
|
327
|
+
return localVarFp.createClaimStatus(createClaimStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
* Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
|
|
331
|
+
* @summary Delete the claim status
|
|
332
|
+
* @param {number} id
|
|
333
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
deleteClaimStatus(id: number, authorization?: string, options?: any): AxiosPromise<void> {
|
|
338
|
+
return localVarFp.deleteClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
* Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
|
|
342
|
+
* @summary Retrieve the claim status
|
|
343
|
+
* @param {number} id
|
|
344
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
getClaimStatus(id: number, authorization?: string, options?: any): AxiosPromise<GetClaimStatusResponseClass> {
|
|
349
|
+
return localVarFp.getClaimStatus(id, authorization, options).then((request) => request(axios, basePath));
|
|
350
|
+
},
|
|
351
|
+
/**
|
|
352
|
+
* Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
353
|
+
* @summary List claim statuses
|
|
354
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
355
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
356
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
357
|
+
* @param {'id' | 'name' | 'productSlug'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
358
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
359
|
+
* @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.
|
|
360
|
+
* @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.
|
|
361
|
+
* @param {*} [options] Override http request option.
|
|
362
|
+
* @throws {RequiredError}
|
|
363
|
+
*/
|
|
364
|
+
listClaimStatuses(authorization?: string, pageSize?: any, pageToken?: any, filter?: 'id' | 'name' | 'productSlug', search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListClaimStatusesResponseClass> {
|
|
365
|
+
return localVarFp.listClaimStatuses(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
366
|
+
},
|
|
367
|
+
};
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
/**
|
|
371
|
+
* Request parameters for createClaimStatus operation in ClaimStatusesApi.
|
|
372
|
+
* @export
|
|
373
|
+
* @interface ClaimStatusesApiCreateClaimStatusRequest
|
|
374
|
+
*/
|
|
375
|
+
export interface ClaimStatusesApiCreateClaimStatusRequest {
|
|
376
|
+
/**
|
|
377
|
+
*
|
|
378
|
+
* @type {CreateClaimStatusRequestDto}
|
|
379
|
+
* @memberof ClaimStatusesApiCreateClaimStatus
|
|
380
|
+
*/
|
|
381
|
+
readonly createClaimStatusRequestDto: CreateClaimStatusRequestDto
|
|
382
|
+
|
|
383
|
+
/**
|
|
384
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
385
|
+
* @type {string}
|
|
386
|
+
* @memberof ClaimStatusesApiCreateClaimStatus
|
|
387
|
+
*/
|
|
388
|
+
readonly authorization?: string
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
/**
|
|
392
|
+
* Request parameters for deleteClaimStatus operation in ClaimStatusesApi.
|
|
393
|
+
* @export
|
|
394
|
+
* @interface ClaimStatusesApiDeleteClaimStatusRequest
|
|
395
|
+
*/
|
|
396
|
+
export interface ClaimStatusesApiDeleteClaimStatusRequest {
|
|
397
|
+
/**
|
|
398
|
+
*
|
|
399
|
+
* @type {number}
|
|
400
|
+
* @memberof ClaimStatusesApiDeleteClaimStatus
|
|
401
|
+
*/
|
|
402
|
+
readonly id: number
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
406
|
+
* @type {string}
|
|
407
|
+
* @memberof ClaimStatusesApiDeleteClaimStatus
|
|
408
|
+
*/
|
|
409
|
+
readonly authorization?: string
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Request parameters for getClaimStatus operation in ClaimStatusesApi.
|
|
414
|
+
* @export
|
|
415
|
+
* @interface ClaimStatusesApiGetClaimStatusRequest
|
|
416
|
+
*/
|
|
417
|
+
export interface ClaimStatusesApiGetClaimStatusRequest {
|
|
418
|
+
/**
|
|
419
|
+
*
|
|
420
|
+
* @type {number}
|
|
421
|
+
* @memberof ClaimStatusesApiGetClaimStatus
|
|
422
|
+
*/
|
|
423
|
+
readonly id: number
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
427
|
+
* @type {string}
|
|
428
|
+
* @memberof ClaimStatusesApiGetClaimStatus
|
|
429
|
+
*/
|
|
430
|
+
readonly authorization?: string
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
/**
|
|
434
|
+
* Request parameters for listClaimStatuses operation in ClaimStatusesApi.
|
|
435
|
+
* @export
|
|
436
|
+
* @interface ClaimStatusesApiListClaimStatusesRequest
|
|
437
|
+
*/
|
|
438
|
+
export interface ClaimStatusesApiListClaimStatusesRequest {
|
|
439
|
+
/**
|
|
440
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
441
|
+
* @type {string}
|
|
442
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
443
|
+
*/
|
|
444
|
+
readonly authorization?: string
|
|
445
|
+
|
|
446
|
+
/**
|
|
447
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
448
|
+
* @type {any}
|
|
449
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
450
|
+
*/
|
|
451
|
+
readonly pageSize?: any
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
455
|
+
* @type {any}
|
|
456
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
457
|
+
*/
|
|
458
|
+
readonly pageToken?: any
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
462
|
+
* @type {'id' | 'name' | 'productSlug'}
|
|
463
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
464
|
+
*/
|
|
465
|
+
readonly filter?: 'id' | 'name' | 'productSlug'
|
|
466
|
+
|
|
467
|
+
/**
|
|
468
|
+
* Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
469
|
+
* @type {any}
|
|
470
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
471
|
+
*/
|
|
472
|
+
readonly search?: any
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* 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.
|
|
476
|
+
* @type {any}
|
|
477
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
478
|
+
*/
|
|
479
|
+
readonly order?: any
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* 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.
|
|
483
|
+
* @type {any}
|
|
484
|
+
* @memberof ClaimStatusesApiListClaimStatuses
|
|
485
|
+
*/
|
|
486
|
+
readonly expand?: any
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* ClaimStatusesApi - object-oriented interface
|
|
491
|
+
* @export
|
|
492
|
+
* @class ClaimStatusesApi
|
|
493
|
+
* @extends {BaseAPI}
|
|
494
|
+
*/
|
|
495
|
+
export class ClaimStatusesApi extends BaseAPI {
|
|
496
|
+
/**
|
|
497
|
+
* This creates a claim status in the database
|
|
498
|
+
* @summary Create the claim status
|
|
499
|
+
* @param {ClaimStatusesApiCreateClaimStatusRequest} requestParameters Request parameters.
|
|
500
|
+
* @param {*} [options] Override http request option.
|
|
501
|
+
* @throws {RequiredError}
|
|
502
|
+
* @memberof ClaimStatusesApi
|
|
503
|
+
*/
|
|
504
|
+
public createClaimStatus(requestParameters: ClaimStatusesApiCreateClaimStatusRequest, options?: AxiosRequestConfig) {
|
|
505
|
+
return ClaimStatusesApiFp(this.configuration).createClaimStatus(requestParameters.createClaimStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* Permanently deletes the claim status. Supply the unique id that was returned when you created the claim status and this will delete it.
|
|
510
|
+
* @summary Delete the claim status
|
|
511
|
+
* @param {ClaimStatusesApiDeleteClaimStatusRequest} requestParameters Request parameters.
|
|
512
|
+
* @param {*} [options] Override http request option.
|
|
513
|
+
* @throws {RequiredError}
|
|
514
|
+
* @memberof ClaimStatusesApi
|
|
515
|
+
*/
|
|
516
|
+
public deleteClaimStatus(requestParameters: ClaimStatusesApiDeleteClaimStatusRequest, options?: AxiosRequestConfig) {
|
|
517
|
+
return ClaimStatusesApiFp(this.configuration).deleteClaimStatus(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
518
|
+
}
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* Retrieves the details of the claim status that was previously created. Supply the unique claim status id that was returned when you created it and Emil Api will return the corresponding claim status information.
|
|
522
|
+
* @summary Retrieve the claim status
|
|
523
|
+
* @param {ClaimStatusesApiGetClaimStatusRequest} requestParameters Request parameters.
|
|
524
|
+
* @param {*} [options] Override http request option.
|
|
525
|
+
* @throws {RequiredError}
|
|
526
|
+
* @memberof ClaimStatusesApi
|
|
527
|
+
*/
|
|
528
|
+
public getClaimStatus(requestParameters: ClaimStatusesApiGetClaimStatusRequest, options?: AxiosRequestConfig) {
|
|
529
|
+
return ClaimStatusesApiFp(this.configuration).getClaimStatus(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* Returns a list of claim statuses you have previously created. The claim statuses are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
534
|
+
* @summary List claim statuses
|
|
535
|
+
* @param {ClaimStatusesApiListClaimStatusesRequest} requestParameters Request parameters.
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
* @memberof ClaimStatusesApi
|
|
539
|
+
*/
|
|
540
|
+
public listClaimStatuses(requestParameters: ClaimStatusesApiListClaimStatusesRequest = {}, options?: AxiosRequestConfig) {
|
|
541
|
+
return ClaimStatusesApiFp(this.configuration).listClaimStatuses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
542
|
+
}
|
|
543
|
+
}
|