@emilgroup/commission-sdk-node 1.0.0-beta.9 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +40 -0
- package/README.md +2 -2
- package/api/commission-agreement-products-api.ts +59 -17
- package/api/commission-agreement-rules-api.ts +804 -0
- package/api/commission-agreement-versions-api.ts +8 -8
- package/api/commission-agreements-api.ts +160 -27
- package/api/commission-candidates-api.ts +697 -0
- package/api/commission-recipients-api.ts +12 -12
- package/api/commission-settlements-api.ts +804 -0
- package/api/commissions-api.ts +125 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +39 -12
- package/dist/api/commission-agreement-products-api.js +32 -14
- package/dist/api/commission-agreement-rules-api.d.ts +450 -0
- package/dist/api/commission-agreement-rules-api.js +741 -0
- package/dist/api/commission-agreement-versions-api.d.ts +8 -8
- package/dist/api/commission-agreement-versions-api.js +6 -6
- package/dist/api/commission-agreements-api.d.ts +98 -23
- package/dist/api/commission-agreements-api.js +127 -22
- package/dist/api/commission-candidates-api.d.ts +393 -0
- package/dist/api/commission-candidates-api.js +648 -0
- package/dist/api/commission-recipients-api.d.ts +12 -12
- package/dist/api/commission-recipients-api.js +9 -9
- package/dist/api/commission-settlements-api.d.ts +450 -0
- package/dist/api/commission-settlements-api.js +741 -0
- package/dist/api/commissions-api.d.ts +75 -18
- package/dist/api/commissions-api.js +102 -9
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/models/commission-agreement-class.d.ts +27 -3
- package/dist/models/commission-agreement-class.js +5 -1
- package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
- package/dist/models/commission-agreement-metadata-dto.js +15 -0
- package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
- package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
- package/dist/models/commission-agreement-product-class.d.ts +6 -7
- package/dist/models/commission-agreement-rule-class.d.ts +99 -0
- package/dist/models/commission-agreement-rule-class.js +21 -0
- package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
- package/dist/models/commission-agreement-rule-config-dto.js +15 -0
- package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
- package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
- package/dist/models/commission-agreement-version-class.d.ts +7 -0
- package/dist/models/commission-candidate-class.d.ts +95 -0
- package/dist/models/commission-candidate-class.js +20 -0
- package/dist/models/commission-class.d.ts +37 -6
- package/dist/models/commission-conditions-dto.d.ts +24 -0
- package/dist/models/commission-conditions-dto.js +15 -0
- package/dist/models/commission-config-dto.d.ts +63 -0
- package/dist/models/commission-config-dto.js +34 -0
- package/dist/models/commission-estimate-class.d.ts +59 -0
- package/dist/models/commission-estimate-class.js +25 -0
- package/dist/models/commission-recipient-class.d.ts +6 -6
- package/dist/models/commission-settlement-class.d.ts +124 -0
- package/dist/models/commission-settlement-class.js +35 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
- package/dist/models/create-commission-agreement-request-dto.js +5 -1
- package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
- package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
- package/dist/models/create-commission-candidate-request-dto.d.ts +65 -0
- package/dist/models/create-commission-candidate-request-dto.js +25 -0
- package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/create-commission-candidate-response-class.js +15 -0
- package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
- package/dist/models/create-commission-request-dto.d.ts +3 -9
- package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
- package/dist/models/create-commission-settlement-request-dto.js +35 -0
- package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/create-commission-settlement-response-class.js +15 -0
- package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
- package/dist/models/estimate-commissions-request-dto.js +15 -0
- package/dist/models/estimate-commissions-response-class.d.ts +73 -0
- package/dist/models/estimate-commissions-response-class.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
- package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/evaluated-commission-class.d.ts +54 -0
- package/dist/models/evaluated-commission-class.js +21 -0
- package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/get-commission-candidate-response-class.js +15 -0
- package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/get-commission-settlement-response-class.js +15 -0
- package/dist/models/index.d.ts +37 -0
- package/dist/models/index.js +37 -0
- package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
- package/dist/models/list-commission-candidates-response-class.d.ts +43 -0
- package/dist/models/list-commission-candidates-response-class.js +15 -0
- package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
- package/dist/models/list-commission-settlements-response-class.js +15 -0
- package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
- package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
- package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
- package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
- package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
- package/dist/models/publish-commission-settlements-request-dto.js +15 -0
- package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
- package/dist/models/publish-commission-settlements-response-class.js +15 -0
- package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
- package/dist/models/update-commission-agreement-request-dto.js +2 -0
- package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
- package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
- package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
- package/dist/models/update-commission-candidate-request-dto.d.ts +71 -0
- package/dist/models/update-commission-candidate-request-dto.js +25 -0
- package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
- package/dist/models/update-commission-candidate-response-class.js +15 -0
- package/dist/models/update-commission-request-dto.d.ts +5 -3
- package/dist/models/update-commission-request-dto.js +4 -2
- package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
- package/dist/models/update-commission-settlement-request-dto.js +22 -0
- package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
- package/dist/models/update-commission-settlement-response-class.js +15 -0
- package/models/commission-agreement-class.ts +27 -3
- package/models/commission-agreement-metadata-dto.ts +31 -0
- package/models/commission-agreement-metadata-partner-dto.ts +36 -0
- package/models/commission-agreement-product-class.ts +6 -7
- package/models/commission-agreement-rule-class.ts +108 -0
- package/models/commission-agreement-rule-config-dto.ts +31 -0
- package/models/commission-agreement-rule-evaluation-class.ts +37 -0
- package/models/commission-agreement-version-class.ts +7 -0
- package/models/commission-candidate-class.ts +104 -0
- package/models/commission-class.ts +37 -6
- package/models/commission-conditions-dto.ts +30 -0
- package/models/commission-config-dto.ts +73 -0
- package/models/commission-estimate-class.ts +69 -0
- package/models/commission-recipient-class.ts +6 -6
- package/models/commission-settlement-class.ts +134 -0
- package/models/create-commission-agreement-request-dto.ts +14 -3
- package/models/create-commission-agreement-rule-request-dto.ts +43 -0
- package/models/create-commission-agreement-rule-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +1 -1
- package/models/create-commission-candidate-request-dto.ts +75 -0
- package/models/create-commission-candidate-response-class.ts +31 -0
- package/models/create-commission-recipient-request-dto.ts +2 -2
- package/models/create-commission-request-dto.ts +3 -9
- package/models/create-commission-settlement-request-dto.ts +67 -0
- package/models/create-commission-settlement-response-class.ts +31 -0
- package/models/estimate-commissions-request-dto.ts +36 -0
- package/models/estimate-commissions-response-class.ts +79 -0
- package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
- package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
- package/models/evaluated-commission-class.ts +63 -0
- package/models/get-commission-agreement-rule-response-class.ts +31 -0
- package/models/get-commission-candidate-response-class.ts +31 -0
- package/models/get-commission-settlement-response-class.ts +31 -0
- package/models/index.ts +37 -0
- package/models/list-commission-agreement-rules-response-class.ts +49 -0
- package/models/list-commission-candidates-response-class.ts +49 -0
- package/models/list-commission-settlements-response-class.ts +49 -0
- package/models/patch-commission-agreement-status-request-dto.ts +46 -0
- package/models/patch-commission-agreement-status-response-class.ts +31 -0
- package/models/publish-commission-settlements-request-dto.ts +30 -0
- package/models/publish-commission-settlements-response-class.ts +31 -0
- package/models/update-commission-agreement-request-dto.ts +3 -1
- package/models/update-commission-agreement-rule-request-dto.ts +58 -0
- package/models/update-commission-agreement-rule-response-class.ts +31 -0
- package/models/update-commission-candidate-request-dto.ts +81 -0
- package/models/update-commission-candidate-response-class.ts +31 -0
- package/models/update-commission-request-dto.ts +5 -3
- package/models/update-commission-settlement-request-dto.ts +52 -0
- package/models/update-commission-settlement-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateCommissionRequestDto } from '../models';
|
|
16
16
|
import { CreateCommissionResponseClass } from '../models';
|
|
17
|
+
import { EstimateCommissionsRequestDto } from '../models';
|
|
18
|
+
import { EstimateCommissionsResponseClass } from '../models';
|
|
17
19
|
import { GetCommissionResponseClass } from '../models';
|
|
18
20
|
import { ListCommissionsResponseClass } from '../models';
|
|
19
21
|
import { UpdateCommissionRequestDto } from '../models';
|
|
@@ -41,6 +43,15 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
41
43
|
* @throws {RequiredError}
|
|
42
44
|
*/
|
|
43
45
|
deleteCommission: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
|
+
/**
|
|
47
|
+
* This will estimate commissions for a given policy.
|
|
48
|
+
* @summary Retrieve the estimate commissions
|
|
49
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
50
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
estimateCommission: (estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
55
|
/**
|
|
45
56
|
* This will get commission.
|
|
46
57
|
* @summary Retrieve the commission
|
|
@@ -57,15 +68,15 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
57
68
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
69
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
59
70
|
* @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.
|
|
60
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
71
|
+
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
61
72
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
62
|
-
* @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
63
|
-
* @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
73
|
+
* @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
74
|
+
* @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
64
75
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
65
76
|
* @param {*} [options] Override http request option.
|
|
66
77
|
* @throws {RequiredError}
|
|
67
78
|
*/
|
|
68
|
-
listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
79
|
+
listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
80
|
/**
|
|
70
81
|
* This will update commission.
|
|
71
82
|
* @summary Update the commission
|
|
@@ -100,6 +111,15 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
|
|
|
100
111
|
* @throws {RequiredError}
|
|
101
112
|
*/
|
|
102
113
|
deleteCommission(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
114
|
+
/**
|
|
115
|
+
* This will estimate commissions for a given policy.
|
|
116
|
+
* @summary Retrieve the estimate commissions
|
|
117
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
118
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>>;
|
|
103
123
|
/**
|
|
104
124
|
* This will get commission.
|
|
105
125
|
* @summary Retrieve the commission
|
|
@@ -116,15 +136,15 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
|
|
|
116
136
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
117
137
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
118
138
|
* @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.
|
|
119
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
139
|
+
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
120
140
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
121
|
-
* @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
122
|
-
* @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
141
|
+
* @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
142
|
+
* @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
123
143
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
124
144
|
* @param {*} [options] Override http request option.
|
|
125
145
|
* @throws {RequiredError}
|
|
126
146
|
*/
|
|
127
|
-
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
|
|
147
|
+
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
|
|
128
148
|
/**
|
|
129
149
|
* This will update commission.
|
|
130
150
|
* @summary Update the commission
|
|
@@ -159,6 +179,15 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
|
|
|
159
179
|
* @throws {RequiredError}
|
|
160
180
|
*/
|
|
161
181
|
deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
182
|
+
/**
|
|
183
|
+
* This will estimate commissions for a given policy.
|
|
184
|
+
* @summary Retrieve the estimate commissions
|
|
185
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
186
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
187
|
+
* @param {*} [options] Override http request option.
|
|
188
|
+
* @throws {RequiredError}
|
|
189
|
+
*/
|
|
190
|
+
estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass>;
|
|
162
191
|
/**
|
|
163
192
|
* This will get commission.
|
|
164
193
|
* @summary Retrieve the commission
|
|
@@ -175,15 +204,15 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
|
|
|
175
204
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
176
205
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
177
206
|
* @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.
|
|
178
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
207
|
+
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
179
208
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
180
|
-
* @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
181
|
-
* @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
209
|
+
* @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
210
|
+
* @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
182
211
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
183
212
|
* @param {*} [options] Override http request option.
|
|
184
213
|
* @throws {RequiredError}
|
|
185
214
|
*/
|
|
186
|
-
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass>;
|
|
215
|
+
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass>;
|
|
187
216
|
/**
|
|
188
217
|
* This will update commission.
|
|
189
218
|
* @summary Update the commission
|
|
@@ -233,6 +262,25 @@ export interface CommissionsApiDeleteCommissionRequest {
|
|
|
233
262
|
*/
|
|
234
263
|
readonly authorization?: string;
|
|
235
264
|
}
|
|
265
|
+
/**
|
|
266
|
+
* Request parameters for estimateCommission operation in CommissionsApi.
|
|
267
|
+
* @export
|
|
268
|
+
* @interface CommissionsApiEstimateCommissionRequest
|
|
269
|
+
*/
|
|
270
|
+
export interface CommissionsApiEstimateCommissionRequest {
|
|
271
|
+
/**
|
|
272
|
+
*
|
|
273
|
+
* @type {EstimateCommissionsRequestDto}
|
|
274
|
+
* @memberof CommissionsApiEstimateCommission
|
|
275
|
+
*/
|
|
276
|
+
readonly estimateCommissionsRequestDto: EstimateCommissionsRequestDto;
|
|
277
|
+
/**
|
|
278
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
279
|
+
* @type {string}
|
|
280
|
+
* @memberof CommissionsApiEstimateCommission
|
|
281
|
+
*/
|
|
282
|
+
readonly authorization?: string;
|
|
283
|
+
}
|
|
236
284
|
/**
|
|
237
285
|
* Request parameters for getCommission operation in CommissionsApi.
|
|
238
286
|
* @export
|
|
@@ -284,10 +332,10 @@ export interface CommissionsApiListCommissionsRequest {
|
|
|
284
332
|
readonly pageToken?: string;
|
|
285
333
|
/**
|
|
286
334
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
287
|
-
* @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
|
|
335
|
+
* @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
|
|
288
336
|
* @memberof CommissionsApiListCommissions
|
|
289
337
|
*/
|
|
290
|
-
readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt';
|
|
338
|
+
readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode';
|
|
291
339
|
/**
|
|
292
340
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
293
341
|
* @type {string}
|
|
@@ -296,16 +344,16 @@ export interface CommissionsApiListCommissionsRequest {
|
|
|
296
344
|
readonly search?: string;
|
|
297
345
|
/**
|
|
298
346
|
* 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.
|
|
299
|
-
* @type {'createdAt'}
|
|
347
|
+
* @type {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'}
|
|
300
348
|
* @memberof CommissionsApiListCommissions
|
|
301
349
|
*/
|
|
302
|
-
readonly order?: 'createdAt';
|
|
350
|
+
readonly order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency';
|
|
303
351
|
/**
|
|
304
352
|
* 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.
|
|
305
|
-
* @type {'items'}
|
|
353
|
+
* @type {'items' | 'agreement'}
|
|
306
354
|
* @memberof CommissionsApiListCommissions
|
|
307
355
|
*/
|
|
308
|
-
readonly expand?: 'items';
|
|
356
|
+
readonly expand?: 'items' | 'agreement';
|
|
309
357
|
/**
|
|
310
358
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
311
359
|
* @type {string}
|
|
@@ -363,6 +411,15 @@ export declare class CommissionsApi extends BaseAPI {
|
|
|
363
411
|
* @memberof CommissionsApi
|
|
364
412
|
*/
|
|
365
413
|
deleteCommission(requestParameters: CommissionsApiDeleteCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
414
|
+
/**
|
|
415
|
+
* This will estimate commissions for a given policy.
|
|
416
|
+
* @summary Retrieve the estimate commissions
|
|
417
|
+
* @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
|
|
418
|
+
* @param {*} [options] Override http request option.
|
|
419
|
+
* @throws {RequiredError}
|
|
420
|
+
* @memberof CommissionsApi
|
|
421
|
+
*/
|
|
422
|
+
estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateCommissionsResponseClass, any, {}>>;
|
|
366
423
|
/**
|
|
367
424
|
* This will get commission.
|
|
368
425
|
* @summary Retrieve the commission
|
|
@@ -193,6 +193,55 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
});
|
|
194
194
|
});
|
|
195
195
|
},
|
|
196
|
+
/**
|
|
197
|
+
* This will estimate commissions for a given policy.
|
|
198
|
+
* @summary Retrieve the estimate commissions
|
|
199
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
200
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
201
|
+
* @param {*} [options] Override http request option.
|
|
202
|
+
* @throws {RequiredError}
|
|
203
|
+
*/
|
|
204
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
205
|
+
if (options === void 0) { options = {}; }
|
|
206
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
207
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
208
|
+
return __generator(this, function (_a) {
|
|
209
|
+
switch (_a.label) {
|
|
210
|
+
case 0:
|
|
211
|
+
// verify required parameter 'estimateCommissionsRequestDto' is not null or undefined
|
|
212
|
+
(0, common_1.assertParamExists)('estimateCommission', 'estimateCommissionsRequestDto', estimateCommissionsRequestDto);
|
|
213
|
+
localVarPath = "/commissionservice/v1/commissions/estimate";
|
|
214
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
215
|
+
if (configuration) {
|
|
216
|
+
baseOptions = configuration.baseOptions;
|
|
217
|
+
baseAccessToken = configuration.accessToken;
|
|
218
|
+
}
|
|
219
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
220
|
+
localVarHeaderParameter = {};
|
|
221
|
+
localVarQueryParameter = {};
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
225
|
+
case 1:
|
|
226
|
+
// authentication bearer required
|
|
227
|
+
// http bearer authentication required
|
|
228
|
+
_a.sent();
|
|
229
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
230
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
231
|
+
}
|
|
232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
233
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
234
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
235
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
236
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateCommissionsRequestDto, localVarRequestOptions, configuration);
|
|
237
|
+
return [2 /*return*/, {
|
|
238
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
239
|
+
options: localVarRequestOptions,
|
|
240
|
+
}];
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
},
|
|
196
245
|
/**
|
|
197
246
|
* This will get commission.
|
|
198
247
|
* @summary Retrieve the commission
|
|
@@ -253,10 +302,10 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
253
302
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
303
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
255
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.
|
|
256
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
305
|
+
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
257
306
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
258
|
-
* @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
259
|
-
* @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
307
|
+
* @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
308
|
+
* @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
260
309
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
261
310
|
* @param {*} [options] Override http request option.
|
|
262
311
|
* @throws {RequiredError}
|
|
@@ -424,6 +473,27 @@ var CommissionsApiFp = function (configuration) {
|
|
|
424
473
|
});
|
|
425
474
|
});
|
|
426
475
|
},
|
|
476
|
+
/**
|
|
477
|
+
* This will estimate commissions for a given policy.
|
|
478
|
+
* @summary Retrieve the estimate commissions
|
|
479
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
480
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
481
|
+
* @param {*} [options] Override http request option.
|
|
482
|
+
* @throws {RequiredError}
|
|
483
|
+
*/
|
|
484
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
485
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
486
|
+
var localVarAxiosArgs;
|
|
487
|
+
return __generator(this, function (_a) {
|
|
488
|
+
switch (_a.label) {
|
|
489
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(estimateCommissionsRequestDto, authorization, options)];
|
|
490
|
+
case 1:
|
|
491
|
+
localVarAxiosArgs = _a.sent();
|
|
492
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
});
|
|
496
|
+
},
|
|
427
497
|
/**
|
|
428
498
|
* This will get commission.
|
|
429
499
|
* @summary Retrieve the commission
|
|
@@ -452,10 +522,10 @@ var CommissionsApiFp = function (configuration) {
|
|
|
452
522
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
523
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
454
524
|
* @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.
|
|
455
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
525
|
+
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
456
526
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
457
|
-
* @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
458
|
-
* @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
527
|
+
* @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
528
|
+
* @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
459
529
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
460
530
|
* @param {*} [options] Override http request option.
|
|
461
531
|
* @throws {RequiredError}
|
|
@@ -527,6 +597,17 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
527
597
|
deleteCommission: function (code, authorization, options) {
|
|
528
598
|
return localVarFp.deleteCommission(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
529
599
|
},
|
|
600
|
+
/**
|
|
601
|
+
* This will estimate commissions for a given policy.
|
|
602
|
+
* @summary Retrieve the estimate commissions
|
|
603
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
604
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
605
|
+
* @param {*} [options] Override http request option.
|
|
606
|
+
* @throws {RequiredError}
|
|
607
|
+
*/
|
|
608
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
609
|
+
return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
610
|
+
},
|
|
530
611
|
/**
|
|
531
612
|
* This will get commission.
|
|
532
613
|
* @summary Retrieve the commission
|
|
@@ -545,10 +626,10 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
545
626
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
546
627
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
547
628
|
* @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.
|
|
548
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
629
|
+
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
549
630
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
550
|
-
* @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
551
|
-
* @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
631
|
+
* @param {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
632
|
+
* @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
552
633
|
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
553
634
|
* @param {*} [options] Override http request option.
|
|
554
635
|
* @throws {RequiredError}
|
|
@@ -606,6 +687,18 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
606
687
|
var _this = this;
|
|
607
688
|
return (0, exports.CommissionsApiFp)(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
608
689
|
};
|
|
690
|
+
/**
|
|
691
|
+
* This will estimate commissions for a given policy.
|
|
692
|
+
* @summary Retrieve the estimate commissions
|
|
693
|
+
* @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
* @memberof CommissionsApi
|
|
697
|
+
*/
|
|
698
|
+
CommissionsApi.prototype.estimateCommission = function (requestParameters, options) {
|
|
699
|
+
var _this = this;
|
|
700
|
+
return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
701
|
+
};
|
|
609
702
|
/**
|
|
610
703
|
* This will get commission.
|
|
611
704
|
* @summary Retrieve the commission
|
package/dist/api.d.ts
CHANGED
|
@@ -10,8 +10,11 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/commission-agreement-products-api';
|
|
13
|
+
export * from './api/commission-agreement-rules-api';
|
|
13
14
|
export * from './api/commission-agreement-versions-api';
|
|
14
15
|
export * from './api/commission-agreements-api';
|
|
16
|
+
export * from './api/commission-candidates-api';
|
|
15
17
|
export * from './api/commission-recipients-api';
|
|
18
|
+
export * from './api/commission-settlements-api';
|
|
16
19
|
export * from './api/commissions-api';
|
|
17
20
|
export * from './api/default-api';
|
package/dist/api.js
CHANGED
|
@@ -28,8 +28,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/commission-agreement-products-api"), exports);
|
|
31
|
+
__exportStar(require("./api/commission-agreement-rules-api"), exports);
|
|
31
32
|
__exportStar(require("./api/commission-agreement-versions-api"), exports);
|
|
32
33
|
__exportStar(require("./api/commission-agreements-api"), exports);
|
|
34
|
+
__exportStar(require("./api/commission-candidates-api"), exports);
|
|
33
35
|
__exportStar(require("./api/commission-recipients-api"), exports);
|
|
36
|
+
__exportStar(require("./api/commission-settlements-api"), exports);
|
|
34
37
|
__exportStar(require("./api/commissions-api"), exports);
|
|
35
38
|
__exportStar(require("./api/default-api"), exports);
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
|
|
13
|
+
import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
|
|
12
14
|
/**
|
|
13
15
|
*
|
|
14
16
|
* @export
|
|
@@ -34,11 +36,23 @@ export interface CommissionAgreementClass {
|
|
|
34
36
|
*/
|
|
35
37
|
'code': string;
|
|
36
38
|
/**
|
|
37
|
-
*
|
|
39
|
+
* Unique number identifier for the commission agreement
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof CommissionAgreementClass
|
|
42
|
+
*/
|
|
43
|
+
'commissionAgreementNumber': string;
|
|
44
|
+
/**
|
|
45
|
+
* Current status of the commission agreement (e.g., draft, active, processing, archived)
|
|
38
46
|
* @type {string}
|
|
39
47
|
* @memberof CommissionAgreementClass
|
|
40
48
|
*/
|
|
41
49
|
'status': CommissionAgreementClassStatusEnum;
|
|
50
|
+
/**
|
|
51
|
+
* Array of commission agreement versions
|
|
52
|
+
* @type {Array<CommissionAgreementVersionClass>}
|
|
53
|
+
* @memberof CommissionAgreementClass
|
|
54
|
+
*/
|
|
55
|
+
'versions'?: Array<CommissionAgreementVersionClass>;
|
|
42
56
|
/**
|
|
43
57
|
* Detailed description of the commission agreement terms and conditions
|
|
44
58
|
* @type {string}
|
|
@@ -46,11 +60,17 @@ export interface CommissionAgreementClass {
|
|
|
46
60
|
*/
|
|
47
61
|
'description'?: string;
|
|
48
62
|
/**
|
|
49
|
-
* Frequency at which commissions are billed (e.g., monthly, quarterly, yearly)
|
|
63
|
+
* Frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
|
|
50
64
|
* @type {string}
|
|
51
65
|
* @memberof CommissionAgreementClass
|
|
52
66
|
*/
|
|
53
67
|
'billingFrequency'?: CommissionAgreementClassBillingFrequencyEnum;
|
|
68
|
+
/**
|
|
69
|
+
* Metadata associated with the commission agreement
|
|
70
|
+
* @type {CommissionAgreementMetadataDto}
|
|
71
|
+
* @memberof CommissionAgreementClass
|
|
72
|
+
*/
|
|
73
|
+
'metadata'?: CommissionAgreementMetadataDto;
|
|
54
74
|
/**
|
|
55
75
|
* Timestamp when the commission agreement was created
|
|
56
76
|
* @type {string}
|
|
@@ -77,13 +97,17 @@ export interface CommissionAgreementClass {
|
|
|
77
97
|
'updatedBy'?: string;
|
|
78
98
|
}
|
|
79
99
|
export declare const CommissionAgreementClassStatusEnum: {
|
|
100
|
+
readonly Draft: "draft";
|
|
80
101
|
readonly Active: "active";
|
|
81
|
-
readonly
|
|
102
|
+
readonly Processing: "processing";
|
|
103
|
+
readonly Archived: "archived";
|
|
82
104
|
};
|
|
83
105
|
export type CommissionAgreementClassStatusEnum = typeof CommissionAgreementClassStatusEnum[keyof typeof CommissionAgreementClassStatusEnum];
|
|
84
106
|
export declare const CommissionAgreementClassBillingFrequencyEnum: {
|
|
107
|
+
readonly Immediately: "immediately";
|
|
85
108
|
readonly Monthly: "monthly";
|
|
86
109
|
readonly Quarterly: "quarterly";
|
|
110
|
+
readonly HalfYearly: "halfYearly";
|
|
87
111
|
readonly Yearly: "yearly";
|
|
88
112
|
};
|
|
89
113
|
export type CommissionAgreementClassBillingFrequencyEnum = typeof CommissionAgreementClassBillingFrequencyEnum[keyof typeof CommissionAgreementClassBillingFrequencyEnum];
|
|
@@ -15,11 +15,15 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CommissionAgreementClassBillingFrequencyEnum = exports.CommissionAgreementClassStatusEnum = void 0;
|
|
17
17
|
exports.CommissionAgreementClassStatusEnum = {
|
|
18
|
+
Draft: 'draft',
|
|
18
19
|
Active: 'active',
|
|
19
|
-
|
|
20
|
+
Processing: 'processing',
|
|
21
|
+
Archived: 'archived'
|
|
20
22
|
};
|
|
21
23
|
exports.CommissionAgreementClassBillingFrequencyEnum = {
|
|
24
|
+
Immediately: 'immediately',
|
|
22
25
|
Monthly: 'monthly',
|
|
23
26
|
Quarterly: 'quarterly',
|
|
27
|
+
HalfYearly: 'halfYearly',
|
|
24
28
|
Yearly: 'yearly'
|
|
25
29
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CommissionService
|
|
3
|
+
* The EMIL CommissionService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CommissionAgreementMetadataPartnerDto } from './commission-agreement-metadata-partner-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CommissionAgreementMetadataDto
|
|
17
|
+
*/
|
|
18
|
+
export interface CommissionAgreementMetadataDto {
|
|
19
|
+
/**
|
|
20
|
+
* Main partner of the commission agreement
|
|
21
|
+
* @type {CommissionAgreementMetadataPartnerDto}
|
|
22
|
+
* @memberof CommissionAgreementMetadataDto
|
|
23
|
+
*/
|
|
24
|
+
'mainPartner'?: CommissionAgreementMetadataPartnerDto;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CommissionService
|
|
6
|
+
* The EMIL CommissionService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL CommissionService
|
|
3
|
+
* The EMIL CommissionService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CommissionAgreementMetadataPartnerDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CommissionAgreementMetadataPartnerDto {
|
|
18
|
+
/**
|
|
19
|
+
* Code of the partner
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CommissionAgreementMetadataPartnerDto
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* Name of the partner
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CommissionAgreementMetadataPartnerDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL CommissionService
|
|
6
|
+
* The EMIL CommissionService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -22,12 +21,6 @@ export interface CommissionAgreementProductClass {
|
|
|
22
21
|
* @memberof CommissionAgreementProductClass
|
|
23
22
|
*/
|
|
24
23
|
'id': number;
|
|
25
|
-
/**
|
|
26
|
-
* The parent commission agreement version
|
|
27
|
-
* @type {CommissionAgreementVersionClass}
|
|
28
|
-
* @memberof CommissionAgreementProductClass
|
|
29
|
-
*/
|
|
30
|
-
'version': CommissionAgreementVersionClass;
|
|
31
24
|
/**
|
|
32
25
|
* Product slug identifier
|
|
33
26
|
* @type {string}
|
|
@@ -40,6 +33,12 @@ export interface CommissionAgreementProductClass {
|
|
|
40
33
|
* @memberof CommissionAgreementProductClass
|
|
41
34
|
*/
|
|
42
35
|
'code': string;
|
|
36
|
+
/**
|
|
37
|
+
* The parent commission agreement version code
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CommissionAgreementProductClass
|
|
40
|
+
*/
|
|
41
|
+
'commissionAgreementVersionCode': string;
|
|
43
42
|
/**
|
|
44
43
|
* Status of the commission agreement product
|
|
45
44
|
* @type {string}
|