@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.
@@ -17,6 +17,7 @@ common.ts
17
17
  configuration.ts
18
18
  git_push.sh
19
19
  index.ts
20
+ models/clawback-config-class.ts
20
21
  models/clawback-config-dto.ts
21
22
  models/commission-agreement-class.ts
22
23
  models/commission-agreement-metadata-dto.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-node@2.9.1-beta.7 --save
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.7
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 {object}
20
+ * @type {boolean}
21
21
  * @memberof ClawbackConfigDto
22
22
  */
23
- 'manual': object;
23
+ 'manual': boolean;
24
24
  /**
25
25
  * Allow automatic commission clawback creation for policy termination and withdrawal.
26
- * @type {object}
26
+ * @type {boolean}
27
27
  * @memberof ClawbackConfigDto
28
28
  */
29
- 'policyCancellation': object;
29
+ 'policyCancellation': boolean;
30
30
  /**
31
31
  * Allow automatic commission clawback creation for intermediary switches.
32
- * @type {object}
32
+ * @type {boolean}
33
33
  * @memberof ClawbackConfigDto
34
34
  */
35
- 'intermediarySwitched': object;
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 { ClawbackConfigDto } from './clawback-config-dto';
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 {ClawbackConfigDto}
65
+ * @type {ClawbackConfigClass}
66
66
  * @memberof CommissionAgreementVersionClass
67
67
  */
68
- 'clawbackConfig': ClawbackConfigDto;
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 {number}
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 NUMBER_0: 0;
40
- readonly NUMBER_1: 1;
41
- readonly NUMBER_2: 2;
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
- NUMBER_0: 0,
19
- NUMBER_1: 1,
20
- NUMBER_2: 2,
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
  };
@@ -1,3 +1,4 @@
1
+ export * from './clawback-config-class';
1
2
  export * from './clawback-config-dto';
2
3
  export * from './commission-agreement-class';
3
4
  export * from './commission-agreement-metadata-dto';
@@ -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 {object}
25
+ * @type {boolean}
26
26
  * @memberof ClawbackConfigDto
27
27
  */
28
- 'manual': object;
28
+ 'manual': boolean;
29
29
  /**
30
30
  * Allow automatic commission clawback creation for policy termination and withdrawal.
31
- * @type {object}
31
+ * @type {boolean}
32
32
  * @memberof ClawbackConfigDto
33
33
  */
34
- 'policyCancellation': object;
34
+ 'policyCancellation': boolean;
35
35
  /**
36
36
  * Allow automatic commission clawback creation for intermediary switches.
37
- * @type {object}
37
+ * @type {boolean}
38
38
  * @memberof ClawbackConfigDto
39
39
  */
40
- 'intermediarySwitched': object;
40
+ 'intermediarySwitched': boolean;
41
41
  }
42
42
 
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- import { ClawbackConfigDto } from './clawback-config-dto';
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 {ClawbackConfigDto}
70
+ * @type {ClawbackConfigClass}
71
71
  * @memberof CommissionAgreementVersionClass
72
72
  */
73
- 'clawbackConfig': ClawbackConfigDto;
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 {number}
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
- NUMBER_0: 0,
46
- NUMBER_1: 1,
47
- NUMBER_2: 2,
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
@@ -1,3 +1,4 @@
1
+ export * from './clawback-config-class';
1
2
  export * from './clawback-config-dto';
2
3
  export * from './commission-agreement-class';
3
4
  export * from './commission-agreement-metadata-dto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/commission-sdk-node",
3
- "version": "2.9.1-beta.7",
3
+ "version": "2.9.1-beta.9",
4
4
  "description": "OpenAPI client for @emilgroup/commission-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [