@emilgroup/commission-sdk 2.10.1-beta.6 → 2.10.1-beta.60
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/.openapi-generator/FILES +13 -0
- package/README.md +2 -2
- package/api/commission-agreement-rules-api.ts +20 -6
- package/api/commission-settlements-api.ts +8 -8
- package/api/commissions-api.ts +376 -0
- package/dist/api/commission-agreement-rules-api.d.ts +12 -3
- package/dist/api/commission-agreement-rules-api.js +12 -6
- package/dist/api/commission-settlements-api.d.ts +8 -8
- package/dist/api/commission-settlements-api.js +3 -3
- package/dist/api/commissions-api.d.ts +220 -0
- package/dist/api/commissions-api.js +258 -0
- package/dist/models/clawback-config-class.d.ts +42 -0
- package/dist/models/clawback-config-class.js +15 -0
- package/dist/models/clawback-config-dto.d.ts +12 -6
- package/dist/models/commission-agreement-class.d.ts +2 -2
- package/dist/models/commission-agreement-class.js +1 -1
- package/dist/models/commission-agreement-version-class.d.ts +4 -4
- package/dist/models/commission-agreement-version-config-class.d.ts +32 -0
- package/dist/models/commission-agreement-version-config-class.js +15 -0
- package/dist/models/commission-agreement-version-config-dto.d.ts +32 -0
- package/dist/models/commission-agreement-version-config-dto.js +15 -0
- package/dist/models/commission-class.d.ts +13 -6
- package/dist/models/commission-class.js +2 -1
- package/dist/models/commission-creation-config-class.d.ts +43 -0
- package/dist/models/commission-creation-config-class.js +20 -0
- package/dist/models/commission-creation-config-dto.d.ts +43 -0
- package/dist/models/commission-creation-config-dto.js +20 -0
- package/dist/models/commission-creation-invoice-config-class.d.ts +24 -0
- package/dist/models/commission-creation-invoice-config-class.js +15 -0
- package/dist/models/commission-creation-invoice-config-dto.d.ts +24 -0
- package/dist/models/commission-creation-invoice-config-dto.js +15 -0
- package/dist/models/commission-creation-renewal-config-class.d.ts +29 -0
- package/dist/models/commission-creation-renewal-config-class.js +20 -0
- package/dist/models/commission-creation-renewal-config-dto.d.ts +29 -0
- package/dist/models/commission-creation-renewal-config-dto.js +20 -0
- package/dist/models/commission-paid-invoice-entry-class.d.ts +115 -0
- package/dist/models/commission-paid-invoice-entry-class.js +22 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +5 -5
- package/dist/models/create-commission-agreement-request-dto.js +1 -1
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +4 -4
- package/dist/models/create-commission-candidate-request-dto.d.ts +13 -1
- package/dist/models/create-commission-clawback-response-class.d.ts +4 -6
- package/dist/models/create-commission-clawback-response-class.js +3 -5
- package/dist/models/create-commission-request-dto.d.ts +6 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/models/list-commission-agreement-versions-response-class.d.ts +10 -10
- package/dist/models/list-commission-agreements-response-class.d.ts +10 -10
- package/dist/models/list-commission-paid-invoice-entries-response-class.d.ts +43 -0
- package/dist/models/list-commission-paid-invoice-entries-response-class.js +15 -0
- package/dist/models/list-scheduled-commission-clawback-triggers-response-class.d.ts +43 -0
- package/dist/models/list-scheduled-commission-clawback-triggers-response-class.js +15 -0
- package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +110 -0
- package/dist/models/scheduled-commission-clawback-trigger-class.js +28 -0
- package/dist/models/trigger-due-commission-clawbacks-request-dto.d.ts +1 -1
- package/dist/models/update-commission-agreement-request-dto.d.ts +2 -2
- package/dist/models/update-commission-agreement-request-dto.js +1 -1
- package/models/clawback-config-class.ts +48 -0
- package/models/clawback-config-dto.ts +12 -6
- package/models/commission-agreement-class.ts +2 -2
- package/models/commission-agreement-version-class.ts +4 -4
- package/models/commission-agreement-version-config-class.ts +38 -0
- package/models/commission-agreement-version-config-dto.ts +38 -0
- package/models/commission-class.ts +14 -7
- package/models/commission-creation-config-class.ts +52 -0
- package/models/commission-creation-config-dto.ts +52 -0
- package/models/commission-creation-invoice-config-class.ts +30 -0
- package/models/commission-creation-invoice-config-dto.ts +30 -0
- package/models/commission-creation-renewal-config-class.ts +38 -0
- package/models/commission-creation-renewal-config-dto.ts +38 -0
- package/models/commission-paid-invoice-entry-class.ts +124 -0
- package/models/create-commission-agreement-request-dto.ts +5 -5
- package/models/create-commission-agreement-version-request-dto.ts +4 -4
- package/models/create-commission-candidate-request-dto.ts +13 -1
- package/models/create-commission-clawback-response-class.ts +4 -6
- package/models/create-commission-request-dto.ts +6 -0
- package/models/index.ts +13 -0
- package/models/list-commission-agreement-versions-response-class.ts +10 -10
- package/models/list-commission-agreements-response-class.ts +10 -10
- package/models/list-commission-paid-invoice-entries-response-class.ts +49 -0
- package/models/list-scheduled-commission-clawback-triggers-response-class.ts +49 -0
- package/models/scheduled-commission-clawback-trigger-class.ts +120 -0
- package/models/trigger-due-commission-clawbacks-request-dto.ts +1 -1
- package/models/update-commission-agreement-request-dto.ts +2 -2
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -17,6 +17,7 @@ common.ts
|
|
|
17
17
|
configuration.ts
|
|
18
18
|
git_push.sh
|
|
19
19
|
index.ts
|
|
20
|
+
models/clawback-config-class.ts
|
|
20
21
|
models/clawback-config-dto.ts
|
|
21
22
|
models/commission-agreement-class.ts
|
|
22
23
|
models/commission-agreement-metadata-dto.ts
|
|
@@ -26,12 +27,21 @@ models/commission-agreement-rule-class.ts
|
|
|
26
27
|
models/commission-agreement-rule-config-dto.ts
|
|
27
28
|
models/commission-agreement-rule-evaluation-class.ts
|
|
28
29
|
models/commission-agreement-version-class.ts
|
|
30
|
+
models/commission-agreement-version-config-class.ts
|
|
31
|
+
models/commission-agreement-version-config-dto.ts
|
|
29
32
|
models/commission-candidate-class.ts
|
|
30
33
|
models/commission-class.ts
|
|
31
34
|
models/commission-conditions-dto.ts
|
|
32
35
|
models/commission-config-dto.ts
|
|
36
|
+
models/commission-creation-config-class.ts
|
|
37
|
+
models/commission-creation-config-dto.ts
|
|
38
|
+
models/commission-creation-invoice-config-class.ts
|
|
39
|
+
models/commission-creation-invoice-config-dto.ts
|
|
40
|
+
models/commission-creation-renewal-config-class.ts
|
|
41
|
+
models/commission-creation-renewal-config-dto.ts
|
|
33
42
|
models/commission-estimate-class.ts
|
|
34
43
|
models/commission-item-class.ts
|
|
44
|
+
models/commission-paid-invoice-entry-class.ts
|
|
35
45
|
models/commission-recipient-class.ts
|
|
36
46
|
models/commission-settlement-class.ts
|
|
37
47
|
models/create-commission-agreement-product-request-dto.ts
|
|
@@ -77,13 +87,16 @@ models/list-commission-agreement-rules-response-class.ts
|
|
|
77
87
|
models/list-commission-agreement-versions-response-class.ts
|
|
78
88
|
models/list-commission-agreements-response-class.ts
|
|
79
89
|
models/list-commission-candidates-response-class.ts
|
|
90
|
+
models/list-commission-paid-invoice-entries-response-class.ts
|
|
80
91
|
models/list-commission-recipients-response-class.ts
|
|
81
92
|
models/list-commission-settlements-response-class.ts
|
|
82
93
|
models/list-commissions-response-class.ts
|
|
94
|
+
models/list-scheduled-commission-clawback-triggers-response-class.ts
|
|
83
95
|
models/patch-commission-agreement-status-request-dto.ts
|
|
84
96
|
models/patch-commission-agreement-status-response-class.ts
|
|
85
97
|
models/publish-commission-settlements-request-dto.ts
|
|
86
98
|
models/publish-commission-settlements-response-class.ts
|
|
99
|
+
models/scheduled-commission-clawback-trigger-class.ts
|
|
87
100
|
models/trigger-commission-settlement-creation-request-dto.ts
|
|
88
101
|
models/trigger-commission-settlement-creation-response-class.ts
|
|
89
102
|
models/trigger-due-commission-clawbacks-request-dto.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/commission-sdk@2.10.1-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk@2.10.1-beta.60 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk@2.10.1-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk@2.10.1-beta.60
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -239,10 +239,11 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
|
|
|
239
239
|
* Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
|
|
240
240
|
* @summary Retrieve the commission agreement rule evaluation default data
|
|
241
241
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
242
|
+
* @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
|
|
242
243
|
* @param {*} [options] Override http request option.
|
|
243
244
|
* @throws {RequiredError}
|
|
244
245
|
*/
|
|
245
|
-
getEvaluationDefaultData: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
246
|
+
getEvaluationDefaultData: async (authorization?: string, commissionAgreementProductCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
246
247
|
const localVarPath = `/commissionservice/v1/agreement-rules/evaluation-default-data`;
|
|
247
248
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
248
249
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -261,6 +262,10 @@ export const CommissionAgreementRulesApiAxiosParamCreator = function (configurat
|
|
|
261
262
|
// http bearer authentication required
|
|
262
263
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
263
264
|
|
|
265
|
+
if (commissionAgreementProductCode !== undefined) {
|
|
266
|
+
localVarQueryParameter['commissionAgreementProductCode'] = commissionAgreementProductCode;
|
|
267
|
+
}
|
|
268
|
+
|
|
264
269
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
265
270
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
266
271
|
}
|
|
@@ -466,11 +471,12 @@ export const CommissionAgreementRulesApiFp = function(configuration?: Configurat
|
|
|
466
471
|
* Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
|
|
467
472
|
* @summary Retrieve the commission agreement rule evaluation default data
|
|
468
473
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
474
|
+
* @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
|
|
469
475
|
* @param {*} [options] Override http request option.
|
|
470
476
|
* @throws {RequiredError}
|
|
471
477
|
*/
|
|
472
|
-
async getEvaluationDefaultData(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
|
|
473
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, options);
|
|
478
|
+
async getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetEvaluationDefaultDataResponseClass>> {
|
|
479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options);
|
|
474
480
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
475
481
|
},
|
|
476
482
|
/**
|
|
@@ -563,11 +569,12 @@ export const CommissionAgreementRulesApiFactory = function (configuration?: Conf
|
|
|
563
569
|
* Returns stub policy, invoice, product, and premium for preview evaluation (same shape as evaluate request data).
|
|
564
570
|
* @summary Retrieve the commission agreement rule evaluation default data
|
|
565
571
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
572
|
+
* @param {string} [commissionAgreementProductCode] Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
|
|
566
573
|
* @param {*} [options] Override http request option.
|
|
567
574
|
* @throws {RequiredError}
|
|
568
575
|
*/
|
|
569
|
-
getEvaluationDefaultData(authorization?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
|
|
570
|
-
return localVarFp.getEvaluationDefaultData(authorization, options).then((request) => request(axios, basePath));
|
|
576
|
+
getEvaluationDefaultData(authorization?: string, commissionAgreementProductCode?: string, options?: any): AxiosPromise<GetEvaluationDefaultDataResponseClass> {
|
|
577
|
+
return localVarFp.getEvaluationDefaultData(authorization, commissionAgreementProductCode, options).then((request) => request(axios, basePath));
|
|
571
578
|
},
|
|
572
579
|
/**
|
|
573
580
|
* Retrieves a list of commission agreement rules.
|
|
@@ -704,6 +711,13 @@ export interface CommissionAgreementRulesApiGetEvaluationDefaultDataRequest {
|
|
|
704
711
|
* @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
|
|
705
712
|
*/
|
|
706
713
|
readonly authorization?: string
|
|
714
|
+
|
|
715
|
+
/**
|
|
716
|
+
* Commission agreement product to derive the available insured object fields from. Omitted, the response contains the generic stub only.
|
|
717
|
+
* @type {string}
|
|
718
|
+
* @memberof CommissionAgreementRulesApiGetEvaluationDefaultData
|
|
719
|
+
*/
|
|
720
|
+
readonly commissionAgreementProductCode?: string
|
|
707
721
|
}
|
|
708
722
|
|
|
709
723
|
/**
|
|
@@ -861,7 +875,7 @@ export class CommissionAgreementRulesApi extends BaseAPI {
|
|
|
861
875
|
* @memberof CommissionAgreementRulesApi
|
|
862
876
|
*/
|
|
863
877
|
public getEvaluationDefaultData(requestParameters: CommissionAgreementRulesApiGetEvaluationDefaultDataRequest = {}, options?: AxiosRequestConfig) {
|
|
864
|
-
return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
878
|
+
return CommissionAgreementRulesApiFp(this.configuration).getEvaluationDefaultData(requestParameters.authorization, requestParameters.commissionAgreementProductCode, options).then((request) => request(this.axios, this.basePath));
|
|
865
879
|
}
|
|
866
880
|
|
|
867
881
|
/**
|
|
@@ -196,7 +196,7 @@ export const CommissionSettlementsApiAxiosParamCreator = function (configuration
|
|
|
196
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
197
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
198
198
|
* @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.
|
|
199
|
-
* @param {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
199
|
+
* @param {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
200
200
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
201
201
|
* @param {'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
202
202
|
* @param {'commissions'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
@@ -204,7 +204,7 @@ export const CommissionSettlementsApiAxiosParamCreator = function (configuration
|
|
|
204
204
|
* @param {*} [options] Override http request option.
|
|
205
205
|
* @throws {RequiredError}
|
|
206
206
|
*/
|
|
207
|
-
listCommissionSettlements: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt', expand?: 'commissions', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
207
|
+
listCommissionSettlements: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode', search?: string, order?: 'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt', expand?: 'commissions', filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
208
208
|
const localVarPath = `/commissionservice/v1/commission-settlements`;
|
|
209
209
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
210
210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -464,7 +464,7 @@ export const CommissionSettlementsApiFp = function(configuration?: Configuration
|
|
|
464
464
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
465
465
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
466
466
|
* @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.
|
|
467
|
-
* @param {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
467
|
+
* @param {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
468
468
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
469
469
|
* @param {'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
470
470
|
* @param {'commissions'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
@@ -472,7 +472,7 @@ export const CommissionSettlementsApiFp = function(configuration?: Configuration
|
|
|
472
472
|
* @param {*} [options] Override http request option.
|
|
473
473
|
* @throws {RequiredError}
|
|
474
474
|
*/
|
|
475
|
-
async listCommissionSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt', expand?: 'commissions', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionSettlementsResponseClass>> {
|
|
475
|
+
async listCommissionSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode', search?: string, order?: 'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt', expand?: 'commissions', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionSettlementsResponseClass>> {
|
|
476
476
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionSettlements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
477
477
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
478
478
|
},
|
|
@@ -563,7 +563,7 @@ export const CommissionSettlementsApiFactory = function (configuration?: Configu
|
|
|
563
563
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
564
564
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
565
565
|
* @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.
|
|
566
|
-
* @param {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
566
|
+
* @param {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
567
567
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
568
568
|
* @param {'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
569
569
|
* @param {'commissions'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
@@ -571,7 +571,7 @@ export const CommissionSettlementsApiFactory = function (configuration?: Configu
|
|
|
571
571
|
* @param {*} [options] Override http request option.
|
|
572
572
|
* @throws {RequiredError}
|
|
573
573
|
*/
|
|
574
|
-
listCommissionSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt', expand?: 'commissions', filters?: string, options?: any): AxiosPromise<ListCommissionSettlementsResponseClass> {
|
|
574
|
+
listCommissionSettlements(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode', search?: string, order?: 'code' | 'settlementNumber' | 'partnerNumber' | 'status' | 'amount' | 'policyCount' | 'createdAt' | 'updatedAt', expand?: 'commissions', filters?: string, options?: any): AxiosPromise<ListCommissionSettlementsResponseClass> {
|
|
575
575
|
return localVarFp.listCommissionSettlements(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
576
576
|
},
|
|
577
577
|
/**
|
|
@@ -710,10 +710,10 @@ export interface CommissionSettlementsApiListCommissionSettlementsRequest {
|
|
|
710
710
|
|
|
711
711
|
/**
|
|
712
712
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
713
|
-
* @type {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
|
|
713
|
+
* @type {'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode'}
|
|
714
714
|
* @memberof CommissionSettlementsApiListCommissionSettlements
|
|
715
715
|
*/
|
|
716
|
-
readonly filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'
|
|
716
|
+
readonly filter?: 'id' | 'code' | 'settlementNumber' | 'status' | 'amount' | 'policyCount' | 'partnerCode' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'commissions.commissionAgreementCode' | 'commissions.commissionAgreementVersionCode'
|
|
717
717
|
|
|
718
718
|
/**
|
|
719
719
|
* To search the list by any field, pass search=xxx to fetch the result.
|