@emilgroup/commission-sdk-node 1.0.0-beta.9 → 2.1.0

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 (170) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +59 -17
  4. package/api/commission-agreement-rules-api.ts +804 -0
  5. package/api/commission-agreement-versions-api.ts +8 -8
  6. package/api/commission-agreements-api.ts +160 -27
  7. package/api/commission-candidates-api.ts +697 -0
  8. package/api/commission-recipients-api.ts +12 -12
  9. package/api/commission-settlements-api.ts +804 -0
  10. package/api/commissions-api.ts +125 -18
  11. package/api.ts +6 -0
  12. package/dist/api/commission-agreement-products-api.d.ts +39 -12
  13. package/dist/api/commission-agreement-products-api.js +32 -14
  14. package/dist/api/commission-agreement-rules-api.d.ts +450 -0
  15. package/dist/api/commission-agreement-rules-api.js +741 -0
  16. package/dist/api/commission-agreement-versions-api.d.ts +8 -8
  17. package/dist/api/commission-agreement-versions-api.js +6 -6
  18. package/dist/api/commission-agreements-api.d.ts +98 -23
  19. package/dist/api/commission-agreements-api.js +127 -22
  20. package/dist/api/commission-candidates-api.d.ts +393 -0
  21. package/dist/api/commission-candidates-api.js +648 -0
  22. package/dist/api/commission-recipients-api.d.ts +12 -12
  23. package/dist/api/commission-recipients-api.js +9 -9
  24. package/dist/api/commission-settlements-api.d.ts +450 -0
  25. package/dist/api/commission-settlements-api.js +741 -0
  26. package/dist/api/commissions-api.d.ts +75 -18
  27. package/dist/api/commissions-api.js +102 -9
  28. package/dist/api.d.ts +3 -0
  29. package/dist/api.js +3 -0
  30. package/dist/models/commission-agreement-class.d.ts +27 -3
  31. package/dist/models/commission-agreement-class.js +5 -1
  32. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  33. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  34. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  35. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  36. package/dist/models/commission-agreement-product-class.d.ts +6 -7
  37. package/dist/models/commission-agreement-rule-class.d.ts +99 -0
  38. package/dist/models/commission-agreement-rule-class.js +21 -0
  39. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  40. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  41. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  42. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  43. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  44. package/dist/models/commission-candidate-class.d.ts +95 -0
  45. package/dist/models/commission-candidate-class.js +20 -0
  46. package/dist/models/commission-class.d.ts +37 -6
  47. package/dist/models/commission-conditions-dto.d.ts +24 -0
  48. package/dist/models/commission-conditions-dto.js +15 -0
  49. package/dist/models/commission-config-dto.d.ts +63 -0
  50. package/dist/models/commission-config-dto.js +34 -0
  51. package/dist/models/commission-estimate-class.d.ts +59 -0
  52. package/dist/models/commission-estimate-class.js +25 -0
  53. package/dist/models/commission-recipient-class.d.ts +6 -6
  54. package/dist/models/commission-settlement-class.d.ts +124 -0
  55. package/dist/models/commission-settlement-class.js +35 -0
  56. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  57. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  58. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  59. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  60. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  61. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  62. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  63. package/dist/models/create-commission-candidate-request-dto.d.ts +65 -0
  64. package/dist/models/create-commission-candidate-request-dto.js +25 -0
  65. package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
  66. package/dist/models/create-commission-candidate-response-class.js +15 -0
  67. package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
  68. package/dist/models/create-commission-request-dto.d.ts +3 -9
  69. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  70. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  71. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  72. package/dist/models/create-commission-settlement-response-class.js +15 -0
  73. package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
  74. package/dist/models/estimate-commissions-request-dto.js +15 -0
  75. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  76. package/dist/models/estimate-commissions-response-class.js +15 -0
  77. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  78. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  79. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  80. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  81. package/dist/models/evaluated-commission-class.d.ts +54 -0
  82. package/dist/models/evaluated-commission-class.js +21 -0
  83. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  84. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  85. package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
  86. package/dist/models/get-commission-candidate-response-class.js +15 -0
  87. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  88. package/dist/models/get-commission-settlement-response-class.js +15 -0
  89. package/dist/models/index.d.ts +37 -0
  90. package/dist/models/index.js +37 -0
  91. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  92. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  93. package/dist/models/list-commission-candidates-response-class.d.ts +43 -0
  94. package/dist/models/list-commission-candidates-response-class.js +15 -0
  95. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  96. package/dist/models/list-commission-settlements-response-class.js +15 -0
  97. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  98. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  99. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  100. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  101. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  102. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  103. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  104. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  105. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  106. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  107. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  108. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  109. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  110. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  111. package/dist/models/update-commission-candidate-request-dto.d.ts +71 -0
  112. package/dist/models/update-commission-candidate-request-dto.js +25 -0
  113. package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
  114. package/dist/models/update-commission-candidate-response-class.js +15 -0
  115. package/dist/models/update-commission-request-dto.d.ts +5 -3
  116. package/dist/models/update-commission-request-dto.js +4 -2
  117. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  118. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  119. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  120. package/dist/models/update-commission-settlement-response-class.js +15 -0
  121. package/models/commission-agreement-class.ts +27 -3
  122. package/models/commission-agreement-metadata-dto.ts +31 -0
  123. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  124. package/models/commission-agreement-product-class.ts +6 -7
  125. package/models/commission-agreement-rule-class.ts +108 -0
  126. package/models/commission-agreement-rule-config-dto.ts +31 -0
  127. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  128. package/models/commission-agreement-version-class.ts +7 -0
  129. package/models/commission-candidate-class.ts +104 -0
  130. package/models/commission-class.ts +37 -6
  131. package/models/commission-conditions-dto.ts +30 -0
  132. package/models/commission-config-dto.ts +73 -0
  133. package/models/commission-estimate-class.ts +69 -0
  134. package/models/commission-recipient-class.ts +6 -6
  135. package/models/commission-settlement-class.ts +134 -0
  136. package/models/create-commission-agreement-request-dto.ts +14 -3
  137. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  138. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  139. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  140. package/models/create-commission-candidate-request-dto.ts +75 -0
  141. package/models/create-commission-candidate-response-class.ts +31 -0
  142. package/models/create-commission-recipient-request-dto.ts +2 -2
  143. package/models/create-commission-request-dto.ts +3 -9
  144. package/models/create-commission-settlement-request-dto.ts +67 -0
  145. package/models/create-commission-settlement-response-class.ts +31 -0
  146. package/models/estimate-commissions-request-dto.ts +36 -0
  147. package/models/estimate-commissions-response-class.ts +79 -0
  148. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  149. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  150. package/models/evaluated-commission-class.ts +63 -0
  151. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/get-commission-candidate-response-class.ts +31 -0
  153. package/models/get-commission-settlement-response-class.ts +31 -0
  154. package/models/index.ts +37 -0
  155. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  156. package/models/list-commission-candidates-response-class.ts +49 -0
  157. package/models/list-commission-settlements-response-class.ts +49 -0
  158. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  159. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  160. package/models/publish-commission-settlements-request-dto.ts +30 -0
  161. package/models/publish-commission-settlements-response-class.ts +31 -0
  162. package/models/update-commission-agreement-request-dto.ts +3 -1
  163. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  164. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  165. package/models/update-commission-candidate-request-dto.ts +81 -0
  166. package/models/update-commission-candidate-response-class.ts +31 -0
  167. package/models/update-commission-request-dto.ts +5 -3
  168. package/models/update-commission-settlement-request-dto.ts +52 -0
  169. package/models/update-commission-settlement-response-class.ts +31 -0
  170. package/package.json +2 -2
@@ -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';
@@ -134,6 +138,53 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
134
138
  options: localVarRequestOptions,
135
139
  };
136
140
  },
141
+ /**
142
+ * This will estimate commissions for a given policy.
143
+ * @summary Retrieve the estimate commissions
144
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
145
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
146
+ * @param {*} [options] Override http request option.
147
+ * @throws {RequiredError}
148
+ */
149
+ estimateCommission: async (estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
150
+ // verify required parameter 'estimateCommissionsRequestDto' is not null or undefined
151
+ assertParamExists('estimateCommission', 'estimateCommissionsRequestDto', estimateCommissionsRequestDto)
152
+ const localVarPath = `/commissionservice/v1/commissions/estimate`;
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ let baseAccessToken;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ baseAccessToken = configuration.accessToken;
160
+ }
161
+
162
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
163
+ const localVarHeaderParameter = {} as any;
164
+ const localVarQueryParameter = {} as any;
165
+
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
+
170
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
171
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
172
+ }
173
+
174
+
175
+
176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
177
+
178
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
180
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
181
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateCommissionsRequestDto, localVarRequestOptions, configuration)
182
+
183
+ return {
184
+ url: toPathString(localVarUrlObj),
185
+ options: localVarRequestOptions,
186
+ };
187
+ },
137
188
  /**
138
189
  * This will get commission.
139
190
  * @summary Retrieve the commission
@@ -192,15 +243,15 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
192
243
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
244
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
245
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
195
- * @param {'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.
246
+ * @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.
196
247
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
197
- * @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.
198
- * @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.
248
+ * @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.
249
+ * @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.
199
250
  * @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.
200
251
  * @param {*} [options] Override http request option.
201
252
  * @throws {RequiredError}
202
253
  */
203
- 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> => {
254
+ 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> => {
204
255
  const localVarPath = `/commissionservice/v1/commissions`;
205
256
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
257
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -347,6 +398,18 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
347
398
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommission(code, authorization, options);
348
399
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
400
  },
401
+ /**
402
+ * This will estimate commissions for a given policy.
403
+ * @summary Retrieve the estimate commissions
404
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
405
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ async estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>> {
410
+ const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(estimateCommissionsRequestDto, authorization, options);
411
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
412
+ },
350
413
  /**
351
414
  * This will get commission.
352
415
  * @summary Retrieve the commission
@@ -366,15 +429,15 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
366
429
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
430
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
431
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
369
- * @param {'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.
432
+ * @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.
370
433
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
371
- * @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.
372
- * @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.
434
+ * @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.
435
+ * @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.
373
436
  * @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.
374
437
  * @param {*} [options] Override http request option.
375
438
  * @throws {RequiredError}
376
439
  */
377
- 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>> {
440
+ 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>> {
378
441
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
379
442
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
443
  },
@@ -423,6 +486,17 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
423
486
  deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void> {
424
487
  return localVarFp.deleteCommission(code, authorization, options).then((request) => request(axios, basePath));
425
488
  },
489
+ /**
490
+ * This will estimate commissions for a given policy.
491
+ * @summary Retrieve the estimate commissions
492
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
493
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
494
+ * @param {*} [options] Override http request option.
495
+ * @throws {RequiredError}
496
+ */
497
+ estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
498
+ return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then((request) => request(axios, basePath));
499
+ },
426
500
  /**
427
501
  * This will get commission.
428
502
  * @summary Retrieve the commission
@@ -441,15 +515,15 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
441
515
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
516
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
517
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
444
- * @param {'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.
518
+ * @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.
445
519
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
446
- * @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.
447
- * @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.
520
+ * @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.
521
+ * @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.
448
522
  * @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.
449
523
  * @param {*} [options] Override http request option.
450
524
  * @throws {RequiredError}
451
525
  */
452
- 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> {
526
+ 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> {
453
527
  return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
454
528
  },
455
529
  /**
@@ -509,6 +583,27 @@ export interface CommissionsApiDeleteCommissionRequest {
509
583
  readonly authorization?: string
510
584
  }
511
585
 
586
+ /**
587
+ * Request parameters for estimateCommission operation in CommissionsApi.
588
+ * @export
589
+ * @interface CommissionsApiEstimateCommissionRequest
590
+ */
591
+ export interface CommissionsApiEstimateCommissionRequest {
592
+ /**
593
+ *
594
+ * @type {EstimateCommissionsRequestDto}
595
+ * @memberof CommissionsApiEstimateCommission
596
+ */
597
+ readonly estimateCommissionsRequestDto: EstimateCommissionsRequestDto
598
+
599
+ /**
600
+ * Bearer Token: provided by the login endpoint under the name accessToken.
601
+ * @type {string}
602
+ * @memberof CommissionsApiEstimateCommission
603
+ */
604
+ readonly authorization?: string
605
+ }
606
+
512
607
  /**
513
608
  * Request parameters for getCommission operation in CommissionsApi.
514
609
  * @export
@@ -566,10 +661,10 @@ export interface CommissionsApiListCommissionsRequest {
566
661
 
567
662
  /**
568
663
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
569
- * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
664
+ * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
570
665
  * @memberof CommissionsApiListCommissions
571
666
  */
572
- readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'
667
+ readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'
573
668
 
574
669
  /**
575
670
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
@@ -580,17 +675,17 @@ export interface CommissionsApiListCommissionsRequest {
580
675
 
581
676
  /**
582
677
  * 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.
583
- * @type {'createdAt'}
678
+ * @type {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'}
584
679
  * @memberof CommissionsApiListCommissions
585
680
  */
586
- readonly order?: 'createdAt'
681
+ readonly order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'
587
682
 
588
683
  /**
589
684
  * 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.
590
- * @type {'items'}
685
+ * @type {'items' | 'agreement'}
591
686
  * @memberof CommissionsApiListCommissions
592
687
  */
593
- readonly expand?: 'items'
688
+ readonly expand?: 'items' | 'agreement'
594
689
 
595
690
  /**
596
691
  * 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.
@@ -659,6 +754,18 @@ export class CommissionsApi extends BaseAPI {
659
754
  return CommissionsApiFp(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
755
  }
661
756
 
757
+ /**
758
+ * This will estimate commissions for a given policy.
759
+ * @summary Retrieve the estimate commissions
760
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
761
+ * @param {*} [options] Override http request option.
762
+ * @throws {RequiredError}
763
+ * @memberof CommissionsApi
764
+ */
765
+ public estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig) {
766
+ return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
767
+ }
768
+
662
769
  /**
663
770
  * This will get commission.
664
771
  * @summary Retrieve the commission
package/api.ts CHANGED
@@ -25,17 +25,23 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
27
  import { CommissionAgreementProductsApi } from './api';
28
+ import { CommissionAgreementRulesApi } from './api';
28
29
  import { CommissionAgreementVersionsApi } from './api';
29
30
  import { CommissionAgreementsApi } from './api';
31
+ import { CommissionCandidatesApi } from './api';
30
32
  import { CommissionRecipientsApi } from './api';
33
+ import { CommissionSettlementsApi } from './api';
31
34
  import { CommissionsApi } from './api';
32
35
  import { DefaultApi } from './api';
33
36
 
34
37
 
35
38
  export * from './api/commission-agreement-products-api';
39
+ export * from './api/commission-agreement-rules-api';
36
40
  export * from './api/commission-agreement-versions-api';
37
41
  export * from './api/commission-agreements-api';
42
+ export * from './api/commission-candidates-api';
38
43
  export * from './api/commission-recipients-api';
44
+ export * from './api/commission-settlements-api';
39
45
  export * from './api/commissions-api';
40
46
  export * from './api/default-api';
41
47
 
@@ -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 {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;
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.
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;
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.
114
- * @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;
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.
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;
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.
170
- * @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;
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.
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;
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
@@ -262,17 +271,29 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
262
271
  */
263
272
  readonly authorization?: string;
264
273
  /**
265
- * 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;
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;
285
+ /**
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}
267
288
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
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.
@@ -251,14 +251,17 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
251
251
  * Retrieves a list of commission agreement products.
252
252
  * @summary List commission agreement products
253
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
- * @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;
255
- * @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
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
+ * @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.
256
+ * @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;
257
+ * @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;
256
258
  * @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;
257
259
  * @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;
260
+ * @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;
258
261
  * @param {*} [options] Override http request option.
259
262
  * @throws {RequiredError}
260
263
  */
261
- listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
264
+ listCommissionAgreementProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
262
265
  if (options === void 0) { options = {}; }
263
266
  return __awaiter(_this, void 0, void 0, function () {
264
267
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -281,11 +284,17 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
281
284
  // authentication bearer required
282
285
  // http bearer authentication required
283
286
  _a.sent();
287
+ if (pageSize !== undefined) {
288
+ localVarQueryParameter['pageSize'] = pageSize;
289
+ }
290
+ if (pageToken !== undefined) {
291
+ localVarQueryParameter['pageToken'] = pageToken;
292
+ }
284
293
  if (filter !== undefined) {
285
294
  localVarQueryParameter['filter'] = filter;
286
295
  }
287
- if (filters !== undefined) {
288
- localVarQueryParameter['filters'] = filters;
296
+ if (search !== undefined) {
297
+ localVarQueryParameter['search'] = search;
289
298
  }
290
299
  if (order !== undefined) {
291
300
  localVarQueryParameter['order'] = order;
@@ -293,6 +302,9 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
293
302
  if (expand !== undefined) {
294
303
  localVarQueryParameter['expand'] = expand;
295
304
  }
305
+ if (filters !== undefined) {
306
+ localVarQueryParameter['filters'] = filters;
307
+ }
296
308
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
297
309
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
298
310
  }
@@ -438,19 +450,22 @@ var CommissionAgreementProductsApiFp = function (configuration) {
438
450
  * Retrieves a list of commission agreement products.
439
451
  * @summary List commission agreement products
440
452
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
441
- * @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;
442
- * @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;
453
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
454
+ * @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.
455
+ * @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;
456
+ * @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;
443
457
  * @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;
444
458
  * @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;
459
+ * @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;
445
460
  * @param {*} [options] Override http request option.
446
461
  * @throws {RequiredError}
447
462
  */
448
- listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
463
+ listCommissionAgreementProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
449
464
  return __awaiter(this, void 0, void 0, function () {
450
465
  var localVarAxiosArgs;
451
466
  return __generator(this, function (_a) {
452
467
  switch (_a.label) {
453
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options)];
468
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
454
469
  case 1:
455
470
  localVarAxiosArgs = _a.sent();
456
471
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -528,15 +543,18 @@ var CommissionAgreementProductsApiFactory = function (configuration, basePath, a
528
543
  * Retrieves a list of commission agreement products.
529
544
  * @summary List commission agreement products
530
545
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
- * @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;
532
- * @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;
546
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
547
+ * @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.
548
+ * @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;
549
+ * @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;
533
550
  * @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;
534
551
  * @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;
552
+ * @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;
535
553
  * @param {*} [options] Override http request option.
536
554
  * @throws {RequiredError}
537
555
  */
538
- listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
539
- return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
556
+ listCommissionAgreementProducts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
+ return localVarFp.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
540
558
  },
541
559
  /**
542
560
  * This will update commission agreement product.
@@ -611,7 +629,7 @@ var CommissionAgreementProductsApi = /** @class */ (function (_super) {
611
629
  CommissionAgreementProductsApi.prototype.listCommissionAgreementProducts = function (requestParameters, options) {
612
630
  var _this = this;
613
631
  if (requestParameters === void 0) { requestParameters = {}; }
614
- 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); });
632
+ 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); });
615
633
  };
616
634
  /**
617
635
  * This will update commission agreement product.