@emilgroup/commission-sdk-node 1.0.0-beta.43 → 1.0.0-beta.45

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.
@@ -46,6 +46,7 @@ models/create-commission-request-dto.ts
46
46
  models/create-commission-response-class.ts
47
47
  models/create-commission-settlement-request-dto.ts
48
48
  models/create-commission-settlement-response-class.ts
49
+ models/estimate-commissions-request-dto.ts
49
50
  models/estimate-commissions-response-class.ts
50
51
  models/evaluate-commission-agreement-rule-request-dto.ts
51
52
  models/evaluate-commission-agreement-rule-response-class.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/commission-sdk-node@1.0.0-beta.43 --save
20
+ npm install @emilgroup/commission-sdk-node@1.0.0-beta.45 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@1.0.0-beta.43
24
+ yarn add @emilgroup/commission-sdk-node@1.0.0-beta.45
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -190,14 +190,17 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
190
190
  * Retrieves a list of commission agreement products.
191
191
  * @summary List commission agreement products
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
193
195
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
194
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
196
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.<br/> <br/> <i>Searchable fields: code, productSlug</i>
195
197
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: createdAt, updatedAt, productSlug, status</i>
196
198
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
199
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt</i>
197
200
  * @param {*} [options] Override http request option.
198
201
  * @throws {RequiredError}
199
202
  */
200
- listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ listCommissionAgreementProducts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
204
  const localVarPath = `/commissionservice/v1/agreement-products`;
202
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -216,12 +219,20 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
216
219
  // http bearer authentication required
217
220
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
221
 
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
219
230
  if (filter !== undefined) {
220
231
  localVarQueryParameter['filter'] = filter;
221
232
  }
222
233
 
223
- if (filters !== undefined) {
224
- localVarQueryParameter['filters'] = filters;
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
225
236
  }
226
237
 
227
238
  if (order !== undefined) {
@@ -232,6 +243,10 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
232
243
  localVarQueryParameter['expand'] = expand;
233
244
  }
234
245
 
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
235
250
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
251
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
252
  }
@@ -349,15 +364,18 @@ export const CommissionAgreementProductsApiFp = function(configuration?: Configu
349
364
  * Retrieves a list of commission agreement products.
350
365
  * @summary List commission agreement products
351
366
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
352
369
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
353
- * @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;
370
+ * @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;
354
371
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, productSlug, status&lt;/i&gt;
355
372
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version&lt;i&gt;
373
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
356
374
  * @param {*} [options] Override http request option.
357
375
  * @throws {RequiredError}
358
376
  */
359
- async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
360
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options);
377
+ async 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>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
361
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
380
  },
363
381
  /**
@@ -421,15 +439,18 @@ export const CommissionAgreementProductsApiFactory = function (configuration?: C
421
439
  * Retrieves a list of commission agreement products.
422
440
  * @summary List commission agreement products
423
441
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
424
444
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
425
- * @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
+ * @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;
426
446
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, productSlug, status&lt;/i&gt;
427
447
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: version&lt;i&gt;
448
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
428
449
  * @param {*} [options] Override http request option.
429
450
  * @throws {RequiredError}
430
451
  */
431
- listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
432
- return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
452
+ listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
453
+ return localVarFp.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
433
454
  },
434
455
  /**
435
456
  * This will update commission agreement product.
@@ -529,6 +550,20 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
529
550
  */
530
551
  readonly authorization?: string
531
552
 
553
+ /**
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
557
+ */
558
+ readonly pageSize?: number
559
+
560
+ /**
561
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
562
+ * @type {string}
563
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
564
+ */
565
+ readonly pageToken?: string
566
+
532
567
  /**
533
568
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
534
569
  * @type {string}
@@ -537,11 +572,11 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
537
572
  readonly filter?: string
538
573
 
539
574
  /**
540
- * 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;
575
+ * 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;
541
576
  * @type {string}
542
577
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
543
578
  */
544
- readonly filters?: string
579
+ readonly search?: string
545
580
 
546
581
  /**
547
582
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, productSlug, status&lt;/i&gt;
@@ -556,6 +591,13 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
556
591
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
557
592
  */
558
593
  readonly expand?: string
594
+
595
+ /**
596
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, commissionAgreementVersionId, productSlug, status, createdAt&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
599
+ */
600
+ readonly filters?: string
559
601
  }
560
602
 
561
603
  /**
@@ -638,7 +680,7 @@ export class CommissionAgreementProductsApi extends BaseAPI {
638
680
  * @memberof CommissionAgreementProductsApi
639
681
  */
640
682
  public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
641
- return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
683
+ return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
642
684
  }
643
685
 
644
686
  /**
@@ -241,15 +241,17 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
241
241
  * Retrieves a list of commission agreement rules.
242
242
  * @summary List commission agreement rules
243
243
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
244
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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.
244
246
  * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
245
- * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
246
247
  * @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, commissionAgreementProductCode&lt;/i&gt;
247
248
  * @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, status&lt;/i&gt;
248
249
  * @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, commissionAgreementProduct&lt;i&gt;
250
+ * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
249
251
  * @param {*} [options] Override http request option.
250
252
  * @throws {RequiredError}
251
253
  */
252
- listCommissionAgreementRules: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
254
+ listCommissionAgreementRules: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
253
255
  const localVarPath = `/commissionservice/v1/agreement-rules`;
254
256
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
255
257
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -268,12 +270,16 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
268
270
  // http bearer authentication required
269
271
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
270
272
 
271
- if (filter !== undefined) {
272
- localVarQueryParameter['filter'] = filter;
273
+ if (pageSize !== undefined) {
274
+ localVarQueryParameter['pageSize'] = pageSize;
273
275
  }
274
276
 
275
- if (filters !== undefined) {
276
- localVarQueryParameter['filters'] = filters;
277
+ if (pageToken !== undefined) {
278
+ localVarQueryParameter['pageToken'] = pageToken;
279
+ }
280
+
281
+ if (filter !== undefined) {
282
+ localVarQueryParameter['filter'] = filter;
277
283
  }
278
284
 
279
285
  if (search !== undefined) {
@@ -288,6 +294,10 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
288
294
  localVarQueryParameter['expand'] = expand;
289
295
  }
290
296
 
297
+ if (filters !== undefined) {
298
+ localVarQueryParameter['filters'] = filters;
299
+ }
300
+
291
301
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
292
302
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
293
303
  }
@@ -417,16 +427,18 @@ export const CommissionAgreementRulesApiFp = function(configuration?: Configurat
417
427
  * Retrieves a list of commission agreement rules.
418
428
  * @summary List commission agreement rules
419
429
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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.
420
432
  * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
421
- * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
422
433
  * @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, commissionAgreementProductCode&lt;/i&gt;
423
434
  * @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, status&lt;/i&gt;
424
435
  * @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, commissionAgreementProduct&lt;i&gt;
436
+ * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
425
437
  * @param {*} [options] Override http request option.
426
438
  * @throws {RequiredError}
427
439
  */
428
- async listCommissionAgreementRules(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementRulesResponseClass>> {
429
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementRules(authorization, filter, filters, search, order, expand, options);
440
+ async listCommissionAgreementRules(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementRulesResponseClass>> {
441
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
430
442
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
431
443
  },
432
444
  /**
@@ -501,16 +513,18 @@ export const CommissionAgreementRulesApiFactory = function (configuration?: Conf
501
513
  * Retrieves a list of commission agreement rules.
502
514
  * @summary List commission agreement rules
503
515
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
516
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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.
504
518
  * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
505
- * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
506
519
  * @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, commissionAgreementProductCode&lt;/i&gt;
507
520
  * @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, status&lt;/i&gt;
508
521
  * @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, commissionAgreementProduct&lt;i&gt;
522
+ * @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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
509
523
  * @param {*} [options] Override http request option.
510
524
  * @throws {RequiredError}
511
525
  */
512
- listCommissionAgreementRules(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementRulesResponseClass> {
513
- return localVarFp.listCommissionAgreementRules(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
526
+ listCommissionAgreementRules(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementRulesResponseClass> {
527
+ return localVarFp.listCommissionAgreementRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
514
528
  },
515
529
  /**
516
530
  * This will update commission agreement rule.
@@ -632,18 +646,25 @@ export interface CommissionAgreementRulesApiListCommissionAgreementRulesRequest
632
646
  readonly authorization?: string
633
647
 
634
648
  /**
635
- * 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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
649
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
650
+ * @type {number}
651
+ * @memberof CommissionAgreementRulesApiListCommissionAgreementRules
652
+ */
653
+ readonly pageSize?: number
654
+
655
+ /**
656
+ * 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.
636
657
  * @type {string}
637
658
  * @memberof CommissionAgreementRulesApiListCommissionAgreementRules
638
659
  */
639
- readonly filter?: string
660
+ readonly pageToken?: string
640
661
 
641
662
  /**
642
- * 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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
663
+ * 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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
643
664
  * @type {string}
644
665
  * @memberof CommissionAgreementRulesApiListCommissionAgreementRules
645
666
  */
646
- readonly filters?: string
667
+ readonly filter?: string
647
668
 
648
669
  /**
649
670
  * 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, commissionAgreementProductCode&lt;/i&gt;
@@ -665,6 +686,13 @@ export interface CommissionAgreementRulesApiListCommissionAgreementRulesRequest
665
686
  * @memberof CommissionAgreementRulesApiListCommissionAgreementRules
666
687
  */
667
688
  readonly expand?: string
689
+
690
+ /**
691
+ * 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, commissionAgreementProductCode, status, createdAt&lt;/i&gt;
692
+ * @type {string}
693
+ * @memberof CommissionAgreementRulesApiListCommissionAgreementRules
694
+ */
695
+ readonly filters?: string
668
696
  }
669
697
 
670
698
  /**
@@ -759,7 +787,7 @@ export class CommissionAgreementRulesApi extends BaseAPI {
759
787
  * @memberof CommissionAgreementRulesApi
760
788
  */
761
789
  public listCommissionAgreementRules(requestParameters: CommissionAgreementRulesApiListCommissionAgreementRulesRequest = {}, options?: AxiosRequestConfig) {
762
- return CommissionAgreementRulesApiFp(this.configuration).listCommissionAgreementRules(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
790
+ return CommissionAgreementRulesApiFp(this.configuration).listCommissionAgreementRules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
763
791
  }
764
792
 
765
793
  /**
@@ -25,6 +25,8 @@ 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
28
30
  import { EstimateCommissionsResponseClass } from '../models';
29
31
  // @ts-ignore
30
32
  import { GetCommissionResponseClass } from '../models';
@@ -139,16 +141,15 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
139
141
  /**
140
142
  * This will estimate commissions for a given policy.
141
143
  * @summary Retrieve the estimate commissions
142
- * @param {string} policyCode Unique identifier for the object.
144
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
143
145
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
146
  * @param {*} [options] Override http request option.
145
147
  * @throws {RequiredError}
146
148
  */
147
- estimateCommission: async (policyCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
148
- // verify required parameter 'policyCode' is not null or undefined
149
- assertParamExists('estimateCommission', 'policyCode', policyCode)
150
- const localVarPath = `/commissionservice/v1/commissions/estimate/{policyCode}`
151
- .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
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`;
152
153
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
153
154
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
154
155
  let baseOptions;
@@ -158,7 +159,7 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
158
159
  baseAccessToken = configuration.accessToken;
159
160
  }
160
161
 
161
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
162
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
162
163
  const localVarHeaderParameter = {} as any;
163
164
  const localVarQueryParameter = {} as any;
164
165
 
@@ -172,9 +173,12 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
172
173
 
173
174
 
174
175
 
176
+ localVarHeaderParameter['Content-Type'] = 'application/json';
177
+
175
178
  setSearchParams(localVarUrlObj, localVarQueryParameter);
176
179
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
177
180
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
181
+ localVarRequestOptions.data = serializeDataIfNeeded(estimateCommissionsRequestDto, localVarRequestOptions, configuration)
178
182
 
179
183
  return {
180
184
  url: toPathString(localVarUrlObj),
@@ -397,13 +401,13 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
397
401
  /**
398
402
  * This will estimate commissions for a given policy.
399
403
  * @summary Retrieve the estimate commissions
400
- * @param {string} policyCode Unique identifier for the object.
404
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
401
405
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
402
406
  * @param {*} [options] Override http request option.
403
407
  * @throws {RequiredError}
404
408
  */
405
- async estimateCommission(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>> {
406
- const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(policyCode, authorization, options);
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);
407
411
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
408
412
  },
409
413
  /**
@@ -485,13 +489,13 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
485
489
  /**
486
490
  * This will estimate commissions for a given policy.
487
491
  * @summary Retrieve the estimate commissions
488
- * @param {string} policyCode Unique identifier for the object.
492
+ * @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
489
493
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
490
494
  * @param {*} [options] Override http request option.
491
495
  * @throws {RequiredError}
492
496
  */
493
- estimateCommission(policyCode: string, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
494
- return localVarFp.estimateCommission(policyCode, authorization, options).then((request) => request(axios, basePath));
497
+ estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
498
+ return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then((request) => request(axios, basePath));
495
499
  },
496
500
  /**
497
501
  * This will get commission.
@@ -586,11 +590,11 @@ export interface CommissionsApiDeleteCommissionRequest {
586
590
  */
587
591
  export interface CommissionsApiEstimateCommissionRequest {
588
592
  /**
589
- * Unique identifier for the object.
590
- * @type {string}
593
+ *
594
+ * @type {EstimateCommissionsRequestDto}
591
595
  * @memberof CommissionsApiEstimateCommission
592
596
  */
593
- readonly policyCode: string
597
+ readonly estimateCommissionsRequestDto: EstimateCommissionsRequestDto
594
598
 
595
599
  /**
596
600
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -759,7 +763,7 @@ export class CommissionsApi extends BaseAPI {
759
763
  * @memberof CommissionsApi
760
764
  */
761
765
  public estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig) {
762
- return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.policyCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
766
+ return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
763
767
  }
764
768
 
765
769
  /**
@@ -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.