@emilgroup/commission-sdk 1.0.0-beta.9 → 1.1.1-beta.10

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 (167) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +55 -13
  4. package/api/commission-agreement-rules-api.ts +800 -0
  5. package/api/commission-agreements-api.ts +160 -27
  6. package/api/commission-candidates-api.ts +693 -0
  7. package/api/commission-recipients-api.ts +4 -4
  8. package/api/commission-settlements-api.ts +800 -0
  9. package/api/commissions-api.ts +125 -18
  10. package/api.ts +6 -0
  11. package/dist/api/commission-agreement-products-api.d.ts +35 -8
  12. package/dist/api/commission-agreement-products-api.js +29 -11
  13. package/dist/api/commission-agreement-rules-api.d.ts +450 -0
  14. package/dist/api/commission-agreement-rules-api.js +737 -0
  15. package/dist/api/commission-agreements-api.d.ts +98 -23
  16. package/dist/api/commission-agreements-api.js +127 -22
  17. package/dist/api/commission-candidates-api.d.ts +393 -0
  18. package/dist/api/commission-candidates-api.js +644 -0
  19. package/dist/api/commission-recipients-api.d.ts +4 -4
  20. package/dist/api/commission-recipients-api.js +3 -3
  21. package/dist/api/commission-settlements-api.d.ts +450 -0
  22. package/dist/api/commission-settlements-api.js +737 -0
  23. package/dist/api/commissions-api.d.ts +75 -18
  24. package/dist/api/commissions-api.js +102 -9
  25. package/dist/api.d.ts +3 -0
  26. package/dist/api.js +3 -0
  27. package/dist/models/commission-agreement-class.d.ts +27 -3
  28. package/dist/models/commission-agreement-class.js +5 -1
  29. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  30. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  31. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  32. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  33. package/dist/models/commission-agreement-product-class.d.ts +6 -7
  34. package/dist/models/commission-agreement-rule-class.d.ts +93 -0
  35. package/dist/models/commission-agreement-rule-class.js +21 -0
  36. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  37. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  38. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  39. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  40. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  41. package/dist/models/commission-candidate-class.d.ts +95 -0
  42. package/dist/models/commission-candidate-class.js +20 -0
  43. package/dist/models/commission-class.d.ts +37 -6
  44. package/dist/models/commission-conditions-dto.d.ts +24 -0
  45. package/dist/models/commission-conditions-dto.js +15 -0
  46. package/dist/models/commission-config-dto.d.ts +63 -0
  47. package/dist/models/commission-config-dto.js +34 -0
  48. package/dist/models/commission-estimate-class.d.ts +59 -0
  49. package/dist/models/commission-estimate-class.js +25 -0
  50. package/dist/models/commission-recipient-class.d.ts +6 -6
  51. package/dist/models/commission-settlement-class.d.ts +124 -0
  52. package/dist/models/commission-settlement-class.js +35 -0
  53. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  54. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  55. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  56. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  57. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  58. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  59. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  60. package/dist/models/create-commission-candidate-request-dto.d.ts +65 -0
  61. package/dist/models/create-commission-candidate-request-dto.js +25 -0
  62. package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
  63. package/dist/models/create-commission-candidate-response-class.js +15 -0
  64. package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
  65. package/dist/models/create-commission-request-dto.d.ts +3 -9
  66. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  67. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  68. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  69. package/dist/models/create-commission-settlement-response-class.js +15 -0
  70. package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
  71. package/dist/models/estimate-commissions-request-dto.js +15 -0
  72. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  73. package/dist/models/estimate-commissions-response-class.js +15 -0
  74. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  75. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  76. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  77. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  78. package/dist/models/evaluated-commission-class.d.ts +54 -0
  79. package/dist/models/evaluated-commission-class.js +21 -0
  80. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  81. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  82. package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
  83. package/dist/models/get-commission-candidate-response-class.js +15 -0
  84. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  85. package/dist/models/get-commission-settlement-response-class.js +15 -0
  86. package/dist/models/index.d.ts +37 -0
  87. package/dist/models/index.js +37 -0
  88. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  89. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  90. package/dist/models/list-commission-candidates-response-class.d.ts +43 -0
  91. package/dist/models/list-commission-candidates-response-class.js +15 -0
  92. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  93. package/dist/models/list-commission-settlements-response-class.js +15 -0
  94. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  95. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  96. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  97. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  98. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  99. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  100. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  101. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  102. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  103. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  104. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  105. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  106. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  107. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  108. package/dist/models/update-commission-candidate-request-dto.d.ts +71 -0
  109. package/dist/models/update-commission-candidate-request-dto.js +25 -0
  110. package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
  111. package/dist/models/update-commission-candidate-response-class.js +15 -0
  112. package/dist/models/update-commission-request-dto.d.ts +5 -3
  113. package/dist/models/update-commission-request-dto.js +4 -2
  114. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  115. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  116. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  117. package/dist/models/update-commission-settlement-response-class.js +15 -0
  118. package/models/commission-agreement-class.ts +27 -3
  119. package/models/commission-agreement-metadata-dto.ts +31 -0
  120. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  121. package/models/commission-agreement-product-class.ts +6 -7
  122. package/models/commission-agreement-rule-class.ts +102 -0
  123. package/models/commission-agreement-rule-config-dto.ts +31 -0
  124. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  125. package/models/commission-agreement-version-class.ts +7 -0
  126. package/models/commission-candidate-class.ts +104 -0
  127. package/models/commission-class.ts +37 -6
  128. package/models/commission-conditions-dto.ts +30 -0
  129. package/models/commission-config-dto.ts +73 -0
  130. package/models/commission-estimate-class.ts +69 -0
  131. package/models/commission-recipient-class.ts +6 -6
  132. package/models/commission-settlement-class.ts +134 -0
  133. package/models/create-commission-agreement-request-dto.ts +14 -3
  134. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  135. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  136. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  137. package/models/create-commission-candidate-request-dto.ts +75 -0
  138. package/models/create-commission-candidate-response-class.ts +31 -0
  139. package/models/create-commission-recipient-request-dto.ts +2 -2
  140. package/models/create-commission-request-dto.ts +3 -9
  141. package/models/create-commission-settlement-request-dto.ts +67 -0
  142. package/models/create-commission-settlement-response-class.ts +31 -0
  143. package/models/estimate-commissions-request-dto.ts +36 -0
  144. package/models/estimate-commissions-response-class.ts +79 -0
  145. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  146. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  147. package/models/evaluated-commission-class.ts +63 -0
  148. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  149. package/models/get-commission-candidate-response-class.ts +31 -0
  150. package/models/get-commission-settlement-response-class.ts +31 -0
  151. package/models/index.ts +37 -0
  152. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  153. package/models/list-commission-candidates-response-class.ts +49 -0
  154. package/models/list-commission-settlements-response-class.ts +49 -0
  155. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  156. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  157. package/models/publish-commission-settlements-request-dto.ts +30 -0
  158. package/models/publish-commission-settlements-response-class.ts +31 -0
  159. package/models/update-commission-agreement-request-dto.ts +3 -1
  160. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  161. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  162. package/models/update-commission-candidate-request-dto.ts +81 -0
  163. package/models/update-commission-candidate-response-class.ts +31 -0
  164. package/models/update-commission-request-dto.ts +5 -3
  165. package/models/update-commission-settlement-request-dto.ts +52 -0
  166. package/models/update-commission-settlement-response-class.ts +31 -0
  167. package/package.json +2 -1
@@ -29,6 +29,10 @@ import { GetCommissionAgreementResponseClass } from '../models';
29
29
  // @ts-ignore
30
30
  import { ListCommissionAgreementsResponseClass } from '../models';
31
31
  // @ts-ignore
32
+ import { PatchCommissionAgreementStatusRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { PatchCommissionAgreementStatusResponseClass } from '../models';
35
+ // @ts-ignore
32
36
  import { UpdateCommissionAgreementRequestDto } from '../models';
33
37
  // @ts-ignore
34
38
  import { UpdateCommissionAgreementResponseClass } from '../models';
@@ -188,11 +192,11 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
188
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
193
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
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=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>
195
+ * @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>
196
+ * @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>
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.<br/> <br/> <i>Allowed values: commissionAgreementNumber, status, createdAt, updatedAt, billingFrequency</i>
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.<br/> <br/> <i>Allowed values: versions, products<i>
199
+ * @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
200
  * @param {*} [options] Override http request option.
197
201
  * @throws {RequiredError}
198
202
  */
@@ -258,18 +262,73 @@ export const CommissionAgreementsApiAxiosParamCreator = function (configuration?
258
262
  options: localVarRequestOptions,
259
263
  };
260
264
  },
265
+ /**
266
+ * This will patch commission agreement status.
267
+ * @summary Update the commission agreement status
268
+ * @param {string} code Unique identifier for the object.
269
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ patchCommissionAgreementStatus: async (code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('patchCommissionAgreementStatus', 'code', code)
277
+ // verify required parameter 'patchCommissionAgreementStatusRequestDto' is not null or undefined
278
+ assertParamExists('patchCommissionAgreementStatus', 'patchCommissionAgreementStatusRequestDto', patchCommissionAgreementStatusRequestDto)
279
+ const localVarPath = `/commissionservice/v1/agreements/{code}/status`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ let baseAccessToken;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+
290
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
291
+ const localVarHeaderParameter = {} as any;
292
+ const localVarQueryParameter = {} as any;
293
+
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
+
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ }
301
+
302
+
303
+
304
+ localVarHeaderParameter['Content-Type'] = 'application/json';
305
+
306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
+ localVarRequestOptions.data = serializeDataIfNeeded(patchCommissionAgreementStatusRequestDto, localVarRequestOptions, configuration)
310
+
311
+ return {
312
+ url: toPathString(localVarUrlObj),
313
+ options: localVarRequestOptions,
314
+ };
315
+ },
261
316
  /**
262
317
  * This will update commission agreement.
263
318
  * @summary Update the commission agreement
319
+ * @param {string} code
264
320
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
265
321
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
266
322
  * @param {*} [options] Override http request option.
267
323
  * @throws {RequiredError}
268
324
  */
269
- updateCommissionAgreement: async (updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
325
+ updateCommissionAgreement: async (code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
326
+ // verify required parameter 'code' is not null or undefined
327
+ assertParamExists('updateCommissionAgreement', 'code', code)
270
328
  // verify required parameter 'updateCommissionAgreementRequestDto' is not null or undefined
271
329
  assertParamExists('updateCommissionAgreement', 'updateCommissionAgreementRequestDto', updateCommissionAgreementRequestDto)
272
- const localVarPath = `/commissionservice/v1/agreements`;
330
+ const localVarPath = `/commissionservice/v1/agreements/{code}`
331
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
273
332
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
274
333
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
275
334
  let baseOptions;
@@ -358,11 +417,11 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
358
417
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
418
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
360
419
  * @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;
420
+ * @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;
421
+ * @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;
422
+ * @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, updatedAt, billingFrequency&lt;/i&gt;
423
+ * @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;
424
+ * @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
425
  * @param {*} [options] Override http request option.
367
426
  * @throws {RequiredError}
368
427
  */
@@ -370,16 +429,30 @@ export const CommissionAgreementsApiFp = function(configuration?: Configuration)
370
429
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
371
430
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
372
431
  },
432
+ /**
433
+ * This will patch commission agreement status.
434
+ * @summary Update the commission agreement status
435
+ * @param {string} code Unique identifier for the object.
436
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ async patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchCommissionAgreementStatusResponseClass>> {
442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options);
443
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
444
+ },
373
445
  /**
374
446
  * This will update commission agreement.
375
447
  * @summary Update the commission agreement
448
+ * @param {string} code
376
449
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
377
450
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
378
451
  * @param {*} [options] Override http request option.
379
452
  * @throws {RequiredError}
380
453
  */
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);
454
+ async updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementResponseClass>> {
455
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options);
383
456
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
384
457
  },
385
458
  }
@@ -432,27 +505,40 @@ export const CommissionAgreementsApiFactory = function (configuration?: Configur
432
505
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
433
506
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
434
507
  * @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;
508
+ * @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;
509
+ * @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;
510
+ * @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, updatedAt, billingFrequency&lt;/i&gt;
511
+ * @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;
512
+ * @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
513
  * @param {*} [options] Override http request option.
441
514
  * @throws {RequiredError}
442
515
  */
443
516
  listCommissionAgreements(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementsResponseClass> {
444
517
  return localVarFp.listCommissionAgreements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
445
518
  },
519
+ /**
520
+ * This will patch commission agreement status.
521
+ * @summary Update the commission agreement status
522
+ * @param {string} code Unique identifier for the object.
523
+ * @param {PatchCommissionAgreementStatusRequestDto} patchCommissionAgreementStatusRequestDto
524
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ patchCommissionAgreementStatus(code: string, patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto, authorization?: string, options?: any): AxiosPromise<PatchCommissionAgreementStatusResponseClass> {
529
+ return localVarFp.patchCommissionAgreementStatus(code, patchCommissionAgreementStatusRequestDto, authorization, options).then((request) => request(axios, basePath));
530
+ },
446
531
  /**
447
532
  * This will update commission agreement.
448
533
  * @summary Update the commission agreement
534
+ * @param {string} code
449
535
  * @param {UpdateCommissionAgreementRequestDto} updateCommissionAgreementRequestDto
450
536
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
451
537
  * @param {*} [options] Override http request option.
452
538
  * @throws {RequiredError}
453
539
  */
454
- updateCommissionAgreement(updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
455
- return localVarFp.updateCommissionAgreement(updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
540
+ updateCommissionAgreement(code: string, updateCommissionAgreementRequestDto: UpdateCommissionAgreementRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementResponseClass> {
541
+ return localVarFp.updateCommissionAgreement(code, updateCommissionAgreementRequestDto, authorization, options).then((request) => request(axios, basePath));
456
542
  },
457
543
  };
458
544
  };
@@ -555,47 +641,82 @@ export interface CommissionAgreementsApiListCommissionAgreementsRequest {
555
641
  readonly pageToken?: string
556
642
 
557
643
  /**
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;
644
+ * 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
645
  * @type {string}
560
646
  * @memberof CommissionAgreementsApiListCommissionAgreements
561
647
  */
562
648
  readonly filter?: string
563
649
 
564
650
  /**
565
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
651
+ * 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
652
  * @type {string}
567
653
  * @memberof CommissionAgreementsApiListCommissionAgreements
568
654
  */
569
655
  readonly search?: string
570
656
 
571
657
  /**
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;
658
+ * 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, updatedAt, billingFrequency&lt;/i&gt;
573
659
  * @type {string}
574
660
  * @memberof CommissionAgreementsApiListCommissionAgreements
575
661
  */
576
662
  readonly order?: string
577
663
 
578
664
  /**
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;
665
+ * 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
666
  * @type {string}
581
667
  * @memberof CommissionAgreementsApiListCommissionAgreements
582
668
  */
583
669
  readonly expand?: string
584
670
 
585
671
  /**
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;
672
+ * 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
673
  * @type {string}
588
674
  * @memberof CommissionAgreementsApiListCommissionAgreements
589
675
  */
590
676
  readonly filters?: string
591
677
  }
592
678
 
679
+ /**
680
+ * Request parameters for patchCommissionAgreementStatus operation in CommissionAgreementsApi.
681
+ * @export
682
+ * @interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest
683
+ */
684
+ export interface CommissionAgreementsApiPatchCommissionAgreementStatusRequest {
685
+ /**
686
+ * Unique identifier for the object.
687
+ * @type {string}
688
+ * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
689
+ */
690
+ readonly code: string
691
+
692
+ /**
693
+ *
694
+ * @type {PatchCommissionAgreementStatusRequestDto}
695
+ * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
696
+ */
697
+ readonly patchCommissionAgreementStatusRequestDto: PatchCommissionAgreementStatusRequestDto
698
+
699
+ /**
700
+ * Bearer Token: provided by the login endpoint under the name accessToken.
701
+ * @type {string}
702
+ * @memberof CommissionAgreementsApiPatchCommissionAgreementStatus
703
+ */
704
+ readonly authorization?: string
705
+ }
706
+
593
707
  /**
594
708
  * Request parameters for updateCommissionAgreement operation in CommissionAgreementsApi.
595
709
  * @export
596
710
  * @interface CommissionAgreementsApiUpdateCommissionAgreementRequest
597
711
  */
598
712
  export interface CommissionAgreementsApiUpdateCommissionAgreementRequest {
713
+ /**
714
+ *
715
+ * @type {string}
716
+ * @memberof CommissionAgreementsApiUpdateCommissionAgreement
717
+ */
718
+ readonly code: string
719
+
599
720
  /**
600
721
  *
601
722
  * @type {UpdateCommissionAgreementRequestDto}
@@ -666,6 +787,18 @@ export class CommissionAgreementsApi extends BaseAPI {
666
787
  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));
667
788
  }
668
789
 
790
+ /**
791
+ * This will patch commission agreement status.
792
+ * @summary Update the commission agreement status
793
+ * @param {CommissionAgreementsApiPatchCommissionAgreementStatusRequest} requestParameters Request parameters.
794
+ * @param {*} [options] Override http request option.
795
+ * @throws {RequiredError}
796
+ * @memberof CommissionAgreementsApi
797
+ */
798
+ public patchCommissionAgreementStatus(requestParameters: CommissionAgreementsApiPatchCommissionAgreementStatusRequest, options?: AxiosRequestConfig) {
799
+ return CommissionAgreementsApiFp(this.configuration).patchCommissionAgreementStatus(requestParameters.code, requestParameters.patchCommissionAgreementStatusRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
800
+ }
801
+
669
802
  /**
670
803
  * This will update commission agreement.
671
804
  * @summary Update the commission agreement
@@ -675,6 +808,6 @@ export class CommissionAgreementsApi extends BaseAPI {
675
808
  * @memberof CommissionAgreementsApi
676
809
  */
677
810
  public updateCommissionAgreement(requestParameters: CommissionAgreementsApiUpdateCommissionAgreementRequest, options?: AxiosRequestConfig) {
678
- return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
811
+ return CommissionAgreementsApiFp(this.configuration).updateCommissionAgreement(requestParameters.code, requestParameters.updateCommissionAgreementRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
679
812
  }
680
813
  }