@emilgroup/commission-sdk 1.0.0-beta.2 → 1.0.0-beta.21

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 (130) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +651 -0
  4. package/api/commission-agreement-rules-api.ts +758 -0
  5. package/api/commission-agreement-versions-api.ts +67 -25
  6. package/api/commission-agreements-api.ts +83 -28
  7. package/api/commission-recipients-api.ts +693 -0
  8. package/api/commissions-api.ts +18 -18
  9. package/api.ts +6 -0
  10. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  11. package/dist/api/commission-agreement-products-api.js +626 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +719 -0
  14. package/dist/api/commission-agreement-versions-api.d.ts +47 -20
  15. package/dist/api/commission-agreement-versions-api.js +38 -20
  16. package/dist/api/commission-agreements-api.d.ts +55 -19
  17. package/dist/api/commission-agreements-api.js +48 -24
  18. package/dist/api/commission-recipients-api.d.ts +393 -0
  19. package/dist/api/commission-recipients-api.js +644 -0
  20. package/dist/api/commissions-api.d.ts +18 -18
  21. package/dist/api/commissions-api.js +9 -9
  22. package/dist/api.d.ts +3 -0
  23. package/dist/api.js +3 -0
  24. package/dist/models/commission-agreement-class.d.ts +14 -0
  25. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  26. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  27. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  28. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  29. package/dist/models/commission-agreement-product-class.d.ts +77 -0
  30. package/dist/models/commission-agreement-product-class.js +20 -0
  31. package/dist/models/commission-agreement-rule-class.d.ts +80 -0
  32. package/dist/models/commission-agreement-rule-class.js +21 -0
  33. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  34. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  35. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  36. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  37. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  38. package/dist/models/commission-class.d.ts +5 -4
  39. package/dist/models/commission-conditions-dto.d.ts +24 -0
  40. package/dist/models/commission-conditions-dto.js +15 -0
  41. package/dist/models/commission-config-dto.d.ts +63 -0
  42. package/dist/models/commission-config-dto.js +34 -0
  43. package/dist/models/commission-recipient-class.d.ts +90 -0
  44. package/dist/models/commission-recipient-class.js +20 -0
  45. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  46. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  47. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  48. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  49. package/dist/models/create-commission-agreement-request-dto.d.ts +8 -1
  50. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
  51. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  52. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  53. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  54. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  55. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  56. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  57. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  58. package/dist/models/create-commission-recipient-response-class.js +15 -0
  59. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  60. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  61. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  62. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  63. package/dist/models/evaluated-commission-class.d.ts +54 -0
  64. package/dist/models/evaluated-commission-class.js +21 -0
  65. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  66. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  67. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  68. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  69. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  70. package/dist/models/get-commission-recipient-response-class.js +15 -0
  71. package/dist/models/index.d.ts +30 -0
  72. package/dist/models/index.js +30 -0
  73. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  74. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  75. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  76. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  77. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  78. package/dist/models/list-commission-recipients-response-class.js +15 -0
  79. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  80. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  81. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  82. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  83. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
  84. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  85. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  86. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  87. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  88. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  89. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  90. package/dist/models/update-commission-recipient-response-class.js +15 -0
  91. package/dist/models/update-commission-request-dto.d.ts +5 -3
  92. package/dist/models/update-commission-request-dto.js +4 -2
  93. package/models/commission-agreement-class.ts +14 -0
  94. package/models/commission-agreement-metadata-dto.ts +31 -0
  95. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  96. package/models/commission-agreement-product-class.ts +86 -0
  97. package/models/commission-agreement-rule-class.ts +89 -0
  98. package/models/commission-agreement-rule-config-dto.ts +31 -0
  99. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  100. package/models/commission-agreement-version-class.ts +7 -0
  101. package/models/commission-class.ts +5 -4
  102. package/models/commission-conditions-dto.ts +30 -0
  103. package/models/commission-config-dto.ts +73 -0
  104. package/models/commission-recipient-class.ts +99 -0
  105. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  106. package/models/create-commission-agreement-product-response-class.ts +31 -0
  107. package/models/create-commission-agreement-request-dto.ts +8 -1
  108. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  109. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  110. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  111. package/models/create-commission-recipient-request-dto.ts +42 -0
  112. package/models/create-commission-recipient-response-class.ts +31 -0
  113. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  114. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  115. package/models/evaluated-commission-class.ts +63 -0
  116. package/models/get-commission-agreement-product-response-class.ts +31 -0
  117. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  118. package/models/get-commission-recipient-response-class.ts +31 -0
  119. package/models/index.ts +30 -0
  120. package/models/list-commission-agreement-products-response-class.ts +49 -0
  121. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  122. package/models/list-commission-recipients-response-class.ts +49 -0
  123. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  124. package/models/update-commission-agreement-product-response-class.ts +31 -0
  125. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  126. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  127. package/models/update-commission-recipient-request-dto.ts +48 -0
  128. package/models/update-commission-recipient-response-class.ts +31 -0
  129. package/models/update-commission-request-dto.ts +5 -3
  130. package/package.json +1 -1
@@ -0,0 +1,644 @@
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 {string} 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/{code}"
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 commission recipients.
248
+ * @summary List commission recipients
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
252
+ * @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;
253
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
254
+ * @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;
255
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementVersion&lt;i&gt;
256
+ * @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;
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
+ if (options === void 0) { options = {}; }
262
+ return __awaiter(_this, void 0, void 0, function () {
263
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
266
+ case 0:
267
+ localVarPath = "/commissionservice/v1/commission-recipients";
268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ baseAccessToken = configuration.accessToken;
272
+ }
273
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
274
+ localVarHeaderParameter = {};
275
+ localVarQueryParameter = {};
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
279
+ case 1:
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ _a.sent();
283
+ if (pageSize !== undefined) {
284
+ localVarQueryParameter['pageSize'] = pageSize;
285
+ }
286
+ if (pageToken !== undefined) {
287
+ localVarQueryParameter['pageToken'] = pageToken;
288
+ }
289
+ if (filter !== undefined) {
290
+ localVarQueryParameter['filter'] = filter;
291
+ }
292
+ if (search !== undefined) {
293
+ localVarQueryParameter['search'] = search;
294
+ }
295
+ if (order !== undefined) {
296
+ localVarQueryParameter['order'] = order;
297
+ }
298
+ if (expand !== undefined) {
299
+ localVarQueryParameter['expand'] = expand;
300
+ }
301
+ if (filters !== undefined) {
302
+ localVarQueryParameter['filters'] = filters;
303
+ }
304
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
+ }
307
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
310
+ return [2 /*return*/, {
311
+ url: (0, common_1.toPathString)(localVarUrlObj),
312
+ options: localVarRequestOptions,
313
+ }];
314
+ }
315
+ });
316
+ });
317
+ },
318
+ /**
319
+ * This will update commission recipient.
320
+ * @summary Update the commission recipient
321
+ * @param {string} code
322
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
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
+ updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
333
+ case 0:
334
+ // verify required parameter 'code' is not null or undefined
335
+ (0, common_1.assertParamExists)('updateCommissionRecipient', 'code', code);
336
+ // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
337
+ (0, common_1.assertParamExists)('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto);
338
+ localVarPath = "/commissionservice/v1/commission-recipients/{code}"
339
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
340
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
341
+ if (configuration) {
342
+ baseOptions = configuration.baseOptions;
343
+ baseAccessToken = configuration.accessToken;
344
+ }
345
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
346
+ localVarHeaderParameter = {};
347
+ localVarQueryParameter = {};
348
+ // authentication bearer required
349
+ // http bearer authentication required
350
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
351
+ case 1:
352
+ // authentication bearer required
353
+ // http bearer authentication required
354
+ _a.sent();
355
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
356
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
357
+ }
358
+ localVarHeaderParameter['Content-Type'] = 'application/json';
359
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
360
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
361
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
362
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateCommissionRecipientRequestDto, localVarRequestOptions, configuration);
363
+ return [2 /*return*/, {
364
+ url: (0, common_1.toPathString)(localVarUrlObj),
365
+ options: localVarRequestOptions,
366
+ }];
367
+ }
368
+ });
369
+ });
370
+ },
371
+ };
372
+ };
373
+ exports.CommissionRecipientsApiAxiosParamCreator = CommissionRecipientsApiAxiosParamCreator;
374
+ /**
375
+ * CommissionRecipientsApi - functional programming interface
376
+ * @export
377
+ */
378
+ var CommissionRecipientsApiFp = function (configuration) {
379
+ var localVarAxiosParamCreator = (0, exports.CommissionRecipientsApiAxiosParamCreator)(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: function (createCommissionRecipientRequestDto, authorization, options) {
390
+ return __awaiter(this, void 0, void 0, function () {
391
+ var localVarAxiosArgs;
392
+ return __generator(this, function (_a) {
393
+ switch (_a.label) {
394
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options)];
395
+ case 1:
396
+ localVarAxiosArgs = _a.sent();
397
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
398
+ }
399
+ });
400
+ });
401
+ },
402
+ /**
403
+ * This will delete commission recipient.
404
+ * @summary Delete the commission recipient
405
+ * @param {string} code Unique identifier for the object.
406
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ deleteCommissionRecipient: function (code, authorization, options) {
411
+ return __awaiter(this, void 0, void 0, function () {
412
+ var localVarAxiosArgs;
413
+ return __generator(this, function (_a) {
414
+ switch (_a.label) {
415
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options)];
416
+ case 1:
417
+ localVarAxiosArgs = _a.sent();
418
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
419
+ }
420
+ });
421
+ });
422
+ },
423
+ /**
424
+ * This will get commission recipient.
425
+ * @summary Retrieve the commission recipient
426
+ * @param {string} code
427
+ * @param {string} expand
428
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ getCommissionRecipient: function (code, expand, authorization, options) {
433
+ return __awaiter(this, void 0, void 0, function () {
434
+ var localVarAxiosArgs;
435
+ return __generator(this, function (_a) {
436
+ switch (_a.label) {
437
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getCommissionRecipient(code, expand, authorization, options)];
438
+ case 1:
439
+ localVarAxiosArgs = _a.sent();
440
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
441
+ }
442
+ });
443
+ });
444
+ },
445
+ /**
446
+ * Retrieves a list of commission recipients.
447
+ * @summary List commission recipients
448
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
451
+ * @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;
452
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
453
+ * @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;
454
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementVersion&lt;i&gt;
455
+ * @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;
456
+ * @param {*} [options] Override http request option.
457
+ * @throws {RequiredError}
458
+ */
459
+ listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
460
+ return __awaiter(this, void 0, void 0, function () {
461
+ var localVarAxiosArgs;
462
+ return __generator(this, function (_a) {
463
+ switch (_a.label) {
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
465
+ case 1:
466
+ localVarAxiosArgs = _a.sent();
467
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
468
+ }
469
+ });
470
+ });
471
+ },
472
+ /**
473
+ * This will update commission recipient.
474
+ * @summary Update the commission recipient
475
+ * @param {string} code
476
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
477
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
478
+ * @param {*} [options] Override http request option.
479
+ * @throws {RequiredError}
480
+ */
481
+ updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
482
+ return __awaiter(this, void 0, void 0, function () {
483
+ var localVarAxiosArgs;
484
+ return __generator(this, function (_a) {
485
+ switch (_a.label) {
486
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options)];
487
+ case 1:
488
+ localVarAxiosArgs = _a.sent();
489
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
490
+ }
491
+ });
492
+ });
493
+ },
494
+ };
495
+ };
496
+ exports.CommissionRecipientsApiFp = CommissionRecipientsApiFp;
497
+ /**
498
+ * CommissionRecipientsApi - factory interface
499
+ * @export
500
+ */
501
+ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
502
+ var localVarFp = (0, exports.CommissionRecipientsApiFp)(configuration);
503
+ return {
504
+ /**
505
+ * This will create commission recipient.
506
+ * @summary Create the commission recipient
507
+ * @param {CreateCommissionRecipientRequestDto} createCommissionRecipientRequestDto
508
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ createCommissionRecipient: function (createCommissionRecipientRequestDto, authorization, options) {
513
+ return localVarFp.createCommissionRecipient(createCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
514
+ },
515
+ /**
516
+ * This will delete commission recipient.
517
+ * @summary Delete the commission recipient
518
+ * @param {string} code Unique identifier for the object.
519
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ deleteCommissionRecipient: function (code, authorization, options) {
524
+ return localVarFp.deleteCommissionRecipient(code, authorization, options).then(function (request) { return request(axios, basePath); });
525
+ },
526
+ /**
527
+ * This will get commission recipient.
528
+ * @summary Retrieve the commission recipient
529
+ * @param {string} code
530
+ * @param {string} expand
531
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
532
+ * @param {*} [options] Override http request option.
533
+ * @throws {RequiredError}
534
+ */
535
+ getCommissionRecipient: function (code, expand, authorization, options) {
536
+ return localVarFp.getCommissionRecipient(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
537
+ },
538
+ /**
539
+ * Retrieves a list of commission recipients.
540
+ * @summary List commission recipients
541
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
544
+ * @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;
545
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
546
+ * @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;
547
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: commissionAgreementVersion&lt;i&gt;
548
+ * @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;
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ */
552
+ listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
553
+ return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
554
+ },
555
+ /**
556
+ * This will update commission recipient.
557
+ * @summary Update the commission recipient
558
+ * @param {string} code
559
+ * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
560
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ */
564
+ updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
565
+ return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
566
+ },
567
+ };
568
+ };
569
+ exports.CommissionRecipientsApiFactory = CommissionRecipientsApiFactory;
570
+ /**
571
+ * CommissionRecipientsApi - object-oriented interface
572
+ * @export
573
+ * @class CommissionRecipientsApi
574
+ * @extends {BaseAPI}
575
+ */
576
+ var CommissionRecipientsApi = /** @class */ (function (_super) {
577
+ __extends(CommissionRecipientsApi, _super);
578
+ function CommissionRecipientsApi() {
579
+ return _super !== null && _super.apply(this, arguments) || this;
580
+ }
581
+ /**
582
+ * This will create commission recipient.
583
+ * @summary Create the commission recipient
584
+ * @param {CommissionRecipientsApiCreateCommissionRecipientRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof CommissionRecipientsApi
588
+ */
589
+ CommissionRecipientsApi.prototype.createCommissionRecipient = function (requestParameters, options) {
590
+ var _this = this;
591
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).createCommissionRecipient(requestParameters.createCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
592
+ };
593
+ /**
594
+ * This will delete commission recipient.
595
+ * @summary Delete the commission recipient
596
+ * @param {CommissionRecipientsApiDeleteCommissionRecipientRequest} requestParameters Request parameters.
597
+ * @param {*} [options] Override http request option.
598
+ * @throws {RequiredError}
599
+ * @memberof CommissionRecipientsApi
600
+ */
601
+ CommissionRecipientsApi.prototype.deleteCommissionRecipient = function (requestParameters, options) {
602
+ var _this = this;
603
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).deleteCommissionRecipient(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
604
+ };
605
+ /**
606
+ * This will get commission recipient.
607
+ * @summary Retrieve the commission recipient
608
+ * @param {CommissionRecipientsApiGetCommissionRecipientRequest} requestParameters Request parameters.
609
+ * @param {*} [options] Override http request option.
610
+ * @throws {RequiredError}
611
+ * @memberof CommissionRecipientsApi
612
+ */
613
+ CommissionRecipientsApi.prototype.getCommissionRecipient = function (requestParameters, options) {
614
+ var _this = this;
615
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
616
+ };
617
+ /**
618
+ * Retrieves a list of commission recipients.
619
+ * @summary List commission recipients
620
+ * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
621
+ * @param {*} [options] Override http request option.
622
+ * @throws {RequiredError}
623
+ * @memberof CommissionRecipientsApi
624
+ */
625
+ CommissionRecipientsApi.prototype.listCommissionRecipients = function (requestParameters, options) {
626
+ var _this = this;
627
+ if (requestParameters === void 0) { requestParameters = {}; }
628
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
629
+ };
630
+ /**
631
+ * This will update commission recipient.
632
+ * @summary Update the commission recipient
633
+ * @param {CommissionRecipientsApiUpdateCommissionRecipientRequest} requestParameters Request parameters.
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ * @memberof CommissionRecipientsApi
637
+ */
638
+ CommissionRecipientsApi.prototype.updateCommissionRecipient = function (requestParameters, options) {
639
+ var _this = this;
640
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
641
+ };
642
+ return CommissionRecipientsApi;
643
+ }(base_1.BaseAPI));
644
+ exports.CommissionRecipientsApi = CommissionRecipientsApi;