@emilgroup/commission-sdk-node 1.0.0-beta.5 → 1.0.0-beta.7

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.
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.5 --save
20
+ npm install @emilgroup/commission-sdk-node@1.0.0-beta.7 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/commission-sdk-node@1.0.0-beta.5
24
+ yarn add @emilgroup/commission-sdk-node@1.0.0-beta.7
25
25
  ```
26
26
 
27
27
  And then you can import `CommissionApi`.
@@ -192,13 +192,12 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
193
  * @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
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>
195
- * @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>
196
- * @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, productSlug, status</i>
195
+ * @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>
197
196
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> <i>Allowed values: version<i>
198
197
  * @param {*} [options] Override http request option.
199
198
  * @throws {RequiredError}
200
199
  */
201
- listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ listCommissionAgreementProducts: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
201
  const localVarPath = `/commissionservice/v1/agreement-products`;
203
202
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
203
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -225,10 +224,6 @@ export const CommissionAgreementProductsApiAxiosParamCreator = function (configu
225
224
  localVarQueryParameter['filters'] = filters;
226
225
  }
227
226
 
228
- if (search !== undefined) {
229
- localVarQueryParameter['search'] = search;
230
- }
231
-
232
227
  if (order !== undefined) {
233
228
  localVarQueryParameter['order'] = order;
234
229
  }
@@ -356,14 +351,13 @@ export const CommissionAgreementProductsApiFp = function(configuration?: Configu
356
351
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
357
352
  * @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;
358
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;
359
- * @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;
360
- * @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, productSlug, status&lt;/i&gt;
354
+ * @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;
361
355
  * @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;
362
356
  * @param {*} [options] Override http request option.
363
357
  * @throws {RequiredError}
364
358
  */
365
- async listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
366
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options);
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);
367
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
362
  },
369
363
  /**
@@ -429,14 +423,13 @@ export const CommissionAgreementProductsApiFactory = function (configuration?: C
429
423
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
430
424
  * @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;
431
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;
432
- * @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;
433
- * @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, productSlug, status&lt;/i&gt;
426
+ * @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;
434
427
  * @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;
435
428
  * @param {*} [options] Override http request option.
436
429
  * @throws {RequiredError}
437
430
  */
438
- listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
439
- return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options).then((request) => request(axios, basePath));
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));
440
433
  },
441
434
  /**
442
435
  * This will update commission agreement product.
@@ -551,14 +544,7 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
551
544
  readonly filters?: string
552
545
 
553
546
  /**
554
- * 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;
555
- * @type {string}
556
- * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
557
- */
558
- readonly search?: string
559
-
560
- /**
561
- * 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, productSlug, status&lt;/i&gt;
547
+ * 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;
562
548
  * @type {string}
563
549
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
564
550
  */
@@ -652,7 +638,7 @@ export class CommissionAgreementProductsApi extends BaseAPI {
652
638
  * @memberof CommissionAgreementProductsApi
653
639
  */
654
640
  public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
655
- return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
641
+ return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
656
642
  }
657
643
 
658
644
  /**
@@ -92,15 +92,15 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
92
92
  /**
93
93
  * This will delete commission recipient.
94
94
  * @summary Delete the commission recipient
95
- * @param {any} code Unique identifier for the object.
95
+ * @param {string} code Unique identifier for the object.
96
96
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
97
  * @param {*} [options] Override http request option.
98
98
  * @throws {RequiredError}
99
99
  */
100
- deleteCommissionRecipient: async (code: any, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ deleteCommissionRecipient: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
101
  // verify required parameter 'code' is not null or undefined
102
102
  assertParamExists('deleteCommissionRecipient', 'code', code)
103
- const localVarPath = `/commissionservice/v1/commission-recipients`
103
+ const localVarPath = `/commissionservice/v1/commission-recipients/{code}`
104
104
  .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
105
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
106
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -187,17 +187,20 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
187
187
  };
188
188
  },
189
189
  /**
190
- * Retrieves a list of commissionrecipients.
190
+ * Retrieves a list of commission recipients.
191
191
  * @summary List commission recipients
192
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
193
195
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
194
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
196
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
195
197
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
196
198
  * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
199
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
197
200
  * @param {*} [options] Override http request option.
198
201
  * @throws {RequiredError}
199
202
  */
200
- listCommissionRecipients: async (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
203
+ listCommissionRecipients: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
204
  const localVarPath = `/commissionservice/v1/commission-recipients`;
202
205
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
206
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -216,12 +219,20 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
216
219
  // http bearer authentication required
217
220
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
218
221
 
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
219
230
  if (filter !== undefined) {
220
231
  localVarQueryParameter['filter'] = filter;
221
232
  }
222
233
 
223
- if (filters !== undefined) {
224
- localVarQueryParameter['filters'] = filters;
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
225
236
  }
226
237
 
227
238
  if (order !== undefined) {
@@ -232,6 +243,10 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
232
243
  localVarQueryParameter['expand'] = expand;
233
244
  }
234
245
 
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
235
250
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
236
251
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
237
252
  }
@@ -250,15 +265,19 @@ export const CommissionRecipientsApiAxiosParamCreator = function (configuration?
250
265
  /**
251
266
  * This will update commission recipient.
252
267
  * @summary Update the commission recipient
268
+ * @param {string} code
253
269
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
254
270
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
255
271
  * @param {*} [options] Override http request option.
256
272
  * @throws {RequiredError}
257
273
  */
258
- updateCommissionRecipient: async (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
274
+ updateCommissionRecipient: async (code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateCommissionRecipient', 'code', code)
259
277
  // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
260
278
  assertParamExists('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto)
261
- const localVarPath = `/commissionservice/v1/commission-recipients`;
279
+ const localVarPath = `/commissionservice/v1/commission-recipients/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
262
281
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
263
282
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
264
283
  let baseOptions;
@@ -319,12 +338,12 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
319
338
  /**
320
339
  * This will delete commission recipient.
321
340
  * @summary Delete the commission recipient
322
- * @param {any} code Unique identifier for the object.
341
+ * @param {string} code Unique identifier for the object.
323
342
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
324
343
  * @param {*} [options] Override http request option.
325
344
  * @throws {RequiredError}
326
345
  */
327
- async deleteCommissionRecipient(code: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
346
+ async deleteCommissionRecipient(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
328
347
  const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionRecipient(code, authorization, options);
329
348
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
349
  },
@@ -342,30 +361,34 @@ export const CommissionRecipientsApiFp = function(configuration?: Configuration)
342
361
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
343
362
  },
344
363
  /**
345
- * Retrieves a list of commissionrecipients.
364
+ * Retrieves a list of commission recipients.
346
365
  * @summary List commission recipients
347
366
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
348
369
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
349
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
370
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
350
371
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
351
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;
373
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
352
374
  * @param {*} [options] Override http request option.
353
375
  * @throws {RequiredError}
354
376
  */
355
- async listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
356
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, filter, filters, order, expand, options);
377
+ async listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
357
379
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
358
380
  },
359
381
  /**
360
382
  * This will update commission recipient.
361
383
  * @summary Update the commission recipient
384
+ * @param {string} code
362
385
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
363
386
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
364
387
  * @param {*} [options] Override http request option.
365
388
  * @throws {RequiredError}
366
389
  */
367
- async updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
368
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options);
390
+ async updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options);
369
392
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
370
393
  },
371
394
  }
@@ -392,12 +415,12 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
392
415
  /**
393
416
  * This will delete commission recipient.
394
417
  * @summary Delete the commission recipient
395
- * @param {any} code Unique identifier for the object.
418
+ * @param {string} code Unique identifier for the object.
396
419
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
397
420
  * @param {*} [options] Override http request option.
398
421
  * @throws {RequiredError}
399
422
  */
400
- deleteCommissionRecipient(code: any, authorization?: string, options?: any): AxiosPromise<void> {
423
+ deleteCommissionRecipient(code: string, authorization?: string, options?: any): AxiosPromise<void> {
401
424
  return localVarFp.deleteCommissionRecipient(code, authorization, options).then((request) => request(axios, basePath));
402
425
  },
403
426
  /**
@@ -413,29 +436,33 @@ export const CommissionRecipientsApiFactory = function (configuration?: Configur
413
436
  return localVarFp.getCommissionRecipient(code, expand, authorization, options).then((request) => request(axios, basePath));
414
437
  },
415
438
  /**
416
- * Retrieves a list of commissionrecipients.
439
+ * Retrieves a list of commission recipients.
417
440
  * @summary List commission recipients
418
441
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
419
444
  * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
420
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
445
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
421
446
  * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
422
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;
448
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
423
449
  * @param {*} [options] Override http request option.
424
450
  * @throws {RequiredError}
425
451
  */
426
- listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
427
- return localVarFp.listCommissionRecipients(authorization, filter, filters, order, expand, options).then((request) => request(axios, basePath));
452
+ listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass> {
453
+ return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
428
454
  },
429
455
  /**
430
456
  * This will update commission recipient.
431
457
  * @summary Update the commission recipient
458
+ * @param {string} code
432
459
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
433
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
461
  * @param {*} [options] Override http request option.
435
462
  * @throws {RequiredError}
436
463
  */
437
- updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
438
- return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
464
+ updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass> {
465
+ return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then((request) => request(axios, basePath));
439
466
  },
440
467
  };
441
468
  };
@@ -469,10 +496,10 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
469
496
  export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
470
497
  /**
471
498
  * Unique identifier for the object.
472
- * @type {any}
499
+ * @type {string}
473
500
  * @memberof CommissionRecipientsApiDeleteCommissionRecipient
474
501
  */
475
- readonly code: any
502
+ readonly code: string
476
503
 
477
504
  /**
478
505
  * Bearer Token: provided by the login endpoint under the name accessToken.
@@ -523,6 +550,20 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
523
550
  */
524
551
  readonly authorization?: string
525
552
 
553
+ /**
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof CommissionRecipientsApiListCommissionRecipients
557
+ */
558
+ readonly pageSize?: number
559
+
560
+ /**
561
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
562
+ * @type {string}
563
+ * @memberof CommissionRecipientsApiListCommissionRecipients
564
+ */
565
+ readonly pageToken?: string
566
+
526
567
  /**
527
568
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
528
569
  * @type {string}
@@ -531,11 +572,11 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
531
572
  readonly filter?: string
532
573
 
533
574
  /**
534
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
575
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
535
576
  * @type {string}
536
577
  * @memberof CommissionRecipientsApiListCommissionRecipients
537
578
  */
538
- readonly filters?: string
579
+ readonly search?: string
539
580
 
540
581
  /**
541
582
  * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt&lt;/i&gt;
@@ -550,6 +591,13 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
550
591
  * @memberof CommissionRecipientsApiListCommissionRecipients
551
592
  */
552
593
  readonly expand?: string
594
+
595
+ /**
596
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof CommissionRecipientsApiListCommissionRecipients
599
+ */
600
+ readonly filters?: string
553
601
  }
554
602
 
555
603
  /**
@@ -558,6 +606,13 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
558
606
  * @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
559
607
  */
560
608
  export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
613
+ */
614
+ readonly code: string
615
+
561
616
  /**
562
617
  *
563
618
  * @type {UpdateCommissionRecipientRequestDto}
@@ -617,7 +672,7 @@ export class CommissionRecipientsApi extends BaseAPI {
617
672
  }
618
673
 
619
674
  /**
620
- * Retrieves a list of commissionrecipients.
675
+ * Retrieves a list of commission recipients.
621
676
  * @summary List commission recipients
622
677
  * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
623
678
  * @param {*} [options] Override http request option.
@@ -625,7 +680,7 @@ export class CommissionRecipientsApi extends BaseAPI {
625
680
  * @memberof CommissionRecipientsApi
626
681
  */
627
682
  public listCommissionRecipients(requestParameters: CommissionRecipientsApiListCommissionRecipientsRequest = {}, options?: AxiosRequestConfig) {
628
- return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
683
+ return CommissionRecipientsApiFp(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
629
684
  }
630
685
 
631
686
  /**
@@ -637,6 +692,6 @@ export class CommissionRecipientsApi extends BaseAPI {
637
692
  * @memberof CommissionRecipientsApi
638
693
  */
639
694
  public updateCommissionRecipient(requestParameters: CommissionRecipientsApiUpdateCommissionRecipientRequest, options?: AxiosRequestConfig) {
640
- return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
695
+ return CommissionRecipientsApiFp(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
641
696
  }
642
697
  }
@@ -57,13 +57,12 @@ export declare const CommissionAgreementProductsApiAxiosParamCreator: (configura
57
57
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
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
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;
60
- * @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;
61
- * @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, productSlug, status&lt;/i&gt;
60
+ * @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;
62
61
  * @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;
63
62
  * @param {*} [options] Override http request option.
64
63
  * @throws {RequiredError}
65
64
  */
66
- listCommissionAgreementProducts: (authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
65
+ listCommissionAgreementProducts: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
67
66
  /**
68
67
  * This will update commission agreement product.
69
68
  * @summary Update the commission agreement product
@@ -114,13 +113,12 @@ export declare const CommissionAgreementProductsApiFp: (configuration?: Configur
114
113
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
115
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;
116
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 {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;
118
- * @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, productSlug, status&lt;/i&gt;
116
+ * @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;
119
117
  * @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;
120
118
  * @param {*} [options] Override http request option.
121
119
  * @throws {RequiredError}
122
120
  */
123
- listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>>;
121
+ listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>>;
124
122
  /**
125
123
  * This will update commission agreement product.
126
124
  * @summary Update the commission agreement product
@@ -171,13 +169,12 @@ export declare const CommissionAgreementProductsApiFactory: (configuration?: Con
171
169
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
172
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;
173
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;
174
- * @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;
175
- * @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, productSlug, status&lt;/i&gt;
172
+ * @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;
176
173
  * @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;
177
174
  * @param {*} [options] Override http request option.
178
175
  * @throws {RequiredError}
179
176
  */
180
- listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass>;
177
+ listCommissionAgreementProducts(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass>;
181
178
  /**
182
179
  * This will update commission agreement product.
183
180
  * @summary Update the commission agreement product
@@ -277,13 +274,7 @@ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRe
277
274
  */
278
275
  readonly filters?: string;
279
276
  /**
280
- * 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;
281
- * @type {string}
282
- * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
283
- */
284
- readonly search?: string;
285
- /**
286
- * 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, productSlug, status&lt;/i&gt;
277
+ * 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;
287
278
  * @type {string}
288
279
  * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
289
280
  */
@@ -253,13 +253,12 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
253
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
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
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;
256
- * @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;
257
- * @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, productSlug, status&lt;/i&gt;
256
+ * @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;
258
257
  * @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;
259
258
  * @param {*} [options] Override http request option.
260
259
  * @throws {RequiredError}
261
260
  */
262
- listCommissionAgreementProducts: function (authorization, filter, filters, search, order, expand, options) {
261
+ listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
263
262
  if (options === void 0) { options = {}; }
264
263
  return __awaiter(_this, void 0, void 0, function () {
265
264
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -288,9 +287,6 @@ var CommissionAgreementProductsApiAxiosParamCreator = function (configuration) {
288
287
  if (filters !== undefined) {
289
288
  localVarQueryParameter['filters'] = filters;
290
289
  }
291
- if (search !== undefined) {
292
- localVarQueryParameter['search'] = search;
293
- }
294
290
  if (order !== undefined) {
295
291
  localVarQueryParameter['order'] = order;
296
292
  }
@@ -444,18 +440,17 @@ var CommissionAgreementProductsApiFp = function (configuration) {
444
440
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
445
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;
446
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;
447
- * @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;
448
- * @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, productSlug, status&lt;/i&gt;
443
+ * @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;
449
444
  * @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;
450
445
  * @param {*} [options] Override http request option.
451
446
  * @throws {RequiredError}
452
447
  */
453
- listCommissionAgreementProducts: function (authorization, filter, filters, search, order, expand, options) {
448
+ listCommissionAgreementProducts: function (authorization, filter, filters, order, expand, options) {
454
449
  return __awaiter(this, void 0, void 0, function () {
455
450
  var localVarAxiosArgs;
456
451
  return __generator(this, function (_a) {
457
452
  switch (_a.label) {
458
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options)];
453
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, filter, filters, order, expand, options)];
459
454
  case 1:
460
455
  localVarAxiosArgs = _a.sent();
461
456
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -535,14 +530,13 @@ var CommissionAgreementProductsApiFactory = function (configuration, basePath, a
535
530
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
536
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;
537
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;
538
- * @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;
539
- * @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, productSlug, status&lt;/i&gt;
533
+ * @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;
540
534
  * @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;
541
535
  * @param {*} [options] Override http request option.
542
536
  * @throws {RequiredError}
543
537
  */
544
- listCommissionAgreementProducts: function (authorization, filter, filters, search, order, expand, options) {
545
- return localVarFp.listCommissionAgreementProducts(authorization, filter, filters, search, order, expand, options).then(function (request) { return request(axios, basePath); });
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); });
546
540
  },
547
541
  /**
548
542
  * This will update commission agreement product.
@@ -617,7 +611,7 @@ var CommissionAgreementProductsApi = /** @class */ (function (_super) {
617
611
  CommissionAgreementProductsApi.prototype.listCommissionAgreementProducts = function (requestParameters, options) {
618
612
  var _this = this;
619
613
  if (requestParameters === void 0) { requestParameters = {}; }
620
- return (0, exports.CommissionAgreementProductsApiFp)(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
621
615
  };
622
616
  /**
623
617
  * This will update commission agreement product.
@@ -35,12 +35,12 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
35
35
  /**
36
36
  * This will delete commission recipient.
37
37
  * @summary Delete the commission recipient
38
- * @param {any} code Unique identifier for the object.
38
+ * @param {string} code Unique identifier for the object.
39
39
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}
42
42
  */
43
- deleteCommissionRecipient: (code: any, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
+ deleteCommissionRecipient: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
44
  /**
45
45
  * This will get commission recipient.
46
46
  * @summary Retrieve the commission recipient
@@ -52,26 +52,30 @@ export declare const CommissionRecipientsApiAxiosParamCreator: (configuration?:
52
52
  */
53
53
  getCommissionRecipient: (code: string, expand: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
54
54
  /**
55
- * Retrieves a list of commissionrecipients.
55
+ * Retrieves a list of commission recipients.
56
56
  * @summary List commission recipients
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, displayName, partnerCode, 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, displayName, partnerCode, status, createdAt&lt;/i&gt;
61
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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&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;
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
62
65
  * @param {*} [options] Override http request option.
63
66
  * @throws {RequiredError}
64
67
  */
65
- listCommissionRecipients: (authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listCommissionRecipients: (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 recipient.
68
71
  * @summary Update the commission recipient
72
+ * @param {string} code
69
73
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
70
74
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
71
75
  * @param {*} [options] Override http request option.
72
76
  * @throws {RequiredError}
73
77
  */
74
- updateCommissionRecipient: (updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
+ updateCommissionRecipient: (code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
75
79
  };
76
80
  /**
77
81
  * CommissionRecipientsApi - functional programming interface
@@ -90,12 +94,12 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
90
94
  /**
91
95
  * This will delete commission recipient.
92
96
  * @summary Delete the commission recipient
93
- * @param {any} code Unique identifier for the object.
97
+ * @param {string} code Unique identifier for the object.
94
98
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
99
  * @param {*} [options] Override http request option.
96
100
  * @throws {RequiredError}
97
101
  */
98
- deleteCommissionRecipient(code: any, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
102
+ deleteCommissionRecipient(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
99
103
  /**
100
104
  * This will get commission recipient.
101
105
  * @summary Retrieve the commission recipient
@@ -107,26 +111,30 @@ export declare const CommissionRecipientsApiFp: (configuration?: Configuration)
107
111
  */
108
112
  getCommissionRecipient(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionRecipientResponseClass>>;
109
113
  /**
110
- * Retrieves a list of commissionrecipients.
114
+ * Retrieves a list of commission recipients.
111
115
  * @summary List commission recipients
112
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.
113
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
114
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
120
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
115
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&lt;/i&gt;
116
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;
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
117
124
  * @param {*} [options] Override http request option.
118
125
  * @throws {RequiredError}
119
126
  */
120
- listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>>;
127
+ listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionRecipientsResponseClass>>;
121
128
  /**
122
129
  * This will update commission recipient.
123
130
  * @summary Update the commission recipient
131
+ * @param {string} code
124
132
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
125
133
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
126
134
  * @param {*} [options] Override http request option.
127
135
  * @throws {RequiredError}
128
136
  */
129
- updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>>;
137
+ updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionRecipientResponseClass>>;
130
138
  };
131
139
  /**
132
140
  * CommissionRecipientsApi - factory interface
@@ -145,12 +153,12 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
145
153
  /**
146
154
  * This will delete commission recipient.
147
155
  * @summary Delete the commission recipient
148
- * @param {any} code Unique identifier for the object.
156
+ * @param {string} code Unique identifier for the object.
149
157
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
150
158
  * @param {*} [options] Override http request option.
151
159
  * @throws {RequiredError}
152
160
  */
153
- deleteCommissionRecipient(code: any, authorization?: string, options?: any): AxiosPromise<void>;
161
+ deleteCommissionRecipient(code: string, authorization?: string, options?: any): AxiosPromise<void>;
154
162
  /**
155
163
  * This will get commission recipient.
156
164
  * @summary Retrieve the commission recipient
@@ -162,26 +170,30 @@ export declare const CommissionRecipientsApiFactory: (configuration?: Configurat
162
170
  */
163
171
  getCommissionRecipient(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionRecipientResponseClass>;
164
172
  /**
165
- * Retrieves a list of commissionrecipients.
173
+ * Retrieves a list of commission recipients.
166
174
  * @summary List commission recipients
167
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.
168
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
169
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
179
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
170
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&lt;/i&gt;
171
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;
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
172
183
  * @param {*} [options] Override http request option.
173
184
  * @throws {RequiredError}
174
185
  */
175
- listCommissionRecipients(authorization?: string, filter?: string, filters?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass>;
186
+ listCommissionRecipients(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionRecipientsResponseClass>;
176
187
  /**
177
188
  * This will update commission recipient.
178
189
  * @summary Update the commission recipient
190
+ * @param {string} code
179
191
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
180
192
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
181
193
  * @param {*} [options] Override http request option.
182
194
  * @throws {RequiredError}
183
195
  */
184
- updateCommissionRecipient(updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass>;
196
+ updateCommissionRecipient(code: string, updateCommissionRecipientRequestDto: UpdateCommissionRecipientRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionRecipientResponseClass>;
185
197
  };
186
198
  /**
187
199
  * Request parameters for createCommissionRecipient operation in CommissionRecipientsApi.
@@ -210,10 +222,10 @@ export interface CommissionRecipientsApiCreateCommissionRecipientRequest {
210
222
  export interface CommissionRecipientsApiDeleteCommissionRecipientRequest {
211
223
  /**
212
224
  * Unique identifier for the object.
213
- * @type {any}
225
+ * @type {string}
214
226
  * @memberof CommissionRecipientsApiDeleteCommissionRecipient
215
227
  */
216
- readonly code: any;
228
+ readonly code: string;
217
229
  /**
218
230
  * Bearer Token: provided by the login endpoint under the name accessToken.
219
231
  * @type {string}
@@ -258,6 +270,18 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
258
270
  * @memberof CommissionRecipientsApiListCommissionRecipients
259
271
  */
260
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 CommissionRecipientsApiListCommissionRecipients
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 CommissionRecipientsApiListCommissionRecipients
283
+ */
284
+ readonly pageToken?: string;
261
285
  /**
262
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
263
287
  * @type {string}
@@ -265,11 +289,11 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
265
289
  */
266
290
  readonly filter?: string;
267
291
  /**
268
- * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
292
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
269
293
  * @type {string}
270
294
  * @memberof CommissionRecipientsApiListCommissionRecipients
271
295
  */
272
- readonly filters?: string;
296
+ readonly search?: string;
273
297
  /**
274
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&lt;/i&gt;
275
299
  * @type {string}
@@ -282,6 +306,12 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
282
306
  * @memberof CommissionRecipientsApiListCommissionRecipients
283
307
  */
284
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
311
+ * @type {string}
312
+ * @memberof CommissionRecipientsApiListCommissionRecipients
313
+ */
314
+ readonly filters?: string;
285
315
  }
286
316
  /**
287
317
  * Request parameters for updateCommissionRecipient operation in CommissionRecipientsApi.
@@ -289,6 +319,12 @@ export interface CommissionRecipientsApiListCommissionRecipientsRequest {
289
319
  * @interface CommissionRecipientsApiUpdateCommissionRecipientRequest
290
320
  */
291
321
  export interface CommissionRecipientsApiUpdateCommissionRecipientRequest {
322
+ /**
323
+ *
324
+ * @type {string}
325
+ * @memberof CommissionRecipientsApiUpdateCommissionRecipient
326
+ */
327
+ readonly code: string;
292
328
  /**
293
329
  *
294
330
  * @type {UpdateCommissionRecipientRequestDto}
@@ -337,7 +373,7 @@ export declare class CommissionRecipientsApi extends BaseAPI {
337
373
  */
338
374
  getCommissionRecipient(requestParameters: CommissionRecipientsApiGetCommissionRecipientRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetCommissionRecipientResponseClass, any, {}>>;
339
375
  /**
340
- * Retrieves a list of commissionrecipients.
376
+ * Retrieves a list of commission recipients.
341
377
  * @summary List commission recipients
342
378
  * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
343
379
  * @param {*} [options] Override http request option.
@@ -148,7 +148,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
148
148
  /**
149
149
  * This will delete commission recipient.
150
150
  * @summary Delete the commission recipient
151
- * @param {any} code Unique identifier for the object.
151
+ * @param {string} code Unique identifier for the object.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
@@ -162,7 +162,7 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
162
162
  case 0:
163
163
  // verify required parameter 'code' is not null or undefined
164
164
  (0, common_1.assertParamExists)('deleteCommissionRecipient', 'code', code);
165
- localVarPath = "/commissionservice/v1/commission-recipients"
165
+ localVarPath = "/commissionservice/v1/commission-recipients/{code}"
166
166
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
167
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
168
168
  if (configuration) {
@@ -248,17 +248,20 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
248
248
  });
249
249
  },
250
250
  /**
251
- * Retrieves a list of commissionrecipients.
251
+ * Retrieves a list of commission recipients.
252
252
  * @summary List commission recipients
253
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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.
254
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, displayName, partnerCode, 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, displayName, partnerCode, status, createdAt&lt;/i&gt;
257
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
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&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;
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
258
261
  * @param {*} [options] Override http request option.
259
262
  * @throws {RequiredError}
260
263
  */
261
- listCommissionRecipients: function (authorization, filter, filters, order, expand, options) {
264
+ listCommissionRecipients: 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 CommissionRecipientsApiAxiosParamCreator = 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 CommissionRecipientsApiAxiosParamCreator = 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
  }
@@ -310,21 +322,25 @@ var CommissionRecipientsApiAxiosParamCreator = function (configuration) {
310
322
  /**
311
323
  * This will update commission recipient.
312
324
  * @summary Update the commission recipient
325
+ * @param {string} code
313
326
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
314
327
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
315
328
  * @param {*} [options] Override http request option.
316
329
  * @throws {RequiredError}
317
330
  */
318
- updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
331
+ updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
319
332
  if (options === void 0) { options = {}; }
320
333
  return __awaiter(_this, void 0, void 0, function () {
321
334
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
322
335
  return __generator(this, function (_a) {
323
336
  switch (_a.label) {
324
337
  case 0:
338
+ // verify required parameter 'code' is not null or undefined
339
+ (0, common_1.assertParamExists)('updateCommissionRecipient', 'code', code);
325
340
  // verify required parameter 'updateCommissionRecipientRequestDto' is not null or undefined
326
341
  (0, common_1.assertParamExists)('updateCommissionRecipient', 'updateCommissionRecipientRequestDto', updateCommissionRecipientRequestDto);
327
- localVarPath = "/commissionservice/v1/commission-recipients";
342
+ localVarPath = "/commissionservice/v1/commission-recipients/{code}"
343
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
328
344
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
329
345
  if (configuration) {
330
346
  baseOptions = configuration.baseOptions;
@@ -390,7 +406,7 @@ var CommissionRecipientsApiFp = function (configuration) {
390
406
  /**
391
407
  * This will delete commission recipient.
392
408
  * @summary Delete the commission recipient
393
- * @param {any} code Unique identifier for the object.
409
+ * @param {string} code Unique identifier for the object.
394
410
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
395
411
  * @param {*} [options] Override http request option.
396
412
  * @throws {RequiredError}
@@ -431,22 +447,25 @@ var CommissionRecipientsApiFp = function (configuration) {
431
447
  });
432
448
  },
433
449
  /**
434
- * Retrieves a list of commissionrecipients.
450
+ * Retrieves a list of commission recipients.
435
451
  * @summary List commission recipients
436
452
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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.
437
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
438
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
456
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
439
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&lt;/i&gt;
440
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;
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
441
460
  * @param {*} [options] Override http request option.
442
461
  * @throws {RequiredError}
443
462
  */
444
- listCommissionRecipients: function (authorization, filter, filters, order, expand, options) {
463
+ listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
445
464
  return __awaiter(this, void 0, void 0, function () {
446
465
  var localVarAxiosArgs;
447
466
  return __generator(this, function (_a) {
448
467
  switch (_a.label) {
449
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, filter, filters, order, expand, options)];
468
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
450
469
  case 1:
451
470
  localVarAxiosArgs = _a.sent();
452
471
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -457,17 +476,18 @@ var CommissionRecipientsApiFp = function (configuration) {
457
476
  /**
458
477
  * This will update commission recipient.
459
478
  * @summary Update the commission recipient
479
+ * @param {string} code
460
480
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
461
481
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
462
482
  * @param {*} [options] Override http request option.
463
483
  * @throws {RequiredError}
464
484
  */
465
- updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
485
+ updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
466
486
  return __awaiter(this, void 0, void 0, function () {
467
487
  var localVarAxiosArgs;
468
488
  return __generator(this, function (_a) {
469
489
  switch (_a.label) {
470
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options)];
490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options)];
471
491
  case 1:
472
492
  localVarAxiosArgs = _a.sent();
473
493
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -499,7 +519,7 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
499
519
  /**
500
520
  * This will delete commission recipient.
501
521
  * @summary Delete the commission recipient
502
- * @param {any} code Unique identifier for the object.
522
+ * @param {string} code Unique identifier for the object.
503
523
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
504
524
  * @param {*} [options] Override http request option.
505
525
  * @throws {RequiredError}
@@ -520,29 +540,33 @@ var CommissionRecipientsApiFactory = function (configuration, basePath, axios) {
520
540
  return localVarFp.getCommissionRecipient(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
521
541
  },
522
542
  /**
523
- * Retrieves a list of commissionrecipients.
543
+ * Retrieves a list of commission recipients.
524
544
  * @summary List commission recipients
525
545
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
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.
526
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
527
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, displayName, partnerCode, status, createdAt&lt;/i&gt;
549
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
528
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&lt;/i&gt;
529
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;
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, displayName, partnerCode, status, createdAt&lt;/i&gt;
530
553
  * @param {*} [options] Override http request option.
531
554
  * @throws {RequiredError}
532
555
  */
533
- listCommissionRecipients: function (authorization, filter, filters, order, expand, options) {
534
- return localVarFp.listCommissionRecipients(authorization, filter, filters, order, expand, options).then(function (request) { return request(axios, basePath); });
556
+ listCommissionRecipients: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
+ return localVarFp.listCommissionRecipients(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
535
558
  },
536
559
  /**
537
560
  * This will update commission recipient.
538
561
  * @summary Update the commission recipient
562
+ * @param {string} code
539
563
  * @param {UpdateCommissionRecipientRequestDto} updateCommissionRecipientRequestDto
540
564
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
541
565
  * @param {*} [options] Override http request option.
542
566
  * @throws {RequiredError}
543
567
  */
544
- updateCommissionRecipient: function (updateCommissionRecipientRequestDto, authorization, options) {
545
- return localVarFp.updateCommissionRecipient(updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
568
+ updateCommissionRecipient: function (code, updateCommissionRecipientRequestDto, authorization, options) {
569
+ return localVarFp.updateCommissionRecipient(code, updateCommissionRecipientRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
546
570
  },
547
571
  };
548
572
  };
@@ -595,7 +619,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
595
619
  return (0, exports.CommissionRecipientsApiFp)(this.configuration).getCommissionRecipient(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
620
  };
597
621
  /**
598
- * Retrieves a list of commissionrecipients.
622
+ * Retrieves a list of commission recipients.
599
623
  * @summary List commission recipients
600
624
  * @param {CommissionRecipientsApiListCommissionRecipientsRequest} requestParameters Request parameters.
601
625
  * @param {*} [options] Override http request option.
@@ -605,7 +629,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
605
629
  CommissionRecipientsApi.prototype.listCommissionRecipients = function (requestParameters, options) {
606
630
  var _this = this;
607
631
  if (requestParameters === void 0) { requestParameters = {}; }
608
- return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(requestParameters.authorization, requestParameters.filter, requestParameters.filters, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).listCommissionRecipients(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); });
609
633
  };
610
634
  /**
611
635
  * This will update commission recipient.
@@ -617,7 +641,7 @@ var CommissionRecipientsApi = /** @class */ (function (_super) {
617
641
  */
618
642
  CommissionRecipientsApi.prototype.updateCommissionRecipient = function (requestParameters, options) {
619
643
  var _this = this;
620
- return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
644
+ return (0, exports.CommissionRecipientsApiFp)(this.configuration).updateCommissionRecipient(requestParameters.code, requestParameters.updateCommissionRecipientRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
621
645
  };
622
646
  return CommissionRecipientsApi;
623
647
  }(base_1.BaseAPI));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk-node",
3
- "version": "1.0.0-beta.5",
3
+ "version": "1.0.0-beta.7",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [