@emilgroup/commission-sdk-node 1.0.0-beta.4 → 1.0.0-beta.40

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 (155) hide show
  1. package/.openapi-generator/FILES +39 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +655 -0
  4. package/api/commission-agreement-rules-api.ts +762 -0
  5. package/api/commission-agreements-api.ts +160 -27
  6. package/api/commission-recipients-api.ts +92 -37
  7. package/api/commission-settlements-api.ts +804 -0
  8. package/api/commissions-api.ts +121 -18
  9. package/api.ts +6 -0
  10. package/dist/api/commission-agreement-products-api.d.ts +366 -0
  11. package/dist/api/commission-agreement-products-api.js +630 -0
  12. package/dist/api/commission-agreement-rules-api.d.ts +423 -0
  13. package/dist/api/commission-agreement-rules-api.js +723 -0
  14. package/dist/api/commission-agreements-api.d.ts +98 -23
  15. package/dist/api/commission-agreements-api.js +127 -22
  16. package/dist/api/commission-recipients-api.d.ts +63 -27
  17. package/dist/api/commission-recipients-api.js +53 -29
  18. package/dist/api/commission-settlements-api.d.ts +450 -0
  19. package/dist/api/commission-settlements-api.js +741 -0
  20. package/dist/api/commissions-api.d.ts +74 -18
  21. package/dist/api/commissions-api.js +101 -9
  22. package/dist/api.d.ts +3 -0
  23. package/dist/api.js +3 -0
  24. package/dist/models/commission-agreement-class.d.ts +27 -3
  25. package/dist/models/commission-agreement-class.js +5 -1
  26. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  27. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  28. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  29. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  30. package/dist/models/commission-agreement-product-class.d.ts +77 -0
  31. package/dist/models/commission-agreement-product-class.js +20 -0
  32. package/dist/models/commission-agreement-rule-class.d.ts +93 -0
  33. package/dist/models/commission-agreement-rule-class.js +21 -0
  34. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  35. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  36. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  37. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  38. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  39. package/dist/models/commission-class.d.ts +37 -6
  40. package/dist/models/commission-conditions-dto.d.ts +24 -0
  41. package/dist/models/commission-conditions-dto.js +15 -0
  42. package/dist/models/commission-config-dto.d.ts +63 -0
  43. package/dist/models/commission-config-dto.js +34 -0
  44. package/dist/models/commission-estimate-class.d.ts +59 -0
  45. package/dist/models/commission-estimate-class.js +25 -0
  46. package/dist/models/commission-settlement-class.d.ts +124 -0
  47. package/dist/models/commission-settlement-class.js +35 -0
  48. package/dist/models/create-commission-agreement-product-request-dto.d.ts +30 -0
  49. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  50. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  51. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  52. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  53. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  54. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  55. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  56. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  57. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  58. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  59. package/dist/models/create-commission-request-dto.d.ts +3 -9
  60. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  61. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  62. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  63. package/dist/models/create-commission-settlement-response-class.js +15 -0
  64. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  65. package/dist/models/estimate-commissions-response-class.js +15 -0
  66. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  67. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  68. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  69. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  70. package/dist/models/evaluated-commission-class.d.ts +54 -0
  71. package/dist/models/evaluated-commission-class.js +21 -0
  72. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  73. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  74. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  75. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  76. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  77. package/dist/models/get-commission-settlement-response-class.js +15 -0
  78. package/dist/models/index.d.ts +36 -0
  79. package/dist/models/index.js +36 -0
  80. package/dist/models/list-commission-agreement-products-response-class.d.ts +43 -0
  81. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  82. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  83. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  84. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  85. package/dist/models/list-commission-settlements-response-class.js +15 -0
  86. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  87. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  88. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  89. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  90. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  91. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  92. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  93. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  94. package/dist/models/update-commission-agreement-product-request-dto.d.ts +41 -0
  95. package/dist/models/update-commission-agreement-product-request-dto.js +20 -0
  96. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  97. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  98. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  99. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  100. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  101. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  102. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  103. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  104. package/dist/models/update-commission-request-dto.d.ts +5 -3
  105. package/dist/models/update-commission-request-dto.js +4 -2
  106. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  107. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  108. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  109. package/dist/models/update-commission-settlement-response-class.js +15 -0
  110. package/models/commission-agreement-class.ts +27 -3
  111. package/models/commission-agreement-metadata-dto.ts +31 -0
  112. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  113. package/models/commission-agreement-product-class.ts +86 -0
  114. package/models/commission-agreement-rule-class.ts +102 -0
  115. package/models/commission-agreement-rule-config-dto.ts +31 -0
  116. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  117. package/models/commission-agreement-version-class.ts +7 -0
  118. package/models/commission-class.ts +37 -6
  119. package/models/commission-conditions-dto.ts +30 -0
  120. package/models/commission-config-dto.ts +73 -0
  121. package/models/commission-estimate-class.ts +69 -0
  122. package/models/commission-settlement-class.ts +134 -0
  123. package/models/create-commission-agreement-product-request-dto.ts +36 -0
  124. package/models/create-commission-agreement-product-response-class.ts +31 -0
  125. package/models/create-commission-agreement-request-dto.ts +14 -3
  126. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  127. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  128. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  129. package/models/create-commission-request-dto.ts +3 -9
  130. package/models/create-commission-settlement-request-dto.ts +67 -0
  131. package/models/create-commission-settlement-response-class.ts +31 -0
  132. package/models/estimate-commissions-response-class.ts +79 -0
  133. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  134. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  135. package/models/evaluated-commission-class.ts +63 -0
  136. package/models/get-commission-agreement-product-response-class.ts +31 -0
  137. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  138. package/models/get-commission-settlement-response-class.ts +31 -0
  139. package/models/index.ts +36 -0
  140. package/models/list-commission-agreement-products-response-class.ts +49 -0
  141. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  142. package/models/list-commission-settlements-response-class.ts +49 -0
  143. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  144. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  145. package/models/publish-commission-settlements-request-dto.ts +30 -0
  146. package/models/publish-commission-settlements-response-class.ts +31 -0
  147. package/models/update-commission-agreement-product-request-dto.ts +50 -0
  148. package/models/update-commission-agreement-product-response-class.ts +31 -0
  149. package/models/update-commission-agreement-request-dto.ts +3 -1
  150. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  151. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/update-commission-request-dto.ts +5 -3
  153. package/models/update-commission-settlement-request-dto.ts +52 -0
  154. package/models/update-commission-settlement-response-class.ts +31 -0
  155. package/package.json +1 -1
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
15
  import { CreateCommissionRequestDto } from '../models';
16
16
  import { CreateCommissionResponseClass } from '../models';
17
+ import { EstimateCommissionsResponseClass } from '../models';
17
18
  import { GetCommissionResponseClass } from '../models';
18
19
  import { ListCommissionsResponseClass } from '../models';
19
20
  import { UpdateCommissionRequestDto } from '../models';
@@ -41,6 +42,15 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
41
42
  * @throws {RequiredError}
42
43
  */
43
44
  deleteCommission: (code: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
45
+ /**
46
+ * This will estimate commissions for a given policy.
47
+ * @summary Retrieve the estimate commissions
48
+ * @param {string} policyCode Unique identifier for the object.
49
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
50
+ * @param {*} [options] Override http request option.
51
+ * @throws {RequiredError}
52
+ */
53
+ estimateCommission: (policyCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
54
  /**
45
55
  * This will get commission.
46
56
  * @summary Retrieve the commission
@@ -57,15 +67,15 @@ export declare const CommissionsApiAxiosParamCreator: (configuration?: Configura
57
67
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
68
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
59
69
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
60
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
70
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
61
71
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
62
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
63
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
72
+ * @param {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
73
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
64
74
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
65
75
  * @param {*} [options] Override http request option.
66
76
  * @throws {RequiredError}
67
77
  */
68
- listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
78
+ listCommissions: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
69
79
  /**
70
80
  * This will update commission.
71
81
  * @summary Update the commission
@@ -100,6 +110,15 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
100
110
  * @throws {RequiredError}
101
111
  */
102
112
  deleteCommission(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
113
+ /**
114
+ * This will estimate commissions for a given policy.
115
+ * @summary Retrieve the estimate commissions
116
+ * @param {string} policyCode Unique identifier for the object.
117
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
118
+ * @param {*} [options] Override http request option.
119
+ * @throws {RequiredError}
120
+ */
121
+ estimateCommission(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EstimateCommissionsResponseClass>>;
103
122
  /**
104
123
  * This will get commission.
105
124
  * @summary Retrieve the commission
@@ -116,15 +135,15 @@ export declare const CommissionsApiFp: (configuration?: Configuration) => {
116
135
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
117
136
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
118
137
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
119
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
138
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
120
139
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
121
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
122
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
140
+ * @param {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
141
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
123
142
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
124
143
  * @param {*} [options] Override http request option.
125
144
  * @throws {RequiredError}
126
145
  */
127
- listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
146
+ listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionsResponseClass>>;
128
147
  /**
129
148
  * This will update commission.
130
149
  * @summary Update the commission
@@ -159,6 +178,15 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
159
178
  * @throws {RequiredError}
160
179
  */
161
180
  deleteCommission(code: string, authorization?: string, options?: any): AxiosPromise<void>;
181
+ /**
182
+ * This will estimate commissions for a given policy.
183
+ * @summary Retrieve the estimate commissions
184
+ * @param {string} policyCode Unique identifier for the object.
185
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
186
+ * @param {*} [options] Override http request option.
187
+ * @throws {RequiredError}
188
+ */
189
+ estimateCommission(policyCode: string, authorization?: string, options?: any): AxiosPromise<EstimateCommissionsResponseClass>;
162
190
  /**
163
191
  * This will get commission.
164
192
  * @summary Retrieve the commission
@@ -175,15 +203,15 @@ export declare const CommissionsApiFactory: (configuration?: Configuration, base
175
203
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
176
204
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
177
205
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
178
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
206
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
179
207
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
180
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
181
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
208
+ * @param {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
209
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
182
210
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
183
211
  * @param {*} [options] Override http request option.
184
212
  * @throws {RequiredError}
185
213
  */
186
- listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt', search?: string, order?: 'createdAt', expand?: 'items', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass>;
214
+ listCommissions(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode', search?: string, order?: 'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency', expand?: 'items' | 'agreement', filters?: string, options?: any): AxiosPromise<ListCommissionsResponseClass>;
187
215
  /**
188
216
  * This will update commission.
189
217
  * @summary Update the commission
@@ -233,6 +261,25 @@ export interface CommissionsApiDeleteCommissionRequest {
233
261
  */
234
262
  readonly authorization?: string;
235
263
  }
264
+ /**
265
+ * Request parameters for estimateCommission operation in CommissionsApi.
266
+ * @export
267
+ * @interface CommissionsApiEstimateCommissionRequest
268
+ */
269
+ export interface CommissionsApiEstimateCommissionRequest {
270
+ /**
271
+ * Unique identifier for the object.
272
+ * @type {string}
273
+ * @memberof CommissionsApiEstimateCommission
274
+ */
275
+ readonly policyCode: string;
276
+ /**
277
+ * Bearer Token: provided by the login endpoint under the name accessToken.
278
+ * @type {string}
279
+ * @memberof CommissionsApiEstimateCommission
280
+ */
281
+ readonly authorization?: string;
282
+ }
236
283
  /**
237
284
  * Request parameters for getCommission operation in CommissionsApi.
238
285
  * @export
@@ -284,10 +331,10 @@ export interface CommissionsApiListCommissionsRequest {
284
331
  readonly pageToken?: string;
285
332
  /**
286
333
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
287
- * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'}
334
+ * @type {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'}
288
335
  * @memberof CommissionsApiListCommissions
289
336
  */
290
- readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt';
337
+ readonly filter?: 'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode';
291
338
  /**
292
339
  * To search the list by any field, pass search&#x3D;xxx to fetch the result.
293
340
  * @type {string}
@@ -296,16 +343,16 @@ export interface CommissionsApiListCommissionsRequest {
296
343
  readonly search?: string;
297
344
  /**
298
345
  * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
299
- * @type {'createdAt'}
346
+ * @type {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'}
300
347
  * @memberof CommissionsApiListCommissions
301
348
  */
302
- readonly order?: 'createdAt';
349
+ readonly order?: 'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency';
303
350
  /**
304
351
  * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
305
- * @type {'items'}
352
+ * @type {'items' | 'agreement'}
306
353
  * @memberof CommissionsApiListCommissions
307
354
  */
308
- readonly expand?: 'items';
355
+ readonly expand?: 'items' | 'agreement';
309
356
  /**
310
357
  * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
311
358
  * @type {string}
@@ -363,6 +410,15 @@ export declare class CommissionsApi extends BaseAPI {
363
410
  * @memberof CommissionsApi
364
411
  */
365
412
  deleteCommission(requestParameters: CommissionsApiDeleteCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
413
+ /**
414
+ * This will estimate commissions for a given policy.
415
+ * @summary Retrieve the estimate commissions
416
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
417
+ * @param {*} [options] Override http request option.
418
+ * @throws {RequiredError}
419
+ * @memberof CommissionsApi
420
+ */
421
+ estimateCommission(requestParameters: CommissionsApiEstimateCommissionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<EstimateCommissionsResponseClass, any, {}>>;
366
422
  /**
367
423
  * This will get commission.
368
424
  * @summary Retrieve the commission
@@ -193,6 +193,54 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
193
193
  });
194
194
  });
195
195
  },
196
+ /**
197
+ * This will estimate commissions for a given policy.
198
+ * @summary Retrieve the estimate commissions
199
+ * @param {string} policyCode Unique identifier for the object.
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ estimateCommission: function (policyCode, authorization, options) {
205
+ if (options === void 0) { options = {}; }
206
+ return __awaiter(_this, void 0, void 0, function () {
207
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
208
+ return __generator(this, function (_a) {
209
+ switch (_a.label) {
210
+ case 0:
211
+ // verify required parameter 'policyCode' is not null or undefined
212
+ (0, common_1.assertParamExists)('estimateCommission', 'policyCode', policyCode);
213
+ localVarPath = "/commissionservice/v1/commissions/estimate/{policyCode}"
214
+ .replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
215
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
+ if (configuration) {
217
+ baseOptions = configuration.baseOptions;
218
+ baseAccessToken = configuration.accessToken;
219
+ }
220
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
221
+ localVarHeaderParameter = {};
222
+ localVarQueryParameter = {};
223
+ // authentication bearer required
224
+ // http bearer authentication required
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
226
+ case 1:
227
+ // authentication bearer required
228
+ // http bearer authentication required
229
+ _a.sent();
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
+ }
233
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
234
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
235
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
236
+ return [2 /*return*/, {
237
+ url: (0, common_1.toPathString)(localVarUrlObj),
238
+ options: localVarRequestOptions,
239
+ }];
240
+ }
241
+ });
242
+ });
243
+ },
196
244
  /**
197
245
  * This will get commission.
198
246
  * @summary Retrieve the commission
@@ -253,10 +301,10 @@ var CommissionsApiAxiosParamCreator = function (configuration) {
253
301
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
302
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
303
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
256
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
304
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
257
305
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
258
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
259
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
306
+ * @param {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
307
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
260
308
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
261
309
  * @param {*} [options] Override http request option.
262
310
  * @throws {RequiredError}
@@ -424,6 +472,27 @@ var CommissionsApiFp = function (configuration) {
424
472
  });
425
473
  });
426
474
  },
475
+ /**
476
+ * This will estimate commissions for a given policy.
477
+ * @summary Retrieve the estimate commissions
478
+ * @param {string} policyCode Unique identifier for the object.
479
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
480
+ * @param {*} [options] Override http request option.
481
+ * @throws {RequiredError}
482
+ */
483
+ estimateCommission: function (policyCode, authorization, options) {
484
+ return __awaiter(this, void 0, void 0, function () {
485
+ var localVarAxiosArgs;
486
+ return __generator(this, function (_a) {
487
+ switch (_a.label) {
488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.estimateCommission(policyCode, authorization, options)];
489
+ case 1:
490
+ localVarAxiosArgs = _a.sent();
491
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
492
+ }
493
+ });
494
+ });
495
+ },
427
496
  /**
428
497
  * This will get commission.
429
498
  * @summary Retrieve the commission
@@ -452,10 +521,10 @@ var CommissionsApiFp = function (configuration) {
452
521
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
453
522
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
454
523
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
455
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
524
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
456
525
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
457
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
458
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
526
+ * @param {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
527
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
459
528
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
460
529
  * @param {*} [options] Override http request option.
461
530
  * @throws {RequiredError}
@@ -527,6 +596,17 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
527
596
  deleteCommission: function (code, authorization, options) {
528
597
  return localVarFp.deleteCommission(code, authorization, options).then(function (request) { return request(axios, basePath); });
529
598
  },
599
+ /**
600
+ * This will estimate commissions for a given policy.
601
+ * @summary Retrieve the estimate commissions
602
+ * @param {string} policyCode Unique identifier for the object.
603
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
604
+ * @param {*} [options] Override http request option.
605
+ * @throws {RequiredError}
606
+ */
607
+ estimateCommission: function (policyCode, authorization, options) {
608
+ return localVarFp.estimateCommission(policyCode, authorization, options).then(function (request) { return request(axios, basePath); });
609
+ },
530
610
  /**
531
611
  * This will get commission.
532
612
  * @summary Retrieve the commission
@@ -545,10 +625,10 @@ var CommissionsApiFactory = function (configuration, basePath, axios) {
545
625
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
546
626
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
547
627
  * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
548
- * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
628
+ * @param {'id' | 'code' | 'partnerCode' | 'policyCode' | 'commissionAgreementCode' | 'commissionAgreementVersionId' | 'status' | 'amount' | 'description' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'settlementCode'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
549
629
  * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
550
- * @param {'createdAt'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
551
- * @param {'items'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
630
+ * @param {'agreement.commissionAgreementNumber' | 'policyNumber' | 'partnerNumber' | 'createdAt' | 'updatedAt' | 'amount' | 'status' | 'agreement.billingFrequency'} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
631
+ * @param {'items' | 'agreement'} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
552
632
  * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
553
633
  * @param {*} [options] Override http request option.
554
634
  * @throws {RequiredError}
@@ -606,6 +686,18 @@ var CommissionsApi = /** @class */ (function (_super) {
606
686
  var _this = this;
607
687
  return (0, exports.CommissionsApiFp)(this.configuration).deleteCommission(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
688
  };
689
+ /**
690
+ * This will estimate commissions for a given policy.
691
+ * @summary Retrieve the estimate commissions
692
+ * @param {CommissionsApiEstimateCommissionRequest} requestParameters Request parameters.
693
+ * @param {*} [options] Override http request option.
694
+ * @throws {RequiredError}
695
+ * @memberof CommissionsApi
696
+ */
697
+ CommissionsApi.prototype.estimateCommission = function (requestParameters, options) {
698
+ var _this = this;
699
+ return (0, exports.CommissionsApiFp)(this.configuration).estimateCommission(requestParameters.policyCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
700
+ };
609
701
  /**
610
702
  * This will get commission.
611
703
  * @summary Retrieve the commission
package/dist/api.d.ts CHANGED
@@ -9,8 +9,11 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/commission-agreement-products-api';
13
+ export * from './api/commission-agreement-rules-api';
12
14
  export * from './api/commission-agreement-versions-api';
13
15
  export * from './api/commission-agreements-api';
14
16
  export * from './api/commission-recipients-api';
17
+ export * from './api/commission-settlements-api';
15
18
  export * from './api/commissions-api';
16
19
  export * from './api/default-api';
package/dist/api.js CHANGED
@@ -27,8 +27,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/commission-agreement-products-api"), exports);
31
+ __exportStar(require("./api/commission-agreement-rules-api"), exports);
30
32
  __exportStar(require("./api/commission-agreement-versions-api"), exports);
31
33
  __exportStar(require("./api/commission-agreements-api"), exports);
32
34
  __exportStar(require("./api/commission-recipients-api"), exports);
35
+ __exportStar(require("./api/commission-settlements-api"), exports);
33
36
  __exportStar(require("./api/commissions-api"), exports);
34
37
  __exportStar(require("./api/default-api"), exports);
@@ -9,6 +9,8 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { CommissionAgreementMetadataDto } from './commission-agreement-metadata-dto';
13
+ import { CommissionAgreementVersionClass } from './commission-agreement-version-class';
12
14
  /**
13
15
  *
14
16
  * @export
@@ -34,11 +36,23 @@ export interface CommissionAgreementClass {
34
36
  */
35
37
  'code': string;
36
38
  /**
37
- * Current status of the commission agreement (e.g., active, inactive)
39
+ * Unique number identifier for the commission agreement
40
+ * @type {string}
41
+ * @memberof CommissionAgreementClass
42
+ */
43
+ 'commissionAgreementNumber': string;
44
+ /**
45
+ * Current status of the commission agreement (e.g., draft, active, processing, archived)
38
46
  * @type {string}
39
47
  * @memberof CommissionAgreementClass
40
48
  */
41
49
  'status': CommissionAgreementClassStatusEnum;
50
+ /**
51
+ * Array of commission agreement versions
52
+ * @type {Array<CommissionAgreementVersionClass>}
53
+ * @memberof CommissionAgreementClass
54
+ */
55
+ 'versions'?: Array<CommissionAgreementVersionClass>;
42
56
  /**
43
57
  * Detailed description of the commission agreement terms and conditions
44
58
  * @type {string}
@@ -46,11 +60,17 @@ export interface CommissionAgreementClass {
46
60
  */
47
61
  'description'?: string;
48
62
  /**
49
- * Frequency at which commissions are billed (e.g., monthly, quarterly, yearly)
63
+ * Frequency at which commissions are billed (e.g., immediately, monthly, quarterly, halfYearly, yearly)
50
64
  * @type {string}
51
65
  * @memberof CommissionAgreementClass
52
66
  */
53
67
  'billingFrequency'?: CommissionAgreementClassBillingFrequencyEnum;
68
+ /**
69
+ * Metadata associated with the commission agreement
70
+ * @type {CommissionAgreementMetadataDto}
71
+ * @memberof CommissionAgreementClass
72
+ */
73
+ 'metadata'?: CommissionAgreementMetadataDto;
54
74
  /**
55
75
  * Timestamp when the commission agreement was created
56
76
  * @type {string}
@@ -77,13 +97,17 @@ export interface CommissionAgreementClass {
77
97
  'updatedBy'?: string;
78
98
  }
79
99
  export declare const CommissionAgreementClassStatusEnum: {
100
+ readonly Draft: "draft";
80
101
  readonly Active: "active";
81
- readonly Inactive: "inactive";
102
+ readonly Processing: "processing";
103
+ readonly Archived: "archived";
82
104
  };
83
105
  export type CommissionAgreementClassStatusEnum = typeof CommissionAgreementClassStatusEnum[keyof typeof CommissionAgreementClassStatusEnum];
84
106
  export declare const CommissionAgreementClassBillingFrequencyEnum: {
107
+ readonly Immediately: "immediately";
85
108
  readonly Monthly: "monthly";
86
109
  readonly Quarterly: "quarterly";
110
+ readonly HalfYearly: "halfYearly";
87
111
  readonly Yearly: "yearly";
88
112
  };
89
113
  export type CommissionAgreementClassBillingFrequencyEnum = typeof CommissionAgreementClassBillingFrequencyEnum[keyof typeof CommissionAgreementClassBillingFrequencyEnum];
@@ -15,11 +15,15 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CommissionAgreementClassBillingFrequencyEnum = exports.CommissionAgreementClassStatusEnum = void 0;
17
17
  exports.CommissionAgreementClassStatusEnum = {
18
+ Draft: 'draft',
18
19
  Active: 'active',
19
- Inactive: 'inactive'
20
+ Processing: 'processing',
21
+ Archived: 'archived'
20
22
  };
21
23
  exports.CommissionAgreementClassBillingFrequencyEnum = {
24
+ Immediately: 'immediately',
22
25
  Monthly: 'monthly',
23
26
  Quarterly: 'quarterly',
27
+ HalfYearly: 'halfYearly',
24
28
  Yearly: 'yearly'
25
29
  };
@@ -0,0 +1,25 @@
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 { CommissionAgreementMetadataPartnerDto } from './commission-agreement-metadata-partner-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CommissionAgreementMetadataDto
17
+ */
18
+ export interface CommissionAgreementMetadataDto {
19
+ /**
20
+ * Main partner of the commission agreement
21
+ * @type {CommissionAgreementMetadataPartnerDto}
22
+ * @memberof CommissionAgreementMetadataDto
23
+ */
24
+ 'mainPartner'?: CommissionAgreementMetadataPartnerDto;
25
+ }
@@ -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,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 CommissionAgreementMetadataPartnerDto
16
+ */
17
+ export interface CommissionAgreementMetadataPartnerDto {
18
+ /**
19
+ * Code of the partner
20
+ * @type {string}
21
+ * @memberof CommissionAgreementMetadataPartnerDto
22
+ */
23
+ 'code': string;
24
+ /**
25
+ * Name of the partner
26
+ * @type {string}
27
+ * @memberof CommissionAgreementMetadataPartnerDto
28
+ */
29
+ 'name': string;
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 });