@emilgroup/commission-sdk 1.0.0-beta.9 → 1.1.1-beta.10
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 +55 -13
- package/api/commission-agreement-rules-api.ts +800 -0
- package/api/commission-agreements-api.ts +160 -27
- package/api/commission-candidates-api.ts +693 -0
- package/api/commission-recipients-api.ts +4 -4
- package/api/commission-settlements-api.ts +800 -0
- package/api/commissions-api.ts +125 -18
- package/api.ts +6 -0
- package/dist/api/commission-agreement-products-api.d.ts +35 -8
- package/dist/api/commission-agreement-products-api.js +29 -11
- package/dist/api/commission-agreement-rules-api.d.ts +450 -0
- package/dist/api/commission-agreement-rules-api.js +737 -0
- 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 +644 -0
- package/dist/api/commission-recipients-api.d.ts +4 -4
- package/dist/api/commission-recipients-api.js +3 -3
- package/dist/api/commission-settlements-api.d.ts +450 -0
- package/dist/api/commission-settlements-api.js +737 -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 +93 -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 +102 -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 -1
|
@@ -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
|
|
@@ -189,6 +189,55 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
189
189
|
});
|
|
190
190
|
});
|
|
191
191
|
},
|
|
192
|
+
/**
|
|
193
|
+
* This will estimate commissions for a given policy.
|
|
194
|
+
* @summary Retrieve the estimate commissions
|
|
195
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
196
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
|
+
* @param {*} [options] Override http request option.
|
|
198
|
+
* @throws {RequiredError}
|
|
199
|
+
*/
|
|
200
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
201
|
+
if (options === void 0) { options = {}; }
|
|
202
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
203
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
|
+
return __generator(this, function (_a) {
|
|
205
|
+
switch (_a.label) {
|
|
206
|
+
case 0:
|
|
207
|
+
// verify required parameter 'estimateCommissionsRequestDto' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('estimateCommission', 'estimateCommissionsRequestDto', estimateCommissionsRequestDto);
|
|
209
|
+
localVarPath = "/commissionservice/v1/commissions/estimate";
|
|
210
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
211
|
+
if (configuration) {
|
|
212
|
+
baseOptions = configuration.baseOptions;
|
|
213
|
+
baseAccessToken = configuration.accessToken;
|
|
214
|
+
}
|
|
215
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
216
|
+
localVarHeaderParameter = {};
|
|
217
|
+
localVarQueryParameter = {};
|
|
218
|
+
// authentication bearer required
|
|
219
|
+
// http bearer authentication required
|
|
220
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
221
|
+
case 1:
|
|
222
|
+
// authentication bearer required
|
|
223
|
+
// http bearer authentication required
|
|
224
|
+
_a.sent();
|
|
225
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
226
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
227
|
+
}
|
|
228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
229
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateCommissionsRequestDto, localVarRequestOptions, configuration);
|
|
233
|
+
return [2 /*return*/, {
|
|
234
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
235
|
+
options: localVarRequestOptions,
|
|
236
|
+
}];
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
},
|
|
192
241
|
/**
|
|
193
242
|
* This will get commission.
|
|
194
243
|
* @summary Retrieve the commission
|
|
@@ -249,10 +298,10 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
249
298
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
250
299
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
251
300
|
* @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.
|
|
252
|
-
* @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.
|
|
301
|
+
* @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.
|
|
253
302
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
254
|
-
* @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.
|
|
255
|
-
* @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.
|
|
303
|
+
* @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.
|
|
304
|
+
* @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.
|
|
256
305
|
* @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.
|
|
257
306
|
* @param {*} [options] Override http request option.
|
|
258
307
|
* @throws {RequiredError}
|
|
@@ -420,6 +469,27 @@ var CommissionsApiFp = function (configuration) {
|
|
|
420
469
|
});
|
|
421
470
|
});
|
|
422
471
|
},
|
|
472
|
+
/**
|
|
473
|
+
* This will estimate commissions for a given policy.
|
|
474
|
+
* @summary Retrieve the estimate commissions
|
|
475
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
476
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
477
|
+
* @param {*} [options] Override http request option.
|
|
478
|
+
* @throws {RequiredError}
|
|
479
|
+
*/
|
|
480
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
481
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
482
|
+
var localVarAxiosArgs;
|
|
483
|
+
return __generator(this, function (_a) {
|
|
484
|
+
switch (_a.label) {
|
|
485
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(estimateCommissionsRequestDto, authorization, options)];
|
|
486
|
+
case 1:
|
|
487
|
+
localVarAxiosArgs = _a.sent();
|
|
488
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
489
|
+
}
|
|
490
|
+
});
|
|
491
|
+
});
|
|
492
|
+
},
|
|
423
493
|
/**
|
|
424
494
|
* This will get commission.
|
|
425
495
|
* @summary Retrieve the commission
|
|
@@ -448,10 +518,10 @@ var CommissionsApiFp = function (configuration) {
|
|
|
448
518
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
449
519
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
450
520
|
* @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.
|
|
451
|
-
* @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.
|
|
521
|
+
* @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.
|
|
452
522
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
453
|
-
* @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.
|
|
454
|
-
* @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.
|
|
523
|
+
* @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.
|
|
524
|
+
* @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.
|
|
455
525
|
* @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.
|
|
456
526
|
* @param {*} [options] Override http request option.
|
|
457
527
|
* @throws {RequiredError}
|
|
@@ -523,6 +593,17 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
523
593
|
deleteCommission: function (code, authorization, options) {
|
|
524
594
|
return localVarFp.deleteCommission(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
525
595
|
},
|
|
596
|
+
/**
|
|
597
|
+
* This will estimate commissions for a given policy.
|
|
598
|
+
* @summary Retrieve the estimate commissions
|
|
599
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
600
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
601
|
+
* @param {*} [options] Override http request option.
|
|
602
|
+
* @throws {RequiredError}
|
|
603
|
+
*/
|
|
604
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
605
|
+
return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
606
|
+
},
|
|
526
607
|
/**
|
|
527
608
|
* This will get commission.
|
|
528
609
|
* @summary Retrieve the commission
|
|
@@ -541,10 +622,10 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
541
622
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
542
623
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
543
624
|
* @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.
|
|
544
|
-
* @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.
|
|
625
|
+
* @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.
|
|
545
626
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
546
|
-
* @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.
|
|
547
|
-
* @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.
|
|
627
|
+
* @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.
|
|
628
|
+
* @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.
|
|
548
629
|
* @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.
|
|
549
630
|
* @param {*} [options] Override http request option.
|
|
550
631
|
* @throws {RequiredError}
|
|
@@ -602,6 +683,18 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
602
683
|
var _this = this;
|
|
603
684
|
return (0, exports.CommissionsApiFp)(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
604
685
|
};
|
|
686
|
+
/**
|
|
687
|
+
* This will estimate commissions for a given policy.
|
|
688
|
+
* @summary Retrieve the estimate commissions
|
|
689
|
+
* @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
|
|
690
|
+
* @param {*} [options] Override http request option.
|
|
691
|
+
* @throws {RequiredError}
|
|
692
|
+
* @memberof CommissionsApi
|
|
693
|
+
*/
|
|
694
|
+
CommissionsApi.prototype.estimateCommission = function (requestParameters, options) {
|
|
695
|
+
var _this = this;
|
|
696
|
+
return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
697
|
+
};
|
|
605
698
|
/**
|
|
606
699
|
* This will get commission.
|
|
607
700
|
* @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}
|