@emilgroup/commission-sdk-node 1.0.0-beta.9 → 2.1.0

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 (170) hide show
  1. package/.openapi-generator/FILES +40 -0
  2. package/README.md +2 -2
  3. package/api/commission-agreement-products-api.ts +59 -17
  4. package/api/commission-agreement-rules-api.ts +804 -0
  5. package/api/commission-agreement-versions-api.ts +8 -8
  6. package/api/commission-agreements-api.ts +160 -27
  7. package/api/commission-candidates-api.ts +697 -0
  8. package/api/commission-recipients-api.ts +12 -12
  9. package/api/commission-settlements-api.ts +804 -0
  10. package/api/commissions-api.ts +125 -18
  11. package/api.ts +6 -0
  12. package/dist/api/commission-agreement-products-api.d.ts +39 -12
  13. package/dist/api/commission-agreement-products-api.js +32 -14
  14. package/dist/api/commission-agreement-rules-api.d.ts +450 -0
  15. package/dist/api/commission-agreement-rules-api.js +741 -0
  16. package/dist/api/commission-agreement-versions-api.d.ts +8 -8
  17. package/dist/api/commission-agreement-versions-api.js +6 -6
  18. package/dist/api/commission-agreements-api.d.ts +98 -23
  19. package/dist/api/commission-agreements-api.js +127 -22
  20. package/dist/api/commission-candidates-api.d.ts +393 -0
  21. package/dist/api/commission-candidates-api.js +648 -0
  22. package/dist/api/commission-recipients-api.d.ts +12 -12
  23. package/dist/api/commission-recipients-api.js +9 -9
  24. package/dist/api/commission-settlements-api.d.ts +450 -0
  25. package/dist/api/commission-settlements-api.js +741 -0
  26. package/dist/api/commissions-api.d.ts +75 -18
  27. package/dist/api/commissions-api.js +102 -9
  28. package/dist/api.d.ts +3 -0
  29. package/dist/api.js +3 -0
  30. package/dist/models/commission-agreement-class.d.ts +27 -3
  31. package/dist/models/commission-agreement-class.js +5 -1
  32. package/dist/models/commission-agreement-metadata-dto.d.ts +25 -0
  33. package/dist/models/commission-agreement-metadata-dto.js +15 -0
  34. package/dist/models/commission-agreement-metadata-partner-dto.d.ts +30 -0
  35. package/dist/models/commission-agreement-metadata-partner-dto.js +15 -0
  36. package/dist/models/commission-agreement-product-class.d.ts +6 -7
  37. package/dist/models/commission-agreement-rule-class.d.ts +99 -0
  38. package/dist/models/commission-agreement-rule-class.js +21 -0
  39. package/dist/models/commission-agreement-rule-config-dto.d.ts +25 -0
  40. package/dist/models/commission-agreement-rule-config-dto.js +15 -0
  41. package/dist/models/commission-agreement-rule-evaluation-class.d.ts +31 -0
  42. package/dist/models/commission-agreement-rule-evaluation-class.js +15 -0
  43. package/dist/models/commission-agreement-version-class.d.ts +7 -0
  44. package/dist/models/commission-candidate-class.d.ts +95 -0
  45. package/dist/models/commission-candidate-class.js +20 -0
  46. package/dist/models/commission-class.d.ts +37 -6
  47. package/dist/models/commission-conditions-dto.d.ts +24 -0
  48. package/dist/models/commission-conditions-dto.js +15 -0
  49. package/dist/models/commission-config-dto.d.ts +63 -0
  50. package/dist/models/commission-config-dto.js +34 -0
  51. package/dist/models/commission-estimate-class.d.ts +59 -0
  52. package/dist/models/commission-estimate-class.js +25 -0
  53. package/dist/models/commission-recipient-class.d.ts +6 -6
  54. package/dist/models/commission-settlement-class.d.ts +124 -0
  55. package/dist/models/commission-settlement-class.js +35 -0
  56. package/dist/models/create-commission-agreement-request-dto.d.ts +14 -3
  57. package/dist/models/create-commission-agreement-request-dto.js +5 -1
  58. package/dist/models/create-commission-agreement-rule-request-dto.d.ts +37 -0
  59. package/dist/models/create-commission-agreement-rule-request-dto.js +15 -0
  60. package/dist/models/create-commission-agreement-rule-response-class.d.ts +25 -0
  61. package/dist/models/create-commission-agreement-rule-response-class.js +15 -0
  62. package/dist/models/create-commission-agreement-version-request-dto.d.ts +1 -1
  63. package/dist/models/create-commission-candidate-request-dto.d.ts +65 -0
  64. package/dist/models/create-commission-candidate-request-dto.js +25 -0
  65. package/dist/models/create-commission-candidate-response-class.d.ts +25 -0
  66. package/dist/models/create-commission-candidate-response-class.js +15 -0
  67. package/dist/models/create-commission-recipient-request-dto.d.ts +2 -2
  68. package/dist/models/create-commission-request-dto.d.ts +3 -9
  69. package/dist/models/create-commission-settlement-request-dto.d.ts +57 -0
  70. package/dist/models/create-commission-settlement-request-dto.js +35 -0
  71. package/dist/models/create-commission-settlement-response-class.d.ts +25 -0
  72. package/dist/models/create-commission-settlement-response-class.js +15 -0
  73. package/dist/models/estimate-commissions-request-dto.d.ts +30 -0
  74. package/dist/models/estimate-commissions-request-dto.js +15 -0
  75. package/dist/models/estimate-commissions-response-class.d.ts +73 -0
  76. package/dist/models/estimate-commissions-response-class.js +15 -0
  77. package/dist/models/evaluate-commission-agreement-rule-request-dto.d.ts +31 -0
  78. package/dist/models/evaluate-commission-agreement-rule-request-dto.js +15 -0
  79. package/dist/models/evaluate-commission-agreement-rule-response-class.d.ts +25 -0
  80. package/dist/models/evaluate-commission-agreement-rule-response-class.js +15 -0
  81. package/dist/models/evaluated-commission-class.d.ts +54 -0
  82. package/dist/models/evaluated-commission-class.js +21 -0
  83. package/dist/models/get-commission-agreement-rule-response-class.d.ts +25 -0
  84. package/dist/models/get-commission-agreement-rule-response-class.js +15 -0
  85. package/dist/models/get-commission-candidate-response-class.d.ts +25 -0
  86. package/dist/models/get-commission-candidate-response-class.js +15 -0
  87. package/dist/models/get-commission-settlement-response-class.d.ts +25 -0
  88. package/dist/models/get-commission-settlement-response-class.js +15 -0
  89. package/dist/models/index.d.ts +37 -0
  90. package/dist/models/index.js +37 -0
  91. package/dist/models/list-commission-agreement-rules-response-class.d.ts +43 -0
  92. package/dist/models/list-commission-agreement-rules-response-class.js +15 -0
  93. package/dist/models/list-commission-candidates-response-class.d.ts +43 -0
  94. package/dist/models/list-commission-candidates-response-class.js +15 -0
  95. package/dist/models/list-commission-settlements-response-class.d.ts +43 -0
  96. package/dist/models/list-commission-settlements-response-class.js +15 -0
  97. package/dist/models/patch-commission-agreement-status-request-dto.d.ts +37 -0
  98. package/dist/models/patch-commission-agreement-status-request-dto.js +22 -0
  99. package/dist/models/patch-commission-agreement-status-response-class.d.ts +25 -0
  100. package/dist/models/patch-commission-agreement-status-response-class.js +15 -0
  101. package/dist/models/publish-commission-settlements-request-dto.d.ts +24 -0
  102. package/dist/models/publish-commission-settlements-request-dto.js +15 -0
  103. package/dist/models/publish-commission-settlements-response-class.d.ts +25 -0
  104. package/dist/models/publish-commission-settlements-response-class.js +15 -0
  105. package/dist/models/update-commission-agreement-request-dto.d.ts +3 -1
  106. package/dist/models/update-commission-agreement-request-dto.js +2 -0
  107. package/dist/models/update-commission-agreement-rule-request-dto.d.ts +49 -0
  108. package/dist/models/update-commission-agreement-rule-request-dto.js +21 -0
  109. package/dist/models/update-commission-agreement-rule-response-class.d.ts +25 -0
  110. package/dist/models/update-commission-agreement-rule-response-class.js +15 -0
  111. package/dist/models/update-commission-candidate-request-dto.d.ts +71 -0
  112. package/dist/models/update-commission-candidate-request-dto.js +25 -0
  113. package/dist/models/update-commission-candidate-response-class.d.ts +25 -0
  114. package/dist/models/update-commission-candidate-response-class.js +15 -0
  115. package/dist/models/update-commission-request-dto.d.ts +5 -3
  116. package/dist/models/update-commission-request-dto.js +4 -2
  117. package/dist/models/update-commission-settlement-request-dto.d.ts +43 -0
  118. package/dist/models/update-commission-settlement-request-dto.js +22 -0
  119. package/dist/models/update-commission-settlement-response-class.d.ts +25 -0
  120. package/dist/models/update-commission-settlement-response-class.js +15 -0
  121. package/models/commission-agreement-class.ts +27 -3
  122. package/models/commission-agreement-metadata-dto.ts +31 -0
  123. package/models/commission-agreement-metadata-partner-dto.ts +36 -0
  124. package/models/commission-agreement-product-class.ts +6 -7
  125. package/models/commission-agreement-rule-class.ts +108 -0
  126. package/models/commission-agreement-rule-config-dto.ts +31 -0
  127. package/models/commission-agreement-rule-evaluation-class.ts +37 -0
  128. package/models/commission-agreement-version-class.ts +7 -0
  129. package/models/commission-candidate-class.ts +104 -0
  130. package/models/commission-class.ts +37 -6
  131. package/models/commission-conditions-dto.ts +30 -0
  132. package/models/commission-config-dto.ts +73 -0
  133. package/models/commission-estimate-class.ts +69 -0
  134. package/models/commission-recipient-class.ts +6 -6
  135. package/models/commission-settlement-class.ts +134 -0
  136. package/models/create-commission-agreement-request-dto.ts +14 -3
  137. package/models/create-commission-agreement-rule-request-dto.ts +43 -0
  138. package/models/create-commission-agreement-rule-response-class.ts +31 -0
  139. package/models/create-commission-agreement-version-request-dto.ts +1 -1
  140. package/models/create-commission-candidate-request-dto.ts +75 -0
  141. package/models/create-commission-candidate-response-class.ts +31 -0
  142. package/models/create-commission-recipient-request-dto.ts +2 -2
  143. package/models/create-commission-request-dto.ts +3 -9
  144. package/models/create-commission-settlement-request-dto.ts +67 -0
  145. package/models/create-commission-settlement-response-class.ts +31 -0
  146. package/models/estimate-commissions-request-dto.ts +36 -0
  147. package/models/estimate-commissions-response-class.ts +79 -0
  148. package/models/evaluate-commission-agreement-rule-request-dto.ts +37 -0
  149. package/models/evaluate-commission-agreement-rule-response-class.ts +31 -0
  150. package/models/evaluated-commission-class.ts +63 -0
  151. package/models/get-commission-agreement-rule-response-class.ts +31 -0
  152. package/models/get-commission-candidate-response-class.ts +31 -0
  153. package/models/get-commission-settlement-response-class.ts +31 -0
  154. package/models/index.ts +37 -0
  155. package/models/list-commission-agreement-rules-response-class.ts +49 -0
  156. package/models/list-commission-candidates-response-class.ts +49 -0
  157. package/models/list-commission-settlements-response-class.ts +49 -0
  158. package/models/patch-commission-agreement-status-request-dto.ts +46 -0
  159. package/models/patch-commission-agreement-status-response-class.ts +31 -0
  160. package/models/publish-commission-settlements-request-dto.ts +30 -0
  161. package/models/publish-commission-settlements-response-class.ts +31 -0
  162. package/models/update-commission-agreement-request-dto.ts +3 -1
  163. package/models/update-commission-agreement-rule-request-dto.ts +58 -0
  164. package/models/update-commission-agreement-rule-response-class.ts +31 -0
  165. package/models/update-commission-candidate-request-dto.ts +81 -0
  166. package/models/update-commission-candidate-response-class.ts +31 -0
  167. package/models/update-commission-request-dto.ts +5 -3
  168. package/models/update-commission-settlement-request-dto.ts +52 -0
  169. package/models/update-commission-settlement-response-class.ts +31 -0
  170. package/package.json +2 -2
@@ -0,0 +1,697 @@
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
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateCommissionCandidateRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCommissionCandidateResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetCommissionCandidateResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListCommissionCandidatesResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateCommissionCandidateRequestDto } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionCandidateResponseClass } from '../models';
35
+ // URLSearchParams not necessarily used
36
+ // @ts-ignore
37
+ import { URL, URLSearchParams } from 'url';
38
+ const FormData = require('form-data');
39
+ /**
40
+ * CommissionCandidatesApi - axios parameter creator
41
+ * @export
42
+ */
43
+ export const CommissionCandidatesApiAxiosParamCreator = function (configuration?: Configuration) {
44
+ return {
45
+ /**
46
+ * This will create commission candidate.
47
+ * @summary Create the commission candidate
48
+ * @param {CreateCommissionCandidateRequestDto} createCommissionCandidateRequestDto
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
+ createCommissionCandidate: async (createCommissionCandidateRequestDto: CreateCommissionCandidateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
+ // verify required parameter 'createCommissionCandidateRequestDto' is not null or undefined
55
+ assertParamExists('createCommissionCandidate', 'createCommissionCandidateRequestDto', createCommissionCandidateRequestDto)
56
+ const localVarPath = `/commissionservice/v1/commission-candidates`;
57
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
+ let baseOptions;
60
+ let baseAccessToken;
61
+ if (configuration) {
62
+ baseOptions = configuration.baseOptions;
63
+ baseAccessToken = configuration.accessToken;
64
+ }
65
+
66
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
+ const localVarHeaderParameter = {} as any;
68
+ const localVarQueryParameter = {} as any;
69
+
70
+ // authentication bearer required
71
+ // http bearer authentication required
72
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ localVarHeaderParameter['Content-Type'] = 'application/json';
81
+
82
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
83
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
+ localVarRequestOptions.data = serializeDataIfNeeded(createCommissionCandidateRequestDto, localVarRequestOptions, configuration)
86
+
87
+ return {
88
+ url: toPathString(localVarUrlObj),
89
+ options: localVarRequestOptions,
90
+ };
91
+ },
92
+ /**
93
+ * This will delete commission candidate.
94
+ * @summary Delete the commission candidate
95
+ * @param {string} code Unique identifier for the object.
96
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
97
+ * @param {*} [options] Override http request option.
98
+ * @throws {RequiredError}
99
+ */
100
+ deleteCommissionCandidate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ // verify required parameter 'code' is not null or undefined
102
+ assertParamExists('deleteCommissionCandidate', 'code', code)
103
+ const localVarPath = `/commissionservice/v1/commission-candidates/{code}`
104
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
123
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
124
+ }
125
+
126
+
127
+
128
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
129
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
130
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
131
+
132
+ return {
133
+ url: toPathString(localVarUrlObj),
134
+ options: localVarRequestOptions,
135
+ };
136
+ },
137
+ /**
138
+ * This will get commission candidate.
139
+ * @summary Retrieve the commission candidate
140
+ * @param {string} code
141
+ * @param {string} expand
142
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
143
+ * @param {*} [options] Override http request option.
144
+ * @throws {RequiredError}
145
+ */
146
+ getCommissionCandidate: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
147
+ // verify required parameter 'code' is not null or undefined
148
+ assertParamExists('getCommissionCandidate', 'code', code)
149
+ // verify required parameter 'expand' is not null or undefined
150
+ assertParamExists('getCommissionCandidate', 'expand', expand)
151
+ const localVarPath = `/commissionservice/v1/commission-candidates/{code}`
152
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
+ let baseOptions;
156
+ let baseAccessToken;
157
+ if (configuration) {
158
+ baseOptions = configuration.baseOptions;
159
+ baseAccessToken = configuration.accessToken;
160
+ }
161
+
162
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
+ const localVarHeaderParameter = {} as any;
164
+ const localVarQueryParameter = {} as any;
165
+
166
+ // authentication bearer required
167
+ // http bearer authentication required
168
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
+
170
+ if (expand !== undefined) {
171
+ localVarQueryParameter['expand'] = expand;
172
+ }
173
+
174
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
+ }
177
+
178
+
179
+
180
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
181
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
+
184
+ return {
185
+ url: toPathString(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ };
188
+ },
189
+ /**
190
+ * Retrieves a list of commission candidates.
191
+ * @summary List commission candidates
192
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
193
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
+ * @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.
195
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
196
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, invoiceCode&lt;/i&gt;
197
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, policyRenewalDate&lt;/i&gt;
198
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
199
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ listCommissionCandidates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ const localVarPath = `/commissionservice/v1/commission-candidates`;
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ let baseAccessToken;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+
214
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
215
+ const localVarHeaderParameter = {} as any;
216
+ const localVarQueryParameter = {} as any;
217
+
218
+ // authentication bearer required
219
+ // http bearer authentication required
220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
+
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
230
+ if (filter !== undefined) {
231
+ localVarQueryParameter['filter'] = filter;
232
+ }
233
+
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
236
+ }
237
+
238
+ if (order !== undefined) {
239
+ localVarQueryParameter['order'] = order;
240
+ }
241
+
242
+ if (expand !== undefined) {
243
+ localVarQueryParameter['expand'] = expand;
244
+ }
245
+
246
+ if (filters !== undefined) {
247
+ localVarQueryParameter['filters'] = filters;
248
+ }
249
+
250
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
+ }
253
+
254
+
255
+
256
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
257
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
+
260
+ return {
261
+ url: toPathString(localVarUrlObj),
262
+ options: localVarRequestOptions,
263
+ };
264
+ },
265
+ /**
266
+ * This will update commission candidate.
267
+ * @summary Update the commission candidate
268
+ * @param {string} code
269
+ * @param {UpdateCommissionCandidateRequestDto} updateCommissionCandidateRequestDto
270
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
271
+ * @param {*} [options] Override http request option.
272
+ * @throws {RequiredError}
273
+ */
274
+ updateCommissionCandidate: async (code: string, updateCommissionCandidateRequestDto: UpdateCommissionCandidateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
+ // verify required parameter 'code' is not null or undefined
276
+ assertParamExists('updateCommissionCandidate', 'code', code)
277
+ // verify required parameter 'updateCommissionCandidateRequestDto' is not null or undefined
278
+ assertParamExists('updateCommissionCandidate', 'updateCommissionCandidateRequestDto', updateCommissionCandidateRequestDto)
279
+ const localVarPath = `/commissionservice/v1/commission-candidates/{code}`
280
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
+ let baseOptions;
284
+ let baseAccessToken;
285
+ if (configuration) {
286
+ baseOptions = configuration.baseOptions;
287
+ baseAccessToken = configuration.accessToken;
288
+ }
289
+
290
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
291
+ const localVarHeaderParameter = {} as any;
292
+ const localVarQueryParameter = {} as any;
293
+
294
+ // authentication bearer required
295
+ // http bearer authentication required
296
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
+
298
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
+ }
301
+
302
+
303
+
304
+ localVarHeaderParameter['Content-Type'] = 'application/json';
305
+
306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionCandidateRequestDto, localVarRequestOptions, configuration)
310
+
311
+ return {
312
+ url: toPathString(localVarUrlObj),
313
+ options: localVarRequestOptions,
314
+ };
315
+ },
316
+ }
317
+ };
318
+
319
+ /**
320
+ * CommissionCandidatesApi - functional programming interface
321
+ * @export
322
+ */
323
+ export const CommissionCandidatesApiFp = function(configuration?: Configuration) {
324
+ const localVarAxiosParamCreator = CommissionCandidatesApiAxiosParamCreator(configuration)
325
+ return {
326
+ /**
327
+ * This will create commission candidate.
328
+ * @summary Create the commission candidate
329
+ * @param {CreateCommissionCandidateRequestDto} createCommissionCandidateRequestDto
330
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
331
+ * @param {*} [options] Override http request option.
332
+ * @throws {RequiredError}
333
+ */
334
+ async createCommissionCandidate(createCommissionCandidateRequestDto: CreateCommissionCandidateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionCandidateResponseClass>> {
335
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionCandidate(createCommissionCandidateRequestDto, authorization, options);
336
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
+ },
338
+ /**
339
+ * This will delete commission candidate.
340
+ * @summary Delete the commission candidate
341
+ * @param {string} code Unique identifier for the object.
342
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
343
+ * @param {*} [options] Override http request option.
344
+ * @throws {RequiredError}
345
+ */
346
+ async deleteCommissionCandidate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
347
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionCandidate(code, authorization, options);
348
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
+ },
350
+ /**
351
+ * This will get commission candidate.
352
+ * @summary Retrieve the commission candidate
353
+ * @param {string} code
354
+ * @param {string} expand
355
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
356
+ * @param {*} [options] Override http request option.
357
+ * @throws {RequiredError}
358
+ */
359
+ async getCommissionCandidate(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionCandidateResponseClass>> {
360
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionCandidate(code, expand, authorization, options);
361
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
+ },
363
+ /**
364
+ * Retrieves a list of commission candidates.
365
+ * @summary List commission candidates
366
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
367
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
+ * @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.
369
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
370
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, invoiceCode&lt;/i&gt;
371
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, policyRenewalDate&lt;/i&gt;
372
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
373
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ async listCommissionCandidates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionCandidatesResponseClass>> {
378
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionCandidates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
379
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
+ },
381
+ /**
382
+ * This will update commission candidate.
383
+ * @summary Update the commission candidate
384
+ * @param {string} code
385
+ * @param {UpdateCommissionCandidateRequestDto} updateCommissionCandidateRequestDto
386
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
387
+ * @param {*} [options] Override http request option.
388
+ * @throws {RequiredError}
389
+ */
390
+ async updateCommissionCandidate(code: string, updateCommissionCandidateRequestDto: UpdateCommissionCandidateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionCandidateResponseClass>> {
391
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionCandidate(code, updateCommissionCandidateRequestDto, authorization, options);
392
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
+ },
394
+ }
395
+ };
396
+
397
+ /**
398
+ * CommissionCandidatesApi - factory interface
399
+ * @export
400
+ */
401
+ export const CommissionCandidatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
+ const localVarFp = CommissionCandidatesApiFp(configuration)
403
+ return {
404
+ /**
405
+ * This will create commission candidate.
406
+ * @summary Create the commission candidate
407
+ * @param {CreateCommissionCandidateRequestDto} createCommissionCandidateRequestDto
408
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ createCommissionCandidate(createCommissionCandidateRequestDto: CreateCommissionCandidateRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionCandidateResponseClass> {
413
+ return localVarFp.createCommissionCandidate(createCommissionCandidateRequestDto, authorization, options).then((request) => request(axios, basePath));
414
+ },
415
+ /**
416
+ * This will delete commission candidate.
417
+ * @summary Delete the commission candidate
418
+ * @param {string} code Unique identifier for the object.
419
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
420
+ * @param {*} [options] Override http request option.
421
+ * @throws {RequiredError}
422
+ */
423
+ deleteCommissionCandidate(code: string, authorization?: string, options?: any): AxiosPromise<void> {
424
+ return localVarFp.deleteCommissionCandidate(code, authorization, options).then((request) => request(axios, basePath));
425
+ },
426
+ /**
427
+ * This will get commission candidate.
428
+ * @summary Retrieve the commission candidate
429
+ * @param {string} code
430
+ * @param {string} expand
431
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
+ * @param {*} [options] Override http request option.
433
+ * @throws {RequiredError}
434
+ */
435
+ getCommissionCandidate(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetCommissionCandidateResponseClass> {
436
+ return localVarFp.getCommissionCandidate(code, expand, authorization, options).then((request) => request(axios, basePath));
437
+ },
438
+ /**
439
+ * Retrieves a list of commission candidates.
440
+ * @summary List commission candidates
441
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
+ * @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.
444
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
445
+ * @param {string} [search] Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, invoiceCode&lt;/i&gt;
446
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, policyRenewalDate&lt;/i&gt;
447
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
448
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ listCommissionCandidates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionCandidatesResponseClass> {
453
+ return localVarFp.listCommissionCandidates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
454
+ },
455
+ /**
456
+ * This will update commission candidate.
457
+ * @summary Update the commission candidate
458
+ * @param {string} code
459
+ * @param {UpdateCommissionCandidateRequestDto} updateCommissionCandidateRequestDto
460
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
461
+ * @param {*} [options] Override http request option.
462
+ * @throws {RequiredError}
463
+ */
464
+ updateCommissionCandidate(code: string, updateCommissionCandidateRequestDto: UpdateCommissionCandidateRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionCandidateResponseClass> {
465
+ return localVarFp.updateCommissionCandidate(code, updateCommissionCandidateRequestDto, authorization, options).then((request) => request(axios, basePath));
466
+ },
467
+ };
468
+ };
469
+
470
+ /**
471
+ * Request parameters for createCommissionCandidate operation in CommissionCandidatesApi.
472
+ * @export
473
+ * @interface CommissionCandidatesApiCreateCommissionCandidateRequest
474
+ */
475
+ export interface CommissionCandidatesApiCreateCommissionCandidateRequest {
476
+ /**
477
+ *
478
+ * @type {CreateCommissionCandidateRequestDto}
479
+ * @memberof CommissionCandidatesApiCreateCommissionCandidate
480
+ */
481
+ readonly createCommissionCandidateRequestDto: CreateCommissionCandidateRequestDto
482
+
483
+ /**
484
+ * Bearer Token: provided by the login endpoint under the name accessToken.
485
+ * @type {string}
486
+ * @memberof CommissionCandidatesApiCreateCommissionCandidate
487
+ */
488
+ readonly authorization?: string
489
+ }
490
+
491
+ /**
492
+ * Request parameters for deleteCommissionCandidate operation in CommissionCandidatesApi.
493
+ * @export
494
+ * @interface CommissionCandidatesApiDeleteCommissionCandidateRequest
495
+ */
496
+ export interface CommissionCandidatesApiDeleteCommissionCandidateRequest {
497
+ /**
498
+ * Unique identifier for the object.
499
+ * @type {string}
500
+ * @memberof CommissionCandidatesApiDeleteCommissionCandidate
501
+ */
502
+ readonly code: string
503
+
504
+ /**
505
+ * Bearer Token: provided by the login endpoint under the name accessToken.
506
+ * @type {string}
507
+ * @memberof CommissionCandidatesApiDeleteCommissionCandidate
508
+ */
509
+ readonly authorization?: string
510
+ }
511
+
512
+ /**
513
+ * Request parameters for getCommissionCandidate operation in CommissionCandidatesApi.
514
+ * @export
515
+ * @interface CommissionCandidatesApiGetCommissionCandidateRequest
516
+ */
517
+ export interface CommissionCandidatesApiGetCommissionCandidateRequest {
518
+ /**
519
+ *
520
+ * @type {string}
521
+ * @memberof CommissionCandidatesApiGetCommissionCandidate
522
+ */
523
+ readonly code: string
524
+
525
+ /**
526
+ *
527
+ * @type {string}
528
+ * @memberof CommissionCandidatesApiGetCommissionCandidate
529
+ */
530
+ readonly expand: string
531
+
532
+ /**
533
+ * Bearer Token: provided by the login endpoint under the name accessToken.
534
+ * @type {string}
535
+ * @memberof CommissionCandidatesApiGetCommissionCandidate
536
+ */
537
+ readonly authorization?: string
538
+ }
539
+
540
+ /**
541
+ * Request parameters for listCommissionCandidates operation in CommissionCandidatesApi.
542
+ * @export
543
+ * @interface CommissionCandidatesApiListCommissionCandidatesRequest
544
+ */
545
+ export interface CommissionCandidatesApiListCommissionCandidatesRequest {
546
+ /**
547
+ * Bearer Token: provided by the login endpoint under the name accessToken.
548
+ * @type {string}
549
+ * @memberof CommissionCandidatesApiListCommissionCandidates
550
+ */
551
+ readonly authorization?: string
552
+
553
+ /**
554
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
+ * @type {number}
556
+ * @memberof CommissionCandidatesApiListCommissionCandidates
557
+ */
558
+ readonly pageSize?: number
559
+
560
+ /**
561
+ * 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.
562
+ * @type {string}
563
+ * @memberof CommissionCandidatesApiListCommissionCandidates
564
+ */
565
+ readonly pageToken?: string
566
+
567
+ /**
568
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
569
+ * @type {string}
570
+ * @memberof CommissionCandidatesApiListCommissionCandidates
571
+ */
572
+ readonly filter?: string
573
+
574
+ /**
575
+ * Search the response for matches in any searchable field. Use filter instead where possible for improved performance.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Searchable fields: code, policyCode, invoiceCode&lt;/i&gt;
576
+ * @type {string}
577
+ * @memberof CommissionCandidatesApiListCommissionCandidates
578
+ */
579
+ readonly search?: string
580
+
581
+ /**
582
+ * Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: createdAt, updatedAt, policyRenewalDate&lt;/i&gt;
583
+ * @type {string}
584
+ * @memberof CommissionCandidatesApiListCommissionCandidates
585
+ */
586
+ readonly order?: string
587
+
588
+ /**
589
+ * Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.&lt;br/&gt; &lt;br/&gt;
590
+ * @type {string}
591
+ * @memberof CommissionCandidatesApiListCommissionCandidates
592
+ */
593
+ readonly expand?: string
594
+
595
+ /**
596
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, policyCode, invoiceCode, commissionCode, candidateType, status, policyRenewalDate, createdAt&lt;/i&gt;
597
+ * @type {string}
598
+ * @memberof CommissionCandidatesApiListCommissionCandidates
599
+ */
600
+ readonly filters?: string
601
+ }
602
+
603
+ /**
604
+ * Request parameters for updateCommissionCandidate operation in CommissionCandidatesApi.
605
+ * @export
606
+ * @interface CommissionCandidatesApiUpdateCommissionCandidateRequest
607
+ */
608
+ export interface CommissionCandidatesApiUpdateCommissionCandidateRequest {
609
+ /**
610
+ *
611
+ * @type {string}
612
+ * @memberof CommissionCandidatesApiUpdateCommissionCandidate
613
+ */
614
+ readonly code: string
615
+
616
+ /**
617
+ *
618
+ * @type {UpdateCommissionCandidateRequestDto}
619
+ * @memberof CommissionCandidatesApiUpdateCommissionCandidate
620
+ */
621
+ readonly updateCommissionCandidateRequestDto: UpdateCommissionCandidateRequestDto
622
+
623
+ /**
624
+ * Bearer Token: provided by the login endpoint under the name accessToken.
625
+ * @type {string}
626
+ * @memberof CommissionCandidatesApiUpdateCommissionCandidate
627
+ */
628
+ readonly authorization?: string
629
+ }
630
+
631
+ /**
632
+ * CommissionCandidatesApi - object-oriented interface
633
+ * @export
634
+ * @class CommissionCandidatesApi
635
+ * @extends {BaseAPI}
636
+ */
637
+ export class CommissionCandidatesApi extends BaseAPI {
638
+ /**
639
+ * This will create commission candidate.
640
+ * @summary Create the commission candidate
641
+ * @param {CommissionCandidatesApiCreateCommissionCandidateRequest} requestParameters Request parameters.
642
+ * @param {*} [options] Override http request option.
643
+ * @throws {RequiredError}
644
+ * @memberof CommissionCandidatesApi
645
+ */
646
+ public createCommissionCandidate(requestParameters: CommissionCandidatesApiCreateCommissionCandidateRequest, options?: AxiosRequestConfig) {
647
+ return CommissionCandidatesApiFp(this.configuration).createCommissionCandidate(requestParameters.createCommissionCandidateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
+ }
649
+
650
+ /**
651
+ * This will delete commission candidate.
652
+ * @summary Delete the commission candidate
653
+ * @param {CommissionCandidatesApiDeleteCommissionCandidateRequest} requestParameters Request parameters.
654
+ * @param {*} [options] Override http request option.
655
+ * @throws {RequiredError}
656
+ * @memberof CommissionCandidatesApi
657
+ */
658
+ public deleteCommissionCandidate(requestParameters: CommissionCandidatesApiDeleteCommissionCandidateRequest, options?: AxiosRequestConfig) {
659
+ return CommissionCandidatesApiFp(this.configuration).deleteCommissionCandidate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
+ }
661
+
662
+ /**
663
+ * This will get commission candidate.
664
+ * @summary Retrieve the commission candidate
665
+ * @param {CommissionCandidatesApiGetCommissionCandidateRequest} requestParameters Request parameters.
666
+ * @param {*} [options] Override http request option.
667
+ * @throws {RequiredError}
668
+ * @memberof CommissionCandidatesApi
669
+ */
670
+ public getCommissionCandidate(requestParameters: CommissionCandidatesApiGetCommissionCandidateRequest, options?: AxiosRequestConfig) {
671
+ return CommissionCandidatesApiFp(this.configuration).getCommissionCandidate(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
672
+ }
673
+
674
+ /**
675
+ * Retrieves a list of commission candidates.
676
+ * @summary List commission candidates
677
+ * @param {CommissionCandidatesApiListCommissionCandidatesRequest} requestParameters Request parameters.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ * @memberof CommissionCandidatesApi
681
+ */
682
+ public listCommissionCandidates(requestParameters: CommissionCandidatesApiListCommissionCandidatesRequest = {}, options?: AxiosRequestConfig) {
683
+ return CommissionCandidatesApiFp(this.configuration).listCommissionCandidates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
684
+ }
685
+
686
+ /**
687
+ * This will update commission candidate.
688
+ * @summary Update the commission candidate
689
+ * @param {CommissionCandidatesApiUpdateCommissionCandidateRequest} requestParameters Request parameters.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ * @memberof CommissionCandidatesApi
693
+ */
694
+ public updateCommissionCandidate(requestParameters: CommissionCandidatesApiUpdateCommissionCandidateRequest, options?: AxiosRequestConfig) {
695
+ return CommissionCandidatesApiFp(this.configuration).updateCommissionCandidate(requestParameters.code, requestParameters.updateCommissionCandidateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
696
+ }
697
+ }