@emilgroup/commission-sdk 1.0.0-beta.42 → 1.0.0-beta.44
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 +1 -0
- package/README.md +2 -2
- package/api/commissions-api.ts +34 -30
- package/dist/api/commissions-api.d.ts +23 -22
- package/dist/api/commissions-api.js +21 -20
- package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
- package/dist/models/estimate-commissions-request-dto.js +15 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/estimate-commissions-request-dto.ts +36 -0
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -46,6 +46,7 @@ models/create-commission-request-dto.ts
|
|
|
46
46
|
models/create-commission-response-class.ts
|
|
47
47
|
models/create-commission-settlement-request-dto.ts
|
|
48
48
|
models/create-commission-settlement-response-class.ts
|
|
49
|
+
models/estimate-commissions-request-dto.ts
|
|
49
50
|
models/estimate-commissions-response-class.ts
|
|
50
51
|
models/evaluate-commission-agreement-rule-request-dto.ts
|
|
51
52
|
models/evaluate-commission-agreement-rule-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/commission-sdk@1.0.0-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk@1.0.0-beta.44 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk@1.0.0-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk@1.0.0-beta.44
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
package/api/commissions-api.ts
CHANGED
|
@@ -25,6 +25,8 @@ import { CreateCommissionRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateCommissionResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { EstimateCommissionsRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
28
30
|
import { EstimateCommissionsResponseClass } from '../models';
|
|
29
31
|
// @ts-ignore
|
|
30
32
|
import { GetCommissionResponseClass } from '../models';
|
|
@@ -135,16 +137,15 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
135
137
|
/**
|
|
136
138
|
* This will estimate commissions for a given policy.
|
|
137
139
|
* @summary Retrieve the estimate commissions
|
|
138
|
-
* @param {
|
|
140
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
139
141
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
140
142
|
* @param {*} [options] Override http request option.
|
|
141
143
|
* @throws {RequiredError}
|
|
142
144
|
*/
|
|
143
|
-
estimateCommission: async (
|
|
144
|
-
// verify required parameter '
|
|
145
|
-
assertParamExists('estimateCommission', '
|
|
146
|
-
const localVarPath = `/commissionservice/v1/commissions/estimate
|
|
147
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
|
|
145
|
+
estimateCommission: async (estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
146
|
+
// verify required parameter 'estimateCommissionsRequestDto' is not null or undefined
|
|
147
|
+
assertParamExists('estimateCommission', 'estimateCommissionsRequestDto', estimateCommissionsRequestDto)
|
|
148
|
+
const localVarPath = `/commissionservice/v1/commissions/estimate`;
|
|
148
149
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
150
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
151
|
let baseOptions;
|
|
@@ -154,7 +155,7 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
154
155
|
baseAccessToken = configuration.accessToken;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
|
-
const localVarRequestOptions = { method: '
|
|
158
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
158
159
|
const localVarHeaderParameter = {} as any;
|
|
159
160
|
const localVarQueryParameter = {} as any;
|
|
160
161
|
|
|
@@ -168,9 +169,12 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
168
169
|
|
|
169
170
|
|
|
170
171
|
|
|
172
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
173
|
+
|
|
171
174
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
175
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
176
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
177
|
+
localVarRequestOptions.data = serializeDataIfNeeded(estimateCommissionsRequestDto, localVarRequestOptions, configuration)
|
|
174
178
|
|
|
175
179
|
return {
|
|
176
180
|
url: toPathString(localVarUrlObj),
|
|
@@ -235,15 +239,15 @@ export const CommissionsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
235
239
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
236
240
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
237
241
|
* @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.
|
|
238
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
242
|
+
* @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.
|
|
239
243
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
240
|
-
* @param {'
|
|
244
|
+
* @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.
|
|
241
245
|
* @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.
|
|
242
246
|
* @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.
|
|
243
247
|
* @param {*} [options] Override http request option.
|
|
244
248
|
* @throws {RequiredError}
|
|
245
249
|
*/
|
|
246
|
-
listCommissions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: '
|
|
250
|
+
listCommissions: async (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> => {
|
|
247
251
|
const localVarPath = `/commissionservice/v1/commissions`;
|
|
248
252
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
249
253
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -393,13 +397,13 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
|
|
|
393
397
|
/**
|
|
394
398
|
* This will estimate commissions for a given policy.
|
|
395
399
|
* @summary Retrieve the estimate commissions
|
|
396
|
-
* @param {
|
|
400
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
397
401
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
398
402
|
* @param {*} [options] Override http request option.
|
|
399
403
|
* @throws {RequiredError}
|
|
400
404
|
*/
|
|
401
|
-
async estimateCommission(
|
|
402
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(
|
|
405
|
+
async estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>> {
|
|
406
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.estimateCommission(estimateCommissionsRequestDto, authorization, options);
|
|
403
407
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
408
|
},
|
|
405
409
|
/**
|
|
@@ -421,15 +425,15 @@ export const CommissionsApiFp = function(configuration?: Configuration) {
|
|
|
421
425
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
422
426
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
423
427
|
* @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.
|
|
424
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
428
|
+
* @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.
|
|
425
429
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
426
|
-
* @param {'
|
|
430
|
+
* @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.
|
|
427
431
|
* @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.
|
|
428
432
|
* @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.
|
|
429
433
|
* @param {*} [options] Override http request option.
|
|
430
434
|
* @throws {RequiredError}
|
|
431
435
|
*/
|
|
432
|
-
async listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: '
|
|
436
|
+
async 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>> {
|
|
433
437
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
434
438
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
435
439
|
},
|
|
@@ -481,13 +485,13 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
|
|
|
481
485
|
/**
|
|
482
486
|
* This will estimate commissions for a given policy.
|
|
483
487
|
* @summary Retrieve the estimate commissions
|
|
484
|
-
* @param {
|
|
488
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
485
489
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
486
490
|
* @param {*} [options] Override http request option.
|
|
487
491
|
* @throws {RequiredError}
|
|
488
492
|
*/
|
|
489
|
-
estimateCommission(
|
|
490
|
-
return localVarFp.estimateCommission(
|
|
493
|
+
estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass> {
|
|
494
|
+
return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
491
495
|
},
|
|
492
496
|
/**
|
|
493
497
|
* This will get commission.
|
|
@@ -507,15 +511,15 @@ export const CommissionsApiFactory = function (configuration?: Configuration, ba
|
|
|
507
511
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
508
512
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
509
513
|
* @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.
|
|
510
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
514
|
+
* @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.
|
|
511
515
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
512
|
-
* @param {'
|
|
516
|
+
* @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.
|
|
513
517
|
* @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.
|
|
514
518
|
* @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.
|
|
515
519
|
* @param {*} [options] Override http request option.
|
|
516
520
|
* @throws {RequiredError}
|
|
517
521
|
*/
|
|
518
|
-
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: '
|
|
522
|
+
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> {
|
|
519
523
|
return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
520
524
|
},
|
|
521
525
|
/**
|
|
@@ -582,11 +586,11 @@ export interface CommissionsApiDeleteCommissionRequest {
|
|
|
582
586
|
*/
|
|
583
587
|
export interface CommissionsApiEstimateCommissionRequest {
|
|
584
588
|
/**
|
|
585
|
-
*
|
|
586
|
-
* @type {
|
|
589
|
+
*
|
|
590
|
+
* @type {EstimateCommissionsRequestDto}
|
|
587
591
|
* @memberof CommissionsApiEstimateCommission
|
|
588
592
|
*/
|
|
589
|
-
readonly
|
|
593
|
+
readonly estimateCommissionsRequestDto: EstimateCommissionsRequestDto
|
|
590
594
|
|
|
591
595
|
/**
|
|
592
596
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -653,10 +657,10 @@ export interface CommissionsApiListCommissionsRequest {
|
|
|
653
657
|
|
|
654
658
|
/**
|
|
655
659
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
656
|
-
* @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
|
|
660
|
+
* @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
|
|
657
661
|
* @memberof CommissionsApiListCommissions
|
|
658
662
|
*/
|
|
659
|
-
readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'
|
|
663
|
+
readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'
|
|
660
664
|
|
|
661
665
|
/**
|
|
662
666
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
@@ -667,10 +671,10 @@ export interface CommissionsApiListCommissionsRequest {
|
|
|
667
671
|
|
|
668
672
|
/**
|
|
669
673
|
* 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.
|
|
670
|
-
* @type {'
|
|
674
|
+
* @type {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'}
|
|
671
675
|
* @memberof CommissionsApiListCommissions
|
|
672
676
|
*/
|
|
673
|
-
readonly order?: '
|
|
677
|
+
readonly order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'
|
|
674
678
|
|
|
675
679
|
/**
|
|
676
680
|
* 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.
|
|
@@ -755,7 +759,7 @@ export class CommissionsApi extends BaseAPI {
|
|
|
755
759
|
* @memberof CommissionsApi
|
|
756
760
|
*/
|
|
757
761
|
public estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig) {
|
|
758
|
-
return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.
|
|
762
|
+
return CommissionsApiFp(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
759
763
|
}
|
|
760
764
|
|
|
761
765
|
/**
|
|
@@ -14,6 +14,7 @@ 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';
|
|
17
18
|
import { EstimateCommissionsResponseClass } from '../models';
|
|
18
19
|
import { GetCommissionResponseClass } from '../models';
|
|
19
20
|
import { ListCommissionsResponseClass } from '../models';
|
|
@@ -45,12 +46,12 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
45
46
|
/**
|
|
46
47
|
* This will estimate commissions for a given policy.
|
|
47
48
|
* @summary Retrieve the estimate commissions
|
|
48
|
-
* @param {
|
|
49
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
49
50
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
50
51
|
* @param {*} [options] Override http request option.
|
|
51
52
|
* @throws {RequiredError}
|
|
52
53
|
*/
|
|
53
|
-
estimateCommission: (
|
|
54
|
+
estimateCommission: (estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
54
55
|
/**
|
|
55
56
|
* This will get commission.
|
|
56
57
|
* @summary Retrieve the commission
|
|
@@ -67,15 +68,15 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
|
|
|
67
68
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
68
69
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
69
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.
|
|
70
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
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.
|
|
71
72
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
72
|
-
* @param {'
|
|
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.
|
|
73
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.
|
|
74
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.
|
|
75
76
|
* @param {*} [options] Override http request option.
|
|
76
77
|
* @throws {RequiredError}
|
|
77
78
|
*/
|
|
78
|
-
listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: '
|
|
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>;
|
|
79
80
|
/**
|
|
80
81
|
* This will update commission.
|
|
81
82
|
* @summary Update the commission
|
|
@@ -113,12 +114,12 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
|
|
|
113
114
|
/**
|
|
114
115
|
* This will estimate commissions for a given policy.
|
|
115
116
|
* @summary Retrieve the estimate commissions
|
|
116
|
-
* @param {
|
|
117
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
117
118
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
118
119
|
* @param {*} [options] Override http request option.
|
|
119
120
|
* @throws {RequiredError}
|
|
120
121
|
*/
|
|
121
|
-
estimateCommission(
|
|
122
|
+
estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>>;
|
|
122
123
|
/**
|
|
123
124
|
* This will get commission.
|
|
124
125
|
* @summary Retrieve the commission
|
|
@@ -135,15 +136,15 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
|
|
|
135
136
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
136
137
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
137
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.
|
|
138
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
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.
|
|
139
140
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
140
|
-
* @param {'
|
|
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.
|
|
141
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.
|
|
142
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.
|
|
143
144
|
* @param {*} [options] Override http request option.
|
|
144
145
|
* @throws {RequiredError}
|
|
145
146
|
*/
|
|
146
|
-
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: '
|
|
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>>;
|
|
147
148
|
/**
|
|
148
149
|
* This will update commission.
|
|
149
150
|
* @summary Update the commission
|
|
@@ -181,12 +182,12 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
|
|
|
181
182
|
/**
|
|
182
183
|
* This will estimate commissions for a given policy.
|
|
183
184
|
* @summary Retrieve the estimate commissions
|
|
184
|
-
* @param {
|
|
185
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
185
186
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
186
187
|
* @param {*} [options] Override http request option.
|
|
187
188
|
* @throws {RequiredError}
|
|
188
189
|
*/
|
|
189
|
-
estimateCommission(
|
|
190
|
+
estimateCommission(estimateCommissionsRequestDto: EstimateCommissionsRequestDto, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass>;
|
|
190
191
|
/**
|
|
191
192
|
* This will get commission.
|
|
192
193
|
* @summary Retrieve the commission
|
|
@@ -203,15 +204,15 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
|
|
|
203
204
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
204
205
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
205
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.
|
|
206
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
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.
|
|
207
208
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
208
|
-
* @param {'
|
|
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.
|
|
209
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.
|
|
210
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.
|
|
211
212
|
* @param {*} [options] Override http request option.
|
|
212
213
|
* @throws {RequiredError}
|
|
213
214
|
*/
|
|
214
|
-
listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: '
|
|
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>;
|
|
215
216
|
/**
|
|
216
217
|
* This will update commission.
|
|
217
218
|
* @summary Update the commission
|
|
@@ -268,11 +269,11 @@ export interface CommissionsApiDeleteCommissionRequest {
|
|
|
268
269
|
*/
|
|
269
270
|
export interface CommissionsApiEstimateCommissionRequest {
|
|
270
271
|
/**
|
|
271
|
-
*
|
|
272
|
-
* @type {
|
|
272
|
+
*
|
|
273
|
+
* @type {EstimateCommissionsRequestDto}
|
|
273
274
|
* @memberof CommissionsApiEstimateCommission
|
|
274
275
|
*/
|
|
275
|
-
readonly
|
|
276
|
+
readonly estimateCommissionsRequestDto: EstimateCommissionsRequestDto;
|
|
276
277
|
/**
|
|
277
278
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
278
279
|
* @type {string}
|
|
@@ -331,10 +332,10 @@ export interface CommissionsApiListCommissionsRequest {
|
|
|
331
332
|
readonly pageToken?: string;
|
|
332
333
|
/**
|
|
333
334
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
334
|
-
* @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
|
|
335
|
+
* @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
|
|
335
336
|
* @memberof CommissionsApiListCommissions
|
|
336
337
|
*/
|
|
337
|
-
readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode';
|
|
338
|
+
readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementNumber' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode';
|
|
338
339
|
/**
|
|
339
340
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
340
341
|
* @type {string}
|
|
@@ -343,10 +344,10 @@ export interface CommissionsApiListCommissionsRequest {
|
|
|
343
344
|
readonly search?: string;
|
|
344
345
|
/**
|
|
345
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.
|
|
346
|
-
* @type {'
|
|
347
|
+
* @type {'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'}
|
|
347
348
|
* @memberof CommissionsApiListCommissions
|
|
348
349
|
*/
|
|
349
|
-
readonly order?: '
|
|
350
|
+
readonly order?: 'commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency';
|
|
350
351
|
/**
|
|
351
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.
|
|
352
353
|
* @type {'items' | 'agreement'}
|
|
@@ -192,28 +192,27 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
192
192
|
/**
|
|
193
193
|
* This will estimate commissions for a given policy.
|
|
194
194
|
* @summary Retrieve the estimate commissions
|
|
195
|
-
* @param {
|
|
195
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
196
196
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
197
197
|
* @param {*} [options] Override http request option.
|
|
198
198
|
* @throws {RequiredError}
|
|
199
199
|
*/
|
|
200
|
-
estimateCommission: function (
|
|
200
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
201
201
|
if (options === void 0) { options = {}; }
|
|
202
202
|
return __awaiter(_this, void 0, void 0, function () {
|
|
203
203
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
204
204
|
return __generator(this, function (_a) {
|
|
205
205
|
switch (_a.label) {
|
|
206
206
|
case 0:
|
|
207
|
-
// verify required parameter '
|
|
208
|
-
(0, common_1.assertParamExists)('estimateCommission', '
|
|
209
|
-
localVarPath = "/commissionservice/v1/commissions/estimate
|
|
210
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
207
|
+
// verify required parameter 'estimateCommissionsRequestDto' is not null or undefined
|
|
208
|
+
(0, common_1.assertParamExists)('estimateCommission', 'estimateCommissionsRequestDto', estimateCommissionsRequestDto);
|
|
209
|
+
localVarPath = "/commissionservice/v1/commissions/estimate";
|
|
211
210
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
211
|
if (configuration) {
|
|
213
212
|
baseOptions = configuration.baseOptions;
|
|
214
213
|
baseAccessToken = configuration.accessToken;
|
|
215
214
|
}
|
|
216
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
215
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
217
216
|
localVarHeaderParameter = {};
|
|
218
217
|
localVarQueryParameter = {};
|
|
219
218
|
// authentication bearer required
|
|
@@ -226,9 +225,11 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
226
225
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
226
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
228
227
|
}
|
|
228
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
229
229
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
230
230
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
231
231
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
232
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(estimateCommissionsRequestDto, localVarRequestOptions, configuration);
|
|
232
233
|
return [2 /*return*/, {
|
|
233
234
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
234
235
|
options: localVarRequestOptions,
|
|
@@ -297,9 +298,9 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
297
298
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
298
299
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
299
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.
|
|
300
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
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.
|
|
301
302
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
302
|
-
* @param {'
|
|
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.
|
|
303
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.
|
|
304
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.
|
|
305
306
|
* @param {*} [options] Override http request option.
|
|
@@ -471,17 +472,17 @@ var CommissionsApiFp = function (configuration) {
|
|
|
471
472
|
/**
|
|
472
473
|
* This will estimate commissions for a given policy.
|
|
473
474
|
* @summary Retrieve the estimate commissions
|
|
474
|
-
* @param {
|
|
475
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
475
476
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
476
477
|
* @param {*} [options] Override http request option.
|
|
477
478
|
* @throws {RequiredError}
|
|
478
479
|
*/
|
|
479
|
-
estimateCommission: function (
|
|
480
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
480
481
|
return __awaiter(this, void 0, void 0, function () {
|
|
481
482
|
var localVarAxiosArgs;
|
|
482
483
|
return __generator(this, function (_a) {
|
|
483
484
|
switch (_a.label) {
|
|
484
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(
|
|
485
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(estimateCommissionsRequestDto, authorization, options)];
|
|
485
486
|
case 1:
|
|
486
487
|
localVarAxiosArgs = _a.sent();
|
|
487
488
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -517,9 +518,9 @@ var CommissionsApiFp = function (configuration) {
|
|
|
517
518
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
519
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
519
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.
|
|
520
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
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.
|
|
521
522
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
522
|
-
* @param {'
|
|
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.
|
|
523
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.
|
|
524
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.
|
|
525
526
|
* @param {*} [options] Override http request option.
|
|
@@ -595,13 +596,13 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
595
596
|
/**
|
|
596
597
|
* This will estimate commissions for a given policy.
|
|
597
598
|
* @summary Retrieve the estimate commissions
|
|
598
|
-
* @param {
|
|
599
|
+
* @param {EstimateCommissionsRequestDto} estimateCommissionsRequestDto
|
|
599
600
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
600
601
|
* @param {*} [options] Override http request option.
|
|
601
602
|
* @throws {RequiredError}
|
|
602
603
|
*/
|
|
603
|
-
estimateCommission: function (
|
|
604
|
-
return localVarFp.estimateCommission(
|
|
604
|
+
estimateCommission: function (estimateCommissionsRequestDto, authorization, options) {
|
|
605
|
+
return localVarFp.estimateCommission(estimateCommissionsRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
605
606
|
},
|
|
606
607
|
/**
|
|
607
608
|
* This will get commission.
|
|
@@ -621,9 +622,9 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
621
622
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
622
623
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
623
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.
|
|
624
|
-
* @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | '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.
|
|
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.
|
|
625
626
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
626
|
-
* @param {'
|
|
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.
|
|
627
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.
|
|
628
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.
|
|
629
630
|
* @param {*} [options] Override http request option.
|
|
@@ -692,7 +693,7 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
692
693
|
*/
|
|
693
694
|
CommissionsApi.prototype.estimateCommission = function (requestParameters, options) {
|
|
694
695
|
var _this = this;
|
|
695
|
-
return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.
|
|
696
|
+
return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.estimateCommissionsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
696
697
|
};
|
|
697
698
|
/**
|
|
698
699
|
* This will get commission.
|
|
@@ -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 EstimateCommissionsRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface EstimateCommissionsRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* The code of the policy to estimate commissions for
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EstimateCommissionsRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'policyCode': string;
|
|
24
|
+
/**
|
|
25
|
+
* The objects of the policy to estimate commissions for
|
|
26
|
+
* @type {Array<object>}
|
|
27
|
+
* @memberof EstimateCommissionsRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'policyObjects': Array<object>;
|
|
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 });
|
package/dist/models/index.d.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './create-commission-request-dto';
|
|
|
28
28
|
export * from './create-commission-response-class';
|
|
29
29
|
export * from './create-commission-settlement-request-dto';
|
|
30
30
|
export * from './create-commission-settlement-response-class';
|
|
31
|
+
export * from './estimate-commissions-request-dto';
|
|
31
32
|
export * from './estimate-commissions-response-class';
|
|
32
33
|
export * from './evaluate-commission-agreement-rule-request-dto';
|
|
33
34
|
export * from './evaluate-commission-agreement-rule-response-class';
|
package/dist/models/index.js
CHANGED
|
@@ -44,6 +44,7 @@ __exportStar(require("./create-commission-request-dto"), exports);
|
|
|
44
44
|
__exportStar(require("./create-commission-response-class"), exports);
|
|
45
45
|
__exportStar(require("./create-commission-settlement-request-dto"), exports);
|
|
46
46
|
__exportStar(require("./create-commission-settlement-response-class"), exports);
|
|
47
|
+
__exportStar(require("./estimate-commissions-request-dto"), exports);
|
|
47
48
|
__exportStar(require("./estimate-commissions-response-class"), exports);
|
|
48
49
|
__exportStar(require("./evaluate-commission-agreement-rule-request-dto"), exports);
|
|
49
50
|
__exportStar(require("./evaluate-commission-agreement-rule-response-class"), exports);
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL CommissionService
|
|
5
|
+
* The EMIL CommissionService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface EstimateCommissionsRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface EstimateCommissionsRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* The code of the policy to estimate commissions for
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof EstimateCommissionsRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'policyCode': string;
|
|
29
|
+
/**
|
|
30
|
+
* The objects of the policy to estimate commissions for
|
|
31
|
+
* @type {Array<object>}
|
|
32
|
+
* @memberof EstimateCommissionsRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'policyObjects': Array<object>;
|
|
35
|
+
}
|
|
36
|
+
|
package/models/index.ts
CHANGED
|
@@ -28,6 +28,7 @@ export * from './create-commission-request-dto';
|
|
|
28
28
|
export * from './create-commission-response-class';
|
|
29
29
|
export * from './create-commission-settlement-request-dto';
|
|
30
30
|
export * from './create-commission-settlement-response-class';
|
|
31
|
+
export * from './estimate-commissions-request-dto';
|
|
31
32
|
export * from './estimate-commissions-response-class';
|
|
32
33
|
export * from './evaluate-commission-agreement-rule-request-dto';
|
|
33
34
|
export * from './evaluate-commission-agreement-rule-response-class';
|