@emilgroup/commission-sdk-node 1.0.0-beta.2 → 1.0.0-beta.20

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 (128) hide show
  1. package/.openapi-generator/FILES +33 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +655 -0
  4. package/api/commission-agreement-rules-api.ts +762 -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 +697 -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 +630 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +723 -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 +648 -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 +78 -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-class.d.ts +5 -4
  38. package/dist/models/commission-conditions-dto.d.ts +24 -0
  39. package/dist/models/commission-conditions-dto.js +15 -0
  40. package/dist/models/commission-config-dto.d.ts +63 -0
  41. package/dist/models/commission-config-dto.js +34 -0
  42. package/dist/models/commission-recipient-class.d.ts +90 -0
  43. package/dist/models/commission-recipient-class.js +20 -0
  44. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  45. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  46. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  47. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  48. package/dist/models/create-commission-agreement-request-dto.d.ts +8 -1
  49. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
  50. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  51. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  52. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  53. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  54. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  55. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  56. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  57. package/dist/models/create-commission-recipient-response-class.js +15 -0
  58. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  59. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  60. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  61. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  62. package/dist/models/evaluated-commission-class.d.ts +54 -0
  63. package/dist/models/evaluated-commission-class.js +21 -0
  64. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  65. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  66. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  67. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  68. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  69. package/dist/models/get-commission-recipient-response-class.js +15 -0
  70. package/dist/models/index.d.ts +30 -0
  71. package/dist/models/index.js +30 -0
  72. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  73. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  74. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  75. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  76. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  77. package/dist/models/list-commission-recipients-response-class.js +15 -0
  78. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  79. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  80. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  81. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  82. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
  83. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  84. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  85. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  86. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  87. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  88. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  89. package/dist/models/update-commission-recipient-response-class.js +15 -0
  90. package/dist/models/update-commission-request-dto.d.ts +5 -3
  91. package/dist/models/update-commission-request-dto.js +4 -2
  92. package/models/commission-agreement-class.ts +14 -0
  93. package/models/commission-agreement-metadata-dto.ts +31 -0
  94. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  95. package/models/commission-agreement-product-class.ts +87 -0
  96. package/models/commission-agreement-rule-class.ts +89 -0
  97. package/models/commission-agreement-rule-config-dto.ts +31 -0
  98. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  99. package/models/commission-class.ts +5 -4
  100. package/models/commission-conditions-dto.ts +30 -0
  101. package/models/commission-config-dto.ts +73 -0
  102. package/models/commission-recipient-class.ts +99 -0
  103. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  104. package/models/create-commission-agreement-product-response-class.ts +31 -0
  105. package/models/create-commission-agreement-request-dto.ts +8 -1
  106. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  107. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  108. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  109. package/models/create-commission-recipient-request-dto.ts +42 -0
  110. package/models/create-commission-recipient-response-class.ts +31 -0
  111. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  112. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  113. package/models/evaluated-commission-class.ts +63 -0
  114. package/models/get-commission-agreement-product-response-class.ts +31 -0
  115. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  116. package/models/get-commission-recipient-response-class.ts +31 -0
  117. package/models/index.ts +30 -0
  118. package/models/list-commission-agreement-products-response-class.ts +49 -0
  119. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  120. package/models/list-commission-recipients-response-class.ts +49 -0
  121. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  122. package/models/update-commission-agreement-product-response-class.ts +31 -0
  123. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  124. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  125. package/models/update-commission-recipient-request-dto.ts +48 -0
  126. package/models/update-commission-recipient-response-class.ts +31 -0
  127. package/models/update-commission-request-dto.ts +5 -3
  128. package/package.json +1 -1
@@ -186,14 +186,17 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
186
186
  * Retrieves a list of commission agreement versions.
187
187
  * @summary List commission agreement versions
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
190
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementId, startDate, endDate, createdAt</i>
191
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, startDate, endDate</i>
192
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
189
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
+ * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
191
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
192
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
193
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: code, createdAt, startDate, endDate</i>
194
+ * @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.<br/> <br/> <i>Allowed values: agreements<i>
195
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, agreementCode, startDate, endDate, createdAt</i>
193
196
  * @param {*} [options] Override http request option.
194
197
  * @throws {RequiredError}
195
198
  */
196
- listCommissionAgreementVersions: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
199
+ listCommissionAgreementVersions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
197
200
  const localVarPath = `/commissionservice/v1/agreement-versions`;
198
201
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
199
202
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -212,12 +215,20 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
212
215
  // http bearer authentication required
213
216
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
214
217
 
218
+ if (pageSize !== undefined) {
219
+ localVarQueryParameter['pageSize'] = pageSize;
220
+ }
221
+
222
+ if (pageToken !== undefined) {
223
+ localVarQueryParameter['pageToken'] = pageToken;
224
+ }
225
+
215
226
  if (filter !== undefined) {
216
227
  localVarQueryParameter['filter'] = filter;
217
228
  }
218
229
 
219
- if (filters !== undefined) {
220
- localVarQueryParameter['filters'] = filters;
230
+ if (search !== undefined) {
231
+ localVarQueryParameter['search'] = search;
221
232
  }
222
233
 
223
234
  if (order !== undefined) {
@@ -228,6 +239,10 @@ export const CommissionAgreementVersionsApiAxiosParamCreator = function (configu
228
239
  localVarQueryParameter['expand'] = expand;
229
240
  }
230
241
 
242
+ if (filters !== undefined) {
243
+ localVarQueryParameter['filters'] = filters;
244
+ }
245
+
231
246
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
232
247
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
233
248
  }
@@ -294,15 +309,18 @@ export const CommissionAgreementVersionsApiFp = function(configuration?: Configu
294
309
  * Retrieves a list of commission agreement versions.
295
310
  * @summary List commission agreement versions
296
311
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
- * @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, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
298
- * @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, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
299
- * @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, startDate, endDate&lt;/i&gt;
300
- * @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;
312
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
313
+ * @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.
314
+ * @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, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
315
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
316
+ * @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: code, createdAt, startDate, endDate&lt;/i&gt;
317
+ * @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: agreements&lt;i&gt;
318
+ * @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, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
301
319
  * @param {*} [options] Override http request option.
302
320
  * @throws {RequiredError}
303
321
  */
304
- async listCommissionAgreementVersions(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementVersionsResponseClass>> {
305
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, filter, filters, order, expand, options);
322
+ async listCommissionAgreementVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementVersionsResponseClass>> {
323
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
306
324
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
307
325
  },
308
326
  }
@@ -353,15 +371,18 @@ export const CommissionAgreementVersionsApiFactory = function (configuration?: C
353
371
  * Retrieves a list of commission agreement versions.
354
372
  * @summary List commission agreement versions
355
373
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
- * @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, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
357
- * @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, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
358
- * @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, startDate, endDate&lt;/i&gt;
359
- * @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;
374
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
375
+ * @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.
376
+ * @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, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
377
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
378
+ * @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: code, createdAt, startDate, endDate&lt;/i&gt;
379
+ * @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: agreements&lt;i&gt;
380
+ * @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, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
360
381
  * @param {*} [options] Override http request option.
361
382
  * @throws {RequiredError}
362
383
  */
363
- listCommissionAgreementVersions(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementVersionsResponseClass> {
364
- return localVarFp.listCommissionAgreementVersions(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
384
+ listCommissionAgreementVersions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementVersionsResponseClass> {
385
+ return localVarFp.listCommissionAgreementVersions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
365
386
  },
366
387
  };
367
388
  };
@@ -450,32 +471,53 @@ export interface CommissionAgreementVersionsApiListCommissionAgreementVersionsRe
450
471
  readonly authorization?: string
451
472
 
452
473
  /**
453
- * 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, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
474
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
475
+ * @type {number}
476
+ * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
477
+ */
478
+ readonly pageSize?: number
479
+
480
+ /**
481
+ * 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.
482
+ * @type {string}
483
+ * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
484
+ */
485
+ readonly pageToken?: string
486
+
487
+ /**
488
+ * 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, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
454
489
  * @type {string}
455
490
  * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
456
491
  */
457
492
  readonly filter?: string
458
493
 
459
494
  /**
460
- * 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, commissionAgreementId, startDate, endDate, createdAt&lt;/i&gt;
495
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
461
496
  * @type {string}
462
497
  * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
463
498
  */
464
- readonly filters?: string
499
+ readonly search?: string
465
500
 
466
501
  /**
467
- * 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, startDate, endDate&lt;/i&gt;
502
+ * 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: code, createdAt, startDate, endDate&lt;/i&gt;
468
503
  * @type {string}
469
504
  * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
470
505
  */
471
506
  readonly order?: string
472
507
 
473
508
  /**
474
- * 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;
509
+ * 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: agreements&lt;i&gt;
475
510
  * @type {string}
476
511
  * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
477
512
  */
478
513
  readonly expand?: string
514
+
515
+ /**
516
+ * 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, agreementCode, startDate, endDate, createdAt&lt;/i&gt;
517
+ * @type {string}
518
+ * @memberof CommissionAgreementVersionsApiListCommissionAgreementVersions
519
+ */
520
+ readonly filters?: string
479
521
  }
480
522
 
481
523
  /**
@@ -530,6 +572,6 @@ export class CommissionAgreementVersionsApi extends BaseAPI {
530
572
  * @memberof CommissionAgreementVersionsApi
531
573
  */
532
574
  public listCommissionAgreementVersions(requestParameters: CommissionAgreementVersionsApiListCommissionAgreementVersionsRequest = {}, options?: AxiosRequestConfig) {
533
- return CommissionAgreementVersionsApiFp(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
575
+ return CommissionAgreementVersionsApiFp(this.configuration).listCommissionAgreementVersions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
534
576
  }
535
577
  }
@@ -190,14 +190,17 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
190
190
  * Retrieves a list of commission agreements.
191
191
  * @summary List commission agreements
192
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, 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, createdAt&lt;/i&gt;
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @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.
195
+ * @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, createdAt, mainPartnerCode&lt;/i&gt;
196
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
195
197
  * @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;
198
+ * @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: versions&lt;i&gt;
199
+ * @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, createdAt, mainPartnerCode&lt;/i&gt;
197
200
  * @param {*} [options] Override http request option.
198
201
  * @throws {RequiredError}
199
202
  */
200
- listCommissionAgreements: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ listCommissionAgreements: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
204
  const localVarPath = `/commissionservice/v1/agreements`;
202
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -216,12 +219,20 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
216
219
  // http bearer authentication required
217
220
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
221
 
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
219
230
  if (filter !== undefined) {
220
231
  localVarQueryParameter['filter'] = filter;
221
232
  }
222
233
 
223
- if (filters !== undefined) {
224
- localVarQueryParameter['filters'] = filters;
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
225
236
  }
226
237
 
227
238
  if (order !== undefined) {
@@ -232,6 +243,10 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
232
243
  localVarQueryParameter['expand'] = expand;
233
244
  }
234
245
 
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
235
250
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
251
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
252
  }
@@ -250,15 +265,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
250
265
  /**
251
266
  * This will update commission agreement.
252
267
  * @summary Update the commission agreement
268
+ * @param {string} code
253
269
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
254
270
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
271
  * @param {*} [options] Override http request option.
256
272
  * @throws {RequiredError}
257
273
  */
258
- updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateCommissionAgreement', 'code', code)
259
277
  // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
260
278
  assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
261
- const localVarPath = `/commissionservice/v1/agreements`;
279
+ const localVarPath = `/commissionservice/v1/agreements/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
262
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
264
283
  let baseOptions;
@@ -345,27 +364,31 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
345
364
  * Retrieves a list of commission agreements.
346
365
  * @summary List commission agreements
347
366
  * @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, 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, createdAt&lt;/i&gt;
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @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.
369
+ * @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, createdAt, mainPartnerCode&lt;/i&gt;
370
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
350
371
  * @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;
372
+ * @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: versions&lt;i&gt;
373
+ * @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, createdAt, mainPartnerCode&lt;/i&gt;
352
374
  * @param {*} [options] Override http request option.
353
375
  * @throws {RequiredError}
354
376
  */
355
- async listCommissionAgreements(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsResponseClass>> {
356
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, filter, filters, order, expand, options);
377
+ async listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementsResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
357
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
380
  },
359
381
  /**
360
382
  * This will update commission agreement.
361
383
  * @summary Update the commission agreement
384
+ * @param {string} code
362
385
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
363
386
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
364
387
  * @param {*} [options] Override http request option.
365
388
  * @throws {RequiredError}
366
389
  */
367
- async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
368
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
390
+ async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
369
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
393
  },
371
394
  }
@@ -416,26 +439,30 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
416
439
  * Retrieves a list of commission agreements.
417
440
  * @summary List commission agreements
418
441
  * @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, 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, createdAt&lt;/i&gt;
442
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @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.
444
+ * @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, createdAt, mainPartnerCode&lt;/i&gt;
445
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
421
446
  * @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;
447
+ * @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: versions&lt;i&gt;
448
+ * @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, createdAt, mainPartnerCode&lt;/i&gt;
423
449
  * @param {*} [options] Override http request option.
424
450
  * @throws {RequiredError}
425
451
  */
426
- listCommissionAgreements(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
427
- return localVarFp.listCommissionAgreements(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
452
+ listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
453
+ return localVarFp.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
428
454
  },
429
455
  /**
430
456
  * This will update commission agreement.
431
457
  * @summary Update the commission agreement
458
+ * @param {string} code
432
459
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
433
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
461
  * @param {*} [options] Override http request option.
435
462
  * @throws {RequiredError}
436
463
  */
437
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
438
- return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
464
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
465
+ return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
439
466
  },
440
467
  };
441
468
  };
@@ -524,18 +551,32 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
524
551
  readonly authorization?: string
525
552
 
526
553
  /**
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, createdAt&lt;/i&gt;
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof CommissionAgreementsApiListCommissionAgreements
557
+ */
558
+ readonly pageSize?: number
559
+
560
+ /**
561
+ * 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.
562
+ * @type {string}
563
+ * @memberof CommissionAgreementsApiListCommissionAgreements
564
+ */
565
+ readonly pageToken?: string
566
+
567
+ /**
568
+ * 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, createdAt, mainPartnerCode&lt;/i&gt;
528
569
  * @type {string}
529
570
  * @memberof CommissionAgreementsApiListCommissionAgreements
530
571
  */
531
572
  readonly filter?: string
532
573
 
533
574
  /**
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, createdAt&lt;/i&gt;
575
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
535
576
  * @type {string}
536
577
  * @memberof CommissionAgreementsApiListCommissionAgreements
537
578
  */
538
- readonly filters?: string
579
+ readonly search?: string
539
580
 
540
581
  /**
541
582
  * 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;
@@ -545,11 +586,18 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
545
586
  readonly order?: string
546
587
 
547
588
  /**
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;
589
+ * 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: versions&lt;i&gt;
549
590
  * @type {string}
550
591
  * @memberof CommissionAgreementsApiListCommissionAgreements
551
592
  */
552
593
  readonly expand?: string
594
+
595
+ /**
596
+ * 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, createdAt, mainPartnerCode&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof CommissionAgreementsApiListCommissionAgreements
599
+ */
600
+ readonly filters?: string
553
601
  }
554
602
 
555
603
  /**
@@ -558,6 +606,13 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
558
606
  * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
559
607
  */
560
608
  export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
613
+ */
614
+ readonly code: string
615
+
561
616
  /**
562
617
  *
563
618
  * @type {UpdateCommissionAgreementRequestDto}
@@ -625,7 +680,7 @@ export class CommissionAgreementsApi extends BaseAPI {
625
680
  * @memberof CommissionAgreementsApi
626
681
  */
627
682
  public listCommissionAgreements(requestParameters: CommissionAgreementsApiListCommissionAgreementsRequest = {}, options?: AxiosRequestConfig) {
628
- return CommissionAgreementsApiFp(this.configuration).listCommissionAgreements(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
683
+ return CommissionAgreementsApiFp(this.configuration).listCommissionAgreements(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
629
684
  }
630
685
 
631
686
  /**
@@ -637,6 +692,6 @@ export class CommissionAgreementsApi extends BaseAPI {
637
692
  * @memberof CommissionAgreementsApi
638
693
  */
639
694
  public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
640
- return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
+ return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
696
  }
642
697
  }