@emilgroup/commission-sdk-node 2.9.1-beta.1 → 2.9.1-beta.11

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.
Files changed (64) hide show
  1. package/.openapi-generator/FILES +8 -0
  2. package/README.md +2 -2
  3. package/api/commissions-api.ts +415 -0
  4. package/dist/api/commissions-api.d.ts +233 -0
  5. package/dist/api/commissions-api.js +321 -0
  6. package/dist/models/clawback-config-class.d.ts +36 -0
  7. package/dist/models/clawback-config-class.js +15 -0
  8. package/dist/models/clawback-config-dto.d.ts +36 -0
  9. package/dist/models/clawback-config-dto.js +15 -0
  10. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  11. package/dist/models/commission-candidate-class.d.ts +12 -0
  12. package/dist/models/commission-class.d.ts +43 -0
  13. package/dist/models/commission-class.js +7 -0
  14. package/dist/models/commission-config-dto.d.ts +2 -1
  15. package/dist/models/commission-config-dto.js +2 -1
  16. package/dist/models/commission-estimate-class.d.ts +2 -1
  17. package/dist/models/commission-estimate-class.js +2 -1
  18. package/dist/models/create-commission-agreement-request-dto.d.ts +7 -0
  19. package/dist/models/create-commission-agreement-version-request-dto.d.ts +7 -0
  20. package/dist/models/create-commission-candidate-request-dto.d.ts +15 -2
  21. package/dist/models/create-commission-candidate-request-dto.js +2 -1
  22. package/dist/models/create-commission-clawback-request-dto.d.ts +24 -0
  23. package/dist/models/create-commission-clawback-request-dto.js +15 -0
  24. package/dist/models/create-commission-clawback-response-class.d.ts +43 -0
  25. package/dist/models/create-commission-clawback-response-class.js +21 -0
  26. package/dist/models/create-commission-item-request-dto.d.ts +2 -1
  27. package/dist/models/create-commission-item-request-dto.js +2 -1
  28. package/dist/models/create-commission-request-dto.d.ts +6 -0
  29. package/dist/models/evaluated-commission-class.d.ts +2 -1
  30. package/dist/models/evaluated-commission-class.js +2 -1
  31. package/dist/models/index.d.ts +8 -0
  32. package/dist/models/index.js +8 -0
  33. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.d.ts +43 -0
  34. package/dist/models/list-scheduled-commission-clawback-triggers-response-class.js +15 -0
  35. package/dist/models/scheduled-commission-clawback-trigger-class.d.ts +109 -0
  36. package/dist/models/scheduled-commission-clawback-trigger-class.js +27 -0
  37. package/dist/models/trigger-due-commission-clawbacks-request-dto.d.ts +30 -0
  38. package/dist/models/trigger-due-commission-clawbacks-request-dto.js +15 -0
  39. package/dist/models/trigger-due-commission-clawbacks-response-class.d.ts +24 -0
  40. package/dist/models/trigger-due-commission-clawbacks-response-class.js +15 -0
  41. package/dist/models/update-commission-candidate-request-dto.d.ts +2 -1
  42. package/dist/models/update-commission-candidate-request-dto.js +2 -1
  43. package/models/clawback-config-class.ts +42 -0
  44. package/models/clawback-config-dto.ts +42 -0
  45. package/models/commission-agreement-version-class.ts +7 -0
  46. package/models/commission-candidate-class.ts +12 -0
  47. package/models/commission-class.ts +46 -0
  48. package/models/commission-config-dto.ts +3 -2
  49. package/models/commission-estimate-class.ts +3 -2
  50. package/models/create-commission-agreement-request-dto.ts +7 -0
  51. package/models/create-commission-agreement-version-request-dto.ts +7 -0
  52. package/models/create-commission-candidate-request-dto.ts +16 -3
  53. package/models/create-commission-clawback-request-dto.ts +30 -0
  54. package/models/create-commission-clawback-response-class.ts +52 -0
  55. package/models/create-commission-item-request-dto.ts +3 -2
  56. package/models/create-commission-request-dto.ts +6 -0
  57. package/models/evaluated-commission-class.ts +3 -2
  58. package/models/index.ts +8 -0
  59. package/models/list-scheduled-commission-clawback-triggers-response-class.ts +49 -0
  60. package/models/scheduled-commission-clawback-trigger-class.ts +119 -0
  61. package/models/trigger-due-commission-clawbacks-request-dto.ts +36 -0
  62. package/models/trigger-due-commission-clawbacks-response-class.ts +30 -0
  63. package/models/update-commission-candidate-request-dto.ts +3 -2
  64. package/package.json +1 -1
@@ -9,6 +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
13
  import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
13
14
  /**
14
15
  *
@@ -70,6 +71,12 @@ export interface CreateCommissionAgreementRequestDto {
70
71
  * @memberof CreateCommissionAgreementRequestDto
71
72
  */
72
73
  'settlementCreationDate'?: string;
74
+ /**
75
+ * Initial version clawback creation configuration. Missing config defaults to all triggers disabled.
76
+ * @type {ClawbackConfigDto}
77
+ * @memberof CreateCommissionAgreementRequestDto
78
+ */
79
+ 'clawbackConfig'?: ClawbackConfigDto;
73
80
  }
74
81
  export declare const CreateCommissionAgreementRequestDtoBillingFrequencyEnum: {
75
82
  readonly Immediately: "immediately";
@@ -9,6 +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
13
  /**
13
14
  *
14
15
  * @export
@@ -45,4 +46,10 @@ export interface CreateCommissionAgreementVersionRequestDto {
45
46
  * @memberof CreateCommissionAgreementVersionRequestDto
46
47
  */
47
48
  'versionDescription'?: string;
49
+ /**
50
+ * Version-scoped clawback creation configuration. Missing config defaults to all triggers disabled.
51
+ * @type {ClawbackConfigDto}
52
+ * @memberof CreateCommissionAgreementVersionRequestDto
53
+ */
54
+ 'clawbackConfig'?: ClawbackConfigDto;
48
55
  }
@@ -34,7 +34,7 @@ export interface CreateCommissionCandidateRequestDto {
34
34
  */
35
35
  'candidateType': CreateCommissionCandidateRequestDtoCandidateTypeEnum;
36
36
  /**
37
- * The type of commission. Valid values: sales, maintenance, other
37
+ * The type of commission. Valid values: sales, maintenance, other, clawback
38
38
  * @type {string}
39
39
  * @memberof CreateCommissionCandidateRequestDto
40
40
  */
@@ -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";
@@ -61,5 +73,6 @@ export declare const CreateCommissionCandidateRequestDtoCommissionTypeEnum: {
61
73
  readonly Sales: "sales";
62
74
  readonly Maintenance: "maintenance";
63
75
  readonly Other: "other";
76
+ readonly Clawback: "clawback";
64
77
  };
65
78
  export type CreateCommissionCandidateRequestDtoCommissionTypeEnum = typeof CreateCommissionCandidateRequestDtoCommissionTypeEnum[keyof typeof CreateCommissionCandidateRequestDtoCommissionTypeEnum];
@@ -21,5 +21,6 @@ exports.CreateCommissionCandidateRequestDtoCandidateTypeEnum = {
21
21
  exports.CreateCommissionCandidateRequestDtoCommissionTypeEnum = {
22
22
  Sales: 'sales',
23
23
  Maintenance: 'maintenance',
24
- Other: 'other'
24
+ Other: 'other',
25
+ Clawback: 'clawback'
25
26
  };
@@ -0,0 +1,24 @@
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 CreateCommissionClawbackRequestDto
16
+ */
17
+ export interface CreateCommissionClawbackRequestDto {
18
+ /**
19
+ * Optional business effective date for the clawback calculation. If omitted, server processing time is used.
20
+ * @type {string}
21
+ * @memberof CreateCommissionClawbackRequestDto
22
+ */
23
+ 'effectiveDate'?: string;
24
+ }
@@ -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,43 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { CommissionClass } from './commission-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateCommissionClawbackResponseClass
17
+ */
18
+ export interface CreateCommissionClawbackResponseClass {
19
+ /**
20
+ * Whether a new clawback commission was created.
21
+ * @type {boolean}
22
+ * @memberof CreateCommissionClawbackResponseClass
23
+ */
24
+ 'created': boolean;
25
+ /**
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 {string}
28
+ * @memberof CreateCommissionClawbackResponseClass
29
+ */
30
+ 'notCreatedReason'?: CreateCommissionClawbackResponseClassNotCreatedReasonEnum;
31
+ /**
32
+ * Created clawback commission. Set only when created is true.
33
+ * @type {CommissionClass}
34
+ * @memberof CreateCommissionClawbackResponseClass
35
+ */
36
+ 'commission'?: CommissionClass;
37
+ }
38
+ export declare const CreateCommissionClawbackResponseClassNotCreatedReasonEnum: {
39
+ readonly CommissionNotPaidOut: "commission_not_paid_out";
40
+ readonly ClawbackAmountNotNegative: "clawback_amount_not_negative";
41
+ readonly CommissionAlreadyFullyClawedBack: "commission_already_fully_clawed_back";
42
+ };
43
+ export type CreateCommissionClawbackResponseClassNotCreatedReasonEnum = typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum[keyof typeof CreateCommissionClawbackResponseClassNotCreatedReasonEnum];
@@ -0,0 +1,21 @@
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 });
16
+ exports.CreateCommissionClawbackResponseClassNotCreatedReasonEnum = void 0;
17
+ exports.CreateCommissionClawbackResponseClassNotCreatedReasonEnum = {
18
+ CommissionNotPaidOut: 'commission_not_paid_out',
19
+ ClawbackAmountNotNegative: 'clawback_amount_not_negative',
20
+ CommissionAlreadyFullyClawedBack: 'commission_already_fully_clawed_back'
21
+ };
@@ -34,7 +34,7 @@ export interface CreateCommissionItemRequestDto {
34
34
  */
35
35
  'amount': number;
36
36
  /**
37
- * The type of commission item. Valid values: sales, maintenance, other
37
+ * The type of commission item. Valid values: sales, maintenance, other, clawback
38
38
  * @type {string}
39
39
  * @memberof CreateCommissionItemRequestDto
40
40
  */
@@ -44,5 +44,6 @@ export declare const CreateCommissionItemRequestDtoTypeEnum: {
44
44
  readonly Sales: "sales";
45
45
  readonly Maintenance: "maintenance";
46
46
  readonly Other: "other";
47
+ readonly Clawback: "clawback";
47
48
  };
48
49
  export type CreateCommissionItemRequestDtoTypeEnum = typeof CreateCommissionItemRequestDtoTypeEnum[keyof typeof CreateCommissionItemRequestDtoTypeEnum];
@@ -17,5 +17,6 @@ exports.CreateCommissionItemRequestDtoTypeEnum = void 0;
17
17
  exports.CreateCommissionItemRequestDtoTypeEnum = {
18
18
  Sales: 'sales',
19
19
  Maintenance: 'maintenance',
20
- Other: 'other'
20
+ Other: 'other',
21
+ Clawback: 'clawback'
21
22
  };
@@ -46,4 +46,10 @@ export interface CreateCommissionRequestDto {
46
46
  * @memberof CreateCommissionRequestDto
47
47
  */
48
48
  'items': Array<CreateCommissionItemRequestDto>;
49
+ /**
50
+ * Commission candidate code linked to this commission.
51
+ * @type {string}
52
+ * @memberof CreateCommissionRequestDto
53
+ */
54
+ 'commissionCandidateCode'?: string;
49
55
  }
@@ -16,7 +16,7 @@
16
16
  */
17
17
  export interface EvaluatedCommissionClass {
18
18
  /**
19
- * Type of commission (e.g., sales, maintenance, other)
19
+ * Type of commission (e.g., sales, maintenance, other, clawback)
20
20
  * @type {string}
21
21
  * @memberof EvaluatedCommissionClass
22
22
  */
@@ -50,5 +50,6 @@ export declare const EvaluatedCommissionClassTypeEnum: {
50
50
  readonly Sales: "sales";
51
51
  readonly Maintenance: "maintenance";
52
52
  readonly Other: "other";
53
+ readonly Clawback: "clawback";
53
54
  };
54
55
  export type EvaluatedCommissionClassTypeEnum = typeof EvaluatedCommissionClassTypeEnum[keyof typeof EvaluatedCommissionClassTypeEnum];
@@ -17,5 +17,6 @@ exports.EvaluatedCommissionClassTypeEnum = void 0;
17
17
  exports.EvaluatedCommissionClassTypeEnum = {
18
18
  Sales: 'sales',
19
19
  Maintenance: 'maintenance',
20
- Other: 'other'
20
+ Other: 'other',
21
+ Clawback: 'clawback'
21
22
  };
@@ -1,3 +1,5 @@
1
+ export * from './clawback-config-class';
2
+ export * from './clawback-config-dto';
1
3
  export * from './commission-agreement-class';
2
4
  export * from './commission-agreement-metadata-dto';
3
5
  export * from './commission-agreement-metadata-partner-dto';
@@ -24,6 +26,8 @@ export * from './create-commission-agreement-version-request-dto';
24
26
  export * from './create-commission-agreement-version-response-class';
25
27
  export * from './create-commission-candidate-request-dto';
26
28
  export * from './create-commission-candidate-response-class';
29
+ export * from './create-commission-clawback-request-dto';
30
+ export * from './create-commission-clawback-response-class';
27
31
  export * from './create-commission-item-request-dto';
28
32
  export * from './create-commission-recipient-for-products-request-dto';
29
33
  export * from './create-commission-recipient-for-products-response-class';
@@ -57,12 +61,16 @@ export * from './list-commission-candidates-response-class';
57
61
  export * from './list-commission-recipients-response-class';
58
62
  export * from './list-commission-settlements-response-class';
59
63
  export * from './list-commissions-response-class';
64
+ export * from './list-scheduled-commission-clawback-triggers-response-class';
60
65
  export * from './patch-commission-agreement-status-request-dto';
61
66
  export * from './patch-commission-agreement-status-response-class';
62
67
  export * from './publish-commission-settlements-request-dto';
63
68
  export * from './publish-commission-settlements-response-class';
69
+ export * from './scheduled-commission-clawback-trigger-class';
64
70
  export * from './trigger-commission-settlement-creation-request-dto';
65
71
  export * from './trigger-commission-settlement-creation-response-class';
72
+ export * from './trigger-due-commission-clawbacks-request-dto';
73
+ export * from './trigger-due-commission-clawbacks-response-class';
66
74
  export * from './update-commission-agreement-product-request-dto';
67
75
  export * from './update-commission-agreement-product-response-class';
68
76
  export * from './update-commission-agreement-request-dto';
@@ -14,6 +14,8 @@ 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);
18
+ __exportStar(require("./clawback-config-dto"), exports);
17
19
  __exportStar(require("./commission-agreement-class"), exports);
18
20
  __exportStar(require("./commission-agreement-metadata-dto"), exports);
19
21
  __exportStar(require("./commission-agreement-metadata-partner-dto"), exports);
@@ -40,6 +42,8 @@ __exportStar(require("./create-commission-agreement-version-request-dto"), expor
40
42
  __exportStar(require("./create-commission-agreement-version-response-class"), exports);
41
43
  __exportStar(require("./create-commission-candidate-request-dto"), exports);
42
44
  __exportStar(require("./create-commission-candidate-response-class"), exports);
45
+ __exportStar(require("./create-commission-clawback-request-dto"), exports);
46
+ __exportStar(require("./create-commission-clawback-response-class"), exports);
43
47
  __exportStar(require("./create-commission-item-request-dto"), exports);
44
48
  __exportStar(require("./create-commission-recipient-for-products-request-dto"), exports);
45
49
  __exportStar(require("./create-commission-recipient-for-products-response-class"), exports);
@@ -73,12 +77,16 @@ __exportStar(require("./list-commission-candidates-response-class"), exports);
73
77
  __exportStar(require("./list-commission-recipients-response-class"), exports);
74
78
  __exportStar(require("./list-commission-settlements-response-class"), exports);
75
79
  __exportStar(require("./list-commissions-response-class"), exports);
80
+ __exportStar(require("./list-scheduled-commission-clawback-triggers-response-class"), exports);
76
81
  __exportStar(require("./patch-commission-agreement-status-request-dto"), exports);
77
82
  __exportStar(require("./patch-commission-agreement-status-response-class"), exports);
78
83
  __exportStar(require("./publish-commission-settlements-request-dto"), exports);
79
84
  __exportStar(require("./publish-commission-settlements-response-class"), exports);
85
+ __exportStar(require("./scheduled-commission-clawback-trigger-class"), exports);
80
86
  __exportStar(require("./trigger-commission-settlement-creation-request-dto"), exports);
81
87
  __exportStar(require("./trigger-commission-settlement-creation-response-class"), exports);
88
+ __exportStar(require("./trigger-due-commission-clawbacks-request-dto"), exports);
89
+ __exportStar(require("./trigger-due-commission-clawbacks-response-class"), exports);
82
90
  __exportStar(require("./update-commission-agreement-product-request-dto"), exports);
83
91
  __exportStar(require("./update-commission-agreement-product-response-class"), exports);
84
92
  __exportStar(require("./update-commission-agreement-request-dto"), exports);
@@ -0,0 +1,43 @@
1
+ /**
2
+ * EMIL CommissionService
3
+ * The EMIL CommissionService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { ScheduledCommissionClawbackTriggerClass } from './scheduled-commission-clawback-trigger-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ListScheduledCommissionClawbackTriggersResponseClass
17
+ */
18
+ export interface ListScheduledCommissionClawbackTriggersResponseClass {
19
+ /**
20
+ * The list of scheduled commission clawback triggerss.
21
+ * @type {Array<ScheduledCommissionClawbackTriggerClass>}
22
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
23
+ */
24
+ 'items': Array<ScheduledCommissionClawbackTriggerClass>;
25
+ /**
26
+ * Next page token.
27
+ * @type {string}
28
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
29
+ */
30
+ 'nextPageToken': string;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total amount of items.
39
+ * @type {number}
40
+ * @memberof ListScheduledCommissionClawbackTriggersResponseClass
41
+ */
42
+ 'totalItems': number;
43
+ }
@@ -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,109 @@
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 ScheduledCommissionClawbackTriggerClass
16
+ */
17
+ export interface ScheduledCommissionClawbackTriggerClass {
18
+ /**
19
+ * The unique database identifier of the scheduled trigger
20
+ * @type {number}
21
+ * @memberof ScheduledCommissionClawbackTriggerClass
22
+ */
23
+ 'id': number;
24
+ /**
25
+ * Unique identifier for the object.
26
+ * @type {string}
27
+ * @memberof ScheduledCommissionClawbackTriggerClass
28
+ */
29
+ 'code': string;
30
+ /**
31
+ * The policy this scheduled clawback trigger belongs to
32
+ * @type {string}
33
+ * @memberof ScheduledCommissionClawbackTriggerClass
34
+ */
35
+ 'policyCode': string;
36
+ /**
37
+ * The automatic clawback trigger type
38
+ * @type {string}
39
+ * @memberof ScheduledCommissionClawbackTriggerClass
40
+ */
41
+ 'triggerType': ScheduledCommissionClawbackTriggerClassTriggerTypeEnum;
42
+ /**
43
+ * The effective date when the scheduled clawback trigger becomes due
44
+ * @type {string}
45
+ * @memberof ScheduledCommissionClawbackTriggerClass
46
+ */
47
+ 'effectiveDate': string;
48
+ /**
49
+ * The current scheduled trigger status
50
+ * @type {string}
51
+ * @memberof ScheduledCommissionClawbackTriggerClass
52
+ */
53
+ 'status': ScheduledCommissionClawbackTriggerClassStatusEnum;
54
+ /**
55
+ * The time when the due job queued this trigger for processing
56
+ * @type {string}
57
+ * @memberof ScheduledCommissionClawbackTriggerClass
58
+ */
59
+ 'queuedAt'?: string;
60
+ /**
61
+ * Failure reason when processing this scheduled trigger failed
62
+ * @type {string}
63
+ * @memberof ScheduledCommissionClawbackTriggerClass
64
+ */
65
+ 'errorMessage'?: string;
66
+ /**
67
+ * The time when this scheduled trigger was canceled
68
+ * @type {string}
69
+ * @memberof ScheduledCommissionClawbackTriggerClass
70
+ */
71
+ 'canceledAt'?: string;
72
+ /**
73
+ * Time at which the object was created.
74
+ * @type {string}
75
+ * @memberof ScheduledCommissionClawbackTriggerClass
76
+ */
77
+ 'createdAt': string;
78
+ /**
79
+ * Time at which the object was updated.
80
+ * @type {string}
81
+ * @memberof ScheduledCommissionClawbackTriggerClass
82
+ */
83
+ 'updatedAt': string;
84
+ /**
85
+ * Identifier of the user who created the record.
86
+ * @type {string}
87
+ * @memberof ScheduledCommissionClawbackTriggerClass
88
+ */
89
+ 'createdBy': string;
90
+ /**
91
+ * Identifier of the user who last updated the record.
92
+ * @type {string}
93
+ * @memberof ScheduledCommissionClawbackTriggerClass
94
+ */
95
+ 'updatedBy': string;
96
+ }
97
+ export declare const ScheduledCommissionClawbackTriggerClassTriggerTypeEnum: {
98
+ readonly PolicyTermination: "policy_termination";
99
+ readonly PolicyWithdrawal: "policy_withdrawal";
100
+ readonly IntermediarySwitched: "intermediary_switched";
101
+ };
102
+ export type ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = typeof ScheduledCommissionClawbackTriggerClassTriggerTypeEnum[keyof typeof ScheduledCommissionClawbackTriggerClassTriggerTypeEnum];
103
+ export declare const ScheduledCommissionClawbackTriggerClassStatusEnum: {
104
+ readonly Scheduled: "scheduled";
105
+ readonly Queued: "queued";
106
+ readonly Canceled: "canceled";
107
+ readonly Failed: "failed";
108
+ };
109
+ export type ScheduledCommissionClawbackTriggerClassStatusEnum = typeof ScheduledCommissionClawbackTriggerClassStatusEnum[keyof typeof ScheduledCommissionClawbackTriggerClassStatusEnum];
@@ -0,0 +1,27 @@
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 });
16
+ exports.ScheduledCommissionClawbackTriggerClassStatusEnum = exports.ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = void 0;
17
+ exports.ScheduledCommissionClawbackTriggerClassTriggerTypeEnum = {
18
+ PolicyTermination: 'policy_termination',
19
+ PolicyWithdrawal: 'policy_withdrawal',
20
+ IntermediarySwitched: 'intermediary_switched'
21
+ };
22
+ exports.ScheduledCommissionClawbackTriggerClassStatusEnum = {
23
+ Scheduled: 'scheduled',
24
+ Queued: 'queued',
25
+ Canceled: 'canceled',
26
+ Failed: 'failed'
27
+ };
@@ -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 TriggerDueCommissionClawbacksRequestDto
16
+ */
17
+ export interface TriggerDueCommissionClawbacksRequestDto {
18
+ /**
19
+ * Processing cutoff for due scheduled clawback triggers. If omitted, server processing time is used.
20
+ * @type {string}
21
+ * @memberof TriggerDueCommissionClawbacksRequestDto
22
+ */
23
+ 'processingDate'?: string;
24
+ /**
25
+ * When true, due triggers are counted but not enqueued or marked queued.
26
+ * @type {boolean}
27
+ * @memberof TriggerDueCommissionClawbacksRequestDto
28
+ */
29
+ 'dryRun'?: boolean;
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 });
@@ -0,0 +1,24 @@
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 TriggerDueCommissionClawbacksResponseClass
16
+ */
17
+ export interface TriggerDueCommissionClawbacksResponseClass {
18
+ /**
19
+ * Whether due scheduled clawback trigger processing completed.
20
+ * @type {boolean}
21
+ * @memberof TriggerDueCommissionClawbacksResponseClass
22
+ */
23
+ 'success': boolean;
24
+ }
@@ -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 });
@@ -40,7 +40,7 @@ export interface UpdateCommissionCandidateRequestDto {
40
40
  */
41
41
  'status'?: UpdateCommissionCandidateRequestDtoStatusEnum;
42
42
  /**
43
- * The type of commission. Valid values: sales, maintenance, other
43
+ * The type of commission. Valid values: sales, maintenance, other, clawback
44
44
  * @type {string}
45
45
  * @memberof UpdateCommissionCandidateRequestDto
46
46
  */
@@ -67,5 +67,6 @@ export declare const UpdateCommissionCandidateRequestDtoCommissionTypeEnum: {
67
67
  readonly Sales: "sales";
68
68
  readonly Maintenance: "maintenance";
69
69
  readonly Other: "other";
70
+ readonly Clawback: "clawback";
70
71
  };
71
72
  export type UpdateCommissionCandidateRequestDtoCommissionTypeEnum = typeof UpdateCommissionCandidateRequestDtoCommissionTypeEnum[keyof typeof UpdateCommissionCandidateRequestDtoCommissionTypeEnum];
@@ -21,5 +21,6 @@ exports.UpdateCommissionCandidateRequestDtoStatusEnum = {
21
21
  exports.UpdateCommissionCandidateRequestDtoCommissionTypeEnum = {
22
22
  Sales: 'sales',
23
23
  Maintenance: 'maintenance',
24
- Other: 'other'
24
+ Other: 'other',
25
+ Clawback: 'clawback'
25
26
  };