@emilgroup/commission-sdk-node 1.0.0-beta.3 → 1.0.0-beta.4

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-recipients-api.ts +642 -0
  4. package/api.ts +2 -0
  5. package/dist/api/commission-recipients-api.d.ts +357 -0
  6. package/dist/api/commission-recipients-api.js +624 -0
  7. package/dist/api.d.ts +1 -0
  8. package/dist/api.js +1 -0
  9. package/dist/models/commission-recipient-class.d.ts +90 -0
  10. package/dist/models/commission-recipient-class.js +20 -0
  11. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  12. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  13. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  14. package/dist/models/create-commission-recipient-response-class.js +15 -0
  15. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  16. package/dist/models/get-commission-recipient-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-recipients-response-class.d.ts +43 -0
  20. package/dist/models/list-commission-recipients-response-class.js +15 -0
  21. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  22. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  23. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  24. package/dist/models/update-commission-recipient-response-class.js +15 -0
  25. package/models/commission-recipient-class.ts +99 -0
  26. package/models/create-commission-recipient-request-dto.ts +42 -0
  27. package/models/create-commission-recipient-response-class.ts +31 -0
  28. package/models/get-commission-recipient-response-class.ts +31 -0
  29. package/models/index.ts +7 -0
  30. package/models/list-commission-recipients-response-class.ts +49 -0
  31. package/models/update-commission-recipient-request-dto.ts +48 -0
  32. package/models/update-commission-recipient-response-class.ts +31 -0
  33. package/package.json +1 -1
@@ -0,0 +1,642 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL CommissionService
5
+ * The EMIL CommissionService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { 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
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * CommissionRecipientsApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * This will create commission recipient.
47
+ * @summary Create the commission recipient
48
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ createCommissionRecipient: async (createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'createCommissionRecipientRequestDto' is not null or undefined
55
+ assertParamExists('createCommissionRecipient', 'createCommissionRecipientRequestDto', createCommissionRecipientRequestDto)
56
+ const localVarPath = `/commissionservice/v1/commission-recipients`;
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(createCommissionRecipientRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * This will delete commission recipient.
94
+ * @summary Delete the commission recipient
95
+ * @param {any} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteCommissionRecipient: async (code: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteCommissionRecipient', 'code', code)
103
+ const localVarPath = `/commissionservice/v1/commission-recipients`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * This will get commission recipient.
139
+ * @summary Retrieve the commission recipient
140
+ * @param {string} code
141
+ * @param {string} expand
142
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getCommissionRecipient: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ // verify required parameter 'code' is not null or undefined
148
+ assertParamExists('getCommissionRecipient', 'code', code)
149
+ // verify required parameter 'expand' is not null or undefined
150
+ assertParamExists('getCommissionRecipient', 'expand', expand)
151
+ const localVarPath = `/commissionservice/v1/commission-recipients/{code}`
152
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ let baseAccessToken;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ baseAccessToken = configuration.accessToken;
160
+ }
161
+
162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
+ const localVarHeaderParameter = {} as any;
164
+ const localVarQueryParameter = {} as any;
165
+
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
+
170
+ if (expand !== undefined) {
171
+ localVarQueryParameter['expand'] = expand;
172
+ }
173
+
174
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
+ }
177
+
178
+
179
+
180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
+
184
+ return {
185
+ url: toPathString(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ };
188
+ },
189
+ /**
190
+ * Retrieves a list of commissionrecipients.
191
+ * @summary List commission recipients
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
194
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
195
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
196
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ listCommissionRecipients: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ const localVarPath = `/commissionservice/v1/commission-recipients`;
202
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
204
+ let baseOptions;
205
+ let baseAccessToken;
206
+ if (configuration) {
207
+ baseOptions = configuration.baseOptions;
208
+ baseAccessToken = configuration.accessToken;
209
+ }
210
+
211
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
212
+ const localVarHeaderParameter = {} as any;
213
+ const localVarQueryParameter = {} as any;
214
+
215
+ // authentication bearer required
216
+ // http bearer authentication required
217
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
+
219
+ if (filter !== undefined) {
220
+ localVarQueryParameter['filter'] = filter;
221
+ }
222
+
223
+ if (filters !== undefined) {
224
+ localVarQueryParameter['filters'] = filters;
225
+ }
226
+
227
+ if (order !== undefined) {
228
+ localVarQueryParameter['order'] = order;
229
+ }
230
+
231
+ if (expand !== undefined) {
232
+ localVarQueryParameter['expand'] = expand;
233
+ }
234
+
235
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
+ }
238
+
239
+
240
+
241
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
242
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
244
+
245
+ return {
246
+ url: toPathString(localVarUrlObj),
247
+ options: localVarRequestOptions,
248
+ };
249
+ },
250
+ /**
251
+ * This will update commission recipient.
252
+ * @summary Update the commission recipient
253
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
254
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
+ * @param {*} [options] Override http request option.
256
+ * @throws {RequiredError}
257
+ */
258
+ updateCommissionRecipient: async (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
259
+ // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
260
+ assertParamExists('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto)
261
+ const localVarPath = `/commissionservice/v1/commission-recipients`;
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(updateCommissionRecipientRequestDto, localVarRequestOptions, configuration)
291
+
292
+ return {
293
+ url: toPathString(localVarUrlObj),
294
+ options: localVarRequestOptions,
295
+ };
296
+ },
297
+ }
298
+ };
299
+
300
+ /**
301
+ * CommissionRecipientsApi - functional programming interface
302
+ * @export
303
+ */
304
+ export const CommissionRecipientsApiFp = function(configuration?: Configuration) {
305
+ const localVarAxiosParamCreator = CommissionRecipientsApiAxiosParamCreator(configuration)
306
+ return {
307
+ /**
308
+ * This will create commission recipient.
309
+ * @summary Create the commission recipient
310
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
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 createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionRecipientResponseClass>> {
316
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options);
317
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
318
+ },
319
+ /**
320
+ * This will delete commission recipient.
321
+ * @summary Delete the commission recipient
322
+ * @param {any} 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 deleteCommissionRecipient(code: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options);
329
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
+ },
331
+ /**
332
+ * This will get commission recipient.
333
+ * @summary Retrieve the commission recipient
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 getCommissionRecipient(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionRecipientResponseClass>> {
341
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionRecipient(code, expand, authorization, options);
342
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
+ },
344
+ /**
345
+ * Retrieves a list of commissionrecipients.
346
+ * @summary List commission recipients
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, displayName, partnerCode, 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, displayName, partnerCode, 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&lt;/i&gt;
351
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
352
+ * @param {*} [options] Override http request option.
353
+ * @throws {RequiredError}
354
+ */
355
+ async listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
356
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, filter, filters, order, expand, options);
357
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
+ },
359
+ /**
360
+ * This will update commission recipient.
361
+ * @summary Update the commission recipient
362
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
363
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
364
+ * @param {*} [options] Override http request option.
365
+ * @throws {RequiredError}
366
+ */
367
+ async updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
368
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options);
369
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
+ },
371
+ }
372
+ };
373
+
374
+ /**
375
+ * CommissionRecipientsApi - factory interface
376
+ * @export
377
+ */
378
+ export const CommissionRecipientsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
379
+ const localVarFp = CommissionRecipientsApiFp(configuration)
380
+ return {
381
+ /**
382
+ * This will create commission recipient.
383
+ * @summary Create the commission recipient
384
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
385
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ createCommissionRecipient(createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionRecipientResponseClass> {
390
+ return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
391
+ },
392
+ /**
393
+ * This will delete commission recipient.
394
+ * @summary Delete the commission recipient
395
+ * @param {any} code Unique identifier for the object.
396
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
397
+ * @param {*} [options] Override http request option.
398
+ * @throws {RequiredError}
399
+ */
400
+ deleteCommissionRecipient(code: any, authorization?: string, options?: any): AxiosPromise<void> {
401
+ return localVarFp.deleteCommissionRecipient(code, authorization, options).then((request) => request(axios, basePath));
402
+ },
403
+ /**
404
+ * This will get commission recipient.
405
+ * @summary Retrieve the commission recipient
406
+ * @param {string} code
407
+ * @param {string} expand
408
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ getCommissionRecipient(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionRecipientResponseClass> {
413
+ return localVarFp.getCommissionRecipient(code, expand, authorization, options).then((request) => request(axios, basePath));
414
+ },
415
+ /**
416
+ * Retrieves a list of commissionrecipients.
417
+ * @summary List commission recipients
418
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
420
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
421
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
422
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
423
+ * @param {*} [options] Override http request option.
424
+ * @throws {RequiredError}
425
+ */
426
+ listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
427
+ return localVarFp.listCommissionRecipients(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
428
+ },
429
+ /**
430
+ * This will update commission recipient.
431
+ * @summary Update the commission recipient
432
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
433
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
438
+ return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
439
+ },
440
+ };
441
+ };
442
+
443
+ /**
444
+ * Request parameters for createCommissionRecipient operation in CommissionRecipientsApi.
445
+ * @export
446
+ * @interface CommissionRecipientsApiCreateCommissionRecipientRequest
447
+ */
448
+ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
449
+ /**
450
+ *
451
+ * @type {CreateCommissionRecipientRequestDto}
452
+ * @memberof CommissionRecipientsApiCreateCommissionRecipient
453
+ */
454
+ readonly createCommissionRecipientRequestDto: CreateCommissionRecipientRequestDto
455
+
456
+ /**
457
+ * Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @type {string}
459
+ * @memberof CommissionRecipientsApiCreateCommissionRecipient
460
+ */
461
+ readonly authorization?: string
462
+ }
463
+
464
+ /**
465
+ * Request parameters for deleteCommissionRecipient operation in CommissionRecipientsApi.
466
+ * @export
467
+ * @interface CommissionRecipientsApiDeleteCommissionRecipientRequest
468
+ */
469
+ export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
470
+ /**
471
+ * Unique identifier for the object.
472
+ * @type {any}
473
+ * @memberof CommissionRecipientsApiDeleteCommissionRecipient
474
+ */
475
+ readonly code: any
476
+
477
+ /**
478
+ * Bearer Token: provided by the login endpoint under the name accessToken.
479
+ * @type {string}
480
+ * @memberof CommissionRecipientsApiDeleteCommissionRecipient
481
+ */
482
+ readonly authorization?: string
483
+ }
484
+
485
+ /**
486
+ * Request parameters for getCommissionRecipient operation in CommissionRecipientsApi.
487
+ * @export
488
+ * @interface CommissionRecipientsApiGetCommissionRecipientRequest
489
+ */
490
+ export interface CommissionRecipientsApiGetCommissionRecipientRequest {
491
+ /**
492
+ *
493
+ * @type {string}
494
+ * @memberof CommissionRecipientsApiGetCommissionRecipient
495
+ */
496
+ readonly code: string
497
+
498
+ /**
499
+ *
500
+ * @type {string}
501
+ * @memberof CommissionRecipientsApiGetCommissionRecipient
502
+ */
503
+ readonly expand: string
504
+
505
+ /**
506
+ * Bearer Token: provided by the login endpoint under the name accessToken.
507
+ * @type {string}
508
+ * @memberof CommissionRecipientsApiGetCommissionRecipient
509
+ */
510
+ readonly authorization?: string
511
+ }
512
+
513
+ /**
514
+ * Request parameters for listCommissionRecipients operation in CommissionRecipientsApi.
515
+ * @export
516
+ * @interface CommissionRecipientsApiListCommissionRecipientsRequest
517
+ */
518
+ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
519
+ /**
520
+ * Bearer Token: provided by the login endpoint under the name accessToken.
521
+ * @type {string}
522
+ * @memberof CommissionRecipientsApiListCommissionRecipients
523
+ */
524
+ readonly authorization?: string
525
+
526
+ /**
527
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
528
+ * @type {string}
529
+ * @memberof CommissionRecipientsApiListCommissionRecipients
530
+ */
531
+ readonly filter?: string
532
+
533
+ /**
534
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
535
+ * @type {string}
536
+ * @memberof CommissionRecipientsApiListCommissionRecipients
537
+ */
538
+ readonly filters?: string
539
+
540
+ /**
541
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
542
+ * @type {string}
543
+ * @memberof CommissionRecipientsApiListCommissionRecipients
544
+ */
545
+ readonly order?: string
546
+
547
+ /**
548
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
549
+ * @type {string}
550
+ * @memberof CommissionRecipientsApiListCommissionRecipients
551
+ */
552
+ readonly expand?: string
553
+ }
554
+
555
+ /**
556
+ * Request parameters for updateCommissionRecipient operation in CommissionRecipientsApi.
557
+ * @export
558
+ * @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
559
+ */
560
+ export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
561
+ /**
562
+ *
563
+ * @type {UpdateCommissionRecipientRequestDto}
564
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
565
+ */
566
+ readonly updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto
567
+
568
+ /**
569
+ * Bearer Token: provided by the login endpoint under the name accessToken.
570
+ * @type {string}
571
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
572
+ */
573
+ readonly authorization?: string
574
+ }
575
+
576
+ /**
577
+ * CommissionRecipientsApi - object-oriented interface
578
+ * @export
579
+ * @class CommissionRecipientsApi
580
+ * @extends {BaseAPI}
581
+ */
582
+ export class CommissionRecipientsApi extends BaseAPI {
583
+ /**
584
+ * This will create commission recipient.
585
+ * @summary Create the commission recipient
586
+ * @param {CommissionRecipientsApiCreateCommissionRecipientRequest} requestParameters Request parameters.
587
+ * @param {*} [options] Override http request option.
588
+ * @throws {RequiredError}
589
+ * @memberof CommissionRecipientsApi
590
+ */
591
+ public createCommissionRecipient(requestParameters: CommissionRecipientsApiCreateCommissionRecipientRequest, options?: AxiosRequestConfig) {
592
+ return CommissionRecipientsApiFp(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
593
+ }
594
+
595
+ /**
596
+ * This will delete commission recipient.
597
+ * @summary Delete the commission recipient
598
+ * @param {CommissionRecipientsApiDeleteCommissionRecipientRequest} requestParameters Request parameters.
599
+ * @param {*} [options] Override http request option.
600
+ * @throws {RequiredError}
601
+ * @memberof CommissionRecipientsApi
602
+ */
603
+ public deleteCommissionRecipient(requestParameters: CommissionRecipientsApiDeleteCommissionRecipientRequest, options?: AxiosRequestConfig) {
604
+ return CommissionRecipientsApiFp(this.configuration).deleteCommissionRecipient(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
605
+ }
606
+
607
+ /**
608
+ * This will get commission recipient.
609
+ * @summary Retrieve the commission recipient
610
+ * @param {CommissionRecipientsApiGetCommissionRecipientRequest} requestParameters Request parameters.
611
+ * @param {*} [options] Override http request option.
612
+ * @throws {RequiredError}
613
+ * @memberof CommissionRecipientsApi
614
+ */
615
+ public getCommissionRecipient(requestParameters: CommissionRecipientsApiGetCommissionRecipientRequest, options?: AxiosRequestConfig) {
616
+ return CommissionRecipientsApiFp(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
617
+ }
618
+
619
+ /**
620
+ * Retrieves a list of commissionrecipients.
621
+ * @summary List commission recipients
622
+ * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
623
+ * @param {*} [options] Override http request option.
624
+ * @throws {RequiredError}
625
+ * @memberof CommissionRecipientsApi
626
+ */
627
+ public listCommissionRecipients(requestParameters: CommissionRecipientsApiListCommissionRecipientsRequest = {}, options?: AxiosRequestConfig) {
628
+ return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
629
+ }
630
+
631
+ /**
632
+ * This will update commission recipient.
633
+ * @summary Update the commission recipient
634
+ * @param {CommissionRecipientsApiUpdateCommissionRecipientRequest} requestParameters Request parameters.
635
+ * @param {*} [options] Override http request option.
636
+ * @throws {RequiredError}
637
+ * @memberof CommissionRecipientsApi
638
+ */
639
+ public updateCommissionRecipient(requestParameters: CommissionRecipientsApiUpdateCommissionRecipientRequest, options?: AxiosRequestConfig) {
640
+ return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
+ }
642
+ }
package/api.ts CHANGED
@@ -26,12 +26,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { CommissionAgreementVersionsApi } from './api';
28
28
  import { CommissionAgreementsApi } from './api';
29
+ import { CommissionRecipientsApi } from './api';
29
30
  import { CommissionsApi } from './api';
30
31
  import { DefaultApi } from './api';
31
32
 
32
33
 
33
34
  export * from './api/commission-agreement-versions-api';
34
35
  export * from './api/commission-agreements-api';
36
+ export * from './api/commission-recipients-api';
35
37
  export * from './api/commissions-api';
36
38
  export * from './api/default-api';
37
39