@emilgroup/commission-sdk-node 1.0.0-beta.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.
- package/.openapi-generator/FILES +40 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +84 -0
- package/api/commission-agreement-versions-api.ts +535 -0
- package/api/commission-agreements-api.ts +642 -0
- package/api/commissions-api.ts +641 -0
- package/api/default-api.ts +128 -0
- package/api.ts +37 -0
- package/base.ts +327 -0
- package/common.ts +199 -0
- package/configuration.ts +118 -0
- package/dist/api/commission-agreement-versions-api.d.ts +300 -0
- package/dist/api/commission-agreement-versions-api.js +531 -0
- package/dist/api/commission-agreements-api.d.ts +357 -0
- package/dist/api/commission-agreements-api.js +624 -0
- package/dist/api/commissions-api.d.ts +357 -0
- package/dist/api/commissions-api.js +624 -0
- package/dist/api/default-api.d.ts +70 -0
- package/dist/api/default-api.js +204 -0
- package/dist/api.d.ts +15 -0
- package/dist/api.js +33 -0
- package/dist/base.d.ts +88 -0
- package/dist/base.js +434 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/commission-agreement-class.d.ts +89 -0
- package/dist/models/commission-agreement-class.js +25 -0
- package/dist/models/commission-agreement-version-class.d.ts +79 -0
- package/dist/models/commission-agreement-version-class.js +15 -0
- package/dist/models/commission-class.d.ts +103 -0
- package/dist/models/commission-class.js +15 -0
- package/dist/models/commission-item-class.d.ts +84 -0
- package/dist/models/commission-item-class.js +21 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +71 -0
- package/dist/models/create-commission-agreement-request-dto.js +25 -0
- package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +42 -0
- package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-version-response-class.js +15 -0
- package/dist/models/create-commission-item-request-dto.d.ts +48 -0
- package/dist/models/create-commission-item-request-dto.js +21 -0
- package/dist/models/create-commission-request-dto.d.ts +55 -0
- package/dist/models/create-commission-request-dto.js +15 -0
- package/dist/models/create-commission-response-class.d.ts +25 -0
- package/dist/models/create-commission-response-class.js +15 -0
- package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-response-class.js +15 -0
- package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-version-response-class.js +15 -0
- package/dist/models/get-commission-response-class.d.ts +25 -0
- package/dist/models/get-commission-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-commission-agreement-versions-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
- package/dist/models/list-commission-agreements-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-response-class.js +15 -0
- package/dist/models/list-commissions-response-class.d.ts +43 -0
- package/dist/models/list-commissions-response-class.js +15 -0
- package/dist/models/update-commission-agreement-request-dto.d.ts +48 -0
- package/dist/models/update-commission-agreement-request-dto.js +21 -0
- package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-response-class.js +15 -0
- package/dist/models/update-commission-request-dto.d.ts +53 -0
- package/dist/models/update-commission-request-dto.js +20 -0
- package/dist/models/update-commission-response-class.d.ts +25 -0
- package/dist/models/update-commission-response-class.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/commission-agreement-class.ts +99 -0
- package/models/commission-agreement-version-class.ts +85 -0
- package/models/commission-class.ts +109 -0
- package/models/commission-item-class.ts +93 -0
- package/models/create-commission-agreement-request-dto.ts +81 -0
- package/models/create-commission-agreement-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +48 -0
- package/models/create-commission-agreement-version-response-class.ts +31 -0
- package/models/create-commission-item-request-dto.ts +57 -0
- package/models/create-commission-request-dto.ts +61 -0
- package/models/create-commission-response-class.ts +31 -0
- package/models/get-commission-agreement-response-class.ts +31 -0
- package/models/get-commission-agreement-version-response-class.ts +31 -0
- package/models/get-commission-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-commission-agreement-versions-response-class.ts +49 -0
- package/models/list-commission-agreements-response-class.ts +49 -0
- package/models/list-commissions-response-class.ts +49 -0
- package/models/update-commission-agreement-request-dto.ts +57 -0
- package/models/update-commission-agreement-response-class.ts +31 -0
- package/models/update-commission-request-dto.ts +62 -0
- package/models/update-commission-response-class.ts +31 -0
- package/package.json +29 -0
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,535 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService 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 { CreateCommissionAgreementVersionRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateCommissionAgreementVersionResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetCommissionAgreementVersionResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ListCommissionAgreementVersionsResponseClass } from '../models';
|
|
31
|
+
// URLSearchParams not necessarily used
|
|
32
|
+
// @ts-ignore
|
|
33
|
+
import { URL, URLSearchParams } from 'url';
|
|
34
|
+
const FormData = require('form-data');
|
|
35
|
+
/**
|
|
36
|
+
* CommissionAgreementVersionsApi - axios parameter creator
|
|
37
|
+
* @export
|
|
38
|
+
*/
|
|
39
|
+
export const CommissionAgreementVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
|
+
return {
|
|
41
|
+
/**
|
|
42
|
+
* This will create commission agreement version.
|
|
43
|
+
* @summary Create the commission agreement version
|
|
44
|
+
* @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
|
|
45
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createCommissionAgreementVersion: async (createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
50
|
+
// verify required parameter 'createCommissionAgreementVersionRequestDto' is not null or undefined
|
|
51
|
+
assertParamExists('createCommissionAgreementVersion', 'createCommissionAgreementVersionRequestDto', createCommissionAgreementVersionRequestDto)
|
|
52
|
+
const localVarPath = `/commissionservice/v1/agreement-versions`;
|
|
53
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
|
+
let baseOptions;
|
|
56
|
+
let baseAccessToken;
|
|
57
|
+
if (configuration) {
|
|
58
|
+
baseOptions = configuration.baseOptions;
|
|
59
|
+
baseAccessToken = configuration.accessToken;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
63
|
+
const localVarHeaderParameter = {} as any;
|
|
64
|
+
const localVarQueryParameter = {} as any;
|
|
65
|
+
|
|
66
|
+
// authentication bearer required
|
|
67
|
+
// http bearer authentication required
|
|
68
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
|
+
|
|
70
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementVersionRequestDto, localVarRequestOptions, configuration)
|
|
82
|
+
|
|
83
|
+
return {
|
|
84
|
+
url: toPathString(localVarUrlObj),
|
|
85
|
+
options: localVarRequestOptions,
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
/**
|
|
89
|
+
* This will delete commission agreement version.
|
|
90
|
+
* @summary Delete the commission agreement version
|
|
91
|
+
* @param {string} code Unique identifier for the object.
|
|
92
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
deleteCommissionAgreementVersion: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'code' is not null or undefined
|
|
98
|
+
assertParamExists('deleteCommissionAgreementVersion', 'code', code)
|
|
99
|
+
const localVarPath = `/commissionservice/v1/agreement-versions/{code}`
|
|
100
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* This will get commission agreement version.
|
|
135
|
+
* @summary Retrieve the commission agreement version
|
|
136
|
+
* @param {string} code
|
|
137
|
+
* @param {string} expand
|
|
138
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getCommissionAgreementVersion: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
143
|
+
// verify required parameter 'code' is not null or undefined
|
|
144
|
+
assertParamExists('getCommissionAgreementVersion', 'code', code)
|
|
145
|
+
// verify required parameter 'expand' is not null or undefined
|
|
146
|
+
assertParamExists('getCommissionAgreementVersion', 'expand', expand)
|
|
147
|
+
const localVarPath = `/commissionservice/v1/agreement-versions/{code}`
|
|
148
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
149
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
150
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
151
|
+
let baseOptions;
|
|
152
|
+
let baseAccessToken;
|
|
153
|
+
if (configuration) {
|
|
154
|
+
baseOptions = configuration.baseOptions;
|
|
155
|
+
baseAccessToken = configuration.accessToken;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
159
|
+
const localVarHeaderParameter = {} as any;
|
|
160
|
+
const localVarQueryParameter = {} as any;
|
|
161
|
+
|
|
162
|
+
// authentication bearer required
|
|
163
|
+
// http bearer authentication required
|
|
164
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
165
|
+
|
|
166
|
+
if (expand !== undefined) {
|
|
167
|
+
localVarQueryParameter['expand'] = expand;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
171
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
177
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
178
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
179
|
+
|
|
180
|
+
return {
|
|
181
|
+
url: toPathString(localVarUrlObj),
|
|
182
|
+
options: localVarRequestOptions,
|
|
183
|
+
};
|
|
184
|
+
},
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves a list of commission agreement versions.
|
|
187
|
+
* @summary List commission agreement versions
|
|
188
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
190
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
191
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, startDate, endDate</i>
|
|
192
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
listCommissionAgreementVersions: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
197
|
+
const localVarPath = `/commissionservice/v1/agreement-versions`;
|
|
198
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
199
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
200
|
+
let baseOptions;
|
|
201
|
+
let baseAccessToken;
|
|
202
|
+
if (configuration) {
|
|
203
|
+
baseOptions = configuration.baseOptions;
|
|
204
|
+
baseAccessToken = configuration.accessToken;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
208
|
+
const localVarHeaderParameter = {} as any;
|
|
209
|
+
const localVarQueryParameter = {} as any;
|
|
210
|
+
|
|
211
|
+
// authentication bearer required
|
|
212
|
+
// http bearer authentication required
|
|
213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
214
|
+
|
|
215
|
+
if (filter !== undefined) {
|
|
216
|
+
localVarQueryParameter['filter'] = filter;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (filters !== undefined) {
|
|
220
|
+
localVarQueryParameter['filters'] = filters;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (order !== undefined) {
|
|
224
|
+
localVarQueryParameter['order'] = order;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (expand !== undefined) {
|
|
228
|
+
localVarQueryParameter['expand'] = expand;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
232
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
|
|
237
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
238
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
239
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
240
|
+
|
|
241
|
+
return {
|
|
242
|
+
url: toPathString(localVarUrlObj),
|
|
243
|
+
options: localVarRequestOptions,
|
|
244
|
+
};
|
|
245
|
+
},
|
|
246
|
+
}
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* CommissionAgreementVersionsApi - functional programming interface
|
|
251
|
+
* @export
|
|
252
|
+
*/
|
|
253
|
+
export const CommissionAgreementVersionsApiFp = function(configuration?: Configuration) {
|
|
254
|
+
const localVarAxiosParamCreator = CommissionAgreementVersionsApiAxiosParamCreator(configuration)
|
|
255
|
+
return {
|
|
256
|
+
/**
|
|
257
|
+
* This will create commission agreement version.
|
|
258
|
+
* @summary Create the commission agreement version
|
|
259
|
+
* @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
|
|
260
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
261
|
+
* @param {*} [options] Override http request option.
|
|
262
|
+
* @throws {RequiredError}
|
|
263
|
+
*/
|
|
264
|
+
async createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementVersionResponseClass>> {
|
|
265
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto, authorization, options);
|
|
266
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
267
|
+
},
|
|
268
|
+
/**
|
|
269
|
+
* This will delete commission agreement version.
|
|
270
|
+
* @summary Delete the commission agreement version
|
|
271
|
+
* @param {string} code Unique identifier for the object.
|
|
272
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
273
|
+
* @param {*} [options] Override http request option.
|
|
274
|
+
* @throws {RequiredError}
|
|
275
|
+
*/
|
|
276
|
+
async deleteCommissionAgreementVersion(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
277
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementVersion(code, authorization, options);
|
|
278
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
279
|
+
},
|
|
280
|
+
/**
|
|
281
|
+
* This will get commission agreement version.
|
|
282
|
+
* @summary Retrieve the commission agreement version
|
|
283
|
+
* @param {string} code
|
|
284
|
+
* @param {string} expand
|
|
285
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
async getCommissionAgreementVersion(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementVersionResponseClass>> {
|
|
290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementVersion(code, expand, authorization, options);
|
|
291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
* Retrieves a list of commission agreement versions.
|
|
295
|
+
* @summary List commission agreement versions
|
|
296
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
297
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
298
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
299
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, startDate, endDate</i>
|
|
300
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
301
|
+
* @param {*} [options] Override http request option.
|
|
302
|
+
* @throws {RequiredError}
|
|
303
|
+
*/
|
|
304
|
+
async listCommissionAgreementVersions(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementVersionsResponseClass>> {
|
|
305
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, filter, filters, order, expand, options);
|
|
306
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
307
|
+
},
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* CommissionAgreementVersionsApi - factory interface
|
|
313
|
+
* @export
|
|
314
|
+
*/
|
|
315
|
+
export const CommissionAgreementVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
316
|
+
const localVarFp = CommissionAgreementVersionsApiFp(configuration)
|
|
317
|
+
return {
|
|
318
|
+
/**
|
|
319
|
+
* This will create commission agreement version.
|
|
320
|
+
* @summary Create the commission agreement version
|
|
321
|
+
* @param {CreateCommissionAgreementVersionRequestDto} createCommissionAgreementVersionRequestDto
|
|
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
|
+
createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementVersionResponseClass> {
|
|
327
|
+
return localVarFp.createCommissionAgreementVersion(createCommissionAgreementVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
328
|
+
},
|
|
329
|
+
/**
|
|
330
|
+
* This will delete commission agreement version.
|
|
331
|
+
* @summary Delete the commission agreement version
|
|
332
|
+
* @param {string} code Unique identifier for the object.
|
|
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
|
+
deleteCommissionAgreementVersion(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
338
|
+
return localVarFp.deleteCommissionAgreementVersion(code, authorization, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
340
|
+
/**
|
|
341
|
+
* This will get commission agreement version.
|
|
342
|
+
* @summary Retrieve the commission agreement version
|
|
343
|
+
* @param {string} code
|
|
344
|
+
* @param {string} expand
|
|
345
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
346
|
+
* @param {*} [options] Override http request option.
|
|
347
|
+
* @throws {RequiredError}
|
|
348
|
+
*/
|
|
349
|
+
getCommissionAgreementVersion(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementVersionResponseClass> {
|
|
350
|
+
return localVarFp.getCommissionAgreementVersion(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
351
|
+
},
|
|
352
|
+
/**
|
|
353
|
+
* Retrieves a list of commission agreement versions.
|
|
354
|
+
* @summary List commission agreement versions
|
|
355
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
356
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
357
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
358
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, startDate, endDate</i>
|
|
359
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
360
|
+
* @param {*} [options] Override http request option.
|
|
361
|
+
* @throws {RequiredError}
|
|
362
|
+
*/
|
|
363
|
+
listCommissionAgreementVersions(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementVersionsResponseClass> {
|
|
364
|
+
return localVarFp.listCommissionAgreementVersions(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
|
|
365
|
+
},
|
|
366
|
+
};
|
|
367
|
+
};
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* Request parameters for createCommissionAgreementVersion operation in CommissionAgreementVersionsApi.
|
|
371
|
+
* @export
|
|
372
|
+
* @interface CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest
|
|
373
|
+
*/
|
|
374
|
+
export interface CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest {
|
|
375
|
+
/**
|
|
376
|
+
*
|
|
377
|
+
* @type {CreateCommissionAgreementVersionRequestDto}
|
|
378
|
+
* @memberof CommissionAgreementVersionsApiCreateCommissionAgreementVersion
|
|
379
|
+
*/
|
|
380
|
+
readonly createCommissionAgreementVersionRequestDto: CreateCommissionAgreementVersionRequestDto
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
+
* @type {string}
|
|
385
|
+
* @memberof CommissionAgreementVersionsApiCreateCommissionAgreementVersion
|
|
386
|
+
*/
|
|
387
|
+
readonly authorization?: string
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Request parameters for deleteCommissionAgreementVersion operation in CommissionAgreementVersionsApi.
|
|
392
|
+
* @export
|
|
393
|
+
* @interface CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest
|
|
394
|
+
*/
|
|
395
|
+
export interface CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest {
|
|
396
|
+
/**
|
|
397
|
+
* Unique identifier for the object.
|
|
398
|
+
* @type {string}
|
|
399
|
+
* @memberof CommissionAgreementVersionsApiDeleteCommissionAgreementVersion
|
|
400
|
+
*/
|
|
401
|
+
readonly code: string
|
|
402
|
+
|
|
403
|
+
/**
|
|
404
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
405
|
+
* @type {string}
|
|
406
|
+
* @memberof CommissionAgreementVersionsApiDeleteCommissionAgreementVersion
|
|
407
|
+
*/
|
|
408
|
+
readonly authorization?: string
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Request parameters for getCommissionAgreementVersion operation in CommissionAgreementVersionsApi.
|
|
413
|
+
* @export
|
|
414
|
+
* @interface CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest
|
|
415
|
+
*/
|
|
416
|
+
export interface CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest {
|
|
417
|
+
/**
|
|
418
|
+
*
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof CommissionAgreementVersionsApiGetCommissionAgreementVersion
|
|
421
|
+
*/
|
|
422
|
+
readonly code: string
|
|
423
|
+
|
|
424
|
+
/**
|
|
425
|
+
*
|
|
426
|
+
* @type {string}
|
|
427
|
+
* @memberof CommissionAgreementVersionsApiGetCommissionAgreementVersion
|
|
428
|
+
*/
|
|
429
|
+
readonly expand: string
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
433
|
+
* @type {string}
|
|
434
|
+
* @memberof CommissionAgreementVersionsApiGetCommissionAgreementVersion
|
|
435
|
+
*/
|
|
436
|
+
readonly authorization?: string
|
|
437
|
+
}
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* Request parameters for listCommissionAgreementVersions operation in CommissionAgreementVersionsApi.
|
|
441
|
+
* @export
|
|
442
|
+
* @interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest
|
|
443
|
+
*/
|
|
444
|
+
export interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest {
|
|
445
|
+
/**
|
|
446
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
447
|
+
* @type {string}
|
|
448
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
449
|
+
*/
|
|
450
|
+
readonly authorization?: string
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
454
|
+
* @type {string}
|
|
455
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
456
|
+
*/
|
|
457
|
+
readonly filter?: string
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
|
|
461
|
+
* @type {string}
|
|
462
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
463
|
+
*/
|
|
464
|
+
readonly filters?: string
|
|
465
|
+
|
|
466
|
+
/**
|
|
467
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, startDate, endDate</i>
|
|
468
|
+
* @type {string}
|
|
469
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
470
|
+
*/
|
|
471
|
+
readonly order?: string
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
475
|
+
* @type {string}
|
|
476
|
+
* @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
|
|
477
|
+
*/
|
|
478
|
+
readonly expand?: string
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* CommissionAgreementVersionsApi - object-oriented interface
|
|
483
|
+
* @export
|
|
484
|
+
* @class CommissionAgreementVersionsApi
|
|
485
|
+
* @extends {BaseAPI}
|
|
486
|
+
*/
|
|
487
|
+
export class CommissionAgreementVersionsApi extends BaseAPI {
|
|
488
|
+
/**
|
|
489
|
+
* This will create commission agreement version.
|
|
490
|
+
* @summary Create the commission agreement version
|
|
491
|
+
* @param {CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest} requestParameters Request parameters.
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
* @memberof CommissionAgreementVersionsApi
|
|
495
|
+
*/
|
|
496
|
+
public createCommissionAgreementVersion(requestParameters: CommissionAgreementVersionsApiCreateCommissionAgreementVersionRequest, options?: AxiosRequestConfig) {
|
|
497
|
+
return CommissionAgreementVersionsApiFp(this.configuration).createCommissionAgreementVersion(requestParameters.createCommissionAgreementVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* This will delete commission agreement version.
|
|
502
|
+
* @summary Delete the commission agreement version
|
|
503
|
+
* @param {CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest} requestParameters Request parameters.
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
* @memberof CommissionAgreementVersionsApi
|
|
507
|
+
*/
|
|
508
|
+
public deleteCommissionAgreementVersion(requestParameters: CommissionAgreementVersionsApiDeleteCommissionAgreementVersionRequest, options?: AxiosRequestConfig) {
|
|
509
|
+
return CommissionAgreementVersionsApiFp(this.configuration).deleteCommissionAgreementVersion(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* This will get commission agreement version.
|
|
514
|
+
* @summary Retrieve the commission agreement version
|
|
515
|
+
* @param {CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest} requestParameters Request parameters.
|
|
516
|
+
* @param {*} [options] Override http request option.
|
|
517
|
+
* @throws {RequiredError}
|
|
518
|
+
* @memberof CommissionAgreementVersionsApi
|
|
519
|
+
*/
|
|
520
|
+
public getCommissionAgreementVersion(requestParameters: CommissionAgreementVersionsApiGetCommissionAgreementVersionRequest, options?: AxiosRequestConfig) {
|
|
521
|
+
return CommissionAgreementVersionsApiFp(this.configuration).getCommissionAgreementVersion(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Retrieves a list of commission agreement versions.
|
|
526
|
+
* @summary List commission agreement versions
|
|
527
|
+
* @param {CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest} requestParameters Request parameters.
|
|
528
|
+
* @param {*} [options] Override http request option.
|
|
529
|
+
* @throws {RequiredError}
|
|
530
|
+
* @memberof CommissionAgreementVersionsApi
|
|
531
|
+
*/
|
|
532
|
+
public listCommissionAgreementVersions(requestParameters: CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest = {}, options?: AxiosRequestConfig) {
|
|
533
|
+
return CommissionAgreementVersionsApiFp(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
534
|
+
}
|
|
535
|
+
}
|