@emilgroup/commission-sdk 2.10.1-beta.6 → 2.10.1-beta.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (85) hide show
  1. package/.openapi-generator/FILES +13 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-rules-api.ts +20 -6
  4. package/api/commission-settlements-api.ts +8 -8
  5. package/api/commissions-api.ts +376 -0
  6. package/dist/api/commission-agreement-rules-api.d.ts +12 -3
  7. package/dist/api/commission-agreement-rules-api.js +12 -6
  8. package/dist/api/commission-settlements-api.d.ts +8 -8
  9. package/dist/api/commission-settlements-api.js +3 -3
  10. package/dist/api/commissions-api.d.ts +220 -0
  11. package/dist/api/commissions-api.js +258 -0
  12. package/dist/models/clawback-config-class.d.ts +42 -0
  13. package/dist/models/clawback-config-class.js +15 -0
  14. package/dist/models/clawback-config-dto.d.ts +12 -6
  15. package/dist/models/commission-agreement-class.d.ts +2 -2
  16. package/dist/models/commission-agreement-class.js +1 -1
  17. package/dist/models/commission-agreement-version-class.d.ts +4 -4
  18. package/dist/models/commission-agreement-version-config-class.d.ts +32 -0
  19. package/dist/models/commission-agreement-version-config-class.js +15 -0
  20. package/dist/models/commission-agreement-version-config-dto.d.ts +32 -0
  21. package/dist/models/commission-agreement-version-config-dto.js +15 -0
  22. package/dist/models/commission-class.d.ts +13 -6
  23. package/dist/models/commission-class.js +2 -1
  24. package/dist/models/commission-creation-config-class.d.ts +43 -0
  25. package/dist/models/commission-creation-config-class.js +20 -0
  26. package/dist/models/commission-creation-config-dto.d.ts +43 -0
  27. package/dist/models/commission-creation-config-dto.js +20 -0
  28. package/dist/models/commission-creation-invoice-config-class.d.ts +24 -0
  29. package/dist/models/commission-creation-invoice-config-class.js +15 -0
  30. package/dist/models/commission-creation-invoice-config-dto.d.ts +24 -0
  31. package/dist/models/commission-creation-invoice-config-dto.js +15 -0
  32. package/dist/models/commission-creation-renewal-config-class.d.ts +29 -0
  33. package/dist/models/commission-creation-renewal-config-class.js +20 -0
  34. package/dist/models/commission-creation-renewal-config-dto.d.ts +29 -0
  35. package/dist/models/commission-creation-renewal-config-dto.js +20 -0
  36. package/dist/models/commission-paid-invoice-entry-class.d.ts +115 -0
  37. package/dist/models/commission-paid-invoice-entry-class.js +22 -0
  38. package/dist/models/create-commission-agreement-request-dto.d.ts +5 -5
  39. package/dist/models/create-commission-agreement-request-dto.js +1 -1
  40. package/dist/models/create-commission-agreement-version-request-dto.d.ts +4 -4
  41. package/dist/models/create-commission-candidate-request-dto.d.ts +13 -1
  42. package/dist/models/create-commission-clawback-response-class.d.ts +4 -6
  43. package/dist/models/create-commission-clawback-response-class.js +3 -5
  44. package/dist/models/create-commission-request-dto.d.ts +6 -0
  45. package/dist/models/index.d.ts +13 -0
  46. package/dist/models/index.js +13 -0
  47. package/dist/models/list-commission-agreement-versions-response-class.d.ts +10 -10
  48. package/dist/models/list-commission-agreements-response-class.d.ts +10 -10
  49. package/dist/models/list-commission-paid-invoice-entries-response-class.d.ts +43 -0
  50. package/dist/models/list-commission-paid-invoice-entries-response-class.js +15 -0
  51. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.d.ts +43 -0
  52. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.js +15 -0
  53. package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +110 -0
  54. package/dist/models/scheduled-commission-clawback-trigger-class.js +28 -0
  55. package/dist/models/trigger-due-commission-clawbacks-request-dto.d.ts +1 -1
  56. package/dist/models/update-commission-agreement-request-dto.d.ts +2 -2
  57. package/dist/models/update-commission-agreement-request-dto.js +1 -1
  58. package/models/clawback-config-class.ts +48 -0
  59. package/models/clawback-config-dto.ts +12 -6
  60. package/models/commission-agreement-class.ts +2 -2
  61. package/models/commission-agreement-version-class.ts +4 -4
  62. package/models/commission-agreement-version-config-class.ts +38 -0
  63. package/models/commission-agreement-version-config-dto.ts +38 -0
  64. package/models/commission-class.ts +14 -7
  65. package/models/commission-creation-config-class.ts +52 -0
  66. package/models/commission-creation-config-dto.ts +52 -0
  67. package/models/commission-creation-invoice-config-class.ts +30 -0
  68. package/models/commission-creation-invoice-config-dto.ts +30 -0
  69. package/models/commission-creation-renewal-config-class.ts +38 -0
  70. package/models/commission-creation-renewal-config-dto.ts +38 -0
  71. package/models/commission-paid-invoice-entry-class.ts +124 -0
  72. package/models/create-commission-agreement-request-dto.ts +5 -5
  73. package/models/create-commission-agreement-version-request-dto.ts +4 -4
  74. package/models/create-commission-candidate-request-dto.ts +13 -1
  75. package/models/create-commission-clawback-response-class.ts +4 -6
  76. package/models/create-commission-request-dto.ts +6 -0
  77. package/models/index.ts +13 -0
  78. package/models/list-commission-agreement-versions-response-class.ts +10 -10
  79. package/models/list-commission-agreements-response-class.ts +10 -10
  80. package/models/list-commission-paid-invoice-entries-response-class.ts +49 -0
  81. package/models/list-scheduled-commission-clawback-triggers-response-class.ts +49 -0
  82. package/models/scheduled-commission-clawback-trigger-class.ts +120 -0
  83. package/models/trigger-due-commission-clawbacks-request-dto.ts +1 -1
  84. package/models/update-commission-agreement-request-dto.ts +2 -2
  85. package/package.json +1 -1
@@ -35,8 +35,12 @@ import { EstimateCommissionsResponseClass } from '../models';
35
35
  // @ts-ignore
36
36
  import { GetCommissionResponseClass } from '../models';
37
37
  // @ts-ignore
38
+ import { ListCommissionPaidInvoiceEntriesResponseClass } from '../models';
39
+ // @ts-ignore
38
40
  import { ListCommissionsResponseClass } from '../models';
39
41
  // @ts-ignore
42
+ import { ListScheduledCommissionClawbackTriggersResponseClass } from '../models';
43
+ // @ts-ignore
40
44
  import { TriggerDueCommissionClawbacksRequestDto } from '../models';
41
45
  // @ts-ignore
42
46
  import { TriggerDueCommissionClawbacksResponseClass } from '../models';
@@ -283,6 +287,82 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
283
287
 
284
288
 
285
289
 
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
+
294
+ return {
295
+ url: toPathString(localVarUrlObj),
296
+ options: localVarRequestOptions,
297
+ };
298
+ },
299
+ /**
300
+ * Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
301
+ * @summary List commission paid invoice entries
302
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
303
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
304
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
305
+ * @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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
306
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
307
+ * @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: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo</i>
308
+ * @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/>
309
+ * @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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
310
+ * @param {*} [options] Override http request option.
311
+ * @throws {RequiredError}
312
+ */
313
+ listCommissionPaidInvoiceEntries: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
314
+ const localVarPath = `/commissionservice/v1/commissions/paid-invoice-entries`;
315
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
316
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
317
+ let baseOptions;
318
+ let baseAccessToken;
319
+ if (configuration) {
320
+ baseOptions = configuration.baseOptions;
321
+ baseAccessToken = configuration.accessToken;
322
+ }
323
+
324
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
325
+ const localVarHeaderParameter = {} as any;
326
+ const localVarQueryParameter = {} as any;
327
+
328
+ // authentication bearer required
329
+ // http bearer authentication required
330
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
331
+
332
+ if (pageSize !== undefined) {
333
+ localVarQueryParameter['pageSize'] = pageSize;
334
+ }
335
+
336
+ if (pageToken !== undefined) {
337
+ localVarQueryParameter['pageToken'] = pageToken;
338
+ }
339
+
340
+ if (filter !== undefined) {
341
+ localVarQueryParameter['filter'] = filter;
342
+ }
343
+
344
+ if (search !== undefined) {
345
+ localVarQueryParameter['search'] = search;
346
+ }
347
+
348
+ if (order !== undefined) {
349
+ localVarQueryParameter['order'] = order;
350
+ }
351
+
352
+ if (expand !== undefined) {
353
+ localVarQueryParameter['expand'] = expand;
354
+ }
355
+
356
+ if (filters !== undefined) {
357
+ localVarQueryParameter['filters'] = filters;
358
+ }
359
+
360
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
361
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
362
+ }
363
+
364
+
365
+
286
366
  setSearchParams(localVarUrlObj, localVarQueryParameter);
287
367
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
288
368
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -359,6 +439,82 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
359
439
 
360
440
 
361
441
 
442
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
443
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
444
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
445
+
446
+ return {
447
+ url: toPathString(localVarUrlObj),
448
+ options: localVarRequestOptions,
449
+ };
450
+ },
451
+ /**
452
+ * Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
453
+ * @summary List scheduled commission clawback triggers
454
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
456
+ * @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.
457
+ * @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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
458
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
459
+ * @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: id, effectiveDate, queuedAt, createdAt, updatedAt&lt;/i&gt;
460
+ * @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;
461
+ * @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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
462
+ * @param {*} [options] Override http request option.
463
+ * @throws {RequiredError}
464
+ */
465
+ listScheduledCommissionClawbackTriggers: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
466
+ const localVarPath = `/commissionservice/v1/commissions/clawbacks/scheduled-triggers`;
467
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
468
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
469
+ let baseOptions;
470
+ let baseAccessToken;
471
+ if (configuration) {
472
+ baseOptions = configuration.baseOptions;
473
+ baseAccessToken = configuration.accessToken;
474
+ }
475
+
476
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
477
+ const localVarHeaderParameter = {} as any;
478
+ const localVarQueryParameter = {} as any;
479
+
480
+ // authentication bearer required
481
+ // http bearer authentication required
482
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
483
+
484
+ if (pageSize !== undefined) {
485
+ localVarQueryParameter['pageSize'] = pageSize;
486
+ }
487
+
488
+ if (pageToken !== undefined) {
489
+ localVarQueryParameter['pageToken'] = pageToken;
490
+ }
491
+
492
+ if (filter !== undefined) {
493
+ localVarQueryParameter['filter'] = filter;
494
+ }
495
+
496
+ if (search !== undefined) {
497
+ localVarQueryParameter['search'] = search;
498
+ }
499
+
500
+ if (order !== undefined) {
501
+ localVarQueryParameter['order'] = order;
502
+ }
503
+
504
+ if (expand !== undefined) {
505
+ localVarQueryParameter['expand'] = expand;
506
+ }
507
+
508
+ if (filters !== undefined) {
509
+ localVarQueryParameter['filters'] = filters;
510
+ }
511
+
512
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
513
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
514
+ }
515
+
516
+
517
+
362
518
  setSearchParams(localVarUrlObj, localVarQueryParameter);
363
519
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
520
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -538,6 +694,24 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
538
694
  const localVarAxiosArgs = await localVarAxiosParamCreator.getCommission(code, expand, authorization, options);
539
695
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
540
696
  },
697
+ /**
698
+ * Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
699
+ * @summary List commission paid invoice entries
700
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
701
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
702
+ * @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.
703
+ * @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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
704
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
705
+ * @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: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo&lt;/i&gt;
706
+ * @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;
707
+ * @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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
708
+ * @param {*} [options] Override http request option.
709
+ * @throws {RequiredError}
710
+ */
711
+ async listCommissionPaidInvoiceEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionPaidInvoiceEntriesResponseClass>> {
712
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionPaidInvoiceEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
713
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
714
+ },
541
715
  /**
542
716
  * Retrieves a list of commissions.
543
717
  * @summary List commissions
@@ -556,6 +730,24 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
556
730
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
557
731
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
558
732
  },
733
+ /**
734
+ * Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
735
+ * @summary List scheduled commission clawback triggers
736
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
737
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
738
+ * @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.
739
+ * @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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
740
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
741
+ * @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: id, effectiveDate, queuedAt, createdAt, updatedAt&lt;/i&gt;
742
+ * @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;
743
+ * @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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
744
+ * @param {*} [options] Override http request option.
745
+ * @throws {RequiredError}
746
+ */
747
+ async listScheduledCommissionClawbackTriggers(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListScheduledCommissionClawbackTriggersResponseClass>> {
748
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listScheduledCommissionClawbackTriggers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
749
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
750
+ },
559
751
  /**
560
752
  * Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
561
753
  * @summary Create the due commission clawbacks trigger
@@ -648,6 +840,23 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
648
840
  getCommission(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionResponseClass> {
649
841
  return localVarFp.getCommission(code, expand, authorization, options).then((request) => request(axios, basePath));
650
842
  },
843
+ /**
844
+ * Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
845
+ * @summary List commission paid invoice entries
846
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
847
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
848
+ * @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.
849
+ * @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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
850
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
851
+ * @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: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo&lt;/i&gt;
852
+ * @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;
853
+ * @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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
854
+ * @param {*} [options] Override http request option.
855
+ * @throws {RequiredError}
856
+ */
857
+ listCommissionPaidInvoiceEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionPaidInvoiceEntriesResponseClass> {
858
+ return localVarFp.listCommissionPaidInvoiceEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
859
+ },
651
860
  /**
652
861
  * Retrieves a list of commissions.
653
862
  * @summary List commissions
@@ -665,6 +874,23 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
665
874
  listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'openedAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'openedAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass> {
666
875
  return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
667
876
  },
877
+ /**
878
+ * Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
879
+ * @summary List scheduled commission clawback triggers
880
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
881
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
882
+ * @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.
883
+ * @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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
884
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
885
+ * @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: id, effectiveDate, queuedAt, createdAt, updatedAt&lt;/i&gt;
886
+ * @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;
887
+ * @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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
888
+ * @param {*} [options] Override http request option.
889
+ * @throws {RequiredError}
890
+ */
891
+ listScheduledCommissionClawbackTriggers(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListScheduledCommissionClawbackTriggersResponseClass> {
892
+ return localVarFp.listScheduledCommissionClawbackTriggers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
893
+ },
668
894
  /**
669
895
  * Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
670
896
  * @summary Create the due commission clawbacks trigger
@@ -810,6 +1036,69 @@ export interface CommissionsApiGetCommissionRequest {
810
1036
  readonly authorization?: string
811
1037
  }
812
1038
 
1039
+ /**
1040
+ * Request parameters for listCommissionPaidInvoiceEntries operation in CommissionsApi.
1041
+ * @export
1042
+ * @interface CommissionsApiListCommissionPaidInvoiceEntriesRequest
1043
+ */
1044
+ export interface CommissionsApiListCommissionPaidInvoiceEntriesRequest {
1045
+ /**
1046
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1047
+ * @type {string}
1048
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1049
+ */
1050
+ readonly authorization?: string
1051
+
1052
+ /**
1053
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1054
+ * @type {number}
1055
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1056
+ */
1057
+ readonly pageSize?: number
1058
+
1059
+ /**
1060
+ * 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.
1061
+ * @type {string}
1062
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1063
+ */
1064
+ readonly pageToken?: string
1065
+
1066
+ /**
1067
+ * 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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1068
+ * @type {string}
1069
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1070
+ */
1071
+ readonly filter?: string
1072
+
1073
+ /**
1074
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1075
+ * @type {string}
1076
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1077
+ */
1078
+ readonly search?: string
1079
+
1080
+ /**
1081
+ * 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: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo&lt;/i&gt;
1082
+ * @type {string}
1083
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1084
+ */
1085
+ readonly order?: string
1086
+
1087
+ /**
1088
+ * 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;
1089
+ * @type {string}
1090
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1091
+ */
1092
+ readonly expand?: string
1093
+
1094
+ /**
1095
+ * 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, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1096
+ * @type {string}
1097
+ * @memberof CommissionsApiListCommissionPaidInvoiceEntries
1098
+ */
1099
+ readonly filters?: string
1100
+ }
1101
+
813
1102
  /**
814
1103
  * Request parameters for listCommissions operation in CommissionsApi.
815
1104
  * @export
@@ -873,6 +1162,69 @@ export interface CommissionsApiListCommissionsRequest {
873
1162
  readonly filters?: string
874
1163
  }
875
1164
 
1165
+ /**
1166
+ * Request parameters for listScheduledCommissionClawbackTriggers operation in CommissionsApi.
1167
+ * @export
1168
+ * @interface CommissionsApiListScheduledCommissionClawbackTriggersRequest
1169
+ */
1170
+ export interface CommissionsApiListScheduledCommissionClawbackTriggersRequest {
1171
+ /**
1172
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1173
+ * @type {string}
1174
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1175
+ */
1176
+ readonly authorization?: string
1177
+
1178
+ /**
1179
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1180
+ * @type {number}
1181
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1182
+ */
1183
+ readonly pageSize?: number
1184
+
1185
+ /**
1186
+ * 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.
1187
+ * @type {string}
1188
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1189
+ */
1190
+ readonly pageToken?: string
1191
+
1192
+ /**
1193
+ * 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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1194
+ * @type {string}
1195
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1196
+ */
1197
+ readonly filter?: string
1198
+
1199
+ /**
1200
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1201
+ * @type {string}
1202
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1203
+ */
1204
+ readonly search?: string
1205
+
1206
+ /**
1207
+ * 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: id, effectiveDate, queuedAt, createdAt, updatedAt&lt;/i&gt;
1208
+ * @type {string}
1209
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1210
+ */
1211
+ readonly order?: string
1212
+
1213
+ /**
1214
+ * 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;
1215
+ * @type {string}
1216
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1217
+ */
1218
+ readonly expand?: string
1219
+
1220
+ /**
1221
+ * 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, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy&lt;/i&gt;
1222
+ * @type {string}
1223
+ * @memberof CommissionsApiListScheduledCommissionClawbackTriggers
1224
+ */
1225
+ readonly filters?: string
1226
+ }
1227
+
876
1228
  /**
877
1229
  * Request parameters for triggerDueCommissionClawbacks operation in CommissionsApi.
878
1230
  * @export
@@ -989,6 +1341,18 @@ export class CommissionsApi extends BaseAPI {
989
1341
  return CommissionsApiFp(this.configuration).getCommission(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
990
1342
  }
991
1343
 
1344
+ /**
1345
+ * Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
1346
+ * @summary List commission paid invoice entries
1347
+ * @param {CommissionsApiListCommissionPaidInvoiceEntriesRequest} requestParameters Request parameters.
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ * @memberof CommissionsApi
1351
+ */
1352
+ public listCommissionPaidInvoiceEntries(requestParameters: CommissionsApiListCommissionPaidInvoiceEntriesRequest = {}, options?: AxiosRequestConfig) {
1353
+ return CommissionsApiFp(this.configuration).listCommissionPaidInvoiceEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1354
+ }
1355
+
992
1356
  /**
993
1357
  * Retrieves a list of commissions.
994
1358
  * @summary List commissions
@@ -1001,6 +1365,18 @@ export class CommissionsApi extends BaseAPI {
1001
1365
  return CommissionsApiFp(this.configuration).listCommissions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1002
1366
  }
1003
1367
 
1368
+ /**
1369
+ * Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
1370
+ * @summary List scheduled commission clawback triggers
1371
+ * @param {CommissionsApiListScheduledCommissionClawbackTriggersRequest} requestParameters Request parameters.
1372
+ * @param {*} [options] Override http request option.
1373
+ * @throws {RequiredError}
1374
+ * @memberof CommissionsApi
1375
+ */
1376
+ public listScheduledCommissionClawbackTriggers(requestParameters: CommissionsApiListScheduledCommissionClawbackTriggersRequest = {}, options?: AxiosRequestConfig) {
1377
+ return CommissionsApiFp(this.configuration).listScheduledCommissionClawbackTriggers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1378
+ }
1379
+
1004
1380
  /**
1005
1381
  * Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
1006
1382
  * @summary Create the due commission clawbacks trigger
@@ -67,10 +67,11 @@ export declare const CommissionAgreementRulesApiAxiosParamCreator: (configuratio
67
67
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
68
68
  * @summary Retrieve the commission agreement rule evaluation default data
69
69
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
70
+ * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
70
71
  * @param {*} [options] Override http request option.
71
72
  * @throws {RequiredError}
72
73
  */
73
- getEvaluationDefaultData: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
+ getEvaluationDefaultData: (authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
74
75
  /**
75
76
  * Retrieves a list of commission agreement rules.
76
77
  * @summary List commission agreement rules
@@ -143,10 +144,11 @@ export declare const CommissionAgreementRulesApiFp: (configuration?: Configurati
143
144
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
144
145
  * @summary Retrieve the commission agreement rule evaluation default data
145
146
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
147
+ * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
146
148
  * @param {*} [options] Override http request option.
147
149
  * @throws {RequiredError}
148
150
  */
149
- getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>>;
151
+ getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>>;
150
152
  /**
151
153
  * Retrieves a list of commission agreement rules.
152
154
  * @summary List commission agreement rules
@@ -219,10 +221,11 @@ export declare const CommissionAgreementRulesApiFactory: (configuration?: Config
219
221
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
220
222
  * @summary Retrieve the commission agreement rule evaluation default data
221
223
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
224
+ * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
222
225
  * @param {*} [options] Override http request option.
223
226
  * @throws {RequiredError}
224
227
  */
225
- getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass>;
228
+ getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass>;
226
229
  /**
227
230
  * Retrieves a list of commission agreement rules.
228
231
  * @summary List commission agreement rules
@@ -343,6 +346,12 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
343
346
  * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
344
347
  */
345
348
  readonly authorization?: string;
349
+ /**
350
+ * Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
351
+ * @type {string}
352
+ * @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
353
+ */
354
+ readonly commissionAgreementProductCode?: string;
346
355
  }
347
356
  /**
348
357
  * Request parameters for listCommissionAgreementRules operation in CommissionAgreementRulesApi.
@@ -296,10 +296,11 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
296
296
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
297
297
  * @summary Retrieve the commission agreement rule evaluation default data
298
298
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
299
+ * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
299
300
  * @param {*} [options] Override http request option.
300
301
  * @throws {RequiredError}
301
302
  */
302
- getEvaluationDefaultData: function (authorization, options) {
303
+ getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
303
304
  if (options === void 0) { options = {}; }
304
305
  return __awaiter(_this, void 0, void 0, function () {
305
306
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -322,6 +323,9 @@ var CommissionAgreementRulesApiAxiosParamCreator = function (configuration) {
322
323
  // authentication bearer required
323
324
  // http bearer authentication required
324
325
  _a.sent();
326
+ if (commissionAgreementProductCode !== undefined) {
327
+ localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
328
+ }
325
329
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
326
330
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
327
331
  }
@@ -560,15 +564,16 @@ var CommissionAgreementRulesApiFp = function (configuration) {
560
564
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
561
565
  * @summary Retrieve the commission agreement rule evaluation default data
562
566
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
567
+ * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
563
568
  * @param {*} [options] Override http request option.
564
569
  * @throws {RequiredError}
565
570
  */
566
- getEvaluationDefaultData: function (authorization, options) {
571
+ getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
567
572
  return __awaiter(this, void 0, void 0, function () {
568
573
  var localVarAxiosArgs;
569
574
  return __generator(this, function (_a) {
570
575
  switch (_a.label) {
571
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options)];
576
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options)];
572
577
  case 1:
573
578
  localVarAxiosArgs = _a.sent();
574
579
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -684,11 +689,12 @@ var CommissionAgreementRulesApiFactory = function (configuration, basePath, axio
684
689
  * Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
685
690
  * @summary Retrieve the commission agreement rule evaluation default data
686
691
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
692
+ * @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
687
693
  * @param {*} [options] Override http request option.
688
694
  * @throws {RequiredError}
689
695
  */
690
- getEvaluationDefaultData: function (authorization, options) {
691
- return localVarFp.getEvaluationDefaultData(authorization, options).then(function (request) { return request(axios, basePath); });
696
+ getEvaluationDefaultData: function (authorization, commissionAgreementProductCode, options) {
697
+ return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then(function (request) { return request(axios, basePath); });
692
698
  },
693
699
  /**
694
700
  * Retrieves a list of commission agreement rules.
@@ -792,7 +798,7 @@ var CommissionAgreementRulesApi = /** @class */ (function (_super) {
792
798
  CommissionAgreementRulesApi.prototype.getEvaluationDefaultData = function (requestParameters, options) {
793
799
  var _this = this;
794
800
  if (requestParameters === void 0) { requestParameters = {}; }
795
- return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
801
+ return (0, exports.CommissionAgreementRulesApiFp)(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
796
802
  };
797
803
  /**
798
804
  * Retrieves a list of commission agreement rules.