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

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 +651 -0
  4. package/api.ts +2 -0
  5. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  6. package/dist/api/commission-agreement-products-api.js +626 -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,651 @@
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} [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, updatedAt, productSlug, status&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; &lt;i&gt;Allowed values: version&lt;i&gt;
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ const localVarPath = `/commissionservice/v1/agreement-products`;
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 product.
248
+ * @summary Update the commission agreement product
249
+ * @param {string} code Unique identifier for the object.
250
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
251
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ updateCommissionAgreementProduct: async (code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
256
+ // verify required parameter 'code' is not null or undefined
257
+ assertParamExists('updateCommissionAgreementProduct', 'code', code)
258
+ // verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined
259
+ assertParamExists('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto)
260
+ const localVarPath = `/commissionservice/v1/agreement-products/{code}`
261
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
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(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
291
+
292
+ return {
293
+ url: toPathString(localVarUrlObj),
294
+ options: localVarRequestOptions,
295
+ };
296
+ },
297
+ }
298
+ };
299
+
300
+ /**
301
+ * CommissionAgreementProductsApi - functional programming interface
302
+ * @export
303
+ */
304
+ export const CommissionAgreementProductsApiFp = function(configuration?: Configuration) {
305
+ const localVarAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator(configuration)
306
+ return {
307
+ /**
308
+ * This will create commission agreement product.
309
+ * @summary Create the commission agreement product
310
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
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 createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementProductResponseClass>> {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options);
317
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
318
+ },
319
+ /**
320
+ * This will delete commission agreement product.
321
+ * @summary Delete the commission agreement product
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 deleteCommissionAgreementProduct(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options);
329
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
+ },
331
+ /**
332
+ * This will get commission agreement product.
333
+ * @summary Retrieve the commission agreement product
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 getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementProductResponseClass>> {
341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementProduct(code, expand, authorization, options);
342
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
+ },
344
+ /**
345
+ * Retrieves a list of commission agreement products.
346
+ * @summary List commission agreement products
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, commissionAgreementVersionId, productSlug, status, 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, commissionAgreementVersionId, productSlug, status, 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, updatedAt, productSlug, status&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; &lt;i&gt;Allowed values: version&lt;i&gt;
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options);
357
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
+ },
359
+ /**
360
+ * This will update commission agreement product.
361
+ * @summary Update the commission agreement product
362
+ * @param {string} code Unique identifier for the object.
363
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
364
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
365
+ * @param {*} [options] Override http request option.
366
+ * @throws {RequiredError}
367
+ */
368
+ async updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementProductResponseClass>> {
369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options);
370
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
371
+ },
372
+ }
373
+ };
374
+
375
+ /**
376
+ * CommissionAgreementProductsApi - factory interface
377
+ * @export
378
+ */
379
+ export const CommissionAgreementProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
380
+ const localVarFp = CommissionAgreementProductsApiFp(configuration)
381
+ return {
382
+ /**
383
+ * This will create commission agreement product.
384
+ * @summary Create the commission agreement product
385
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
386
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ createCommissionAgreementProduct(createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementProductResponseClass> {
391
+ return localVarFp.createCommissionAgreementProduct(createCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
392
+ },
393
+ /**
394
+ * This will delete commission agreement product.
395
+ * @summary Delete the commission agreement product
396
+ * @param {string} code Unique identifier for the object.
397
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
398
+ * @param {*} [options] Override http request option.
399
+ * @throws {RequiredError}
400
+ */
401
+ deleteCommissionAgreementProduct(code: string, authorization?: string, options?: any): AxiosPromise<void> {
402
+ return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then((request) => request(axios, basePath));
403
+ },
404
+ /**
405
+ * This will get commission agreement product.
406
+ * @summary Retrieve the commission agreement product
407
+ * @param {string} code
408
+ * @param {string} expand
409
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
410
+ * @param {*} [options] Override http request option.
411
+ * @throws {RequiredError}
412
+ */
413
+ getCommissionAgreementProduct(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionAgreementProductResponseClass> {
414
+ return localVarFp.getCommissionAgreementProduct(code, expand, authorization, options).then((request) => request(axios, basePath));
415
+ },
416
+ /**
417
+ * Retrieves a list of commission agreement products.
418
+ * @summary List commission agreement products
419
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
+ * @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;
421
+ * @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;
422
+ * @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, updatedAt, productSlug, status&lt;/i&gt;
423
+ * @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;
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
428
+ return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
429
+ },
430
+ /**
431
+ * This will update commission agreement product.
432
+ * @summary Update the commission agreement product
433
+ * @param {string} code Unique identifier for the object.
434
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
435
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
436
+ * @param {*} [options] Override http request option.
437
+ * @throws {RequiredError}
438
+ */
439
+ updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementProductResponseClass> {
440
+ return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
441
+ },
442
+ };
443
+ };
444
+
445
+ /**
446
+ * Request parameters for createCommissionAgreementProduct operation in CommissionAgreementProductsApi.
447
+ * @export
448
+ * @interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest
449
+ */
450
+ export interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest {
451
+ /**
452
+ *
453
+ * @type {CreateCommissionAgreementProductRequestDto}
454
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
455
+ */
456
+ readonly createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto
457
+
458
+ /**
459
+ * Bearer Token: provided by the login endpoint under the name accessToken.
460
+ * @type {string}
461
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
462
+ */
463
+ readonly authorization?: string
464
+ }
465
+
466
+ /**
467
+ * Request parameters for deleteCommissionAgreementProduct operation in CommissionAgreementProductsApi.
468
+ * @export
469
+ * @interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest
470
+ */
471
+ export interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest {
472
+ /**
473
+ * Unique identifier for the object.
474
+ * @type {string}
475
+ * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
476
+ */
477
+ readonly code: string
478
+
479
+ /**
480
+ * Bearer Token: provided by the login endpoint under the name accessToken.
481
+ * @type {string}
482
+ * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
483
+ */
484
+ readonly authorization?: string
485
+ }
486
+
487
+ /**
488
+ * Request parameters for getCommissionAgreementProduct operation in CommissionAgreementProductsApi.
489
+ * @export
490
+ * @interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest
491
+ */
492
+ export interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest {
493
+ /**
494
+ *
495
+ * @type {string}
496
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
497
+ */
498
+ readonly code: string
499
+
500
+ /**
501
+ *
502
+ * @type {string}
503
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
504
+ */
505
+ readonly expand: string
506
+
507
+ /**
508
+ * Bearer Token: provided by the login endpoint under the name accessToken.
509
+ * @type {string}
510
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
511
+ */
512
+ readonly authorization?: string
513
+ }
514
+
515
+ /**
516
+ * Request parameters for listCommissionAgreementProducts operation in CommissionAgreementProductsApi.
517
+ * @export
518
+ * @interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest
519
+ */
520
+ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest {
521
+ /**
522
+ * Bearer Token: provided by the login endpoint under the name accessToken.
523
+ * @type {string}
524
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
525
+ */
526
+ readonly authorization?: string
527
+
528
+ /**
529
+ * 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;
530
+ * @type {string}
531
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
532
+ */
533
+ readonly filter?: string
534
+
535
+ /**
536
+ * 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;
537
+ * @type {string}
538
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
539
+ */
540
+ readonly filters?: string
541
+
542
+ /**
543
+ * 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, updatedAt, productSlug, status&lt;/i&gt;
544
+ * @type {string}
545
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
546
+ */
547
+ readonly order?: string
548
+
549
+ /**
550
+ * 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;
551
+ * @type {string}
552
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
553
+ */
554
+ readonly expand?: string
555
+ }
556
+
557
+ /**
558
+ * Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi.
559
+ * @export
560
+ * @interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest
561
+ */
562
+ export interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest {
563
+ /**
564
+ * Unique identifier for the object.
565
+ * @type {string}
566
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
567
+ */
568
+ readonly code: string
569
+
570
+ /**
571
+ *
572
+ * @type {UpdateCommissionAgreementProductRequestDto}
573
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
574
+ */
575
+ readonly updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto
576
+
577
+ /**
578
+ * Bearer Token: provided by the login endpoint under the name accessToken.
579
+ * @type {string}
580
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
581
+ */
582
+ readonly authorization?: string
583
+ }
584
+
585
+ /**
586
+ * CommissionAgreementProductsApi - object-oriented interface
587
+ * @export
588
+ * @class CommissionAgreementProductsApi
589
+ * @extends {BaseAPI}
590
+ */
591
+ export class CommissionAgreementProductsApi extends BaseAPI {
592
+ /**
593
+ * This will create commission agreement product.
594
+ * @summary Create the commission agreement product
595
+ * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters.
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ * @memberof CommissionAgreementProductsApi
599
+ */
600
+ public createCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiCreateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
601
+ return CommissionAgreementProductsApiFp(this.configuration).createCommissionAgreementProduct(requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
602
+ }
603
+
604
+ /**
605
+ * This will delete commission agreement product.
606
+ * @summary Delete the commission agreement product
607
+ * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters.
608
+ * @param {*} [options] Override http request option.
609
+ * @throws {RequiredError}
610
+ * @memberof CommissionAgreementProductsApi
611
+ */
612
+ public deleteCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
613
+ return CommissionAgreementProductsApiFp(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
614
+ }
615
+
616
+ /**
617
+ * This will get commission agreement product.
618
+ * @summary Retrieve the commission agreement product
619
+ * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters.
620
+ * @param {*} [options] Override http request option.
621
+ * @throws {RequiredError}
622
+ * @memberof CommissionAgreementProductsApi
623
+ */
624
+ public getCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiGetCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
625
+ return CommissionAgreementProductsApiFp(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
626
+ }
627
+
628
+ /**
629
+ * Retrieves a list of commission agreement products.
630
+ * @summary List commission agreement products
631
+ * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters.
632
+ * @param {*} [options] Override http request option.
633
+ * @throws {RequiredError}
634
+ * @memberof CommissionAgreementProductsApi
635
+ */
636
+ public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
637
+ return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
638
+ }
639
+
640
+ /**
641
+ * This will update commission agreement product.
642
+ * @summary Update the commission agreement product
643
+ * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters.
644
+ * @param {*} [options] Override http request option.
645
+ * @throws {RequiredError}
646
+ * @memberof CommissionAgreementProductsApi
647
+ */
648
+ public updateCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
649
+ return CommissionAgreementProductsApiFp(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
650
+ }
651
+ }