@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
@@ -25,6 +25,10 @@ import { CreateCommissionRequestDto } from '../models';
25
25
  // @ts-ignore
26
26
  import { CreateCommissionResponseClass } from '../models';
27
27
  // @ts-ignore
28
+ import { EstimateCommissionsRequestDto } from '../models';
29
+ // @ts-ignore
30
+ import { EstimateCommissionsResponseClass } from '../models';
31
+ // @ts-ignore
28
32
  import { GetCommissionResponseClass } from '../models';
29
33
  // @ts-ignore
30
34
  import { ListCommissionsResponseClass } from '../models';
@@ -130,6 +134,53 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
130
134
  options: localVarRequestOptions,
131
135
  };
132
136
  },
137
+ /**
138
+ * This will estimate commissions for a given policy.
139
+ * @summary Retrieve the estimate commissions
140
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
141
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ estimateCommission: async (estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
146
+ // verify required parameter 'estimateCommissionsRequestDto' is not null or undefined
147
+ assertParamExists('estimateCommission', 'estimateCommissionsRequestDto', estimateCommissionsRequestDto)
148
+ const localVarPath = `/commissionservice/v1/commissions/estimate`;
149
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
151
+ let baseOptions;
152
+ let baseAccessToken;
153
+ if (configuration) {
154
+ baseOptions = configuration.baseOptions;
155
+ baseAccessToken = configuration.accessToken;
156
+ }
157
+
158
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
159
+ const localVarHeaderParameter = {} as any;
160
+ const localVarQueryParameter = {} as any;
161
+
162
+ // authentication bearer required
163
+ // http bearer authentication required
164
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
165
+
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
+ }
169
+
170
+
171
+
172
+ localVarHeaderParameter['Content-Type'] = 'application/json';
173
+
174
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
175
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
176
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
177
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateCommissionsRequestDto, localVarRequestOptions, configuration)
178
+
179
+ return {
180
+ url: toPathString(localVarUrlObj),
181
+ options: localVarRequestOptions,
182
+ };
183
+ },
133
184
  /**
134
185
  * This will get commission.
135
186
  * @summary Retrieve the commission
@@ -188,15 +239,15 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
188
239
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
189
240
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
190
241
  * @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.
191
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
242
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
192
243
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
193
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
194
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
244
+ * @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
245
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
195
246
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
196
247
  * @param {*} [options] Override http request option.
197
248
  * @throws {RequiredError}
198
249
  */
199
- listCommissions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
250
+ listCommissions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
251
  const localVarPath = `/commissionservice/v1/commissions`;
201
252
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
253
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -343,6 +394,18 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
343
394
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommission(code, authorization, options);
344
395
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
345
396
  },
397
+ /**
398
+ * This will estimate commissions for a given policy.
399
+ * @summary Retrieve the estimate commissions
400
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
401
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ async estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>> {
406
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(estimateCommissionsRequestDto, authorization, options);
407
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
+ },
346
409
  /**
347
410
  * This will get commission.
348
411
  * @summary Retrieve the commission
@@ -362,15 +425,15 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
362
425
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
363
426
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
364
427
  * @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.
365
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
428
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
366
429
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
367
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
368
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
430
+ * @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
431
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
369
432
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
370
433
  * @param {*} [options] Override http request option.
371
434
  * @throws {RequiredError}
372
435
  */
373
- async listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>> {
436
+ async listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>> {
374
437
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
375
438
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
376
439
  },
@@ -419,6 +482,17 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
419
482
  deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void> {
420
483
  return localVarFp.deleteCommission(code, authorization, options).then((request) => request(axios, basePath));
421
484
  },
485
+ /**
486
+ * This will estimate commissions for a given policy.
487
+ * @summary Retrieve the estimate commissions
488
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
489
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
494
+ return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then((request) => request(axios, basePath));
495
+ },
422
496
  /**
423
497
  * This will get commission.
424
498
  * @summary Retrieve the commission
@@ -437,15 +511,15 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
437
511
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
512
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
439
513
  * @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.
440
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
514
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
441
515
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
442
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
443
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
516
+ * @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
517
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
444
518
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
445
519
  * @param {*} [options] Override http request option.
446
520
  * @throws {RequiredError}
447
521
  */
448
- listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass> {
522
+ listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass> {
449
523
  return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
450
524
  },
451
525
  /**
@@ -505,6 +579,27 @@ export interface CommissionsApiDeleteCommissionRequest {
505
579
  readonly authorization?: string
506
580
  }
507
581
 
582
+ /**
583
+ * Request parameters for estimateCommission operation in CommissionsApi.
584
+ * @export
585
+ * @interface CommissionsApiEstimateCommissionRequest
586
+ */
587
+ export interface CommissionsApiEstimateCommissionRequest {
588
+ /**
589
+ *
590
+ * @type {EstimateCommissionsRequestDto}
591
+ * @memberof CommissionsApiEstimateCommission
592
+ */
593
+ readonly estimateCommissionsRequestDto: EstimateCommissionsRequestDto
594
+
595
+ /**
596
+ * Bearer Token: provided by the login endpoint under the name accessToken.
597
+ * @type {string}
598
+ * @memberof CommissionsApiEstimateCommission
599
+ */
600
+ readonly authorization?: string
601
+ }
602
+
508
603
  /**
509
604
  * Request parameters for getCommission operation in CommissionsApi.
510
605
  * @export
@@ -562,10 +657,10 @@ export interface CommissionsApiListCommissionsRequest {
562
657
 
563
658
  /**
564
659
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
565
- * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
660
+ * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
566
661
  * @memberof CommissionsApiListCommissions
567
662
  */
568
- readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'
663
+ readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'
569
664
 
570
665
  /**
571
666
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
@@ -576,17 +671,17 @@ export interface CommissionsApiListCommissionsRequest {
576
671
 
577
672
  /**
578
673
  * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
579
- * @type {'createdAt'}
674
+ * @type {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'}
580
675
  * @memberof CommissionsApiListCommissions
581
676
  */
582
- readonly order?: 'createdAt'
677
+ readonly order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'
583
678
 
584
679
  /**
585
680
  * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
586
- * @type {'items'}
681
+ * @type {'items' | 'agreement'}
587
682
  * @memberof CommissionsApiListCommissions
588
683
  */
589
- readonly expand?: 'items'
684
+ readonly expand?: 'items' | 'agreement'
590
685
 
591
686
  /**
592
687
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
@@ -655,6 +750,18 @@ export class CommissionsApi extends BaseAPI {
655
750
  return CommissionsApiFp(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
656
751
  }
657
752
 
753
+ /**
754
+ * This will estimate commissions for a given policy.
755
+ * @summary Retrieve the estimate commissions
756
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
757
+ * @param {*} [options] Override http request option.
758
+ * @throws {RequiredError}
759
+ * @memberof CommissionsApi
760
+ */
761
+ public estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig) {
762
+ return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
763
+ }
764
+
658
765
  /**
659
766
  * This will get commission.
660
767
  * @summary Retrieve the commission
package/api.ts CHANGED
@@ -21,17 +21,23 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
23
  import { CommissionAgreementProductsApi } from './api';
24
+ import { CommissionAgreementRulesApi } from './api';
24
25
  import { CommissionAgreementVersionsApi } from './api';
25
26
  import { CommissionAgreementsApi } from './api';
27
+ import { CommissionCandidatesApi } from './api';
26
28
  import { CommissionRecipientsApi } from './api';
29
+ import { CommissionSettlementsApi } from './api';
27
30
  import { CommissionsApi } from './api';
28
31
  import { DefaultApi } from './api';
29
32
 
30
33
 
31
34
  export * from './api/commission-agreement-products-api';
35
+ export * from './api/commission-agreement-rules-api';
32
36
  export * from './api/commission-agreement-versions-api';
33
37
  export * from './api/commission-agreements-api';
38
+ export * from './api/commission-candidates-api';
34
39
  export * from './api/commission-recipients-api';
40
+ export * from './api/commission-settlements-api';
35
41
  export * from './api/commissions-api';
36
42
  export * from './api/default-api';
37
43
 
@@ -55,14 +55,17 @@ export declare const CommissionAgreementProductsApiAxiosParamCreator: (configura
55
55
  * Retrieves a list of commission agreement products.
56
56
  * @summary List commission agreement products
57
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
+ * @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.
58
60
  * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
59
- * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
61
+ * @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, productSlug&lt;/i&gt;
60
62
  * @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, updatedAt, productSlug, status&lt;/i&gt;
61
63
  * @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: version&lt;i&gt;
64
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
62
65
  * @param {*} [options] Override http request option.
63
66
  * @throws {RequiredError}
64
67
  */
65
- listCommissionAgreementProducts: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listCommissionAgreementProducts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
66
69
  /**
67
70
  * This will update commission agreement product.
68
71
  * @summary Update the commission agreement product
@@ -111,14 +114,17 @@ export declare const CommissionAgreementProductsApiFp: (configuration?: Configur
111
114
  * Retrieves a list of commission agreement products.
112
115
  * @summary List commission agreement products
113
116
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
+ * @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.
114
119
  * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
115
- * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
120
+ * @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, productSlug&lt;/i&gt;
116
121
  * @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, updatedAt, productSlug, status&lt;/i&gt;
117
122
  * @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: version&lt;i&gt;
123
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
118
124
  * @param {*} [options] Override http request option.
119
125
  * @throws {RequiredError}
120
126
  */
121
- listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>>;
127
+ listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>>;
122
128
  /**
123
129
  * This will update commission agreement product.
124
130
  * @summary Update the commission agreement product
@@ -167,14 +173,17 @@ export declare const CommissionAgreementProductsApiFactory: (configuration?: Con
167
173
  * Retrieves a list of commission agreement products.
168
174
  * @summary List commission agreement products
169
175
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
176
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
+ * @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.
170
178
  * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
171
- * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
179
+ * @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, productSlug&lt;/i&gt;
172
180
  * @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, updatedAt, productSlug, status&lt;/i&gt;
173
181
  * @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: version&lt;i&gt;
182
+ * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
174
183
  * @param {*} [options] Override http request option.
175
184
  * @throws {RequiredError}
176
185
  */
177
- listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass>;
186
+ listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass>;
178
187
  /**
179
188
  * This will update commission agreement product.
180
189
  * @summary Update the commission agreement product
@@ -261,6 +270,18 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
261
270
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
262
271
  */
263
272
  readonly authorization?: string;
273
+ /**
274
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
275
+ * @type {number}
276
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
277
+ */
278
+ readonly pageSize?: number;
279
+ /**
280
+ * 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.
281
+ * @type {string}
282
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
283
+ */
284
+ readonly pageToken?: string;
264
285
  /**
265
286
  * 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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
266
287
  * @type {string}
@@ -268,11 +289,11 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
268
289
  */
269
290
  readonly filter?: string;
270
291
  /**
271
- * 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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
292
+ * 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, productSlug&lt;/i&gt;
272
293
  * @type {string}
273
294
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
274
295
  */
275
- readonly filters?: string;
296
+ readonly search?: string;
276
297
  /**
277
298
  * 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, updatedAt, productSlug, status&lt;/i&gt;
278
299
  * @type {string}
@@ -285,6 +306,12 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
285
306
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
286
307
  */
287
308
  readonly expand?: string;
309
+ /**
310
+ * 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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
311
+ * @type {string}
312
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
313
+ */
314
+ readonly filters?: string;
288
315
  }
289
316
  /**
290
317
  * Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi.
@@ -247,14 +247,17 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
247
247
  * Retrieves a list of commission agreement products.
248
248
  * @summary List commission agreement products
249
249
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
250
252
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
251
- * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
253
+ * @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, productSlug&lt;/i&gt;
252
254
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, productSlug, status&lt;/i&gt;
253
255
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version&lt;i&gt;
256
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
254
257
  * @param {*} [options] Override http request option.
255
258
  * @throws {RequiredError}
256
259
  */
257
- listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
260
+ listCommissionAgreementProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
258
261
  if (options === void 0) { options = {}; }
259
262
  return __awaiter(_this, void 0, void 0, function () {
260
263
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -277,11 +280,17 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
277
280
  // authentication bearer required
278
281
  // http bearer authentication required
279
282
  _a.sent();
283
+ if (pageSize !== undefined) {
284
+ localVarQueryParameter['pageSize'] = pageSize;
285
+ }
286
+ if (pageToken !== undefined) {
287
+ localVarQueryParameter['pageToken'] = pageToken;
288
+ }
280
289
  if (filter !== undefined) {
281
290
  localVarQueryParameter['filter'] = filter;
282
291
  }
283
- if (filters !== undefined) {
284
- localVarQueryParameter['filters'] = filters;
292
+ if (search !== undefined) {
293
+ localVarQueryParameter['search'] = search;
285
294
  }
286
295
  if (order !== undefined) {
287
296
  localVarQueryParameter['order'] = order;
@@ -289,6 +298,9 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
289
298
  if (expand !== undefined) {
290
299
  localVarQueryParameter['expand'] = expand;
291
300
  }
301
+ if (filters !== undefined) {
302
+ localVarQueryParameter['filters'] = filters;
303
+ }
292
304
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
293
305
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
306
  }
@@ -434,19 +446,22 @@ var CommissionAgreementProductsApiFp = function (configuration) {
434
446
  * Retrieves a list of commission agreement products.
435
447
  * @summary List commission agreement products
436
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
449
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
450
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
437
451
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
438
- * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
452
+ * @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, productSlug&lt;/i&gt;
439
453
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, productSlug, status&lt;/i&gt;
440
454
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version&lt;i&gt;
455
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
441
456
  * @param {*} [options] Override http request option.
442
457
  * @throws {RequiredError}
443
458
  */
444
- listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
459
+ listCommissionAgreementProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
445
460
  return __awaiter(this, void 0, void 0, function () {
446
461
  var localVarAxiosArgs;
447
462
  return __generator(this, function (_a) {
448
463
  switch (_a.label) {
449
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options)];
464
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
450
465
  case 1:
451
466
  localVarAxiosArgs = _a.sent();
452
467
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -524,15 +539,18 @@ var CommissionAgreementProductsApiFactory = function (configuration, basePath, a
524
539
  * Retrieves a list of commission agreement products.
525
540
  * @summary List commission agreement products
526
541
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
542
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
543
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
527
544
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
528
- * @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, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
545
+ * @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, productSlug&lt;/i&gt;
529
546
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, productSlug, status&lt;/i&gt;
530
547
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version&lt;i&gt;
548
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
531
549
  * @param {*} [options] Override http request option.
532
550
  * @throws {RequiredError}
533
551
  */
534
- listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
535
- return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
552
+ listCommissionAgreementProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
553
+ return localVarFp.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
536
554
  },
537
555
  /**
538
556
  * This will update commission agreement product.
@@ -607,7 +625,7 @@ var CommissionAgreementProductsApi = /** @class */ (function (_super) {
607
625
  CommissionAgreementProductsApi.prototype.listCommissionAgreementProducts = function (requestParameters, options) {
608
626
  var _this = this;
609
627
  if (requestParameters === void 0) { requestParameters = {}; }
610
- return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
628
+ return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
611
629
  };
612
630
  /**
613
631
  * This will update commission agreement product.