@emilgroup/commission-sdk-node 1.0.0-beta.4 → 1.0.0-beta.40

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 (155) hide show
  1. package/.openapi-generator/FILES +39 -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-agreements-api.ts +160 -27
  6. package/api/commission-recipients-api.ts +92 -37
  7. package/api/commission-settlements-api.ts +804 -0
  8. package/api/commissions-api.ts +121 -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-agreements-api.d.ts +98 -23
  15. package/dist/api/commission-agreements-api.js +127 -22
  16. package/dist/api/commission-recipients-api.d.ts +63 -27
  17. package/dist/api/commission-recipients-api.js +53 -29
  18. package/dist/api/commission-settlements-api.d.ts +450 -0
  19. package/dist/api/commission-settlements-api.js +741 -0
  20. package/dist/api/commissions-api.d.ts +74 -18
  21. package/dist/api/commissions-api.js +101 -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 +27 -3
  25. package/dist/models/commission-agreement-class.js +5 -1
  26. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  27. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  28. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  29. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +77 -0
  31. package/dist/models/commission-agreement-product-class.js +20 -0
  32. package/dist/models/commission-agreement-rule-class.d.ts +93 -0
  33. package/dist/models/commission-agreement-rule-class.js +21 -0
  34. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  35. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  36. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  37. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  38. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  39. package/dist/models/commission-class.d.ts +37 -6
  40. package/dist/models/commission-conditions-dto.d.ts +24 -0
  41. package/dist/models/commission-conditions-dto.js +15 -0
  42. package/dist/models/commission-config-dto.d.ts +63 -0
  43. package/dist/models/commission-config-dto.js +34 -0
  44. package/dist/models/commission-estimate-class.d.ts +59 -0
  45. package/dist/models/commission-estimate-class.js +25 -0
  46. package/dist/models/commission-settlement-class.d.ts +124 -0
  47. package/dist/models/commission-settlement-class.js +35 -0
  48. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  49. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  50. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  51. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  52. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  53. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  54. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  55. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  56. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  57. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  58. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  59. package/dist/models/create-commission-request-dto.d.ts +3 -9
  60. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  61. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  62. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  63. package/dist/models/create-commission-settlement-response-class.js +15 -0
  64. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  65. package/dist/models/estimate-commissions-response-class.js +15 -0
  66. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  67. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  68. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  69. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  70. package/dist/models/evaluated-commission-class.d.ts +54 -0
  71. package/dist/models/evaluated-commission-class.js +21 -0
  72. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  73. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  74. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  75. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  76. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  77. package/dist/models/get-commission-settlement-response-class.js +15 -0
  78. package/dist/models/index.d.ts +36 -0
  79. package/dist/models/index.js +36 -0
  80. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  81. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  82. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  83. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  84. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  85. package/dist/models/list-commission-settlements-response-class.js +15 -0
  86. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  87. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  88. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  89. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  90. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  91. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  92. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  93. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  94. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  95. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  96. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  97. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  98. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  99. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  100. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  101. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  102. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  103. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  104. package/dist/models/update-commission-request-dto.d.ts +5 -3
  105. package/dist/models/update-commission-request-dto.js +4 -2
  106. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  107. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  108. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  109. package/dist/models/update-commission-settlement-response-class.js +15 -0
  110. package/models/commission-agreement-class.ts +27 -3
  111. package/models/commission-agreement-metadata-dto.ts +31 -0
  112. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  113. package/models/commission-agreement-product-class.ts +86 -0
  114. package/models/commission-agreement-rule-class.ts +102 -0
  115. package/models/commission-agreement-rule-config-dto.ts +31 -0
  116. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  117. package/models/commission-agreement-version-class.ts +7 -0
  118. package/models/commission-class.ts +37 -6
  119. package/models/commission-conditions-dto.ts +30 -0
  120. package/models/commission-config-dto.ts +73 -0
  121. package/models/commission-estimate-class.ts +69 -0
  122. package/models/commission-settlement-class.ts +134 -0
  123. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  124. package/models/create-commission-agreement-product-response-class.ts +31 -0
  125. package/models/create-commission-agreement-request-dto.ts +14 -3
  126. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  127. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  128. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  129. package/models/create-commission-request-dto.ts +3 -9
  130. package/models/create-commission-settlement-request-dto.ts +67 -0
  131. package/models/create-commission-settlement-response-class.ts +31 -0
  132. package/models/estimate-commissions-response-class.ts +79 -0
  133. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  134. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  135. package/models/evaluated-commission-class.ts +63 -0
  136. package/models/get-commission-agreement-product-response-class.ts +31 -0
  137. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  138. package/models/get-commission-settlement-response-class.ts +31 -0
  139. package/models/index.ts +36 -0
  140. package/models/list-commission-agreement-products-response-class.ts +49 -0
  141. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  142. package/models/list-commission-settlements-response-class.ts +49 -0
  143. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  144. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  145. package/models/publish-commission-settlements-request-dto.ts +30 -0
  146. package/models/publish-commission-settlements-response-class.ts +31 -0
  147. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  148. package/models/update-commission-agreement-product-response-class.ts +31 -0
  149. package/models/update-commission-agreement-request-dto.ts +3 -1
  150. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  151. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/update-commission-request-dto.ts +5 -3
  153. package/models/update-commission-settlement-request-dto.ts +52 -0
  154. package/models/update-commission-settlement-response-class.ts +31 -0
  155. package/package.json +1 -1
@@ -92,15 +92,15 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
92
92
  /**
93
93
  * This will delete commission recipient.
94
94
  * @summary Delete the commission recipient
95
- * @param {any} code Unique identifier for the object.
95
+ * @param {string} code Unique identifier for the object.
96
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- deleteCommissionRecipient: async (code: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ deleteCommissionRecipient: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
101
  // verify required parameter 'code' is not null or undefined
102
102
  assertParamExists('deleteCommissionRecipient', 'code', code)
103
- const localVarPath = `/commissionservice/v1/commission-recipients`
103
+ const localVarPath = `/commissionservice/v1/commission-recipients/{code}`
104
104
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -187,17 +187,20 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
187
187
  };
188
188
  },
189
189
  /**
190
- * Retrieves a list of commissionrecipients.
190
+ * Retrieves a list of commission recipients.
191
191
  * @summary List commission recipients
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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.
193
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, displayName, partnerCode, status, 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, displayName, partnerCode, status, createdAt&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: commissionAgreementVersion&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, displayName, partnerCode, status, createdAt&lt;/i&gt;
197
200
  * @param {*} [options] Override http request option.
198
201
  * @throws {RequiredError}
199
202
  */
200
- listCommissionRecipients: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ listCommissionRecipients: 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/commission-recipients`;
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 CommissionRecipientsApiAxiosParamCreator = 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 CommissionRecipientsApiAxiosParamCreator = 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 CommissionRecipientsApiAxiosParamCreator = function (configuration?
250
265
  /**
251
266
  * This will update commission recipient.
252
267
  * @summary Update the commission recipient
268
+ * @param {string} code
253
269
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
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
- updateCommissionRecipient: async (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ updateCommissionRecipient: async (code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateCommissionRecipient', 'code', code)
259
277
  // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
260
278
  assertParamExists('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto)
261
- const localVarPath = `/commissionservice/v1/commission-recipients`;
279
+ const localVarPath = `/commissionservice/v1/commission-recipients/{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;
@@ -319,12 +338,12 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
319
338
  /**
320
339
  * This will delete commission recipient.
321
340
  * @summary Delete the commission recipient
322
- * @param {any} code Unique identifier for the object.
341
+ * @param {string} code Unique identifier for the object.
323
342
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
343
  * @param {*} [options] Override http request option.
325
344
  * @throws {RequiredError}
326
345
  */
327
- async deleteCommissionRecipient(code: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
346
+ async deleteCommissionRecipient(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
328
347
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options);
329
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
349
  },
@@ -342,30 +361,34 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
342
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
362
  },
344
363
  /**
345
- * Retrieves a list of commissionrecipients.
364
+ * Retrieves a list of commission recipients.
346
365
  * @summary List commission recipients
347
366
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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.
348
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, displayName, partnerCode, status, 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, displayName, partnerCode, status, createdAt&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: commissionAgreementVersion&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, displayName, partnerCode, status, createdAt&lt;/i&gt;
352
374
  * @param {*} [options] Override http request option.
353
375
  * @throws {RequiredError}
354
376
  */
355
- async listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
356
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, filter, filters, order, expand, options);
377
+ async listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(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 recipient.
361
383
  * @summary Update the commission recipient
384
+ * @param {string} code
362
385
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
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 updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
368
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options);
390
+ async updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options);
369
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
393
  },
371
394
  }
@@ -392,12 +415,12 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
392
415
  /**
393
416
  * This will delete commission recipient.
394
417
  * @summary Delete the commission recipient
395
- * @param {any} code Unique identifier for the object.
418
+ * @param {string} code Unique identifier for the object.
396
419
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
397
420
  * @param {*} [options] Override http request option.
398
421
  * @throws {RequiredError}
399
422
  */
400
- deleteCommissionRecipient(code: any, authorization?: string, options?: any): AxiosPromise<void> {
423
+ deleteCommissionRecipient(code: string, authorization?: string, options?: any): AxiosPromise<void> {
401
424
  return localVarFp.deleteCommissionRecipient(code, authorization, options).then((request) => request(axios, basePath));
402
425
  },
403
426
  /**
@@ -413,29 +436,33 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
413
436
  return localVarFp.getCommissionRecipient(code, expand, authorization, options).then((request) => request(axios, basePath));
414
437
  },
415
438
  /**
416
- * Retrieves a list of commissionrecipients.
439
+ * Retrieves a list of commission recipients.
417
440
  * @summary List commission recipients
418
441
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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.
419
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, displayName, partnerCode, status, 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, displayName, partnerCode, status, createdAt&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: commissionAgreementVersion&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, displayName, partnerCode, status, createdAt&lt;/i&gt;
423
449
  * @param {*} [options] Override http request option.
424
450
  * @throws {RequiredError}
425
451
  */
426
- listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
427
- return localVarFp.listCommissionRecipients(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
452
+ listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
453
+ return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
428
454
  },
429
455
  /**
430
456
  * This will update commission recipient.
431
457
  * @summary Update the commission recipient
458
+ * @param {string} code
432
459
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
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
- updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
438
- return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
464
+ updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
465
+ return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
439
466
  },
440
467
  };
441
468
  };
@@ -469,10 +496,10 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
469
496
  export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
470
497
  /**
471
498
  * Unique identifier for the object.
472
- * @type {any}
499
+ * @type {string}
473
500
  * @memberof CommissionRecipientsApiDeleteCommissionRecipient
474
501
  */
475
- readonly code: any
502
+ readonly code: string
476
503
 
477
504
  /**
478
505
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -523,6 +550,20 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
523
550
  */
524
551
  readonly authorization?: string
525
552
 
553
+ /**
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof CommissionRecipientsApiListCommissionRecipients
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 CommissionRecipientsApiListCommissionRecipients
564
+ */
565
+ readonly pageToken?: string
566
+
526
567
  /**
527
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
528
569
  * @type {string}
@@ -531,11 +572,11 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
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, displayName, partnerCode, status, 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 CommissionRecipientsApiListCommissionRecipients
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 CommissionRecipientsApiListCommissionRecipientsRequest {
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: commissionAgreementVersion&lt;i&gt;
549
590
  * @type {string}
550
591
  * @memberof CommissionRecipientsApiListCommissionRecipients
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof CommissionRecipientsApiListCommissionRecipients
599
+ */
600
+ readonly filters?: string
553
601
  }
554
602
 
555
603
  /**
@@ -558,6 +606,13 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
558
606
  * @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
559
607
  */
560
608
  export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
613
+ */
614
+ readonly code: string
615
+
561
616
  /**
562
617
  *
563
618
  * @type {UpdateCommissionRecipientRequestDto}
@@ -617,7 +672,7 @@ export class CommissionRecipientsApi extends BaseAPI {
617
672
  }
618
673
 
619
674
  /**
620
- * Retrieves a list of commissionrecipients.
675
+ * Retrieves a list of commission recipients.
621
676
  * @summary List commission recipients
622
677
  * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
623
678
  * @param {*} [options] Override http request option.
@@ -625,7 +680,7 @@ export class CommissionRecipientsApi extends BaseAPI {
625
680
  * @memberof CommissionRecipientsApi
626
681
  */
627
682
  public listCommissionRecipients(requestParameters: CommissionRecipientsApiListCommissionRecipientsRequest = {}, options?: AxiosRequestConfig) {
628
- return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
683
+ return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(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 CommissionRecipientsApi extends BaseAPI {
637
692
  * @memberof CommissionRecipientsApi
638
693
  */
639
694
  public updateCommissionRecipient(requestParameters: CommissionRecipientsApiUpdateCommissionRecipientRequest, options?: AxiosRequestConfig) {
640
- return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
+ return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
696
  }
642
697
  }