@emilgroup/commission-sdk 1.0.0-beta.4 → 1.0.0-beta.5

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 (33) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +665 -0
  4. package/api.ts +2 -0
  5. package/dist/api/commission-agreement-products-api.d.ts +375 -0
  6. package/dist/api/commission-agreement-products-api.js +632 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/commission-agreement-product-class.d.ts +78 -0
  10. package/dist/models/commission-agreement-product-class.js +20 -0
  11. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  12. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  13. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  14. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  15. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  16. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  17. package/dist/models/index.d.ts +7 -0
  18. package/dist/models/index.js +7 -0
  19. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  20. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  21. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  22. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  23. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  24. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  25. package/models/commission-agreement-product-class.ts +87 -0
  26. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  27. package/models/create-commission-agreement-product-response-class.ts +31 -0
  28. package/models/get-commission-agreement-product-response-class.ts +31 -0
  29. package/models/index.ts +7 -0
  30. package/models/list-commission-agreement-products-response-class.ts +49 -0
  31. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  32. package/models/update-commission-agreement-product-response-class.ts +31 -0
  33. package/package.json +1 -1
@@ -0,0 +1,665 @@
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 { CreateCommissionAgreementProductRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCommissionAgreementProductResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetCommissionAgreementProductResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListCommissionAgreementProductsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateCommissionAgreementProductRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionAgreementProductResponseClass } from '../models';
35
+ /**
36
+ * CommissionAgreementProductsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const CommissionAgreementProductsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This will create commission agreement product.
43
+ * @summary Create the commission agreement product
44
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
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
+ createCommissionAgreementProduct: async (createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createCommissionAgreementProductRequestDto' is not null or undefined
51
+ assertParamExists('createCommissionAgreementProduct', 'createCommissionAgreementProductRequestDto', createCommissionAgreementProductRequestDto)
52
+ const localVarPath = `/commissionservice/v1/agreement-products`;
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(createCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * This will delete commission agreement product.
90
+ * @summary Delete the commission agreement product
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
+ deleteCommissionAgreementProduct: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('deleteCommissionAgreementProduct', 'code', code)
99
+ const localVarPath = `/commissionservice/v1/agreement-products/{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 product.
135
+ * @summary Retrieve the commission agreement product
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
+ getCommissionAgreementProduct: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'code' is not null or undefined
144
+ assertParamExists('getCommissionAgreementProduct', 'code', code)
145
+ // verify required parameter 'expand' is not null or undefined
146
+ assertParamExists('getCommissionAgreementProduct', 'expand', expand)
147
+ const localVarPath = `/commissionservice/v1/agreement-products/{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 products.
187
+ * @summary List commission agreement products
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, commissionAgreementVersionId, productSlug, status, 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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
191
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, productSlug&lt;/i&gt;
192
+ * @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, productSlug, status&lt;/i&gt;
193
+ * @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; &lt;i&gt;Allowed values: version&lt;i&gt;
194
+ * @param {*} [options] Override http request option.
195
+ * @throws {RequiredError}
196
+ */
197
+ listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
+ const localVarPath = `/commissionservice/v1/agreement-products`;
199
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
200
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
201
+ let baseOptions;
202
+ let baseAccessToken;
203
+ if (configuration) {
204
+ baseOptions = configuration.baseOptions;
205
+ baseAccessToken = configuration.accessToken;
206
+ }
207
+
208
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
209
+ const localVarHeaderParameter = {} as any;
210
+ const localVarQueryParameter = {} as any;
211
+
212
+ // authentication bearer required
213
+ // http bearer authentication required
214
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
215
+
216
+ if (filter !== undefined) {
217
+ localVarQueryParameter['filter'] = filter;
218
+ }
219
+
220
+ if (filters !== undefined) {
221
+ localVarQueryParameter['filters'] = filters;
222
+ }
223
+
224
+ if (search !== undefined) {
225
+ localVarQueryParameter['search'] = search;
226
+ }
227
+
228
+ if (order !== undefined) {
229
+ localVarQueryParameter['order'] = order;
230
+ }
231
+
232
+ if (expand !== undefined) {
233
+ localVarQueryParameter['expand'] = expand;
234
+ }
235
+
236
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ }
239
+
240
+
241
+
242
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
243
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
244
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
245
+
246
+ return {
247
+ url: toPathString(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ };
250
+ },
251
+ /**
252
+ * This will update commission agreement product.
253
+ * @summary Update the commission agreement product
254
+ * @param {string} code Unique identifier for the object.
255
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
256
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ updateCommissionAgreementProduct: async (code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
261
+ // verify required parameter 'code' is not null or undefined
262
+ assertParamExists('updateCommissionAgreementProduct', 'code', code)
263
+ // verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined
264
+ assertParamExists('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto)
265
+ const localVarPath = `/commissionservice/v1/agreement-products/{code}`
266
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
267
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
268
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
269
+ let baseOptions;
270
+ let baseAccessToken;
271
+ if (configuration) {
272
+ baseOptions = configuration.baseOptions;
273
+ baseAccessToken = configuration.accessToken;
274
+ }
275
+
276
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
277
+ const localVarHeaderParameter = {} as any;
278
+ const localVarQueryParameter = {} as any;
279
+
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
283
+
284
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
285
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
286
+ }
287
+
288
+
289
+
290
+ localVarHeaderParameter['Content-Type'] = 'application/json';
291
+
292
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
293
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
294
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
295
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
296
+
297
+ return {
298
+ url: toPathString(localVarUrlObj),
299
+ options: localVarRequestOptions,
300
+ };
301
+ },
302
+ }
303
+ };
304
+
305
+ /**
306
+ * CommissionAgreementProductsApi - functional programming interface
307
+ * @export
308
+ */
309
+ export const CommissionAgreementProductsApiFp = function(configuration?: Configuration) {
310
+ const localVarAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator(configuration)
311
+ return {
312
+ /**
313
+ * This will create commission agreement product.
314
+ * @summary Create the commission agreement product
315
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
316
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
317
+ * @param {*} [options] Override http request option.
318
+ * @throws {RequiredError}
319
+ */
320
+ async createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementProductResponseClass>> {
321
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options);
322
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
323
+ },
324
+ /**
325
+ * This will delete commission agreement product.
326
+ * @summary Delete the commission agreement product
327
+ * @param {string} code Unique identifier for the object.
328
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
329
+ * @param {*} [options] Override http request option.
330
+ * @throws {RequiredError}
331
+ */
332
+ async deleteCommissionAgreementProduct(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
333
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options);
334
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
335
+ },
336
+ /**
337
+ * This will get commission agreement product.
338
+ * @summary Retrieve the commission agreement product
339
+ * @param {string} code
340
+ * @param {string} expand
341
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
342
+ * @param {*} [options] Override http request option.
343
+ * @throws {RequiredError}
344
+ */
345
+ async getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementProductResponseClass>> {
346
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementProduct(code, expand, authorization, options);
347
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
348
+ },
349
+ /**
350
+ * Retrieves a list of commission agreement products.
351
+ * @summary List commission agreement products
352
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
353
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
354
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
355
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, productSlug&lt;/i&gt;
356
+ * @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, productSlug, status&lt;/i&gt;
357
+ * @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; &lt;i&gt;Allowed values: version&lt;i&gt;
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
362
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options);
363
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
364
+ },
365
+ /**
366
+ * This will update commission agreement product.
367
+ * @summary Update the commission agreement product
368
+ * @param {string} code Unique identifier for the object.
369
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
370
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ async updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementProductResponseClass>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options);
376
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
+ },
378
+ }
379
+ };
380
+
381
+ /**
382
+ * CommissionAgreementProductsApi - factory interface
383
+ * @export
384
+ */
385
+ export const CommissionAgreementProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
386
+ const localVarFp = CommissionAgreementProductsApiFp(configuration)
387
+ return {
388
+ /**
389
+ * This will create commission agreement product.
390
+ * @summary Create the commission agreement product
391
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
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
+ createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementProductResponseClass> {
397
+ return localVarFp.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
398
+ },
399
+ /**
400
+ * This will delete commission agreement product.
401
+ * @summary Delete the commission agreement product
402
+ * @param {string} code Unique identifier for the object.
403
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
404
+ * @param {*} [options] Override http request option.
405
+ * @throws {RequiredError}
406
+ */
407
+ deleteCommissionAgreementProduct(code: string, authorization?: string, options?: any): AxiosPromise<void> {
408
+ return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then((request) => request(axios, basePath));
409
+ },
410
+ /**
411
+ * This will get commission agreement product.
412
+ * @summary Retrieve the commission agreement product
413
+ * @param {string} code
414
+ * @param {string} expand
415
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
416
+ * @param {*} [options] Override http request option.
417
+ * @throws {RequiredError}
418
+ */
419
+ getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementProductResponseClass> {
420
+ return localVarFp.getCommissionAgreementProduct(code, expand, authorization, options).then((request) => request(axios, basePath));
421
+ },
422
+ /**
423
+ * Retrieves a list of commission agreement products.
424
+ * @summary List commission agreement products
425
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
427
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
428
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, productSlug&lt;/i&gt;
429
+ * @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, productSlug, status&lt;/i&gt;
430
+ * @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; &lt;i&gt;Allowed values: version&lt;i&gt;
431
+ * @param {*} [options] Override http request option.
432
+ * @throws {RequiredError}
433
+ */
434
+ listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
435
+ return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
436
+ },
437
+ /**
438
+ * This will update commission agreement product.
439
+ * @summary Update the commission agreement product
440
+ * @param {string} code Unique identifier for the object.
441
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
442
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementProductResponseClass> {
447
+ return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
448
+ },
449
+ };
450
+ };
451
+
452
+ /**
453
+ * Request parameters for createCommissionAgreementProduct operation in CommissionAgreementProductsApi.
454
+ * @export
455
+ * @interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest
456
+ */
457
+ export interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest {
458
+ /**
459
+ *
460
+ * @type {CreateCommissionAgreementProductRequestDto}
461
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
462
+ */
463
+ readonly createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto
464
+
465
+ /**
466
+ * Bearer Token: provided by the login endpoint under the name accessToken.
467
+ * @type {string}
468
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
469
+ */
470
+ readonly authorization?: string
471
+ }
472
+
473
+ /**
474
+ * Request parameters for deleteCommissionAgreementProduct operation in CommissionAgreementProductsApi.
475
+ * @export
476
+ * @interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest
477
+ */
478
+ export interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest {
479
+ /**
480
+ * Unique identifier for the object.
481
+ * @type {string}
482
+ * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
483
+ */
484
+ readonly code: string
485
+
486
+ /**
487
+ * Bearer Token: provided by the login endpoint under the name accessToken.
488
+ * @type {string}
489
+ * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
490
+ */
491
+ readonly authorization?: string
492
+ }
493
+
494
+ /**
495
+ * Request parameters for getCommissionAgreementProduct operation in CommissionAgreementProductsApi.
496
+ * @export
497
+ * @interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest
498
+ */
499
+ export interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest {
500
+ /**
501
+ *
502
+ * @type {string}
503
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
504
+ */
505
+ readonly code: string
506
+
507
+ /**
508
+ *
509
+ * @type {string}
510
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
511
+ */
512
+ readonly expand: string
513
+
514
+ /**
515
+ * Bearer Token: provided by the login endpoint under the name accessToken.
516
+ * @type {string}
517
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
518
+ */
519
+ readonly authorization?: string
520
+ }
521
+
522
+ /**
523
+ * Request parameters for listCommissionAgreementProducts operation in CommissionAgreementProductsApi.
524
+ * @export
525
+ * @interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest
526
+ */
527
+ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest {
528
+ /**
529
+ * Bearer Token: provided by the login endpoint under the name accessToken.
530
+ * @type {string}
531
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
532
+ */
533
+ readonly authorization?: string
534
+
535
+ /**
536
+ * 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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
537
+ * @type {string}
538
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
539
+ */
540
+ readonly filter?: string
541
+
542
+ /**
543
+ * 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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
544
+ * @type {string}
545
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
546
+ */
547
+ readonly filters?: string
548
+
549
+ /**
550
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, productSlug&lt;/i&gt;
551
+ * @type {string}
552
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
553
+ */
554
+ readonly search?: string
555
+
556
+ /**
557
+ * 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, productSlug, status&lt;/i&gt;
558
+ * @type {string}
559
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
560
+ */
561
+ readonly order?: string
562
+
563
+ /**
564
+ * 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; &lt;i&gt;Allowed values: version&lt;i&gt;
565
+ * @type {string}
566
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
567
+ */
568
+ readonly expand?: string
569
+ }
570
+
571
+ /**
572
+ * Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi.
573
+ * @export
574
+ * @interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest
575
+ */
576
+ export interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest {
577
+ /**
578
+ * Unique identifier for the object.
579
+ * @type {string}
580
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
581
+ */
582
+ readonly code: string
583
+
584
+ /**
585
+ *
586
+ * @type {UpdateCommissionAgreementProductRequestDto}
587
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
588
+ */
589
+ readonly updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto
590
+
591
+ /**
592
+ * Bearer Token: provided by the login endpoint under the name accessToken.
593
+ * @type {string}
594
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
595
+ */
596
+ readonly authorization?: string
597
+ }
598
+
599
+ /**
600
+ * CommissionAgreementProductsApi - object-oriented interface
601
+ * @export
602
+ * @class CommissionAgreementProductsApi
603
+ * @extends {BaseAPI}
604
+ */
605
+ export class CommissionAgreementProductsApi extends BaseAPI {
606
+ /**
607
+ * This will create commission agreement product.
608
+ * @summary Create the commission agreement product
609
+ * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters.
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ * @memberof CommissionAgreementProductsApi
613
+ */
614
+ public createCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiCreateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
615
+ return CommissionAgreementProductsApiFp(this.configuration).createCommissionAgreementProduct(requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
616
+ }
617
+
618
+ /**
619
+ * This will delete commission agreement product.
620
+ * @summary Delete the commission agreement product
621
+ * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters.
622
+ * @param {*} [options] Override http request option.
623
+ * @throws {RequiredError}
624
+ * @memberof CommissionAgreementProductsApi
625
+ */
626
+ public deleteCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
627
+ return CommissionAgreementProductsApiFp(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
628
+ }
629
+
630
+ /**
631
+ * This will get commission agreement product.
632
+ * @summary Retrieve the commission agreement product
633
+ * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters.
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ * @memberof CommissionAgreementProductsApi
637
+ */
638
+ public getCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiGetCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
639
+ return CommissionAgreementProductsApiFp(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
640
+ }
641
+
642
+ /**
643
+ * Retrieves a list of commission agreement products.
644
+ * @summary List commission agreement products
645
+ * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters.
646
+ * @param {*} [options] Override http request option.
647
+ * @throws {RequiredError}
648
+ * @memberof CommissionAgreementProductsApi
649
+ */
650
+ public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
651
+ return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
652
+ }
653
+
654
+ /**
655
+ * This will update commission agreement product.
656
+ * @summary Update the commission agreement product
657
+ * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters.
658
+ * @param {*} [options] Override http request option.
659
+ * @throws {RequiredError}
660
+ * @memberof CommissionAgreementProductsApi
661
+ */
662
+ public updateCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
663
+ return CommissionAgreementProductsApiFp(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
664
+ }
665
+ }