@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,642 @@
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
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * CommissionAgreementsApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * This will create commission agreement.
47
+ * @summary Create the commission agreement
48
+ * @param {CreateCommissionAgreementRequestDto} createCommissionAgreementRequestDto
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ createCommissionAgreement: async (createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'createCommissionAgreementRequestDto' is not null or undefined
55
+ assertParamExists('createCommissionAgreement', 'createCommissionAgreementRequestDto', createCommissionAgreementRequestDto)
56
+ const localVarPath = `/commissionservice/v1/agreements`;
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * This will delete commission agreement.
94
+ * @summary Delete the commission agreement
95
+ * @param {string} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteCommissionAgreement: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteCommissionAgreement', 'code', code)
103
+ const localVarPath = `/commissionservice/v1/agreements/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * This will get commission agreement.
139
+ * @summary Retrieve the commission agreement
140
+ * @param {string} code
141
+ * @param {string} expand
142
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getCommissionAgreement: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ // verify required parameter 'code' is not null or undefined
148
+ assertParamExists('getCommissionAgreement', 'code', code)
149
+ // verify required parameter 'expand' is not null or undefined
150
+ assertParamExists('getCommissionAgreement', 'expand', expand)
151
+ const localVarPath = `/commissionservice/v1/agreements/{code}`
152
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ let baseAccessToken;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ baseAccessToken = configuration.accessToken;
160
+ }
161
+
162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
+ const localVarHeaderParameter = {} as any;
164
+ const localVarQueryParameter = {} as any;
165
+
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
+
170
+ if (expand !== undefined) {
171
+ localVarQueryParameter['expand'] = expand;
172
+ }
173
+
174
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
+ }
177
+
178
+
179
+
180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
+
184
+ return {
185
+ url: toPathString(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ };
188
+ },
189
+ /**
190
+ * Retrieves a list of commission agreements.
191
+ * @summary List commission agreements
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @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;
194
+ * @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;
195
+ * @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;
196
+ * @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;
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ listCommissionAgreements: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ const localVarPath = `/commissionservice/v1/agreements`;
202
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
204
+ let baseOptions;
205
+ let baseAccessToken;
206
+ if (configuration) {
207
+ baseOptions = configuration.baseOptions;
208
+ baseAccessToken = configuration.accessToken;
209
+ }
210
+
211
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
212
+ const localVarHeaderParameter = {} as any;
213
+ const localVarQueryParameter = {} as any;
214
+
215
+ // authentication bearer required
216
+ // http bearer authentication required
217
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
+
219
+ if (filter !== undefined) {
220
+ localVarQueryParameter['filter'] = filter;
221
+ }
222
+
223
+ if (filters !== undefined) {
224
+ localVarQueryParameter['filters'] = filters;
225
+ }
226
+
227
+ if (order !== undefined) {
228
+ localVarQueryParameter['order'] = order;
229
+ }
230
+
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
234
+
235
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ }
238
+
239
+
240
+
241
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
242
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
244
+
245
+ return {
246
+ url: toPathString(localVarUrlObj),
247
+ options: localVarRequestOptions,
248
+ };
249
+ },
250
+ /**
251
+ * This will update commission agreement.
252
+ * @summary Update the commission agreement
253
+ * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
254
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
260
+ assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
261
+ const localVarPath = `/commissionservice/v1/agreements`;
262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
264
+ let baseOptions;
265
+ let baseAccessToken;
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ baseAccessToken = configuration.accessToken;
269
+ }
270
+
271
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
272
+ const localVarHeaderParameter = {} as any;
273
+ const localVarQueryParameter = {} as any;
274
+
275
+ // authentication bearer required
276
+ // http bearer authentication required
277
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
278
+
279
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
280
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
281
+ }
282
+
283
+
284
+
285
+ localVarHeaderParameter['Content-Type'] = 'application/json';
286
+
287
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
288
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
290
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementRequestDto, localVarRequestOptions, configuration)
291
+
292
+ return {
293
+ url: toPathString(localVarUrlObj),
294
+ options: localVarRequestOptions,
295
+ };
296
+ },
297
+ }
298
+ };
299
+
300
+ /**
301
+ * CommissionAgreementsApi - functional programming interface
302
+ * @export
303
+ */
304
+ export const CommissionAgreementsApiFp = function(configuration?: Configuration) {
305
+ const localVarAxiosParamCreator = CommissionAgreementsApiAxiosParamCreator(configuration)
306
+ return {
307
+ /**
308
+ * This will create commission agreement.
309
+ * @summary Create the commission agreement
310
+ * @param {CreateCommissionAgreementRequestDto} createCommissionAgreementRequestDto
311
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ async createCommissionAgreement(createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementResponseClass>> {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreement(createCommissionAgreementRequestDto, authorization, options);
317
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
318
+ },
319
+ /**
320
+ * This will delete commission agreement.
321
+ * @summary Delete the commission agreement
322
+ * @param {string} code Unique identifier for the object.
323
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ async deleteCommissionAgreement(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreement(code, authorization, options);
329
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
+ },
331
+ /**
332
+ * This will get commission agreement.
333
+ * @summary Retrieve the commission agreement
334
+ * @param {string} code
335
+ * @param {string} expand
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ async getCommissionAgreement(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementResponseClass>> {
341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreement(code, expand, authorization, options);
342
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
+ },
344
+ /**
345
+ * Retrieves a list of commission agreements.
346
+ * @summary List commission agreements
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @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;
349
+ * @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;
350
+ * @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;
351
+ * @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;
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ async listCommissionAgreements(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, filter, filters, order, expand, options);
357
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
+ },
359
+ /**
360
+ * This will update commission agreement.
361
+ * @summary Update the commission agreement
362
+ * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
363
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
369
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
+ },
371
+ }
372
+ };
373
+
374
+ /**
375
+ * CommissionAgreementsApi - factory interface
376
+ * @export
377
+ */
378
+ export const CommissionAgreementsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
379
+ const localVarFp = CommissionAgreementsApiFp(configuration)
380
+ return {
381
+ /**
382
+ * This will create commission agreement.
383
+ * @summary Create the commission agreement
384
+ * @param {CreateCommissionAgreementRequestDto} createCommissionAgreementRequestDto
385
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ createCommissionAgreement(createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementResponseClass> {
390
+ return localVarFp.createCommissionAgreement(createCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
391
+ },
392
+ /**
393
+ * This will delete commission agreement.
394
+ * @summary Delete the commission agreement
395
+ * @param {string} code Unique identifier for the object.
396
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ deleteCommissionAgreement(code: string, authorization?: string, options?: any): AxiosPromise<void> {
401
+ return localVarFp.deleteCommissionAgreement(code, authorization, options).then((request) => request(axios, basePath));
402
+ },
403
+ /**
404
+ * This will get commission agreement.
405
+ * @summary Retrieve the commission agreement
406
+ * @param {string} code
407
+ * @param {string} expand
408
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ getCommissionAgreement(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementResponseClass> {
413
+ return localVarFp.getCommissionAgreement(code, expand, authorization, options).then((request) => request(axios, basePath));
414
+ },
415
+ /**
416
+ * Retrieves a list of commission agreements.
417
+ * @summary List commission agreements
418
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
+ * @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;
420
+ * @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;
421
+ * @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;
422
+ * @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;
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ listCommissionAgreements(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
427
+ return localVarFp.listCommissionAgreements(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
428
+ },
429
+ /**
430
+ * This will update commission agreement.
431
+ * @summary Update the commission agreement
432
+ * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
433
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
438
+ return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
439
+ },
440
+ };
441
+ };
442
+
443
+ /**
444
+ * Request parameters for createCommissionAgreement operation in CommissionAgreementsApi.
445
+ * @export
446
+ * @interface CommissionAgreementsApiCreateCommissionAgreementRequest
447
+ */
448
+ export interface CommissionAgreementsApiCreateCommissionAgreementRequest {
449
+ /**
450
+ *
451
+ * @type {CreateCommissionAgreementRequestDto}
452
+ * @memberof CommissionAgreementsApiCreateCommissionAgreement
453
+ */
454
+ readonly createCommissionAgreementRequestDto: CreateCommissionAgreementRequestDto
455
+
456
+ /**
457
+ * Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @type {string}
459
+ * @memberof CommissionAgreementsApiCreateCommissionAgreement
460
+ */
461
+ readonly authorization?: string
462
+ }
463
+
464
+ /**
465
+ * Request parameters for deleteCommissionAgreement operation in CommissionAgreementsApi.
466
+ * @export
467
+ * @interface CommissionAgreementsApiDeleteCommissionAgreementRequest
468
+ */
469
+ export interface CommissionAgreementsApiDeleteCommissionAgreementRequest {
470
+ /**
471
+ * Unique identifier for the object.
472
+ * @type {string}
473
+ * @memberof CommissionAgreementsApiDeleteCommissionAgreement
474
+ */
475
+ readonly code: string
476
+
477
+ /**
478
+ * Bearer Token: provided by the login endpoint under the name accessToken.
479
+ * @type {string}
480
+ * @memberof CommissionAgreementsApiDeleteCommissionAgreement
481
+ */
482
+ readonly authorization?: string
483
+ }
484
+
485
+ /**
486
+ * Request parameters for getCommissionAgreement operation in CommissionAgreementsApi.
487
+ * @export
488
+ * @interface CommissionAgreementsApiGetCommissionAgreementRequest
489
+ */
490
+ export interface CommissionAgreementsApiGetCommissionAgreementRequest {
491
+ /**
492
+ *
493
+ * @type {string}
494
+ * @memberof CommissionAgreementsApiGetCommissionAgreement
495
+ */
496
+ readonly code: string
497
+
498
+ /**
499
+ *
500
+ * @type {string}
501
+ * @memberof CommissionAgreementsApiGetCommissionAgreement
502
+ */
503
+ readonly expand: string
504
+
505
+ /**
506
+ * Bearer Token: provided by the login endpoint under the name accessToken.
507
+ * @type {string}
508
+ * @memberof CommissionAgreementsApiGetCommissionAgreement
509
+ */
510
+ readonly authorization?: string
511
+ }
512
+
513
+ /**
514
+ * Request parameters for listCommissionAgreements operation in CommissionAgreementsApi.
515
+ * @export
516
+ * @interface CommissionAgreementsApiListCommissionAgreementsRequest
517
+ */
518
+ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
519
+ /**
520
+ * Bearer Token: provided by the login endpoint under the name accessToken.
521
+ * @type {string}
522
+ * @memberof CommissionAgreementsApiListCommissionAgreements
523
+ */
524
+ readonly authorization?: string
525
+
526
+ /**
527
+ * 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;
528
+ * @type {string}
529
+ * @memberof CommissionAgreementsApiListCommissionAgreements
530
+ */
531
+ readonly filter?: string
532
+
533
+ /**
534
+ * 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;
535
+ * @type {string}
536
+ * @memberof CommissionAgreementsApiListCommissionAgreements
537
+ */
538
+ readonly filters?: string
539
+
540
+ /**
541
+ * 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;
542
+ * @type {string}
543
+ * @memberof CommissionAgreementsApiListCommissionAgreements
544
+ */
545
+ readonly order?: string
546
+
547
+ /**
548
+ * 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;
549
+ * @type {string}
550
+ * @memberof CommissionAgreementsApiListCommissionAgreements
551
+ */
552
+ readonly expand?: string
553
+ }
554
+
555
+ /**
556
+ * Request parameters for updateCommissionAgreement operation in CommissionAgreementsApi.
557
+ * @export
558
+ * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
559
+ */
560
+ export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
561
+ /**
562
+ *
563
+ * @type {UpdateCommissionAgreementRequestDto}
564
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
565
+ */
566
+ readonly updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto
567
+
568
+ /**
569
+ * Bearer Token: provided by the login endpoint under the name accessToken.
570
+ * @type {string}
571
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
572
+ */
573
+ readonly authorization?: string
574
+ }
575
+
576
+ /**
577
+ * CommissionAgreementsApi - object-oriented interface
578
+ * @export
579
+ * @class CommissionAgreementsApi
580
+ * @extends {BaseAPI}
581
+ */
582
+ export class CommissionAgreementsApi extends BaseAPI {
583
+ /**
584
+ * This will create commission agreement.
585
+ * @summary Create the commission agreement
586
+ * @param {CommissionAgreementsApiCreateCommissionAgreementRequest} requestParameters Request parameters.
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ * @memberof CommissionAgreementsApi
590
+ */
591
+ public createCommissionAgreement(requestParameters: CommissionAgreementsApiCreateCommissionAgreementRequest, options?: AxiosRequestConfig) {
592
+ return CommissionAgreementsApiFp(this.configuration).createCommissionAgreement(requestParameters.createCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
593
+ }
594
+
595
+ /**
596
+ * This will delete commission agreement.
597
+ * @summary Delete the commission agreement
598
+ * @param {CommissionAgreementsApiDeleteCommissionAgreementRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof CommissionAgreementsApi
602
+ */
603
+ public deleteCommissionAgreement(requestParameters: CommissionAgreementsApiDeleteCommissionAgreementRequest, options?: AxiosRequestConfig) {
604
+ return CommissionAgreementsApiFp(this.configuration).deleteCommissionAgreement(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
605
+ }
606
+
607
+ /**
608
+ * This will get commission agreement.
609
+ * @summary Retrieve the commission agreement
610
+ * @param {CommissionAgreementsApiGetCommissionAgreementRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof CommissionAgreementsApi
614
+ */
615
+ public getCommissionAgreement(requestParameters: CommissionAgreementsApiGetCommissionAgreementRequest, options?: AxiosRequestConfig) {
616
+ return CommissionAgreementsApiFp(this.configuration).getCommissionAgreement(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
617
+ }
618
+
619
+ /**
620
+ * Retrieves a list of commission agreements.
621
+ * @summary List commission agreements
622
+ * @param {CommissionAgreementsApiListCommissionAgreementsRequest} requestParameters Request parameters.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ * @memberof CommissionAgreementsApi
626
+ */
627
+ public listCommissionAgreements(requestParameters: CommissionAgreementsApiListCommissionAgreementsRequest = {}, options?: AxiosRequestConfig) {
628
+ return CommissionAgreementsApiFp(this.configuration).listCommissionAgreements(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
629
+ }
630
+
631
+ /**
632
+ * This will update commission agreement.
633
+ * @summary Update the commission agreement
634
+ * @param {CommissionAgreementsApiUpdateCommissionAgreementRequest} requestParameters Request parameters.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ * @memberof CommissionAgreementsApi
638
+ */
639
+ public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
640
+ return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
+ }
642
+ }