@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.
Files changed (106) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/README.md +84 -0
  5. package/api/commission-agreement-versions-api.ts +535 -0
  6. package/api/commission-agreements-api.ts +642 -0
  7. package/api/commissions-api.ts +641 -0
  8. package/api/default-api.ts +128 -0
  9. package/api.ts +37 -0
  10. package/base.ts +327 -0
  11. package/common.ts +199 -0
  12. package/configuration.ts +118 -0
  13. package/dist/api/commission-agreement-versions-api.d.ts +300 -0
  14. package/dist/api/commission-agreement-versions-api.js +531 -0
  15. package/dist/api/commission-agreements-api.d.ts +357 -0
  16. package/dist/api/commission-agreements-api.js +624 -0
  17. package/dist/api/commissions-api.d.ts +357 -0
  18. package/dist/api/commissions-api.js +624 -0
  19. package/dist/api/default-api.d.ts +70 -0
  20. package/dist/api/default-api.js +204 -0
  21. package/dist/api.d.ts +15 -0
  22. package/dist/api.js +33 -0
  23. package/dist/base.d.ts +88 -0
  24. package/dist/base.js +434 -0
  25. package/dist/common.d.ts +92 -0
  26. package/dist/common.js +277 -0
  27. package/dist/configuration.d.ts +96 -0
  28. package/dist/configuration.js +52 -0
  29. package/dist/index.d.ts +15 -0
  30. package/dist/index.js +36 -0
  31. package/dist/models/commission-agreement-class.d.ts +89 -0
  32. package/dist/models/commission-agreement-class.js +25 -0
  33. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  34. package/dist/models/commission-agreement-version-class.js +15 -0
  35. package/dist/models/commission-class.d.ts +103 -0
  36. package/dist/models/commission-class.js +15 -0
  37. package/dist/models/commission-item-class.d.ts +84 -0
  38. package/dist/models/commission-item-class.js +21 -0
  39. package/dist/models/create-commission-agreement-request-dto.d.ts +71 -0
  40. package/dist/models/create-commission-agreement-request-dto.js +25 -0
  41. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  42. package/dist/models/create-commission-agreement-response-class.js +15 -0
  43. package/dist/models/create-commission-agreement-version-request-dto.d.ts +42 -0
  44. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  45. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  46. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  47. package/dist/models/create-commission-item-request-dto.d.ts +48 -0
  48. package/dist/models/create-commission-item-request-dto.js +21 -0
  49. package/dist/models/create-commission-request-dto.d.ts +55 -0
  50. package/dist/models/create-commission-request-dto.js +15 -0
  51. package/dist/models/create-commission-response-class.d.ts +25 -0
  52. package/dist/models/create-commission-response-class.js +15 -0
  53. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  54. package/dist/models/get-commission-agreement-response-class.js +15 -0
  55. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  56. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  57. package/dist/models/get-commission-response-class.d.ts +25 -0
  58. package/dist/models/get-commission-response-class.js +15 -0
  59. package/dist/models/index.d.ts +23 -0
  60. package/dist/models/index.js +39 -0
  61. package/dist/models/inline-response200.d.ts +54 -0
  62. package/dist/models/inline-response200.js +15 -0
  63. package/dist/models/inline-response503.d.ts +54 -0
  64. package/dist/models/inline-response503.js +15 -0
  65. package/dist/models/list-commission-agreement-versions-response-class.d.ts +43 -0
  66. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  67. package/dist/models/list-commission-agreements-response-class.d.ts +43 -0
  68. package/dist/models/list-commission-agreements-response-class.js +15 -0
  69. package/dist/models/list-commissions-response-class.d.ts +43 -0
  70. package/dist/models/list-commissions-response-class.js +15 -0
  71. package/dist/models/update-commission-agreement-request-dto.d.ts +48 -0
  72. package/dist/models/update-commission-agreement-request-dto.js +21 -0
  73. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  74. package/dist/models/update-commission-agreement-response-class.js +15 -0
  75. package/dist/models/update-commission-request-dto.d.ts +53 -0
  76. package/dist/models/update-commission-request-dto.js +20 -0
  77. package/dist/models/update-commission-response-class.d.ts +25 -0
  78. package/dist/models/update-commission-response-class.js +15 -0
  79. package/git_push.sh +57 -0
  80. package/index.ts +19 -0
  81. package/models/commission-agreement-class.ts +99 -0
  82. package/models/commission-agreement-version-class.ts +85 -0
  83. package/models/commission-class.ts +109 -0
  84. package/models/commission-item-class.ts +93 -0
  85. package/models/create-commission-agreement-request-dto.ts +81 -0
  86. package/models/create-commission-agreement-response-class.ts +31 -0
  87. package/models/create-commission-agreement-version-request-dto.ts +48 -0
  88. package/models/create-commission-agreement-version-response-class.ts +31 -0
  89. package/models/create-commission-item-request-dto.ts +57 -0
  90. package/models/create-commission-request-dto.ts +61 -0
  91. package/models/create-commission-response-class.ts +31 -0
  92. package/models/get-commission-agreement-response-class.ts +31 -0
  93. package/models/get-commission-agreement-version-response-class.ts +31 -0
  94. package/models/get-commission-response-class.ts +31 -0
  95. package/models/index.ts +23 -0
  96. package/models/inline-response200.ts +48 -0
  97. package/models/inline-response503.ts +48 -0
  98. package/models/list-commission-agreement-versions-response-class.ts +49 -0
  99. package/models/list-commission-agreements-response-class.ts +49 -0
  100. package/models/list-commissions-response-class.ts +49 -0
  101. package/models/update-commission-agreement-request-dto.ts +57 -0
  102. package/models/update-commission-agreement-response-class.ts +31 -0
  103. package/models/update-commission-request-dto.ts +62 -0
  104. package/models/update-commission-response-class.ts +31 -0
  105. package/package.json +29 -0
  106. 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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
190
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, startDate, endDate&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
298
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, startDate, endDate&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
357
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, startDate, endDate&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, startDate, endDate&lt;/i&gt;
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.&lt;br/&gt; &lt;br/&gt;
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
+ }