@emilgroup/commission-sdk 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 +51 -0
  5. package/api/commission-agreement-versions-api.ts +531 -0
  6. package/api/commission-agreements-api.ts +638 -0
  7. package/api/commissions-api.ts +637 -0
  8. package/api/default-api.ts +124 -0
  9. package/api.ts +33 -0
  10. package/base.ts +331 -0
  11. package/common.ts +198 -0
  12. package/configuration.ts +110 -0
  13. package/dist/api/commission-agreement-versions-api.d.ts +300 -0
  14. package/dist/api/commission-agreement-versions-api.js +527 -0
  15. package/dist/api/commission-agreements-api.d.ts +357 -0
  16. package/dist/api/commission-agreements-api.js +620 -0
  17. package/dist/api/commissions-api.d.ts +357 -0
  18. package/dist/api/commissions-api.js +620 -0
  19. package/dist/api/default-api.d.ts +70 -0
  20. package/dist/api/default-api.js +200 -0
  21. package/dist/api.d.ts +15 -0
  22. package/dist/api.js +33 -0
  23. package/dist/base.d.ts +86 -0
  24. package/dist/base.js +367 -0
  25. package/dist/common.d.ts +91 -0
  26. package/dist/common.js +276 -0
  27. package/dist/configuration.d.ts +89 -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 +26 -0
  106. package/tsconfig.json +23 -0
@@ -0,0 +1,638 @@
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 { CreateCommissionAgreementRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCommissionAgreementResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetCommissionAgreementResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListCommissionAgreementsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateCommissionAgreementRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionAgreementResponseClass } from '../models';
35
+ /**
36
+ * CommissionAgreementsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This will create commission agreement.
43
+ * @summary Create the commission agreement
44
+ * @param {CreateCommissionAgreementRequestDto} createCommissionAgreementRequestDto
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
+ createCommissionAgreement: async (createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createCommissionAgreementRequestDto' is not null or undefined
51
+ assertParamExists('createCommissionAgreement', 'createCommissionAgreementRequestDto', createCommissionAgreementRequestDto)
52
+ const localVarPath = `/commissionservice/v1/agreements`;
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(createCommissionAgreementRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * This will delete commission agreement.
90
+ * @summary Delete the commission agreement
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
+ deleteCommissionAgreement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('deleteCommissionAgreement', 'code', code)
99
+ const localVarPath = `/commissionservice/v1/agreements/{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.
135
+ * @summary Retrieve the commission agreement
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
+ getCommissionAgreement: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'code' is not null or undefined
144
+ assertParamExists('getCommissionAgreement', 'code', code)
145
+ // verify required parameter 'expand' is not null or undefined
146
+ assertParamExists('getCommissionAgreement', 'expand', expand)
147
+ const localVarPath = `/commissionservice/v1/agreements/{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 agreements.
187
+ * @summary List commission agreements
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, 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, 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&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
+ listCommissionAgreements: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ const localVarPath = `/commissionservice/v1/agreements`;
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
+ * This will update commission agreement.
248
+ * @summary Update the commission agreement
249
+ * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
+ // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
256
+ assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
257
+ const localVarPath = `/commissionservice/v1/agreements`;
258
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
259
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
260
+ let baseOptions;
261
+ let baseAccessToken;
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ baseAccessToken = configuration.accessToken;
265
+ }
266
+
267
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
268
+ const localVarHeaderParameter = {} as any;
269
+ const localVarQueryParameter = {} as any;
270
+
271
+ // authentication bearer required
272
+ // http bearer authentication required
273
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
274
+
275
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
+ }
278
+
279
+
280
+
281
+ localVarHeaderParameter['Content-Type'] = 'application/json';
282
+
283
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
284
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
286
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementRequestDto, localVarRequestOptions, configuration)
287
+
288
+ return {
289
+ url: toPathString(localVarUrlObj),
290
+ options: localVarRequestOptions,
291
+ };
292
+ },
293
+ }
294
+ };
295
+
296
+ /**
297
+ * CommissionAgreementsApi - functional programming interface
298
+ * @export
299
+ */
300
+ export const CommissionAgreementsApiFp = function(configuration?: Configuration) {
301
+ const localVarAxiosParamCreator = CommissionAgreementsApiAxiosParamCreator(configuration)
302
+ return {
303
+ /**
304
+ * This will create commission agreement.
305
+ * @summary Create the commission agreement
306
+ * @param {CreateCommissionAgreementRequestDto} createCommissionAgreementRequestDto
307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ async createCommissionAgreement(createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementResponseClass>> {
312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreement(createCommissionAgreementRequestDto, authorization, options);
313
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
314
+ },
315
+ /**
316
+ * This will delete commission agreement.
317
+ * @summary Delete the commission agreement
318
+ * @param {string} code Unique identifier for the object.
319
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ async deleteCommissionAgreement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
324
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreement(code, authorization, options);
325
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
326
+ },
327
+ /**
328
+ * This will get commission agreement.
329
+ * @summary Retrieve the commission agreement
330
+ * @param {string} code
331
+ * @param {string} expand
332
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ async getCommissionAgreement(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementResponseClass>> {
337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreement(code, expand, authorization, options);
338
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
+ },
340
+ /**
341
+ * Retrieves a list of commission agreements.
342
+ * @summary List commission agreements
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
+ * @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, createdAt&lt;/i&gt;
345
+ * @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, createdAt&lt;/i&gt;
346
+ * @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&lt;/i&gt;
347
+ * @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;
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async listCommissionAgreements(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, filter, filters, order, expand, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
355
+ /**
356
+ * This will update commission agreement.
357
+ * @summary Update the commission agreement
358
+ * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
359
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
365
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
366
+ },
367
+ }
368
+ };
369
+
370
+ /**
371
+ * CommissionAgreementsApi - factory interface
372
+ * @export
373
+ */
374
+ export const CommissionAgreementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
375
+ const localVarFp = CommissionAgreementsApiFp(configuration)
376
+ return {
377
+ /**
378
+ * This will create commission agreement.
379
+ * @summary Create the commission agreement
380
+ * @param {CreateCommissionAgreementRequestDto} createCommissionAgreementRequestDto
381
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ createCommissionAgreement(createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementResponseClass> {
386
+ return localVarFp.createCommissionAgreement(createCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
387
+ },
388
+ /**
389
+ * This will delete commission agreement.
390
+ * @summary Delete the commission agreement
391
+ * @param {string} code Unique identifier for the object.
392
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
393
+ * @param {*} [options] Override http request option.
394
+ * @throws {RequiredError}
395
+ */
396
+ deleteCommissionAgreement(code: string, authorization?: string, options?: any): AxiosPromise<void> {
397
+ return localVarFp.deleteCommissionAgreement(code, authorization, options).then((request) => request(axios, basePath));
398
+ },
399
+ /**
400
+ * This will get commission agreement.
401
+ * @summary Retrieve the commission agreement
402
+ * @param {string} code
403
+ * @param {string} expand
404
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ getCommissionAgreement(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementResponseClass> {
409
+ return localVarFp.getCommissionAgreement(code, expand, authorization, options).then((request) => request(axios, basePath));
410
+ },
411
+ /**
412
+ * Retrieves a list of commission agreements.
413
+ * @summary List commission agreements
414
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
415
+ * @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, createdAt&lt;/i&gt;
416
+ * @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, createdAt&lt;/i&gt;
417
+ * @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&lt;/i&gt;
418
+ * @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;
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ listCommissionAgreements(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
423
+ return localVarFp.listCommissionAgreements(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
424
+ },
425
+ /**
426
+ * This will update commission agreement.
427
+ * @summary Update the commission agreement
428
+ * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
429
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
434
+ return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
435
+ },
436
+ };
437
+ };
438
+
439
+ /**
440
+ * Request parameters for createCommissionAgreement operation in CommissionAgreementsApi.
441
+ * @export
442
+ * @interface CommissionAgreementsApiCreateCommissionAgreementRequest
443
+ */
444
+ export interface CommissionAgreementsApiCreateCommissionAgreementRequest {
445
+ /**
446
+ *
447
+ * @type {CreateCommissionAgreementRequestDto}
448
+ * @memberof CommissionAgreementsApiCreateCommissionAgreement
449
+ */
450
+ readonly createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto
451
+
452
+ /**
453
+ * Bearer Token: provided by the login endpoint under the name accessToken.
454
+ * @type {string}
455
+ * @memberof CommissionAgreementsApiCreateCommissionAgreement
456
+ */
457
+ readonly authorization?: string
458
+ }
459
+
460
+ /**
461
+ * Request parameters for deleteCommissionAgreement operation in CommissionAgreementsApi.
462
+ * @export
463
+ * @interface CommissionAgreementsApiDeleteCommissionAgreementRequest
464
+ */
465
+ export interface CommissionAgreementsApiDeleteCommissionAgreementRequest {
466
+ /**
467
+ * Unique identifier for the object.
468
+ * @type {string}
469
+ * @memberof CommissionAgreementsApiDeleteCommissionAgreement
470
+ */
471
+ readonly code: string
472
+
473
+ /**
474
+ * Bearer Token: provided by the login endpoint under the name accessToken.
475
+ * @type {string}
476
+ * @memberof CommissionAgreementsApiDeleteCommissionAgreement
477
+ */
478
+ readonly authorization?: string
479
+ }
480
+
481
+ /**
482
+ * Request parameters for getCommissionAgreement operation in CommissionAgreementsApi.
483
+ * @export
484
+ * @interface CommissionAgreementsApiGetCommissionAgreementRequest
485
+ */
486
+ export interface CommissionAgreementsApiGetCommissionAgreementRequest {
487
+ /**
488
+ *
489
+ * @type {string}
490
+ * @memberof CommissionAgreementsApiGetCommissionAgreement
491
+ */
492
+ readonly code: string
493
+
494
+ /**
495
+ *
496
+ * @type {string}
497
+ * @memberof CommissionAgreementsApiGetCommissionAgreement
498
+ */
499
+ readonly expand: string
500
+
501
+ /**
502
+ * Bearer Token: provided by the login endpoint under the name accessToken.
503
+ * @type {string}
504
+ * @memberof CommissionAgreementsApiGetCommissionAgreement
505
+ */
506
+ readonly authorization?: string
507
+ }
508
+
509
+ /**
510
+ * Request parameters for listCommissionAgreements operation in CommissionAgreementsApi.
511
+ * @export
512
+ * @interface CommissionAgreementsApiListCommissionAgreementsRequest
513
+ */
514
+ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
515
+ /**
516
+ * Bearer Token: provided by the login endpoint under the name accessToken.
517
+ * @type {string}
518
+ * @memberof CommissionAgreementsApiListCommissionAgreements
519
+ */
520
+ readonly authorization?: string
521
+
522
+ /**
523
+ * 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, createdAt&lt;/i&gt;
524
+ * @type {string}
525
+ * @memberof CommissionAgreementsApiListCommissionAgreements
526
+ */
527
+ readonly filter?: string
528
+
529
+ /**
530
+ * 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, createdAt&lt;/i&gt;
531
+ * @type {string}
532
+ * @memberof CommissionAgreementsApiListCommissionAgreements
533
+ */
534
+ readonly filters?: string
535
+
536
+ /**
537
+ * 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&lt;/i&gt;
538
+ * @type {string}
539
+ * @memberof CommissionAgreementsApiListCommissionAgreements
540
+ */
541
+ readonly order?: string
542
+
543
+ /**
544
+ * 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;
545
+ * @type {string}
546
+ * @memberof CommissionAgreementsApiListCommissionAgreements
547
+ */
548
+ readonly expand?: string
549
+ }
550
+
551
+ /**
552
+ * Request parameters for updateCommissionAgreement operation in CommissionAgreementsApi.
553
+ * @export
554
+ * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
555
+ */
556
+ export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
557
+ /**
558
+ *
559
+ * @type {UpdateCommissionAgreementRequestDto}
560
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
561
+ */
562
+ readonly updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto
563
+
564
+ /**
565
+ * Bearer Token: provided by the login endpoint under the name accessToken.
566
+ * @type {string}
567
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
568
+ */
569
+ readonly authorization?: string
570
+ }
571
+
572
+ /**
573
+ * CommissionAgreementsApi - object-oriented interface
574
+ * @export
575
+ * @class CommissionAgreementsApi
576
+ * @extends {BaseAPI}
577
+ */
578
+ export class CommissionAgreementsApi extends BaseAPI {
579
+ /**
580
+ * This will create commission agreement.
581
+ * @summary Create the commission agreement
582
+ * @param {CommissionAgreementsApiCreateCommissionAgreementRequest} requestParameters Request parameters.
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ * @memberof CommissionAgreementsApi
586
+ */
587
+ public createCommissionAgreement(requestParameters: CommissionAgreementsApiCreateCommissionAgreementRequest, options?: AxiosRequestConfig) {
588
+ return CommissionAgreementsApiFp(this.configuration).createCommissionAgreement(requestParameters.createCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
589
+ }
590
+
591
+ /**
592
+ * This will delete commission agreement.
593
+ * @summary Delete the commission agreement
594
+ * @param {CommissionAgreementsApiDeleteCommissionAgreementRequest} requestParameters Request parameters.
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ * @memberof CommissionAgreementsApi
598
+ */
599
+ public deleteCommissionAgreement(requestParameters: CommissionAgreementsApiDeleteCommissionAgreementRequest, options?: AxiosRequestConfig) {
600
+ return CommissionAgreementsApiFp(this.configuration).deleteCommissionAgreement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
601
+ }
602
+
603
+ /**
604
+ * This will get commission agreement.
605
+ * @summary Retrieve the commission agreement
606
+ * @param {CommissionAgreementsApiGetCommissionAgreementRequest} requestParameters Request parameters.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ * @memberof CommissionAgreementsApi
610
+ */
611
+ public getCommissionAgreement(requestParameters: CommissionAgreementsApiGetCommissionAgreementRequest, options?: AxiosRequestConfig) {
612
+ return CommissionAgreementsApiFp(this.configuration).getCommissionAgreement(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
613
+ }
614
+
615
+ /**
616
+ * Retrieves a list of commission agreements.
617
+ * @summary List commission agreements
618
+ * @param {CommissionAgreementsApiListCommissionAgreementsRequest} requestParameters Request parameters.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ * @memberof CommissionAgreementsApi
622
+ */
623
+ public listCommissionAgreements(requestParameters: CommissionAgreementsApiListCommissionAgreementsRequest = {}, options?: AxiosRequestConfig) {
624
+ return CommissionAgreementsApiFp(this.configuration).listCommissionAgreements(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
625
+ }
626
+
627
+ /**
628
+ * This will update commission agreement.
629
+ * @summary Update the commission agreement
630
+ * @param {CommissionAgreementsApiUpdateCommissionAgreementRequest} requestParameters Request parameters.
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ * @memberof CommissionAgreementsApi
634
+ */
635
+ public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
636
+ return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
637
+ }
638
+ }