@emilgroup/commission-sdk-node 2.9.1-beta.2 → 2.9.1-beta.21
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 +18 -0
- package/README.md +2 -2
- package/api/commissions-api.ts +603 -0
- package/dist/api/commissions-api.d.ts +343 -0
- package/dist/api/commissions-api.js +450 -0
- package/dist/models/clawback-config-class.d.ts +42 -0
- package/dist/models/clawback-config-class.js +15 -0
- package/dist/models/clawback-config-dto.d.ts +42 -0
- package/dist/models/clawback-config-dto.js +15 -0
- package/dist/models/commission-agreement-version-class.d.ts +7 -0
- package/dist/models/commission-agreement-version-config-class.d.ts +32 -0
- package/dist/models/commission-agreement-version-config-class.js +15 -0
- package/dist/models/commission-agreement-version-config-dto.d.ts +32 -0
- package/dist/models/commission-agreement-version-config-dto.js +15 -0
- package/dist/models/commission-candidate-class.d.ts +12 -0
- package/dist/models/commission-class.d.ts +38 -0
- package/dist/models/commission-class.js +8 -0
- package/dist/models/commission-config-dto.d.ts +2 -1
- package/dist/models/commission-config-dto.js +2 -1
- package/dist/models/commission-creation-config-class.d.ts +43 -0
- package/dist/models/commission-creation-config-class.js +20 -0
- package/dist/models/commission-creation-config-dto.d.ts +43 -0
- package/dist/models/commission-creation-config-dto.js +20 -0
- package/dist/models/commission-creation-invoice-config-class.d.ts +24 -0
- package/dist/models/commission-creation-invoice-config-class.js +15 -0
- package/dist/models/commission-creation-invoice-config-dto.d.ts +24 -0
- package/dist/models/commission-creation-invoice-config-dto.js +15 -0
- package/dist/models/commission-creation-renewal-config-class.d.ts +29 -0
- package/dist/models/commission-creation-renewal-config-class.js +20 -0
- package/dist/models/commission-creation-renewal-config-dto.d.ts +29 -0
- package/dist/models/commission-creation-renewal-config-dto.js +20 -0
- package/dist/models/commission-estimate-class.d.ts +2 -1
- package/dist/models/commission-estimate-class.js +2 -1
- package/dist/models/commission-paid-invoice-entry-class.d.ts +108 -0
- package/dist/models/commission-paid-invoice-entry-class.js +21 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +7 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +7 -0
- package/dist/models/create-commission-candidate-request-dto.d.ts +15 -2
- package/dist/models/create-commission-candidate-request-dto.js +2 -1
- package/dist/models/create-commission-clawback-request-dto.d.ts +24 -0
- package/dist/models/create-commission-clawback-request-dto.js +15 -0
- package/dist/models/create-commission-clawback-response-class.d.ts +43 -0
- package/dist/models/create-commission-clawback-response-class.js +21 -0
- package/dist/models/create-commission-item-request-dto.d.ts +2 -1
- package/dist/models/create-commission-item-request-dto.js +2 -1
- package/dist/models/create-commission-request-dto.d.ts +6 -0
- package/dist/models/evaluated-commission-class.d.ts +2 -1
- package/dist/models/evaluated-commission-class.js +2 -1
- package/dist/models/index.d.ts +18 -0
- package/dist/models/index.js +18 -0
- package/dist/models/list-commission-paid-invoice-entries-response-class.d.ts +43 -0
- package/dist/models/list-commission-paid-invoice-entries-response-class.js +15 -0
- package/dist/models/list-scheduled-commission-clawback-triggers-response-class.d.ts +43 -0
- package/dist/models/list-scheduled-commission-clawback-triggers-response-class.js +15 -0
- package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +110 -0
- package/dist/models/scheduled-commission-clawback-trigger-class.js +28 -0
- package/dist/models/trigger-due-commission-clawbacks-request-dto.d.ts +30 -0
- package/dist/models/trigger-due-commission-clawbacks-request-dto.js +15 -0
- package/dist/models/trigger-due-commission-clawbacks-response-class.d.ts +24 -0
- package/dist/models/trigger-due-commission-clawbacks-response-class.js +15 -0
- package/dist/models/update-commission-candidate-request-dto.d.ts +2 -1
- package/dist/models/update-commission-candidate-request-dto.js +2 -1
- package/models/clawback-config-class.ts +48 -0
- package/models/clawback-config-dto.ts +48 -0
- package/models/commission-agreement-version-class.ts +7 -0
- package/models/commission-agreement-version-config-class.ts +38 -0
- package/models/commission-agreement-version-config-dto.ts +38 -0
- package/models/commission-candidate-class.ts +12 -0
- package/models/commission-class.ts +41 -0
- package/models/commission-config-dto.ts +3 -2
- package/models/commission-creation-config-class.ts +52 -0
- package/models/commission-creation-config-dto.ts +52 -0
- package/models/commission-creation-invoice-config-class.ts +30 -0
- package/models/commission-creation-invoice-config-dto.ts +30 -0
- package/models/commission-creation-renewal-config-class.ts +38 -0
- package/models/commission-creation-renewal-config-dto.ts +38 -0
- package/models/commission-estimate-class.ts +3 -2
- package/models/commission-paid-invoice-entry-class.ts +117 -0
- package/models/create-commission-agreement-request-dto.ts +7 -0
- package/models/create-commission-agreement-version-request-dto.ts +7 -0
- package/models/create-commission-candidate-request-dto.ts +16 -3
- package/models/create-commission-clawback-request-dto.ts +30 -0
- package/models/create-commission-clawback-response-class.ts +52 -0
- package/models/create-commission-item-request-dto.ts +3 -2
- package/models/create-commission-request-dto.ts +6 -0
- package/models/evaluated-commission-class.ts +3 -2
- package/models/index.ts +18 -0
- package/models/list-commission-paid-invoice-entries-response-class.ts +49 -0
- package/models/list-scheduled-commission-clawback-triggers-response-class.ts +49 -0
- package/models/scheduled-commission-clawback-trigger-class.ts +120 -0
- package/models/trigger-due-commission-clawbacks-request-dto.ts +36 -0
- package/models/trigger-due-commission-clawbacks-response-class.ts +30 -0
- package/models/update-commission-candidate-request-dto.ts +3 -2
- package/package.json +1 -1
|
@@ -145,6 +145,59 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
145
145
|
});
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
|
+
/**
|
|
149
|
+
* Creates a manual clawback for one commission.
|
|
150
|
+
* @summary Create the commission clawback
|
|
151
|
+
* @param {string} code Unique identifier for the object.
|
|
152
|
+
* @param {CreateCommissionClawbackRequestDto} createCommissionClawbackRequestDto
|
|
153
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
|
+
* @param {*} [options] Override http request option.
|
|
155
|
+
* @throws {RequiredError}
|
|
156
|
+
*/
|
|
157
|
+
createCommissionClawback: function (code, createCommissionClawbackRequestDto, authorization, options) {
|
|
158
|
+
if (options === void 0) { options = {}; }
|
|
159
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
161
|
+
return __generator(this, function (_a) {
|
|
162
|
+
switch (_a.label) {
|
|
163
|
+
case 0:
|
|
164
|
+
// verify required parameter 'code' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('createCommissionClawback', 'code', code);
|
|
166
|
+
// verify required parameter 'createCommissionClawbackRequestDto' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('createCommissionClawback', 'createCommissionClawbackRequestDto', createCommissionClawbackRequestDto);
|
|
168
|
+
localVarPath = "/commissionservice/v1/commissions/{code}/clawbacks"
|
|
169
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
170
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
|
+
if (configuration) {
|
|
172
|
+
baseOptions = configuration.baseOptions;
|
|
173
|
+
baseAccessToken = configuration.accessToken;
|
|
174
|
+
}
|
|
175
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
176
|
+
localVarHeaderParameter = {};
|
|
177
|
+
localVarQueryParameter = {};
|
|
178
|
+
// authentication bearer required
|
|
179
|
+
// http bearer authentication required
|
|
180
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
181
|
+
case 1:
|
|
182
|
+
// authentication bearer required
|
|
183
|
+
// http bearer authentication required
|
|
184
|
+
_a.sent();
|
|
185
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
187
|
+
}
|
|
188
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
189
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createCommissionClawbackRequestDto, localVarRequestOptions, configuration);
|
|
193
|
+
return [2 /*return*/, {
|
|
194
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
|
+
options: localVarRequestOptions,
|
|
196
|
+
}];
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
},
|
|
148
201
|
/**
|
|
149
202
|
* This will delete commission.
|
|
150
203
|
* @summary Delete the commission
|
|
@@ -296,6 +349,78 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
296
349
|
});
|
|
297
350
|
});
|
|
298
351
|
},
|
|
352
|
+
/**
|
|
353
|
+
* Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
|
|
354
|
+
* @summary List commission paid invoice entries
|
|
355
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
356
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
357
|
+
* @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.
|
|
358
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
359
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
360
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo</i>
|
|
361
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
362
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
listCommissionPaidInvoiceEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
367
|
+
if (options === void 0) { options = {}; }
|
|
368
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
369
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
370
|
+
return __generator(this, function (_a) {
|
|
371
|
+
switch (_a.label) {
|
|
372
|
+
case 0:
|
|
373
|
+
localVarPath = "/commissionservice/v1/commissions/paid-invoice-entries";
|
|
374
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
baseAccessToken = configuration.accessToken;
|
|
378
|
+
}
|
|
379
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
380
|
+
localVarHeaderParameter = {};
|
|
381
|
+
localVarQueryParameter = {};
|
|
382
|
+
// authentication bearer required
|
|
383
|
+
// http bearer authentication required
|
|
384
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
385
|
+
case 1:
|
|
386
|
+
// authentication bearer required
|
|
387
|
+
// http bearer authentication required
|
|
388
|
+
_a.sent();
|
|
389
|
+
if (pageSize !== undefined) {
|
|
390
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
391
|
+
}
|
|
392
|
+
if (pageToken !== undefined) {
|
|
393
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
394
|
+
}
|
|
395
|
+
if (filter !== undefined) {
|
|
396
|
+
localVarQueryParameter['filter'] = filter;
|
|
397
|
+
}
|
|
398
|
+
if (search !== undefined) {
|
|
399
|
+
localVarQueryParameter['search'] = search;
|
|
400
|
+
}
|
|
401
|
+
if (order !== undefined) {
|
|
402
|
+
localVarQueryParameter['order'] = order;
|
|
403
|
+
}
|
|
404
|
+
if (expand !== undefined) {
|
|
405
|
+
localVarQueryParameter['expand'] = expand;
|
|
406
|
+
}
|
|
407
|
+
if (filters !== undefined) {
|
|
408
|
+
localVarQueryParameter['filters'] = filters;
|
|
409
|
+
}
|
|
410
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
411
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
412
|
+
}
|
|
413
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
414
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
415
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
416
|
+
return [2 /*return*/, {
|
|
417
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
418
|
+
options: localVarRequestOptions,
|
|
419
|
+
}];
|
|
420
|
+
}
|
|
421
|
+
});
|
|
422
|
+
});
|
|
423
|
+
},
|
|
299
424
|
/**
|
|
300
425
|
* Retrieves a list of commissions.
|
|
301
426
|
* @summary List commissions
|
|
@@ -368,6 +493,127 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
|
|
|
368
493
|
});
|
|
369
494
|
});
|
|
370
495
|
},
|
|
496
|
+
/**
|
|
497
|
+
* Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
|
|
498
|
+
* @summary List scheduled commission clawback triggers
|
|
499
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
500
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
501
|
+
* @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.
|
|
502
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
503
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
504
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, effectiveDate, queuedAt, createdAt, updatedAt</i>
|
|
505
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
506
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
507
|
+
* @param {*} [options] Override http request option.
|
|
508
|
+
* @throws {RequiredError}
|
|
509
|
+
*/
|
|
510
|
+
listScheduledCommissionClawbackTriggers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
511
|
+
if (options === void 0) { options = {}; }
|
|
512
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
513
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
514
|
+
return __generator(this, function (_a) {
|
|
515
|
+
switch (_a.label) {
|
|
516
|
+
case 0:
|
|
517
|
+
localVarPath = "/commissionservice/v1/commissions/clawbacks/scheduled-triggers";
|
|
518
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
519
|
+
if (configuration) {
|
|
520
|
+
baseOptions = configuration.baseOptions;
|
|
521
|
+
baseAccessToken = configuration.accessToken;
|
|
522
|
+
}
|
|
523
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
524
|
+
localVarHeaderParameter = {};
|
|
525
|
+
localVarQueryParameter = {};
|
|
526
|
+
// authentication bearer required
|
|
527
|
+
// http bearer authentication required
|
|
528
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
529
|
+
case 1:
|
|
530
|
+
// authentication bearer required
|
|
531
|
+
// http bearer authentication required
|
|
532
|
+
_a.sent();
|
|
533
|
+
if (pageSize !== undefined) {
|
|
534
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
535
|
+
}
|
|
536
|
+
if (pageToken !== undefined) {
|
|
537
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
538
|
+
}
|
|
539
|
+
if (filter !== undefined) {
|
|
540
|
+
localVarQueryParameter['filter'] = filter;
|
|
541
|
+
}
|
|
542
|
+
if (search !== undefined) {
|
|
543
|
+
localVarQueryParameter['search'] = search;
|
|
544
|
+
}
|
|
545
|
+
if (order !== undefined) {
|
|
546
|
+
localVarQueryParameter['order'] = order;
|
|
547
|
+
}
|
|
548
|
+
if (expand !== undefined) {
|
|
549
|
+
localVarQueryParameter['expand'] = expand;
|
|
550
|
+
}
|
|
551
|
+
if (filters !== undefined) {
|
|
552
|
+
localVarQueryParameter['filters'] = filters;
|
|
553
|
+
}
|
|
554
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
555
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
556
|
+
}
|
|
557
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
558
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
559
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
560
|
+
return [2 /*return*/, {
|
|
561
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
562
|
+
options: localVarRequestOptions,
|
|
563
|
+
}];
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
});
|
|
567
|
+
},
|
|
568
|
+
/**
|
|
569
|
+
* Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
|
|
570
|
+
* @summary Create the due commission clawbacks trigger
|
|
571
|
+
* @param {TriggerDueCommissionClawbacksRequestDto} triggerDueCommissionClawbacksRequestDto
|
|
572
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
triggerDueCommissionClawbacks: function (triggerDueCommissionClawbacksRequestDto, authorization, options) {
|
|
577
|
+
if (options === void 0) { options = {}; }
|
|
578
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
579
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
580
|
+
return __generator(this, function (_a) {
|
|
581
|
+
switch (_a.label) {
|
|
582
|
+
case 0:
|
|
583
|
+
// verify required parameter 'triggerDueCommissionClawbacksRequestDto' is not null or undefined
|
|
584
|
+
(0, common_1.assertParamExists)('triggerDueCommissionClawbacks', 'triggerDueCommissionClawbacksRequestDto', triggerDueCommissionClawbacksRequestDto);
|
|
585
|
+
localVarPath = "/commissionservice/v1/commissions/clawbacks/trigger-due";
|
|
586
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
587
|
+
if (configuration) {
|
|
588
|
+
baseOptions = configuration.baseOptions;
|
|
589
|
+
baseAccessToken = configuration.accessToken;
|
|
590
|
+
}
|
|
591
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
592
|
+
localVarHeaderParameter = {};
|
|
593
|
+
localVarQueryParameter = {};
|
|
594
|
+
// authentication bearer required
|
|
595
|
+
// http bearer authentication required
|
|
596
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
597
|
+
case 1:
|
|
598
|
+
// authentication bearer required
|
|
599
|
+
// http bearer authentication required
|
|
600
|
+
_a.sent();
|
|
601
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
602
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
603
|
+
}
|
|
604
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
605
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
606
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
607
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
608
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(triggerDueCommissionClawbacksRequestDto, localVarRequestOptions, configuration);
|
|
609
|
+
return [2 /*return*/, {
|
|
610
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
611
|
+
options: localVarRequestOptions,
|
|
612
|
+
}];
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
});
|
|
616
|
+
},
|
|
371
617
|
/**
|
|
372
618
|
* This will update commission.
|
|
373
619
|
* @summary Update the commission
|
|
@@ -452,6 +698,28 @@ var CommissionsApiFp = function (configuration) {
|
|
|
452
698
|
});
|
|
453
699
|
});
|
|
454
700
|
},
|
|
701
|
+
/**
|
|
702
|
+
* Creates a manual clawback for one commission.
|
|
703
|
+
* @summary Create the commission clawback
|
|
704
|
+
* @param {string} code Unique identifier for the object.
|
|
705
|
+
* @param {CreateCommissionClawbackRequestDto} createCommissionClawbackRequestDto
|
|
706
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
707
|
+
* @param {*} [options] Override http request option.
|
|
708
|
+
* @throws {RequiredError}
|
|
709
|
+
*/
|
|
710
|
+
createCommissionClawback: function (code, createCommissionClawbackRequestDto, authorization, options) {
|
|
711
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
712
|
+
var localVarAxiosArgs;
|
|
713
|
+
return __generator(this, function (_a) {
|
|
714
|
+
switch (_a.label) {
|
|
715
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCommissionClawback(code, createCommissionClawbackRequestDto, authorization, options)];
|
|
716
|
+
case 1:
|
|
717
|
+
localVarAxiosArgs = _a.sent();
|
|
718
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
719
|
+
}
|
|
720
|
+
});
|
|
721
|
+
});
|
|
722
|
+
},
|
|
455
723
|
/**
|
|
456
724
|
* This will delete commission.
|
|
457
725
|
* @summary Delete the commission
|
|
@@ -516,6 +784,33 @@ var CommissionsApiFp = function (configuration) {
|
|
|
516
784
|
});
|
|
517
785
|
});
|
|
518
786
|
},
|
|
787
|
+
/**
|
|
788
|
+
* Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
|
|
789
|
+
* @summary List commission paid invoice entries
|
|
790
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
791
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
792
|
+
* @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.
|
|
793
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
794
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
795
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo</i>
|
|
796
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
797
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
798
|
+
* @param {*} [options] Override http request option.
|
|
799
|
+
* @throws {RequiredError}
|
|
800
|
+
*/
|
|
801
|
+
listCommissionPaidInvoiceEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
802
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
803
|
+
var localVarAxiosArgs;
|
|
804
|
+
return __generator(this, function (_a) {
|
|
805
|
+
switch (_a.label) {
|
|
806
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listCommissionPaidInvoiceEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
807
|
+
case 1:
|
|
808
|
+
localVarAxiosArgs = _a.sent();
|
|
809
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
});
|
|
813
|
+
},
|
|
519
814
|
/**
|
|
520
815
|
* Retrieves a list of commissions.
|
|
521
816
|
* @summary List commissions
|
|
@@ -543,6 +838,54 @@ var CommissionsApiFp = function (configuration) {
|
|
|
543
838
|
});
|
|
544
839
|
});
|
|
545
840
|
},
|
|
841
|
+
/**
|
|
842
|
+
* Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
|
|
843
|
+
* @summary List scheduled commission clawback triggers
|
|
844
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
845
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
846
|
+
* @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.
|
|
847
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
848
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
849
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, effectiveDate, queuedAt, createdAt, updatedAt</i>
|
|
850
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
851
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
852
|
+
* @param {*} [options] Override http request option.
|
|
853
|
+
* @throws {RequiredError}
|
|
854
|
+
*/
|
|
855
|
+
listScheduledCommissionClawbackTriggers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
856
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
857
|
+
var localVarAxiosArgs;
|
|
858
|
+
return __generator(this, function (_a) {
|
|
859
|
+
switch (_a.label) {
|
|
860
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listScheduledCommissionClawbackTriggers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
861
|
+
case 1:
|
|
862
|
+
localVarAxiosArgs = _a.sent();
|
|
863
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
864
|
+
}
|
|
865
|
+
});
|
|
866
|
+
});
|
|
867
|
+
},
|
|
868
|
+
/**
|
|
869
|
+
* Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
|
|
870
|
+
* @summary Create the due commission clawbacks trigger
|
|
871
|
+
* @param {TriggerDueCommissionClawbacksRequestDto} triggerDueCommissionClawbacksRequestDto
|
|
872
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
873
|
+
* @param {*} [options] Override http request option.
|
|
874
|
+
* @throws {RequiredError}
|
|
875
|
+
*/
|
|
876
|
+
triggerDueCommissionClawbacks: function (triggerDueCommissionClawbacksRequestDto, authorization, options) {
|
|
877
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
878
|
+
var localVarAxiosArgs;
|
|
879
|
+
return __generator(this, function (_a) {
|
|
880
|
+
switch (_a.label) {
|
|
881
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.triggerDueCommissionClawbacks(triggerDueCommissionClawbacksRequestDto, authorization, options)];
|
|
882
|
+
case 1:
|
|
883
|
+
localVarAxiosArgs = _a.sent();
|
|
884
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
885
|
+
}
|
|
886
|
+
});
|
|
887
|
+
});
|
|
888
|
+
},
|
|
546
889
|
/**
|
|
547
890
|
* This will update commission.
|
|
548
891
|
* @summary Update the commission
|
|
@@ -586,6 +929,18 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
586
929
|
createCommission: function (createCommissionRequestDto, authorization, options) {
|
|
587
930
|
return localVarFp.createCommission(createCommissionRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
588
931
|
},
|
|
932
|
+
/**
|
|
933
|
+
* Creates a manual clawback for one commission.
|
|
934
|
+
* @summary Create the commission clawback
|
|
935
|
+
* @param {string} code Unique identifier for the object.
|
|
936
|
+
* @param {CreateCommissionClawbackRequestDto} createCommissionClawbackRequestDto
|
|
937
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
*/
|
|
941
|
+
createCommissionClawback: function (code, createCommissionClawbackRequestDto, authorization, options) {
|
|
942
|
+
return localVarFp.createCommissionClawback(code, createCommissionClawbackRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
943
|
+
},
|
|
589
944
|
/**
|
|
590
945
|
* This will delete commission.
|
|
591
946
|
* @summary Delete the commission
|
|
@@ -620,6 +975,23 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
620
975
|
getCommission: function (code, expand, authorization, options) {
|
|
621
976
|
return localVarFp.getCommission(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
622
977
|
},
|
|
978
|
+
/**
|
|
979
|
+
* Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
|
|
980
|
+
* @summary List commission paid invoice entries
|
|
981
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
982
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
983
|
+
* @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.
|
|
984
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
985
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
986
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, updatedAt, policyTimesliceFrom, policyTimesliceTo</i>
|
|
987
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
988
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyCode, invoiceCode, commissionAgreementVersionCode, policyTimesliceFrom, policyTimesliceTo, status, commissionCandidateCode, commissionCode, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
989
|
+
* @param {*} [options] Override http request option.
|
|
990
|
+
* @throws {RequiredError}
|
|
991
|
+
*/
|
|
992
|
+
listCommissionPaidInvoiceEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
993
|
+
return localVarFp.listCommissionPaidInvoiceEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
994
|
+
},
|
|
623
995
|
/**
|
|
624
996
|
* Retrieves a list of commissions.
|
|
625
997
|
* @summary List commissions
|
|
@@ -637,6 +1009,34 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
|
|
|
637
1009
|
listCommissions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
638
1010
|
return localVarFp.listCommissions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
639
1011
|
},
|
|
1012
|
+
/**
|
|
1013
|
+
* Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
|
|
1014
|
+
* @summary List scheduled commission clawback triggers
|
|
1015
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1016
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
1017
|
+
* @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.
|
|
1018
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1019
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1020
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, effectiveDate, queuedAt, createdAt, updatedAt</i>
|
|
1021
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
1022
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, policyCode, triggerType, status, effectiveDate, queuedAt, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
1023
|
+
* @param {*} [options] Override http request option.
|
|
1024
|
+
* @throws {RequiredError}
|
|
1025
|
+
*/
|
|
1026
|
+
listScheduledCommissionClawbackTriggers: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1027
|
+
return localVarFp.listScheduledCommissionClawbackTriggers(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1028
|
+
},
|
|
1029
|
+
/**
|
|
1030
|
+
* Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
|
|
1031
|
+
* @summary Create the due commission clawbacks trigger
|
|
1032
|
+
* @param {TriggerDueCommissionClawbacksRequestDto} triggerDueCommissionClawbacksRequestDto
|
|
1033
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1034
|
+
* @param {*} [options] Override http request option.
|
|
1035
|
+
* @throws {RequiredError}
|
|
1036
|
+
*/
|
|
1037
|
+
triggerDueCommissionClawbacks: function (triggerDueCommissionClawbacksRequestDto, authorization, options) {
|
|
1038
|
+
return localVarFp.triggerDueCommissionClawbacks(triggerDueCommissionClawbacksRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1039
|
+
},
|
|
640
1040
|
/**
|
|
641
1041
|
* This will update commission.
|
|
642
1042
|
* @summary Update the commission
|
|
@@ -675,6 +1075,18 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
675
1075
|
var _this = this;
|
|
676
1076
|
return (0, exports.CommissionsApiFp)(this.configuration).createCommission(requestParameters.createCommissionRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
677
1077
|
};
|
|
1078
|
+
/**
|
|
1079
|
+
* Creates a manual clawback for one commission.
|
|
1080
|
+
* @summary Create the commission clawback
|
|
1081
|
+
* @param {CommissionsApiCreateCommissionClawbackRequest} requestParameters Request parameters.
|
|
1082
|
+
* @param {*} [options] Override http request option.
|
|
1083
|
+
* @throws {RequiredError}
|
|
1084
|
+
* @memberof CommissionsApi
|
|
1085
|
+
*/
|
|
1086
|
+
CommissionsApi.prototype.createCommissionClawback = function (requestParameters, options) {
|
|
1087
|
+
var _this = this;
|
|
1088
|
+
return (0, exports.CommissionsApiFp)(this.configuration).createCommissionClawback(requestParameters.code, requestParameters.createCommissionClawbackRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1089
|
+
};
|
|
678
1090
|
/**
|
|
679
1091
|
* This will delete commission.
|
|
680
1092
|
* @summary Delete the commission
|
|
@@ -711,6 +1123,19 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
711
1123
|
var _this = this;
|
|
712
1124
|
return (0, exports.CommissionsApiFp)(this.configuration).getCommission(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
713
1125
|
};
|
|
1126
|
+
/**
|
|
1127
|
+
* Returns paid invoices counted for invoice-mode commission creation. Use this endpoint to inspect counted, consumed, and discarded invoice groups.
|
|
1128
|
+
* @summary List commission paid invoice entries
|
|
1129
|
+
* @param {CommissionsApiListCommissionPaidInvoiceEntriesRequest} requestParameters Request parameters.
|
|
1130
|
+
* @param {*} [options] Override http request option.
|
|
1131
|
+
* @throws {RequiredError}
|
|
1132
|
+
* @memberof CommissionsApi
|
|
1133
|
+
*/
|
|
1134
|
+
CommissionsApi.prototype.listCommissionPaidInvoiceEntries = function (requestParameters, options) {
|
|
1135
|
+
var _this = this;
|
|
1136
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1137
|
+
return (0, exports.CommissionsApiFp)(this.configuration).listCommissionPaidInvoiceEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1138
|
+
};
|
|
714
1139
|
/**
|
|
715
1140
|
* Retrieves a list of commissions.
|
|
716
1141
|
* @summary List commissions
|
|
@@ -724,6 +1149,31 @@ var CommissionsApi = /** @class */ (function (_super) {
|
|
|
724
1149
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
725
1150
|
return (0, exports.CommissionsApiFp)(this.configuration).listCommissions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
726
1151
|
};
|
|
1152
|
+
/**
|
|
1153
|
+
* Returns future-dated commission clawback triggers and their processing status. Use this to check pending, queued, canceled, or failed automatic clawback triggers.
|
|
1154
|
+
* @summary List scheduled commission clawback triggers
|
|
1155
|
+
* @param {CommissionsApiListScheduledCommissionClawbackTriggersRequest} requestParameters Request parameters.
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
* @memberof CommissionsApi
|
|
1159
|
+
*/
|
|
1160
|
+
CommissionsApi.prototype.listScheduledCommissionClawbackTriggers = function (requestParameters, options) {
|
|
1161
|
+
var _this = this;
|
|
1162
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1163
|
+
return (0, exports.CommissionsApiFp)(this.configuration).listScheduledCommissionClawbackTriggers(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1164
|
+
};
|
|
1165
|
+
/**
|
|
1166
|
+
* Requests due scheduled commission clawbacks processing by enqueueing a trigger message. The endpoint returns after the message is sent and does not wait for the job to finish.
|
|
1167
|
+
* @summary Create the due commission clawbacks trigger
|
|
1168
|
+
* @param {CommissionsApiTriggerDueCommissionClawbacksRequest} requestParameters Request parameters.
|
|
1169
|
+
* @param {*} [options] Override http request option.
|
|
1170
|
+
* @throws {RequiredError}
|
|
1171
|
+
* @memberof CommissionsApi
|
|
1172
|
+
*/
|
|
1173
|
+
CommissionsApi.prototype.triggerDueCommissionClawbacks = function (requestParameters, options) {
|
|
1174
|
+
var _this = this;
|
|
1175
|
+
return (0, exports.CommissionsApiFp)(this.configuration).triggerDueCommissionClawbacks(requestParameters.triggerDueCommissionClawbacksRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1176
|
+
};
|
|
727
1177
|
/**
|
|
728
1178
|
* This will update commission.
|
|
729
1179
|
* @summary Update the commission
|
|
@@ -0,0 +1,42 @@
|
|
|
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 ClawbackConfigClass
|
|
16
|
+
*/
|
|
17
|
+
export interface ClawbackConfigClass {
|
|
18
|
+
/**
|
|
19
|
+
* Allow manual commission clawback creation.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ClawbackConfigClass
|
|
22
|
+
*/
|
|
23
|
+
'manual': boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Allow automatic commission clawback creation for policy termination and withdrawal.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ClawbackConfigClass
|
|
28
|
+
*/
|
|
29
|
+
'policyCancellation': boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Allow automatic commission clawback creation for intermediary switches.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ClawbackConfigClass
|
|
34
|
+
*/
|
|
35
|
+
'intermediarySwitched': boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Allow automatic commission clawback creation for reopened invoices.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ClawbackConfigClass
|
|
40
|
+
*/
|
|
41
|
+
'invoiceReopened': boolean;
|
|
42
|
+
}
|
|
@@ -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,42 @@
|
|
|
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 ClawbackConfigDto
|
|
16
|
+
*/
|
|
17
|
+
export interface ClawbackConfigDto {
|
|
18
|
+
/**
|
|
19
|
+
* Allow manual commission clawback creation.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof ClawbackConfigDto
|
|
22
|
+
*/
|
|
23
|
+
'manual': boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Allow automatic commission clawback creation for policy termination and withdrawal.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof ClawbackConfigDto
|
|
28
|
+
*/
|
|
29
|
+
'policyCancellation': boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Allow automatic commission clawback creation for intermediary switches.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof ClawbackConfigDto
|
|
34
|
+
*/
|
|
35
|
+
'intermediarySwitched': boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Allow automatic commission clawback creation for reopened invoices.
|
|
38
|
+
* @type {boolean}
|
|
39
|
+
* @memberof ClawbackConfigDto
|
|
40
|
+
*/
|
|
41
|
+
'invoiceReopened': boolean;
|
|
42
|
+
}
|