@emilgroup/commission-sdk 1.0.0-beta.3 → 1.0.0-beta.30

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 (157) hide show
  1. package/.openapi-generator/FILES +43 -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-agreements-api.ts +40 -27
  6. package/api/commission-recipients-api.ts +693 -0
  7. package/api/commission-settlements-api.ts +800 -0
  8. package/api/commissions-api.ts +18 -18
  9. package/api.ts +8 -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-agreements-api.d.ts +32 -23
  15. package/dist/api/commission-agreements-api.js +28 -22
  16. package/dist/api/commission-recipients-api.d.ts +393 -0
  17. package/dist/api/commission-recipients-api.js +644 -0
  18. package/dist/api/commission-settlements-api.d.ts +450 -0
  19. package/dist/api/commission-settlements-api.js +737 -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 +4 -0
  23. package/dist/api.js +4 -0
  24. package/dist/models/commission-agreement-class.d.ts +20 -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 +29 -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/commission-settlement-class.d.ts +124 -0
  46. package/dist/models/commission-settlement-class.js +35 -0
  47. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  48. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  49. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  50. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  51. package/dist/models/create-commission-agreement-request-dto.d.ts +8 -1
  52. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +31 -0
  53. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  54. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  55. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  56. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  57. package/dist/models/create-commission-recipient-request-dto.d.ts +36 -0
  58. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  59. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  60. package/dist/models/create-commission-recipient-response-class.js +15 -0
  61. package/dist/models/create-commission-settlement-request-dto.d.ts +37 -0
  62. package/dist/models/create-commission-settlement-request-dto.js +22 -0
  63. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  64. package/dist/models/create-commission-settlement-response-class.js +15 -0
  65. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  66. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  67. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  68. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  69. package/dist/models/evaluated-commission-class.d.ts +54 -0
  70. package/dist/models/evaluated-commission-class.js +21 -0
  71. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  72. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  73. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  74. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  75. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  76. package/dist/models/get-commission-recipient-response-class.js +15 -0
  77. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  78. package/dist/models/get-commission-settlement-response-class.js +15 -0
  79. package/dist/models/index.d.ts +39 -0
  80. package/dist/models/index.js +39 -0
  81. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  82. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  83. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  84. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  85. package/dist/models/list-commission-recipients-response-class.d.ts +43 -0
  86. package/dist/models/list-commission-recipients-response-class.js +15 -0
  87. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  88. package/dist/models/list-commission-settlements-response-class.js +15 -0
  89. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  90. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  91. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  92. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  93. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  94. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  95. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  96. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  97. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +43 -0
  98. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  99. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  100. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  101. package/dist/models/update-commission-recipient-request-dto.d.ts +42 -0
  102. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  103. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  104. package/dist/models/update-commission-recipient-response-class.js +15 -0
  105. package/dist/models/update-commission-request-dto.d.ts +5 -3
  106. package/dist/models/update-commission-request-dto.js +4 -2
  107. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  108. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  109. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  110. package/dist/models/update-commission-settlement-response-class.js +15 -0
  111. package/models/commission-agreement-class.ts +20 -0
  112. package/models/commission-agreement-metadata-dto.ts +31 -0
  113. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  114. package/models/commission-agreement-product-class.ts +86 -0
  115. package/models/commission-agreement-rule-class.ts +89 -0
  116. package/models/commission-agreement-rule-config-dto.ts +31 -0
  117. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  118. package/models/commission-agreement-version-class.ts +7 -0
  119. package/models/commission-class.ts +29 -4
  120. package/models/commission-conditions-dto.ts +30 -0
  121. package/models/commission-config-dto.ts +73 -0
  122. package/models/commission-recipient-class.ts +99 -0
  123. package/models/commission-settlement-class.ts +134 -0
  124. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  125. package/models/create-commission-agreement-product-response-class.ts +31 -0
  126. package/models/create-commission-agreement-request-dto.ts +8 -1
  127. package/models/create-commission-agreement-rule-request-dto.ts +37 -0
  128. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  129. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  130. package/models/create-commission-recipient-request-dto.ts +42 -0
  131. package/models/create-commission-recipient-response-class.ts +31 -0
  132. package/models/create-commission-settlement-request-dto.ts +46 -0
  133. package/models/create-commission-settlement-response-class.ts +31 -0
  134. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  135. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  136. package/models/evaluated-commission-class.ts +63 -0
  137. package/models/get-commission-agreement-product-response-class.ts +31 -0
  138. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  139. package/models/get-commission-recipient-response-class.ts +31 -0
  140. package/models/get-commission-settlement-response-class.ts +31 -0
  141. package/models/index.ts +39 -0
  142. package/models/list-commission-agreement-products-response-class.ts +49 -0
  143. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  144. package/models/list-commission-recipients-response-class.ts +49 -0
  145. package/models/list-commission-settlements-response-class.ts +49 -0
  146. package/models/publish-commission-settlements-request-dto.ts +30 -0
  147. package/models/publish-commission-settlements-response-class.ts +31 -0
  148. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  149. package/models/update-commission-agreement-product-response-class.ts +31 -0
  150. package/models/update-commission-agreement-rule-request-dto.ts +52 -0
  151. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/update-commission-recipient-request-dto.ts +48 -0
  153. package/models/update-commission-recipient-response-class.ts +31 -0
  154. package/models/update-commission-request-dto.ts +5 -3
  155. package/models/update-commission-settlement-request-dto.ts +52 -0
  156. package/models/update-commission-settlement-response-class.ts +31 -0
  157. package/package.json +1 -1
@@ -188,11 +188,11 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
188
188
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
189
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
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, 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: createdAt</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/>
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, createdAt</i>
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, createdAt, partnerCode, productSlug, endDate</i>
192
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, commissionAgreementNumber, name, description</i>
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: commissionAgreementNumber, status, createdAt, billingFrequency</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: versions, products<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, createdAt, partnerCode, productSlug, endDate</i>
196
196
  * @param {*} [options] Override http request option.
197
197
  * @throws {RequiredError}
198
198
  */
@@ -261,15 +261,19 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
261
261
  /**
262
262
  * This will update commission agreement.
263
263
  * @summary Update the commission agreement
264
+ * @param {string} code
264
265
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
265
266
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
266
267
  * @param {*} [options] Override http request option.
267
268
  * @throws {RequiredError}
268
269
  */
269
- updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
270
+ updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
271
+ // verify required parameter 'code' is not null or undefined
272
+ assertParamExists('updateCommissionAgreement', 'code', code)
270
273
  // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
271
274
  assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
272
- const localVarPath = `/commissionservice/v1/agreements`;
275
+ const localVarPath = `/commissionservice/v1/agreements/{code}`
276
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
273
277
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
274
278
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
275
279
  let baseOptions;
@@ -358,11 +362,11 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
358
362
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
363
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
360
364
  * @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.
361
- * @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;
362
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
363
- * @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;
364
- * @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;
365
- * @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;
365
+ * @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, partnerCode, productSlug, endDate&lt;/i&gt;
366
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
367
+ * @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: commissionAgreementNumber, status, createdAt, billingFrequency&lt;/i&gt;
368
+ * @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, products&lt;i&gt;
369
+ * @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, partnerCode, productSlug, endDate&lt;/i&gt;
366
370
  * @param {*} [options] Override http request option.
367
371
  * @throws {RequiredError}
368
372
  */
@@ -373,13 +377,14 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
373
377
  /**
374
378
  * This will update commission agreement.
375
379
  * @summary Update the commission agreement
380
+ * @param {string} code
376
381
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
377
382
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
378
383
  * @param {*} [options] Override http request option.
379
384
  * @throws {RequiredError}
380
385
  */
381
- async updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
382
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options);
386
+ async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
387
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
383
388
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
384
389
  },
385
390
  }
@@ -432,11 +437,11 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
432
437
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
438
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
434
439
  * @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.
435
- * @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;
436
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
437
- * @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;
438
- * @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;
439
- * @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;
440
+ * @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, partnerCode, productSlug, endDate&lt;/i&gt;
441
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
442
+ * @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: commissionAgreementNumber, status, createdAt, billingFrequency&lt;/i&gt;
443
+ * @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, products&lt;i&gt;
444
+ * @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, partnerCode, productSlug, endDate&lt;/i&gt;
440
445
  * @param {*} [options] Override http request option.
441
446
  * @throws {RequiredError}
442
447
  */
@@ -446,13 +451,14 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
446
451
  /**
447
452
  * This will update commission agreement.
448
453
  * @summary Update the commission agreement
454
+ * @param {string} code
449
455
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
450
456
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
457
  * @param {*} [options] Override http request option.
452
458
  * @throws {RequiredError}
453
459
  */
454
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
455
- return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
460
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
461
+ return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
456
462
  },
457
463
  };
458
464
  };
@@ -555,35 +561,35 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
555
561
  readonly pageToken?: string
556
562
 
557
563
  /**
558
- * 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;
564
+ * 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, partnerCode, productSlug, endDate&lt;/i&gt;
559
565
  * @type {string}
560
566
  * @memberof CommissionAgreementsApiListCommissionAgreements
561
567
  */
562
568
  readonly filter?: string
563
569
 
564
570
  /**
565
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
571
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, commissionAgreementNumber, name, description&lt;/i&gt;
566
572
  * @type {string}
567
573
  * @memberof CommissionAgreementsApiListCommissionAgreements
568
574
  */
569
575
  readonly search?: string
570
576
 
571
577
  /**
572
- * 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;
578
+ * 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: commissionAgreementNumber, status, createdAt, billingFrequency&lt;/i&gt;
573
579
  * @type {string}
574
580
  * @memberof CommissionAgreementsApiListCommissionAgreements
575
581
  */
576
582
  readonly order?: string
577
583
 
578
584
  /**
579
- * 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;
585
+ * 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, products&lt;i&gt;
580
586
  * @type {string}
581
587
  * @memberof CommissionAgreementsApiListCommissionAgreements
582
588
  */
583
589
  readonly expand?: string
584
590
 
585
591
  /**
586
- * 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;
592
+ * 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, partnerCode, productSlug, endDate&lt;/i&gt;
587
593
  * @type {string}
588
594
  * @memberof CommissionAgreementsApiListCommissionAgreements
589
595
  */
@@ -596,6 +602,13 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
596
602
  * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
597
603
  */
598
604
  export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
605
+ /**
606
+ *
607
+ * @type {string}
608
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
609
+ */
610
+ readonly code: string
611
+
599
612
  /**
600
613
  *
601
614
  * @type {UpdateCommissionAgreementRequestDto}
@@ -675,6 +688,6 @@ export class CommissionAgreementsApi extends BaseAPI {
675
688
  * @memberof CommissionAgreementsApi
676
689
  */
677
690
  public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
678
- return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
691
+ return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
692
  }
680
693
  }