@emilgroup/commission-sdk 1.0.0-beta.3 → 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 (57) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +665 -0
  4. package/api/commission-recipients-api.ts +638 -0
  5. package/api.ts +4 -0
  6. package/dist/api/commission-agreement-products-api.d.ts +375 -0
  7. package/dist/api/commission-agreement-products-api.js +632 -0
  8. package/dist/api/commission-recipients-api.d.ts +357 -0
  9. package/dist/api/commission-recipients-api.js +620 -0
  10. package/dist/api.d.ts +2 -0
  11. package/dist/api.js +2 -0
  12. package/dist/models/commission-agreement-product-class.d.ts +78 -0
  13. package/dist/models/commission-agreement-product-class.js +20 -0
  14. package/dist/models/commission-recipient-class.d.ts +90 -0
  15. package/dist/models/commission-recipient-class.js +20 -0
  16. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  17. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  18. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  19. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  20. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  21. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  22. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  23. package/dist/models/create-commission-recipient-response-class.js +15 -0
  24. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  25. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  26. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  27. package/dist/models/get-commission-recipient-response-class.js +15 -0
  28. package/dist/models/index.d.ts +14 -0
  29. package/dist/models/index.js +14 -0
  30. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  31. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  32. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  33. package/dist/models/list-commission-recipients-response-class.js +15 -0
  34. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  35. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  36. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  37. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  38. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  39. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  40. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  41. package/dist/models/update-commission-recipient-response-class.js +15 -0
  42. package/models/commission-agreement-product-class.ts +87 -0
  43. package/models/commission-recipient-class.ts +99 -0
  44. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  45. package/models/create-commission-agreement-product-response-class.ts +31 -0
  46. package/models/create-commission-recipient-request-dto.ts +42 -0
  47. package/models/create-commission-recipient-response-class.ts +31 -0
  48. package/models/get-commission-agreement-product-response-class.ts +31 -0
  49. package/models/get-commission-recipient-response-class.ts +31 -0
  50. package/models/index.ts +14 -0
  51. package/models/list-commission-agreement-products-response-class.ts +49 -0
  52. package/models/list-commission-recipients-response-class.ts +49 -0
  53. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  54. package/models/update-commission-agreement-product-response-class.ts +31 -0
  55. package/models/update-commission-recipient-request-dto.ts +48 -0
  56. package/models/update-commission-recipient-response-class.ts +31 -0
  57. package/package.json +1 -1
@@ -0,0 +1,638 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateCommissionRecipientRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCommissionRecipientResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetCommissionRecipientResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListCommissionRecipientsResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateCommissionRecipientRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionRecipientResponseClass } from '../models';
35
+ /**
36
+ * CommissionRecipientsApi - axios parameter creator
37
+ * @export
38
+ */
39
+ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?: Configuration) {
40
+ return {
41
+ /**
42
+ * This will create commission recipient.
43
+ * @summary Create the commission recipient
44
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
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
+ createCommissionRecipient: async (createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
50
+ // verify required parameter 'createCommissionRecipientRequestDto' is not null or undefined
51
+ assertParamExists('createCommissionRecipient', 'createCommissionRecipientRequestDto', createCommissionRecipientRequestDto)
52
+ const localVarPath = `/commissionservice/v1/commission-recipients`;
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(createCommissionRecipientRequestDto, localVarRequestOptions, configuration)
82
+
83
+ return {
84
+ url: toPathString(localVarUrlObj),
85
+ options: localVarRequestOptions,
86
+ };
87
+ },
88
+ /**
89
+ * This will delete commission recipient.
90
+ * @summary Delete the commission recipient
91
+ * @param {any} 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
+ deleteCommissionRecipient: async (code: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
+ // verify required parameter 'code' is not null or undefined
98
+ assertParamExists('deleteCommissionRecipient', 'code', code)
99
+ const localVarPath = `/commissionservice/v1/commission-recipients`
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 recipient.
135
+ * @summary Retrieve the commission recipient
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
+ getCommissionRecipient: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'code' is not null or undefined
144
+ assertParamExists('getCommissionRecipient', 'code', code)
145
+ // verify required parameter 'expand' is not null or undefined
146
+ assertParamExists('getCommissionRecipient', 'expand', expand)
147
+ const localVarPath = `/commissionservice/v1/commission-recipients/{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 commissionrecipients.
187
+ * @summary List commission recipients
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, displayName, partnerCode, 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, displayName, partnerCode, 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&lt;/i&gt;
192
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
193
+ * @param {*} [options] Override http request option.
194
+ * @throws {RequiredError}
195
+ */
196
+ listCommissionRecipients: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
+ const localVarPath = `/commissionservice/v1/commission-recipients`;
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 recipient.
248
+ * @summary Update the commission recipient
249
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
250
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ updateCommissionRecipient: async (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
255
+ // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
256
+ assertParamExists('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto)
257
+ const localVarPath = `/commissionservice/v1/commission-recipients`;
258
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
259
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
260
+ let baseOptions;
261
+ let baseAccessToken;
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ baseAccessToken = configuration.accessToken;
265
+ }
266
+
267
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
268
+ const localVarHeaderParameter = {} as any;
269
+ const localVarQueryParameter = {} as any;
270
+
271
+ // authentication bearer required
272
+ // http bearer authentication required
273
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
274
+
275
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
276
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
277
+ }
278
+
279
+
280
+
281
+ localVarHeaderParameter['Content-Type'] = 'application/json';
282
+
283
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
284
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
285
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
286
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionRecipientRequestDto, localVarRequestOptions, configuration)
287
+
288
+ return {
289
+ url: toPathString(localVarUrlObj),
290
+ options: localVarRequestOptions,
291
+ };
292
+ },
293
+ }
294
+ };
295
+
296
+ /**
297
+ * CommissionRecipientsApi - functional programming interface
298
+ * @export
299
+ */
300
+ export const CommissionRecipientsApiFp = function(configuration?: Configuration) {
301
+ const localVarAxiosParamCreator = CommissionRecipientsApiAxiosParamCreator(configuration)
302
+ return {
303
+ /**
304
+ * This will create commission recipient.
305
+ * @summary Create the commission recipient
306
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ async createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionRecipientResponseClass>> {
312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options);
313
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
314
+ },
315
+ /**
316
+ * This will delete commission recipient.
317
+ * @summary Delete the commission recipient
318
+ * @param {any} code Unique identifier for the object.
319
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ async deleteCommissionRecipient(code: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
324
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options);
325
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
326
+ },
327
+ /**
328
+ * This will get commission recipient.
329
+ * @summary Retrieve the commission recipient
330
+ * @param {string} code
331
+ * @param {string} expand
332
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ async getCommissionRecipient(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionRecipientResponseClass>> {
337
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionRecipient(code, expand, authorization, options);
338
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
339
+ },
340
+ /**
341
+ * Retrieves a list of commissionrecipients.
342
+ * @summary List commission recipients
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
345
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
346
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
347
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, filter, filters, order, expand, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
355
+ /**
356
+ * This will update commission recipient.
357
+ * @summary Update the commission recipient
358
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
359
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ async updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options);
365
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
366
+ },
367
+ }
368
+ };
369
+
370
+ /**
371
+ * CommissionRecipientsApi - factory interface
372
+ * @export
373
+ */
374
+ export const CommissionRecipientsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
375
+ const localVarFp = CommissionRecipientsApiFp(configuration)
376
+ return {
377
+ /**
378
+ * This will create commission recipient.
379
+ * @summary Create the commission recipient
380
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
381
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
+ * @param {*} [options] Override http request option.
383
+ * @throws {RequiredError}
384
+ */
385
+ createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientResponseClass> {
386
+ return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
387
+ },
388
+ /**
389
+ * This will delete commission recipient.
390
+ * @summary Delete the commission recipient
391
+ * @param {any} code Unique identifier for the object.
392
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
393
+ * @param {*} [options] Override http request option.
394
+ * @throws {RequiredError}
395
+ */
396
+ deleteCommissionRecipient(code: any, authorization?: string, options?: any): AxiosPromise<void> {
397
+ return localVarFp.deleteCommissionRecipient(code, authorization, options).then((request) => request(axios, basePath));
398
+ },
399
+ /**
400
+ * This will get commission recipient.
401
+ * @summary Retrieve the commission recipient
402
+ * @param {string} code
403
+ * @param {string} expand
404
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ getCommissionRecipient(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionRecipientResponseClass> {
409
+ return localVarFp.getCommissionRecipient(code, expand, authorization, options).then((request) => request(axios, basePath));
410
+ },
411
+ /**
412
+ * Retrieves a list of commissionrecipients.
413
+ * @summary List commission recipients
414
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
415
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
416
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
417
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
418
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
419
+ * @param {*} [options] Override http request option.
420
+ * @throws {RequiredError}
421
+ */
422
+ listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
423
+ return localVarFp.listCommissionRecipients(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
424
+ },
425
+ /**
426
+ * This will update commission recipient.
427
+ * @summary Update the commission recipient
428
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
429
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
+ * @param {*} [options] Override http request option.
431
+ * @throws {RequiredError}
432
+ */
433
+ updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
434
+ return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
435
+ },
436
+ };
437
+ };
438
+
439
+ /**
440
+ * Request parameters for createCommissionRecipient operation in CommissionRecipientsApi.
441
+ * @export
442
+ * @interface CommissionRecipientsApiCreateCommissionRecipientRequest
443
+ */
444
+ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
445
+ /**
446
+ *
447
+ * @type {CreateCommissionRecipientRequestDto}
448
+ * @memberof CommissionRecipientsApiCreateCommissionRecipient
449
+ */
450
+ readonly createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto
451
+
452
+ /**
453
+ * Bearer Token: provided by the login endpoint under the name accessToken.
454
+ * @type {string}
455
+ * @memberof CommissionRecipientsApiCreateCommissionRecipient
456
+ */
457
+ readonly authorization?: string
458
+ }
459
+
460
+ /**
461
+ * Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
462
+ * @export
463
+ * @interface CommissionRecipientsApiDeleteCommissionRecipientRequest
464
+ */
465
+ export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
466
+ /**
467
+ * Unique identifier for the object.
468
+ * @type {any}
469
+ * @memberof CommissionRecipientsApiDeleteCommissionRecipient
470
+ */
471
+ readonly code: any
472
+
473
+ /**
474
+ * Bearer Token: provided by the login endpoint under the name accessToken.
475
+ * @type {string}
476
+ * @memberof CommissionRecipientsApiDeleteCommissionRecipient
477
+ */
478
+ readonly authorization?: string
479
+ }
480
+
481
+ /**
482
+ * Request parameters for getCommissionRecipient operation in CommissionRecipientsApi.
483
+ * @export
484
+ * @interface CommissionRecipientsApiGetCommissionRecipientRequest
485
+ */
486
+ export interface CommissionRecipientsApiGetCommissionRecipientRequest {
487
+ /**
488
+ *
489
+ * @type {string}
490
+ * @memberof CommissionRecipientsApiGetCommissionRecipient
491
+ */
492
+ readonly code: string
493
+
494
+ /**
495
+ *
496
+ * @type {string}
497
+ * @memberof CommissionRecipientsApiGetCommissionRecipient
498
+ */
499
+ readonly expand: string
500
+
501
+ /**
502
+ * Bearer Token: provided by the login endpoint under the name accessToken.
503
+ * @type {string}
504
+ * @memberof CommissionRecipientsApiGetCommissionRecipient
505
+ */
506
+ readonly authorization?: string
507
+ }
508
+
509
+ /**
510
+ * Request parameters for listCommissionRecipients operation in CommissionRecipientsApi.
511
+ * @export
512
+ * @interface CommissionRecipientsApiListCommissionRecipientsRequest
513
+ */
514
+ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
515
+ /**
516
+ * Bearer Token: provided by the login endpoint under the name accessToken.
517
+ * @type {string}
518
+ * @memberof CommissionRecipientsApiListCommissionRecipients
519
+ */
520
+ readonly authorization?: string
521
+
522
+ /**
523
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
524
+ * @type {string}
525
+ * @memberof CommissionRecipientsApiListCommissionRecipients
526
+ */
527
+ readonly filter?: string
528
+
529
+ /**
530
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
531
+ * @type {string}
532
+ * @memberof CommissionRecipientsApiListCommissionRecipients
533
+ */
534
+ readonly filters?: string
535
+
536
+ /**
537
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
538
+ * @type {string}
539
+ * @memberof CommissionRecipientsApiListCommissionRecipients
540
+ */
541
+ readonly order?: string
542
+
543
+ /**
544
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
545
+ * @type {string}
546
+ * @memberof CommissionRecipientsApiListCommissionRecipients
547
+ */
548
+ readonly expand?: string
549
+ }
550
+
551
+ /**
552
+ * Request parameters for updateCommissionRecipient operation in CommissionRecipientsApi.
553
+ * @export
554
+ * @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
555
+ */
556
+ export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
557
+ /**
558
+ *
559
+ * @type {UpdateCommissionRecipientRequestDto}
560
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
561
+ */
562
+ readonly updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto
563
+
564
+ /**
565
+ * Bearer Token: provided by the login endpoint under the name accessToken.
566
+ * @type {string}
567
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
568
+ */
569
+ readonly authorization?: string
570
+ }
571
+
572
+ /**
573
+ * CommissionRecipientsApi - object-oriented interface
574
+ * @export
575
+ * @class CommissionRecipientsApi
576
+ * @extends {BaseAPI}
577
+ */
578
+ export class CommissionRecipientsApi extends BaseAPI {
579
+ /**
580
+ * This will create commission recipient.
581
+ * @summary Create the commission recipient
582
+ * @param {CommissionRecipientsApiCreateCommissionRecipientRequest} requestParameters Request parameters.
583
+ * @param {*} [options] Override http request option.
584
+ * @throws {RequiredError}
585
+ * @memberof CommissionRecipientsApi
586
+ */
587
+ public createCommissionRecipient(requestParameters: CommissionRecipientsApiCreateCommissionRecipientRequest, options?: AxiosRequestConfig) {
588
+ return CommissionRecipientsApiFp(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
589
+ }
590
+
591
+ /**
592
+ * This will delete commission recipient.
593
+ * @summary Delete the commission recipient
594
+ * @param {CommissionRecipientsApiDeleteCommissionRecipientRequest} requestParameters Request parameters.
595
+ * @param {*} [options] Override http request option.
596
+ * @throws {RequiredError}
597
+ * @memberof CommissionRecipientsApi
598
+ */
599
+ public deleteCommissionRecipient(requestParameters: CommissionRecipientsApiDeleteCommissionRecipientRequest, options?: AxiosRequestConfig) {
600
+ return CommissionRecipientsApiFp(this.configuration).deleteCommissionRecipient(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
601
+ }
602
+
603
+ /**
604
+ * This will get commission recipient.
605
+ * @summary Retrieve the commission recipient
606
+ * @param {CommissionRecipientsApiGetCommissionRecipientRequest} requestParameters Request parameters.
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ * @memberof CommissionRecipientsApi
610
+ */
611
+ public getCommissionRecipient(requestParameters: CommissionRecipientsApiGetCommissionRecipientRequest, options?: AxiosRequestConfig) {
612
+ return CommissionRecipientsApiFp(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
613
+ }
614
+
615
+ /**
616
+ * Retrieves a list of commissionrecipients.
617
+ * @summary List commission recipients
618
+ * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
619
+ * @param {*} [options] Override http request option.
620
+ * @throws {RequiredError}
621
+ * @memberof CommissionRecipientsApi
622
+ */
623
+ public listCommissionRecipients(requestParameters: CommissionRecipientsApiListCommissionRecipientsRequest = {}, options?: AxiosRequestConfig) {
624
+ return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
625
+ }
626
+
627
+ /**
628
+ * This will update commission recipient.
629
+ * @summary Update the commission recipient
630
+ * @param {CommissionRecipientsApiUpdateCommissionRecipientRequest} requestParameters Request parameters.
631
+ * @param {*} [options] Override http request option.
632
+ * @throws {RequiredError}
633
+ * @memberof CommissionRecipientsApi
634
+ */
635
+ public updateCommissionRecipient(requestParameters: CommissionRecipientsApiUpdateCommissionRecipientRequest, options?: AxiosRequestConfig) {
636
+ return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
637
+ }
638
+ }
package/api.ts CHANGED
@@ -20,14 +20,18 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { CommissionAgreementProductsApi } from './api';
23
24
  import { CommissionAgreementVersionsApi } from './api';
24
25
  import { CommissionAgreementsApi } from './api';
26
+ import { CommissionRecipientsApi } from './api';
25
27
  import { CommissionsApi } from './api';
26
28
  import { DefaultApi } from './api';
27
29
 
28
30
 
31
+ export * from './api/commission-agreement-products-api';
29
32
  export * from './api/commission-agreement-versions-api';
30
33
  export * from './api/commission-agreements-api';
34
+ export * from './api/commission-recipients-api';
31
35
  export * from './api/commissions-api';
32
36
  export * from './api/default-api';
33
37