@emilgroup/commission-sdk-node 2.9.1-beta.7 → 2.9.1-beta.9
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/dist/models/clawback-config-class.d.ts +36 -0
- package/dist/models/clawback-config-class.js +15 -0
- package/dist/models/clawback-config-dto.d.ts +6 -6
- package/dist/models/commission-agreement-version-class.d.ts +3 -3
- package/dist/models/create-commission-candidate-request-dto.d.ts +13 -1
- package/dist/models/create-commission-clawback-response-class.d.ts +4 -6
- package/dist/models/create-commission-clawback-response-class.js +3 -5
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/models/clawback-config-class.ts +42 -0
- package/models/clawback-config-dto.ts +6 -6
- package/models/commission-agreement-version-class.ts +3 -3
- package/models/create-commission-candidate-request-dto.ts +13 -1
- package/models/create-commission-clawback-response-class.ts +4 -6
- package/models/index.ts +1 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
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-node@2.9.1-beta.
|
|
20
|
+
npm install @emilgroup/commission-sdk-node@2.9.1-beta.9 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/commission-sdk-node@2.9.1-beta.
|
|
24
|
+
yarn add @emilgroup/commission-sdk-node@2.9.1-beta.9
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `CommissionApi`.
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
}
|
|
@@ -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 });
|
|
@@ -17,20 +17,20 @@
|
|
|
17
17
|
export interface ClawbackConfigDto {
|
|
18
18
|
/**
|
|
19
19
|
* Allow manual commission clawback creation.
|
|
20
|
-
* @type {
|
|
20
|
+
* @type {boolean}
|
|
21
21
|
* @memberof ClawbackConfigDto
|
|
22
22
|
*/
|
|
23
|
-
'manual':
|
|
23
|
+
'manual': boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Allow automatic commission clawback creation for policy termination and withdrawal.
|
|
26
|
-
* @type {
|
|
26
|
+
* @type {boolean}
|
|
27
27
|
* @memberof ClawbackConfigDto
|
|
28
28
|
*/
|
|
29
|
-
'policyCancellation':
|
|
29
|
+
'policyCancellation': boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Allow automatic commission clawback creation for intermediary switches.
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {boolean}
|
|
33
33
|
* @memberof ClawbackConfigDto
|
|
34
34
|
*/
|
|
35
|
-
'intermediarySwitched':
|
|
35
|
+
'intermediarySwitched': boolean;
|
|
36
36
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ClawbackConfigClass } from './clawback-config-class';
|
|
13
13
|
import { CommissionAgreementClass } from './commission-agreement-class';
|
|
14
14
|
import { CommissionAgreementProductClass } from './commission-agreement-product-class';
|
|
15
15
|
/**
|
|
@@ -62,10 +62,10 @@ export interface CommissionAgreementVersionClass {
|
|
|
62
62
|
'settlementCreationDate'?: string;
|
|
63
63
|
/**
|
|
64
64
|
* Version-scoped clawback creation configuration.
|
|
65
|
-
* @type {
|
|
65
|
+
* @type {ClawbackConfigClass}
|
|
66
66
|
* @memberof CommissionAgreementVersionClass
|
|
67
67
|
*/
|
|
68
|
-
'clawbackConfig':
|
|
68
|
+
'clawbackConfig': ClawbackConfigClass;
|
|
69
69
|
/**
|
|
70
70
|
* Description explaining what changed in this version or version notes
|
|
71
71
|
* @type {string}
|
|
@@ -46,11 +46,23 @@ export interface CreateCommissionCandidateRequestDto {
|
|
|
46
46
|
*/
|
|
47
47
|
'commissionCode'?: string;
|
|
48
48
|
/**
|
|
49
|
-
* The date of the next policy renewal for this commission candidate
|
|
49
|
+
* The date of the next policy renewal for this commission candidate. Required when renewal clawback metadata is provided.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateCommissionCandidateRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'policyRenewalDate'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Exclusive end of the commission period. If provided, policyRenewalDate and expectedInvoiceEntryCount must also be provided.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'commissionPeriodTo'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Expected invoice entry count in the commission period. If provided, policyRenewalDate and commissionPeriodTo must also be provided.
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'expectedInvoiceEntryCount'?: number;
|
|
54
66
|
}
|
|
55
67
|
export declare const CreateCommissionCandidateRequestDtoCandidateTypeEnum: {
|
|
56
68
|
readonly Initial: "initial";
|
|
@@ -24,7 +24,7 @@ export interface CreateCommissionClawbackResponseClass {
|
|
|
24
24
|
'created': boolean;
|
|
25
25
|
/**
|
|
26
26
|
* Reason why no clawback commission was created. Possible reasons: the original commission was not paid out, the calculated clawback amount was zero or positive, or the commission was already fully clawed back.
|
|
27
|
-
* @type {
|
|
27
|
+
* @type {string}
|
|
28
28
|
* @memberof CreateCommissionClawbackResponseClass
|
|
29
29
|
*/
|
|
30
30
|
'notCreatedReason'?: CreateCommissionClawbackResponseClassNotCreatedReasonEnum;
|
|
@@ -36,10 +36,8 @@ export interface CreateCommissionClawbackResponseClass {
|
|
|
36
36
|
'commission'?: CommissionClass;
|
|
37
37
|
}
|
|
38
38
|
export declare const CreateCommissionClawbackResponseClassNotCreatedReasonEnum: {
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly NUMBER_3: 3;
|
|
43
|
-
readonly NUMBER_MINUS_1: -1;
|
|
39
|
+
readonly CommissionNotPaidOut: "commission_not_paid_out";
|
|
40
|
+
readonly ClawbackAmountNotNegative: "clawback_amount_not_negative";
|
|
41
|
+
readonly CommissionAlreadyFullyClawedBack: "commission_already_fully_clawed_back";
|
|
44
42
|
};
|
|
45
43
|
export type CreateCommissionClawbackResponseClassNotCreatedReasonEnum = typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum[keyof typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum];
|
|
@@ -15,9 +15,7 @@
|
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
exports.CreateCommissionClawbackResponseClassNotCreatedReasonEnum = void 0;
|
|
17
17
|
exports.CreateCommissionClawbackResponseClassNotCreatedReasonEnum = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
NUMBER_3: 3,
|
|
22
|
-
NUMBER_MINUS_1: -1
|
|
18
|
+
CommissionNotPaidOut: 'commission_not_paid_out',
|
|
19
|
+
ClawbackAmountNotNegative: 'clawback_amount_not_negative',
|
|
20
|
+
CommissionAlreadyFullyClawedBack: 'commission_already_fully_clawed_back'
|
|
23
21
|
};
|
package/dist/models/index.d.ts
CHANGED
package/dist/models/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./clawback-config-class"), exports);
|
|
17
18
|
__exportStar(require("./clawback-config-dto"), exports);
|
|
18
19
|
__exportStar(require("./commission-agreement-class"), exports);
|
|
19
20
|
__exportStar(require("./commission-agreement-metadata-dto"), exports);
|
|
@@ -0,0 +1,42 @@
|
|
|
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 ClawbackConfigClass
|
|
21
|
+
*/
|
|
22
|
+
export interface ClawbackConfigClass {
|
|
23
|
+
/**
|
|
24
|
+
* Allow manual commission clawback creation.
|
|
25
|
+
* @type {boolean}
|
|
26
|
+
* @memberof ClawbackConfigClass
|
|
27
|
+
*/
|
|
28
|
+
'manual': boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Allow automatic commission clawback creation for policy termination and withdrawal.
|
|
31
|
+
* @type {boolean}
|
|
32
|
+
* @memberof ClawbackConfigClass
|
|
33
|
+
*/
|
|
34
|
+
'policyCancellation': boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Allow automatic commission clawback creation for intermediary switches.
|
|
37
|
+
* @type {boolean}
|
|
38
|
+
* @memberof ClawbackConfigClass
|
|
39
|
+
*/
|
|
40
|
+
'intermediarySwitched': boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -22,21 +22,21 @@
|
|
|
22
22
|
export interface ClawbackConfigDto {
|
|
23
23
|
/**
|
|
24
24
|
* Allow manual commission clawback creation.
|
|
25
|
-
* @type {
|
|
25
|
+
* @type {boolean}
|
|
26
26
|
* @memberof ClawbackConfigDto
|
|
27
27
|
*/
|
|
28
|
-
'manual':
|
|
28
|
+
'manual': boolean;
|
|
29
29
|
/**
|
|
30
30
|
* Allow automatic commission clawback creation for policy termination and withdrawal.
|
|
31
|
-
* @type {
|
|
31
|
+
* @type {boolean}
|
|
32
32
|
* @memberof ClawbackConfigDto
|
|
33
33
|
*/
|
|
34
|
-
'policyCancellation':
|
|
34
|
+
'policyCancellation': boolean;
|
|
35
35
|
/**
|
|
36
36
|
* Allow automatic commission clawback creation for intermediary switches.
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {boolean}
|
|
38
38
|
* @memberof ClawbackConfigDto
|
|
39
39
|
*/
|
|
40
|
-
'intermediarySwitched':
|
|
40
|
+
'intermediarySwitched': boolean;
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
import {
|
|
16
|
+
import { ClawbackConfigClass } from './clawback-config-class';
|
|
17
17
|
import { CommissionAgreementClass } from './commission-agreement-class';
|
|
18
18
|
import { CommissionAgreementProductClass } from './commission-agreement-product-class';
|
|
19
19
|
|
|
@@ -67,10 +67,10 @@ export interface CommissionAgreementVersionClass {
|
|
|
67
67
|
'settlementCreationDate'?: string;
|
|
68
68
|
/**
|
|
69
69
|
* Version-scoped clawback creation configuration.
|
|
70
|
-
* @type {
|
|
70
|
+
* @type {ClawbackConfigClass}
|
|
71
71
|
* @memberof CommissionAgreementVersionClass
|
|
72
72
|
*/
|
|
73
|
-
'clawbackConfig':
|
|
73
|
+
'clawbackConfig': ClawbackConfigClass;
|
|
74
74
|
/**
|
|
75
75
|
* Description explaining what changed in this version or version notes
|
|
76
76
|
* @type {string}
|
|
@@ -51,11 +51,23 @@ export interface CreateCommissionCandidateRequestDto {
|
|
|
51
51
|
*/
|
|
52
52
|
'commissionCode'?: string;
|
|
53
53
|
/**
|
|
54
|
-
* The date of the next policy renewal for this commission candidate
|
|
54
|
+
* The date of the next policy renewal for this commission candidate. Required when renewal clawback metadata is provided.
|
|
55
55
|
* @type {string}
|
|
56
56
|
* @memberof CreateCommissionCandidateRequestDto
|
|
57
57
|
*/
|
|
58
58
|
'policyRenewalDate'?: string;
|
|
59
|
+
/**
|
|
60
|
+
* Exclusive end of the commission period. If provided, policyRenewalDate and expectedInvoiceEntryCount must also be provided.
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
63
|
+
*/
|
|
64
|
+
'commissionPeriodTo'?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Expected invoice entry count in the commission period. If provided, policyRenewalDate and commissionPeriodTo must also be provided.
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof CreateCommissionCandidateRequestDto
|
|
69
|
+
*/
|
|
70
|
+
'expectedInvoiceEntryCount'?: number;
|
|
59
71
|
}
|
|
60
72
|
|
|
61
73
|
export const CreateCommissionCandidateRequestDtoCandidateTypeEnum = {
|
|
@@ -29,7 +29,7 @@ export interface CreateCommissionClawbackResponseClass {
|
|
|
29
29
|
'created': boolean;
|
|
30
30
|
/**
|
|
31
31
|
* Reason why no clawback commission was created. Possible reasons: the original commission was not paid out, the calculated clawback amount was zero or positive, or the commission was already fully clawed back.
|
|
32
|
-
* @type {
|
|
32
|
+
* @type {string}
|
|
33
33
|
* @memberof CreateCommissionClawbackResponseClass
|
|
34
34
|
*/
|
|
35
35
|
'notCreatedReason'?: CreateCommissionClawbackResponseClassNotCreatedReasonEnum;
|
|
@@ -42,11 +42,9 @@ export interface CreateCommissionClawbackResponseClass {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
export const CreateCommissionClawbackResponseClassNotCreatedReasonEnum = {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
NUMBER_3: 3,
|
|
49
|
-
NUMBER_MINUS_1: -1
|
|
45
|
+
CommissionNotPaidOut: 'commission_not_paid_out',
|
|
46
|
+
ClawbackAmountNotNegative: 'clawback_amount_not_negative',
|
|
47
|
+
CommissionAlreadyFullyClawedBack: 'commission_already_fully_clawed_back'
|
|
50
48
|
} as const;
|
|
51
49
|
|
|
52
50
|
export type CreateCommissionClawbackResponseClassNotCreatedReasonEnum = typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum[keyof typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum];
|
package/models/index.ts
CHANGED