@emilgroup/commission-sdk 1.0.0-beta.2 → 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 (39) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-versions-api.ts +67 -25
  4. package/api/commission-agreements-api.ts +55 -13
  5. package/api/commission-recipients-api.ts +638 -0
  6. package/api.ts +2 -0
  7. package/dist/api/commission-agreement-versions-api.d.ts +47 -20
  8. package/dist/api/commission-agreement-versions-api.js +38 -20
  9. package/dist/api/commission-agreements-api.d.ts +35 -8
  10. package/dist/api/commission-agreements-api.js +29 -11
  11. package/dist/api/commission-recipients-api.d.ts +357 -0
  12. package/dist/api/commission-recipients-api.js +620 -0
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/commission-recipient-class.d.ts +90 -0
  16. package/dist/models/commission-recipient-class.js +20 -0
  17. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  18. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  19. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  20. package/dist/models/create-commission-recipient-response-class.js +15 -0
  21. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  22. package/dist/models/get-commission-recipient-response-class.js +15 -0
  23. package/dist/models/index.d.ts +7 -0
  24. package/dist/models/index.js +7 -0
  25. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  26. package/dist/models/list-commission-recipients-response-class.js +15 -0
  27. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  28. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  29. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  30. package/dist/models/update-commission-recipient-response-class.js +15 -0
  31. package/models/commission-recipient-class.ts +99 -0
  32. package/models/create-commission-recipient-request-dto.ts +42 -0
  33. package/models/create-commission-recipient-response-class.ts +31 -0
  34. package/models/get-commission-recipient-response-class.ts +31 -0
  35. package/models/index.ts +7 -0
  36. package/models/list-commission-recipients-response-class.ts +49 -0
  37. package/models/update-commission-recipient-request-dto.ts +48 -0
  38. package/models/update-commission-recipient-response-class.ts +31 -0
  39. package/package.json +1 -1
@@ -0,0 +1,620 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL CommissionService
6
+ * The EMIL CommissionService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.CommissionRecipientsApi = exports.CommissionRecipientsApiFactory = exports.CommissionRecipientsApiFp = exports.CommissionRecipientsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * CommissionRecipientsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will create commission recipient.
97
+ * @summary Create the commission recipient
98
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
109
+ case 0:
110
+ // verify required parameter 'createCommissionRecipientRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createCommissionRecipient', 'createCommissionRecipientRequestDto', createCommissionRecipientRequestDto);
112
+ localVarPath = "/commissionservice/v1/commission-recipients";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionRecipientRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
144
+ /**
145
+ * This will delete commission recipient.
146
+ * @summary Delete the commission recipient
147
+ * @param {any} code Unique identifier for the object.
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ deleteCommissionRecipient: function (code, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('deleteCommissionRecipient', 'code', code);
161
+ localVarPath = "/commissionservice/v1/commission-recipients"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
193
+ * This will get commission recipient.
194
+ * @summary Retrieve the commission recipient
195
+ * @param {string} code
196
+ * @param {string} expand
197
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ getCommissionRecipient: function (code, expand, authorization, options) {
202
+ if (options === void 0) { options = {}; }
203
+ return __awaiter(_this, void 0, void 0, function () {
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
207
+ case 0:
208
+ // verify required parameter 'code' is not null or undefined
209
+ (0, common_1.assertParamExists)('getCommissionRecipient', 'code', code);
210
+ // verify required parameter 'expand' is not null or undefined
211
+ (0, common_1.assertParamExists)('getCommissionRecipient', 'expand', expand);
212
+ localVarPath = "/commissionservice/v1/commission-recipients/{code}"
213
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
225
+ case 1:
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ _a.sent();
229
+ if (expand !== undefined) {
230
+ localVarQueryParameter['expand'] = expand;
231
+ }
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ }
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ /**
247
+ * Retrieves a list of commissionrecipients.
248
+ * @summary List commission recipients
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @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;
251
+ * @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;
252
+ * @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;
253
+ * @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;
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ listCommissionRecipients: function (authorization, filter, filters, order, expand, options) {
258
+ if (options === void 0) { options = {}; }
259
+ return __awaiter(_this, void 0, void 0, function () {
260
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
261
+ return __generator(this, function (_a) {
262
+ switch (_a.label) {
263
+ case 0:
264
+ localVarPath = "/commissionservice/v1/commission-recipients";
265
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
266
+ if (configuration) {
267
+ baseOptions = configuration.baseOptions;
268
+ baseAccessToken = configuration.accessToken;
269
+ }
270
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
271
+ localVarHeaderParameter = {};
272
+ localVarQueryParameter = {};
273
+ // authentication bearer required
274
+ // http bearer authentication required
275
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
276
+ case 1:
277
+ // authentication bearer required
278
+ // http bearer authentication required
279
+ _a.sent();
280
+ if (filter !== undefined) {
281
+ localVarQueryParameter['filter'] = filter;
282
+ }
283
+ if (filters !== undefined) {
284
+ localVarQueryParameter['filters'] = filters;
285
+ }
286
+ if (order !== undefined) {
287
+ localVarQueryParameter['order'] = order;
288
+ }
289
+ if (expand !== undefined) {
290
+ localVarQueryParameter['expand'] = expand;
291
+ }
292
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
+ }
295
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
296
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
298
+ return [2 /*return*/, {
299
+ url: (0, common_1.toPathString)(localVarUrlObj),
300
+ options: localVarRequestOptions,
301
+ }];
302
+ }
303
+ });
304
+ });
305
+ },
306
+ /**
307
+ * This will update commission recipient.
308
+ * @summary Update the commission recipient
309
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
310
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
311
+ * @param {*} [options] Override http request option.
312
+ * @throws {RequiredError}
313
+ */
314
+ updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
315
+ if (options === void 0) { options = {}; }
316
+ return __awaiter(_this, void 0, void 0, function () {
317
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
318
+ return __generator(this, function (_a) {
319
+ switch (_a.label) {
320
+ case 0:
321
+ // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
322
+ (0, common_1.assertParamExists)('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto);
323
+ localVarPath = "/commissionservice/v1/commission-recipients";
324
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
325
+ if (configuration) {
326
+ baseOptions = configuration.baseOptions;
327
+ baseAccessToken = configuration.accessToken;
328
+ }
329
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
330
+ localVarHeaderParameter = {};
331
+ localVarQueryParameter = {};
332
+ // authentication bearer required
333
+ // http bearer authentication required
334
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
335
+ case 1:
336
+ // authentication bearer required
337
+ // http bearer authentication required
338
+ _a.sent();
339
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
340
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
341
+ }
342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
343
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
344
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
345
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
346
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCommissionRecipientRequestDto, localVarRequestOptions, configuration);
347
+ return [2 /*return*/, {
348
+ url: (0, common_1.toPathString)(localVarUrlObj),
349
+ options: localVarRequestOptions,
350
+ }];
351
+ }
352
+ });
353
+ });
354
+ },
355
+ };
356
+ };
357
+ exports.CommissionRecipientsApiAxiosParamCreator = CommissionRecipientsApiAxiosParamCreator;
358
+ /**
359
+ * CommissionRecipientsApi - functional programming interface
360
+ * @export
361
+ */
362
+ var CommissionRecipientsApiFp = function (configuration) {
363
+ var localVarAxiosParamCreator = (0, exports.CommissionRecipientsApiAxiosParamCreator)(configuration);
364
+ return {
365
+ /**
366
+ * This will create commission recipient.
367
+ * @summary Create the commission recipient
368
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
369
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
370
+ * @param {*} [options] Override http request option.
371
+ * @throws {RequiredError}
372
+ */
373
+ createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
374
+ return __awaiter(this, void 0, void 0, function () {
375
+ var localVarAxiosArgs;
376
+ return __generator(this, function (_a) {
377
+ switch (_a.label) {
378
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options)];
379
+ case 1:
380
+ localVarAxiosArgs = _a.sent();
381
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
382
+ }
383
+ });
384
+ });
385
+ },
386
+ /**
387
+ * This will delete commission recipient.
388
+ * @summary Delete the commission recipient
389
+ * @param {any} code Unique identifier for the object.
390
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ deleteCommissionRecipient: function (code, authorization, options) {
395
+ return __awaiter(this, void 0, void 0, function () {
396
+ var localVarAxiosArgs;
397
+ return __generator(this, function (_a) {
398
+ switch (_a.label) {
399
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options)];
400
+ case 1:
401
+ localVarAxiosArgs = _a.sent();
402
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
403
+ }
404
+ });
405
+ });
406
+ },
407
+ /**
408
+ * This will get commission recipient.
409
+ * @summary Retrieve the commission recipient
410
+ * @param {string} code
411
+ * @param {string} expand
412
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ */
416
+ getCommissionRecipient: function (code, expand, authorization, options) {
417
+ return __awaiter(this, void 0, void 0, function () {
418
+ var localVarAxiosArgs;
419
+ return __generator(this, function (_a) {
420
+ switch (_a.label) {
421
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCommissionRecipient(code, expand, authorization, options)];
422
+ case 1:
423
+ localVarAxiosArgs = _a.sent();
424
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
425
+ }
426
+ });
427
+ });
428
+ },
429
+ /**
430
+ * Retrieves a list of commissionrecipients.
431
+ * @summary List commission recipients
432
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
+ * @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;
434
+ * @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;
435
+ * @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;
436
+ * @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;
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ */
440
+ listCommissionRecipients: function (authorization, filter, filters, order, expand, options) {
441
+ return __awaiter(this, void 0, void 0, function () {
442
+ var localVarAxiosArgs;
443
+ return __generator(this, function (_a) {
444
+ switch (_a.label) {
445
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, filter, filters, order, expand, options)];
446
+ case 1:
447
+ localVarAxiosArgs = _a.sent();
448
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
449
+ }
450
+ });
451
+ });
452
+ },
453
+ /**
454
+ * This will update commission recipient.
455
+ * @summary Update the commission recipient
456
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
457
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
458
+ * @param {*} [options] Override http request option.
459
+ * @throws {RequiredError}
460
+ */
461
+ updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
462
+ return __awaiter(this, void 0, void 0, function () {
463
+ var localVarAxiosArgs;
464
+ return __generator(this, function (_a) {
465
+ switch (_a.label) {
466
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options)];
467
+ case 1:
468
+ localVarAxiosArgs = _a.sent();
469
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
470
+ }
471
+ });
472
+ });
473
+ },
474
+ };
475
+ };
476
+ exports.CommissionRecipientsApiFp = CommissionRecipientsApiFp;
477
+ /**
478
+ * CommissionRecipientsApi - factory interface
479
+ * @export
480
+ */
481
+ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
482
+ var localVarFp = (0, exports.CommissionRecipientsApiFp)(configuration);
483
+ return {
484
+ /**
485
+ * This will create commission recipient.
486
+ * @summary Create the commission recipient
487
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
488
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
493
+ return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
494
+ },
495
+ /**
496
+ * This will delete commission recipient.
497
+ * @summary Delete the commission recipient
498
+ * @param {any} code Unique identifier for the object.
499
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ deleteCommissionRecipient: function (code, authorization, options) {
504
+ return localVarFp.deleteCommissionRecipient(code, authorization, options).then(function (request) { return request(axios, basePath); });
505
+ },
506
+ /**
507
+ * This will get commission recipient.
508
+ * @summary Retrieve the commission recipient
509
+ * @param {string} code
510
+ * @param {string} expand
511
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
512
+ * @param {*} [options] Override http request option.
513
+ * @throws {RequiredError}
514
+ */
515
+ getCommissionRecipient: function (code, expand, authorization, options) {
516
+ return localVarFp.getCommissionRecipient(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
517
+ },
518
+ /**
519
+ * Retrieves a list of commissionrecipients.
520
+ * @summary List commission recipients
521
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
522
+ * @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;
523
+ * @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;
524
+ * @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;
525
+ * @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;
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ listCommissionRecipients: function (authorization, filter, filters, order, expand, options) {
530
+ return localVarFp.listCommissionRecipients(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
531
+ },
532
+ /**
533
+ * This will update commission recipient.
534
+ * @summary Update the commission recipient
535
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
536
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
537
+ * @param {*} [options] Override http request option.
538
+ * @throws {RequiredError}
539
+ */
540
+ updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
541
+ return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
542
+ },
543
+ };
544
+ };
545
+ exports.CommissionRecipientsApiFactory = CommissionRecipientsApiFactory;
546
+ /**
547
+ * CommissionRecipientsApi - object-oriented interface
548
+ * @export
549
+ * @class CommissionRecipientsApi
550
+ * @extends {BaseAPI}
551
+ */
552
+ var CommissionRecipientsApi = /** @class */ (function (_super) {
553
+ __extends(CommissionRecipientsApi, _super);
554
+ function CommissionRecipientsApi() {
555
+ return _super !== null && _super.apply(this, arguments) || this;
556
+ }
557
+ /**
558
+ * This will create commission recipient.
559
+ * @summary Create the commission recipient
560
+ * @param {CommissionRecipientsApiCreateCommissionRecipientRequest} requestParameters Request parameters.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ * @memberof CommissionRecipientsApi
564
+ */
565
+ CommissionRecipientsApi.prototype.createCommissionRecipient = function (requestParameters, options) {
566
+ var _this = this;
567
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
568
+ };
569
+ /**
570
+ * This will delete commission recipient.
571
+ * @summary Delete the commission recipient
572
+ * @param {CommissionRecipientsApiDeleteCommissionRecipientRequest} requestParameters Request parameters.
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ * @memberof CommissionRecipientsApi
576
+ */
577
+ CommissionRecipientsApi.prototype.deleteCommissionRecipient = function (requestParameters, options) {
578
+ var _this = this;
579
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).deleteCommissionRecipient(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
580
+ };
581
+ /**
582
+ * This will get commission recipient.
583
+ * @summary Retrieve the commission recipient
584
+ * @param {CommissionRecipientsApiGetCommissionRecipientRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof CommissionRecipientsApi
588
+ */
589
+ CommissionRecipientsApi.prototype.getCommissionRecipient = function (requestParameters, options) {
590
+ var _this = this;
591
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
592
+ };
593
+ /**
594
+ * Retrieves a list of commissionrecipients.
595
+ * @summary List commission recipients
596
+ * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ * @memberof CommissionRecipientsApi
600
+ */
601
+ CommissionRecipientsApi.prototype.listCommissionRecipients = function (requestParameters, options) {
602
+ var _this = this;
603
+ if (requestParameters === void 0) { requestParameters = {}; }
604
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
605
+ };
606
+ /**
607
+ * This will update commission recipient.
608
+ * @summary Update the commission recipient
609
+ * @param {CommissionRecipientsApiUpdateCommissionRecipientRequest} requestParameters Request parameters.
610
+ * @param {*} [options] Override http request option.
611
+ * @throws {RequiredError}
612
+ * @memberof CommissionRecipientsApi
613
+ */
614
+ CommissionRecipientsApi.prototype.updateCommissionRecipient = function (requestParameters, options) {
615
+ var _this = this;
616
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
617
+ };
618
+ return CommissionRecipientsApi;
619
+ }(base_1.BaseAPI));
620
+ exports.CommissionRecipientsApi = CommissionRecipientsApi;
package/dist/api.d.ts CHANGED
@@ -11,5 +11,6 @@
11
11
  */
12
12
  export * from './api/commission-agreement-versions-api';
13
13
  export * from './api/commission-agreements-api';
14
+ export * from './api/commission-recipients-api';
14
15
  export * from './api/commissions-api';
15
16
  export * from './api/default-api';
package/dist/api.js CHANGED
@@ -29,5 +29,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/commission-agreement-versions-api"), exports);
31
31
  __exportStar(require("./api/commission-agreements-api"), exports);
32
+ __exportStar(require("./api/commission-recipients-api"), exports);
32
33
  __exportStar(require("./api/commissions-api"), exports);
33
34
  __exportStar(require("./api/default-api"), exports);