@emilgroup/insurance-sdk-node 1.51.0 → 1.53.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 (125) hide show
  1. package/.openapi-generator/FILES +33 -1
  2. package/README.md +18 -2
  3. package/api/commission-agreement-products-api.ts +710 -0
  4. package/api/commission-agreement-versions-api.ts +592 -0
  5. package/api/commission-agreements-api.ts +697 -0
  6. package/api/commission-recipients-api.ts +696 -0
  7. package/api/{default-api.ts → health-check-api.ts} +21 -17
  8. package/api/insured-objects-api.ts +5 -2
  9. package/api/leads-api.ts +4 -4
  10. package/api/policies-api.ts +176 -221
  11. package/api.ts +10 -2
  12. package/dist/api/commission-agreement-products-api.d.ts +403 -0
  13. package/dist/api/commission-agreement-products-api.js +652 -0
  14. package/dist/api/commission-agreement-versions-api.d.ts +337 -0
  15. package/dist/api/commission-agreement-versions-api.js +555 -0
  16. package/dist/api/commission-agreements-api.d.ts +394 -0
  17. package/dist/api/commission-agreements-api.js +646 -0
  18. package/dist/api/commission-recipients-api.d.ts +394 -0
  19. package/dist/api/commission-recipients-api.js +646 -0
  20. package/dist/api/health-check-api.d.ts +70 -0
  21. package/dist/api/{default-api.js → health-check-api.js} +30 -26
  22. package/dist/api/insured-objects-api.js +4 -2
  23. package/dist/api/leads-api.d.ts +4 -4
  24. package/dist/api/leads-api.js +4 -4
  25. package/dist/api/policies-api.d.ts +134 -161
  26. package/dist/api/policies-api.js +129 -151
  27. package/dist/api.d.ts +5 -1
  28. package/dist/api.js +5 -1
  29. package/dist/models/booking-funnel-class.d.ts +6 -0
  30. package/dist/models/commission-agreement-class.d.ts +89 -0
  31. package/dist/models/commission-agreement-class.js +23 -0
  32. package/dist/models/commission-agreement-item-class.d.ts +66 -0
  33. package/dist/models/commission-agreement-item-class.js +15 -0
  34. package/dist/models/commission-agreement-product-class.d.ts +72 -0
  35. package/dist/models/commission-agreement-product-class.js +15 -0
  36. package/dist/models/commission-agreement-version-class.d.ts +79 -0
  37. package/dist/models/commission-agreement-version-class.js +15 -0
  38. package/dist/models/commission-recipient-class.d.ts +78 -0
  39. package/dist/models/commission-recipient-class.js +15 -0
  40. package/dist/models/create-booking-funnel-request-dto.d.ts +6 -0
  41. package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
  42. package/dist/models/create-commission-agreement-item-dto.js +15 -0
  43. package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
  44. package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
  45. package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
  46. package/dist/models/create-commission-agreement-product-response-class.js +15 -0
  47. package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
  48. package/dist/models/create-commission-agreement-request-dto.js +23 -0
  49. package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
  50. package/dist/models/create-commission-agreement-response-class.js +15 -0
  51. package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
  52. package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
  53. package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
  54. package/dist/models/create-commission-agreement-version-response-class.js +15 -0
  55. package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
  56. package/dist/models/create-commission-recipient-request-dto.js +15 -0
  57. package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
  58. package/dist/models/create-commission-recipient-response-class.js +15 -0
  59. package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
  60. package/dist/models/get-commission-agreement-product-response-class.js +15 -0
  61. package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
  62. package/dist/models/get-commission-agreement-response-class.js +15 -0
  63. package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
  64. package/dist/models/get-commission-agreement-version-response-class.js +15 -0
  65. package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
  66. package/dist/models/get-commission-recipient-response-class.js +15 -0
  67. package/dist/models/index.d.ts +28 -0
  68. package/dist/models/index.js +28 -0
  69. package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
  70. package/dist/models/list-commission-agreement-products-response-class.js +15 -0
  71. package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
  72. package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
  73. package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
  74. package/dist/models/list-commission-agreements-response-class.js +15 -0
  75. package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
  76. package/dist/models/list-commission-recipients-response-class.js +15 -0
  77. package/dist/models/patch-booking-funnel-request-dto.d.ts +6 -0
  78. package/dist/models/update-booking-funnel-request-dto.d.ts +6 -0
  79. package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
  80. package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
  81. package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
  82. package/dist/models/update-commission-agreement-product-response-class.js +15 -0
  83. package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
  84. package/dist/models/update-commission-agreement-request-dto.js +23 -0
  85. package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
  86. package/dist/models/update-commission-agreement-response-class.js +15 -0
  87. package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
  88. package/dist/models/update-commission-recipient-request-dto.js +15 -0
  89. package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
  90. package/dist/models/update-commission-recipient-response-class.js +15 -0
  91. package/models/booking-funnel-class.ts +6 -0
  92. package/models/commission-agreement-class.ts +98 -0
  93. package/models/commission-agreement-item-class.ts +72 -0
  94. package/models/commission-agreement-product-class.ts +78 -0
  95. package/models/commission-agreement-version-class.ts +85 -0
  96. package/models/commission-recipient-class.ts +84 -0
  97. package/models/create-booking-funnel-request-dto.ts +6 -0
  98. package/models/create-commission-agreement-item-dto.ts +42 -0
  99. package/models/create-commission-agreement-product-request-dto.ts +48 -0
  100. package/models/create-commission-agreement-product-response-class.ts +31 -0
  101. package/models/create-commission-agreement-request-dto.ts +84 -0
  102. package/models/create-commission-agreement-response-class.ts +31 -0
  103. package/models/create-commission-agreement-version-request-dto.ts +55 -0
  104. package/models/create-commission-agreement-version-response-class.ts +31 -0
  105. package/models/create-commission-recipient-request-dto.ts +54 -0
  106. package/models/create-commission-recipient-response-class.ts +31 -0
  107. package/models/get-commission-agreement-product-response-class.ts +31 -0
  108. package/models/get-commission-agreement-response-class.ts +31 -0
  109. package/models/get-commission-agreement-version-response-class.ts +31 -0
  110. package/models/get-commission-recipient-response-class.ts +31 -0
  111. package/models/index.ts +28 -0
  112. package/models/list-commission-agreement-products-response-class.ts +37 -0
  113. package/models/list-commission-agreement-versions-response-class.ts +37 -0
  114. package/models/list-commission-agreements-response-class.ts +37 -0
  115. package/models/list-commission-recipients-response-class.ts +37 -0
  116. package/models/patch-booking-funnel-request-dto.ts +6 -0
  117. package/models/update-booking-funnel-request-dto.ts +6 -0
  118. package/models/update-commission-agreement-product-request-dto.ts +48 -0
  119. package/models/update-commission-agreement-product-response-class.ts +31 -0
  120. package/models/update-commission-agreement-request-dto.ts +53 -0
  121. package/models/update-commission-agreement-response-class.ts +31 -0
  122. package/models/update-commission-recipient-request-dto.ts +54 -0
  123. package/models/update-commission-recipient-response-class.ts +31 -0
  124. package/package.json +1 -1
  125. package/dist/api/default-api.d.ts +0 -66
@@ -0,0 +1,710 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL InsuranceService
5
+ * The EMIL InsuranceService 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 { CreateCommissionAgreementProductRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateCommissionAgreementProductResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { DeleteResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { GetCommissionAgreementProductResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { ListCommissionAgreementProductsResponseClass } from '../models';
33
+ // @ts-ignore
34
+ import { UpdateCommissionAgreementProductRequestDto } from '../models';
35
+ // @ts-ignore
36
+ import { UpdateCommissionAgreementProductResponseClass } from '../models';
37
+ // URLSearchParams not necessarily used
38
+ // @ts-ignore
39
+ import { URL, URLSearchParams } from 'url';
40
+ const FormData = require('form-data');
41
+ /**
42
+ * CommissionAgreementProductsApi - axios parameter creator
43
+ * @export
44
+ */
45
+ export const CommissionAgreementProductsApiAxiosParamCreator = function (configuration?: Configuration) {
46
+ return {
47
+ /**
48
+ * This will create the commission agreement product.
49
+ * @summary Create the Commission agreement product
50
+ * @param {string} code
51
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
52
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ createCommissionAgreementProduct: async (code: string, createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
57
+ // verify required parameter 'code' is not null or undefined
58
+ assertParamExists('createCommissionAgreementProduct', 'code', code)
59
+ // verify required parameter 'createCommissionAgreementProductRequestDto' is not null or undefined
60
+ assertParamExists('createCommissionAgreementProduct', 'createCommissionAgreementProductRequestDto', createCommissionAgreementProductRequestDto)
61
+ const localVarPath = `/insuranceservice/v1/commission-agreements/{code}/products`
62
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
63
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
64
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
65
+ let baseOptions;
66
+ let baseAccessToken;
67
+ if (configuration) {
68
+ baseOptions = configuration.baseOptions;
69
+ baseAccessToken = configuration.accessToken;
70
+ }
71
+
72
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
73
+ const localVarHeaderParameter = {} as any;
74
+ const localVarQueryParameter = {} as any;
75
+
76
+ // authentication bearer required
77
+ // http bearer authentication required
78
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
79
+
80
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
81
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
82
+ }
83
+
84
+
85
+
86
+ localVarHeaderParameter['Content-Type'] = 'application/json';
87
+
88
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
91
+ localVarRequestOptions.data = serializeDataIfNeeded(createCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
92
+
93
+ return {
94
+ url: toPathString(localVarUrlObj),
95
+ options: localVarRequestOptions,
96
+ };
97
+ },
98
+ /**
99
+ * Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
100
+ * @summary Delete the commission agreement product
101
+ * @param {string} code
102
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
103
+ * @param {*} [options] Override http request option.
104
+ * @throws {RequiredError}
105
+ */
106
+ deleteCommissionAgreementProduct: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
107
+ // verify required parameter 'code' is not null or undefined
108
+ assertParamExists('deleteCommissionAgreementProduct', 'code', code)
109
+ const localVarPath = `/insuranceservice/v1/commission-agreements/products/{code}`
110
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
111
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
112
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
113
+ let baseOptions;
114
+ let baseAccessToken;
115
+ if (configuration) {
116
+ baseOptions = configuration.baseOptions;
117
+ baseAccessToken = configuration.accessToken;
118
+ }
119
+
120
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
121
+ const localVarHeaderParameter = {} as any;
122
+ const localVarQueryParameter = {} as any;
123
+
124
+ // authentication bearer required
125
+ // http bearer authentication required
126
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
127
+
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+
132
+
133
+
134
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
135
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
136
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
137
+
138
+ return {
139
+ url: toPathString(localVarUrlObj),
140
+ options: localVarRequestOptions,
141
+ };
142
+ },
143
+ /**
144
+ * Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
145
+ * @summary Retrieve the commission agreement product
146
+ * @param {string} code
147
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
148
+ * @param {string} [expand] You can expand commission agreement product in this endpoint. \&#39; + \&#39;Allowed values: product.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ getCommissionAgreementProduct: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
153
+ // verify required parameter 'code' is not null or undefined
154
+ assertParamExists('getCommissionAgreementProduct', 'code', code)
155
+ const localVarPath = `/insuranceservice/v1/commission-agreements/products/{code}`
156
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
159
+ let baseOptions;
160
+ let baseAccessToken;
161
+ if (configuration) {
162
+ baseOptions = configuration.baseOptions;
163
+ baseAccessToken = configuration.accessToken;
164
+ }
165
+
166
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
167
+ const localVarHeaderParameter = {} as any;
168
+ const localVarQueryParameter = {} as any;
169
+
170
+ // authentication bearer required
171
+ // http bearer authentication required
172
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
173
+
174
+ if (expand !== undefined) {
175
+ localVarQueryParameter['expand'] = expand;
176
+ }
177
+
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+
182
+
183
+
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
193
+ /**
194
+ * Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
195
+ * @summary List commission agreement products
196
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
197
+ * @param {number} [pageSize] Page size.
198
+ * @param {string} [pageToken] Page token.
199
+ * @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: code, productId, commissionAgreementId&lt;/i&gt;
200
+ * @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: productId, code&lt;/i&gt;
201
+ * @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: id, createdAt, updatedAt&lt;/i&gt;
202
+ * @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; &lt;i&gt;Allowed values: product.&lt;i&gt;
203
+ * @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: code, productId, commissionAgreementId&lt;/i&gt;
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ */
207
+ listCommissionAgreementProducts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
208
+ const localVarPath = `/insuranceservice/v1/commission-agreements/products`;
209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
210
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
211
+ let baseOptions;
212
+ let baseAccessToken;
213
+ if (configuration) {
214
+ baseOptions = configuration.baseOptions;
215
+ baseAccessToken = configuration.accessToken;
216
+ }
217
+
218
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
219
+ const localVarHeaderParameter = {} as any;
220
+ const localVarQueryParameter = {} as any;
221
+
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
225
+
226
+ if (pageSize !== undefined) {
227
+ localVarQueryParameter['pageSize'] = pageSize;
228
+ }
229
+
230
+ if (pageToken !== undefined) {
231
+ localVarQueryParameter['pageToken'] = pageToken;
232
+ }
233
+
234
+ if (filter !== undefined) {
235
+ localVarQueryParameter['filter'] = filter;
236
+ }
237
+
238
+ if (search !== undefined) {
239
+ localVarQueryParameter['search'] = search;
240
+ }
241
+
242
+ if (order !== undefined) {
243
+ localVarQueryParameter['order'] = order;
244
+ }
245
+
246
+ if (expand !== undefined) {
247
+ localVarQueryParameter['expand'] = expand;
248
+ }
249
+
250
+ if (filters !== undefined) {
251
+ localVarQueryParameter['filters'] = filters;
252
+ }
253
+
254
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
255
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
256
+ }
257
+
258
+
259
+
260
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
261
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
262
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
263
+
264
+ return {
265
+ url: toPathString(localVarUrlObj),
266
+ options: localVarRequestOptions,
267
+ };
268
+ },
269
+ /**
270
+ * Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
271
+ * @summary Update the commission agreement product
272
+ * @param {string} code
273
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
274
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ updateCommissionAgreementProduct: async (code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
279
+ // verify required parameter 'code' is not null or undefined
280
+ assertParamExists('updateCommissionAgreementProduct', 'code', code)
281
+ // verify required parameter 'updateCommissionAgreementProductRequestDto' is not null or undefined
282
+ assertParamExists('updateCommissionAgreementProduct', 'updateCommissionAgreementProductRequestDto', updateCommissionAgreementProductRequestDto)
283
+ const localVarPath = `/insuranceservice/v1/commission-agreements/products/{code}`
284
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
285
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
286
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
287
+ let baseOptions;
288
+ let baseAccessToken;
289
+ if (configuration) {
290
+ baseOptions = configuration.baseOptions;
291
+ baseAccessToken = configuration.accessToken;
292
+ }
293
+
294
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
295
+ const localVarHeaderParameter = {} as any;
296
+ const localVarQueryParameter = {} as any;
297
+
298
+ // authentication bearer required
299
+ // http bearer authentication required
300
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
301
+
302
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
303
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
304
+ }
305
+
306
+
307
+
308
+ localVarHeaderParameter['Content-Type'] = 'application/json';
309
+
310
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
311
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
312
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
313
+ localVarRequestOptions.data = serializeDataIfNeeded(updateCommissionAgreementProductRequestDto, localVarRequestOptions, configuration)
314
+
315
+ return {
316
+ url: toPathString(localVarUrlObj),
317
+ options: localVarRequestOptions,
318
+ };
319
+ },
320
+ }
321
+ };
322
+
323
+ /**
324
+ * CommissionAgreementProductsApi - functional programming interface
325
+ * @export
326
+ */
327
+ export const CommissionAgreementProductsApiFp = function(configuration?: Configuration) {
328
+ const localVarAxiosParamCreator = CommissionAgreementProductsApiAxiosParamCreator(configuration)
329
+ return {
330
+ /**
331
+ * This will create the commission agreement product.
332
+ * @summary Create the Commission agreement product
333
+ * @param {string} code
334
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
335
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ async createCommissionAgreementProduct(code: string, createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCommissionAgreementProductResponseClass>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCommissionAgreementProduct(code, createCommissionAgreementProductRequestDto, authorization, options);
341
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
+ },
343
+ /**
344
+ * Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
345
+ * @summary Delete the commission agreement product
346
+ * @param {string} code
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async deleteCommissionAgreementProduct(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteCommissionAgreementProduct(code, authorization, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
355
+ /**
356
+ * Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
357
+ * @summary Retrieve the commission agreement product
358
+ * @param {string} code
359
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
+ * @param {string} [expand] You can expand commission agreement product in this endpoint. \&#39; + \&#39;Allowed values: product.
361
+ * @param {*} [options] Override http request option.
362
+ * @throws {RequiredError}
363
+ */
364
+ async getCommissionAgreementProduct(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCommissionAgreementProductResponseClass>> {
365
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCommissionAgreementProduct(code, authorization, expand, options);
366
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
367
+ },
368
+ /**
369
+ * Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
370
+ * @summary List commission agreement products
371
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
372
+ * @param {number} [pageSize] Page size.
373
+ * @param {string} [pageToken] Page token.
374
+ * @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: code, productId, commissionAgreementId&lt;/i&gt;
375
+ * @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: productId, code&lt;/i&gt;
376
+ * @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: id, createdAt, updatedAt&lt;/i&gt;
377
+ * @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; &lt;i&gt;Allowed values: product.&lt;i&gt;
378
+ * @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: code, productId, commissionAgreementId&lt;/i&gt;
379
+ * @param {*} [options] Override http request option.
380
+ * @throws {RequiredError}
381
+ */
382
+ async listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListCommissionAgreementProductsResponseClass>> {
383
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
384
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
385
+ },
386
+ /**
387
+ * Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
388
+ * @summary Update the commission agreement product
389
+ * @param {string} code
390
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
391
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
392
+ * @param {*} [options] Override http request option.
393
+ * @throws {RequiredError}
394
+ */
395
+ async updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateCommissionAgreementProductResponseClass>> {
396
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options);
397
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
398
+ },
399
+ }
400
+ };
401
+
402
+ /**
403
+ * CommissionAgreementProductsApi - factory interface
404
+ * @export
405
+ */
406
+ export const CommissionAgreementProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
407
+ const localVarFp = CommissionAgreementProductsApiFp(configuration)
408
+ return {
409
+ /**
410
+ * This will create the commission agreement product.
411
+ * @summary Create the Commission agreement product
412
+ * @param {string} code
413
+ * @param {CreateCommissionAgreementProductRequestDto} createCommissionAgreementProductRequestDto
414
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ */
418
+ createCommissionAgreementProduct(code: string, createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCommissionAgreementProductResponseClass> {
419
+ return localVarFp.createCommissionAgreementProduct(code, createCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
420
+ },
421
+ /**
422
+ * Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
423
+ * @summary Delete the commission agreement product
424
+ * @param {string} code
425
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ deleteCommissionAgreementProduct(code: string, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
430
+ return localVarFp.deleteCommissionAgreementProduct(code, authorization, options).then((request) => request(axios, basePath));
431
+ },
432
+ /**
433
+ * Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
434
+ * @summary Retrieve the commission agreement product
435
+ * @param {string} code
436
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
437
+ * @param {string} [expand] You can expand commission agreement product in this endpoint. \&#39; + \&#39;Allowed values: product.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ getCommissionAgreementProduct(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetCommissionAgreementProductResponseClass> {
442
+ return localVarFp.getCommissionAgreementProduct(code, authorization, expand, options).then((request) => request(axios, basePath));
443
+ },
444
+ /**
445
+ * Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
446
+ * @summary List commission agreement products
447
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
+ * @param {number} [pageSize] Page size.
449
+ * @param {string} [pageToken] Page token.
450
+ * @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: code, productId, commissionAgreementId&lt;/i&gt;
451
+ * @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: productId, code&lt;/i&gt;
452
+ * @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: id, createdAt, updatedAt&lt;/i&gt;
453
+ * @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; &lt;i&gt;Allowed values: product.&lt;i&gt;
454
+ * @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: code, productId, commissionAgreementId&lt;/i&gt;
455
+ * @param {*} [options] Override http request option.
456
+ * @throws {RequiredError}
457
+ */
458
+ listCommissionAgreementProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListCommissionAgreementProductsResponseClass> {
459
+ return localVarFp.listCommissionAgreementProducts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
460
+ },
461
+ /**
462
+ * Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
463
+ * @summary Update the commission agreement product
464
+ * @param {string} code
465
+ * @param {UpdateCommissionAgreementProductRequestDto} updateCommissionAgreementProductRequestDto
466
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ updateCommissionAgreementProduct(code: string, updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateCommissionAgreementProductResponseClass> {
471
+ return localVarFp.updateCommissionAgreementProduct(code, updateCommissionAgreementProductRequestDto, authorization, options).then((request) => request(axios, basePath));
472
+ },
473
+ };
474
+ };
475
+
476
+ /**
477
+ * Request parameters for createCommissionAgreementProduct operation in CommissionAgreementProductsApi.
478
+ * @export
479
+ * @interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest
480
+ */
481
+ export interface CommissionAgreementProductsApiCreateCommissionAgreementProductRequest {
482
+ /**
483
+ *
484
+ * @type {string}
485
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
486
+ */
487
+ readonly code: string
488
+
489
+ /**
490
+ *
491
+ * @type {CreateCommissionAgreementProductRequestDto}
492
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
493
+ */
494
+ readonly createCommissionAgreementProductRequestDto: CreateCommissionAgreementProductRequestDto
495
+
496
+ /**
497
+ * Bearer Token: provided by the login endpoint under the name accessToken.
498
+ * @type {string}
499
+ * @memberof CommissionAgreementProductsApiCreateCommissionAgreementProduct
500
+ */
501
+ readonly authorization?: string
502
+ }
503
+
504
+ /**
505
+ * Request parameters for deleteCommissionAgreementProduct operation in CommissionAgreementProductsApi.
506
+ * @export
507
+ * @interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest
508
+ */
509
+ export interface CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest {
510
+ /**
511
+ *
512
+ * @type {string}
513
+ * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
514
+ */
515
+ readonly code: string
516
+
517
+ /**
518
+ * Bearer Token: provided by the login endpoint under the name accessToken.
519
+ * @type {string}
520
+ * @memberof CommissionAgreementProductsApiDeleteCommissionAgreementProduct
521
+ */
522
+ readonly authorization?: string
523
+ }
524
+
525
+ /**
526
+ * Request parameters for getCommissionAgreementProduct operation in CommissionAgreementProductsApi.
527
+ * @export
528
+ * @interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest
529
+ */
530
+ export interface CommissionAgreementProductsApiGetCommissionAgreementProductRequest {
531
+ /**
532
+ *
533
+ * @type {string}
534
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
535
+ */
536
+ readonly code: string
537
+
538
+ /**
539
+ * Bearer Token: provided by the login endpoint under the name accessToken.
540
+ * @type {string}
541
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
542
+ */
543
+ readonly authorization?: string
544
+
545
+ /**
546
+ * You can expand commission agreement product in this endpoint. \&#39; + \&#39;Allowed values: product.
547
+ * @type {string}
548
+ * @memberof CommissionAgreementProductsApiGetCommissionAgreementProduct
549
+ */
550
+ readonly expand?: string
551
+ }
552
+
553
+ /**
554
+ * Request parameters for listCommissionAgreementProducts operation in CommissionAgreementProductsApi.
555
+ * @export
556
+ * @interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest
557
+ */
558
+ export interface CommissionAgreementProductsApiListCommissionAgreementProductsRequest {
559
+ /**
560
+ * Bearer Token: provided by the login endpoint under the name accessToken.
561
+ * @type {string}
562
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
563
+ */
564
+ readonly authorization?: string
565
+
566
+ /**
567
+ * Page size.
568
+ * @type {number}
569
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
570
+ */
571
+ readonly pageSize?: number
572
+
573
+ /**
574
+ * Page token.
575
+ * @type {string}
576
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
577
+ */
578
+ readonly pageToken?: string
579
+
580
+ /**
581
+ * 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: code, productId, commissionAgreementId&lt;/i&gt;
582
+ * @type {string}
583
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
584
+ */
585
+ readonly filter?: string
586
+
587
+ /**
588
+ * 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: productId, code&lt;/i&gt;
589
+ * @type {string}
590
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
591
+ */
592
+ readonly search?: string
593
+
594
+ /**
595
+ * 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: id, createdAt, updatedAt&lt;/i&gt;
596
+ * @type {string}
597
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
598
+ */
599
+ readonly order?: string
600
+
601
+ /**
602
+ * 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; &lt;i&gt;Allowed values: product.&lt;i&gt;
603
+ * @type {string}
604
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
605
+ */
606
+ readonly expand?: string
607
+
608
+ /**
609
+ * 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: code, productId, commissionAgreementId&lt;/i&gt;
610
+ * @type {string}
611
+ * @memberof CommissionAgreementProductsApiListCommissionAgreementProducts
612
+ */
613
+ readonly filters?: string
614
+ }
615
+
616
+ /**
617
+ * Request parameters for updateCommissionAgreementProduct operation in CommissionAgreementProductsApi.
618
+ * @export
619
+ * @interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest
620
+ */
621
+ export interface CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest {
622
+ /**
623
+ *
624
+ * @type {string}
625
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
626
+ */
627
+ readonly code: string
628
+
629
+ /**
630
+ *
631
+ * @type {UpdateCommissionAgreementProductRequestDto}
632
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
633
+ */
634
+ readonly updateCommissionAgreementProductRequestDto: UpdateCommissionAgreementProductRequestDto
635
+
636
+ /**
637
+ * Bearer Token: provided by the login endpoint under the name accessToken.
638
+ * @type {string}
639
+ * @memberof CommissionAgreementProductsApiUpdateCommissionAgreementProduct
640
+ */
641
+ readonly authorization?: string
642
+ }
643
+
644
+ /**
645
+ * CommissionAgreementProductsApi - object-oriented interface
646
+ * @export
647
+ * @class CommissionAgreementProductsApi
648
+ * @extends {BaseAPI}
649
+ */
650
+ export class CommissionAgreementProductsApi extends BaseAPI {
651
+ /**
652
+ * This will create the commission agreement product.
653
+ * @summary Create the Commission agreement product
654
+ * @param {CommissionAgreementProductsApiCreateCommissionAgreementProductRequest} requestParameters Request parameters.
655
+ * @param {*} [options] Override http request option.
656
+ * @throws {RequiredError}
657
+ * @memberof CommissionAgreementProductsApi
658
+ */
659
+ public createCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiCreateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
660
+ return CommissionAgreementProductsApiFp(this.configuration).createCommissionAgreementProduct(requestParameters.code, requestParameters.createCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
661
+ }
662
+
663
+ /**
664
+ * Permanently deletes the commission agreement product. Supply the unique code that was returned when you created the commission agreement product and this will delete it.
665
+ * @summary Delete the commission agreement product
666
+ * @param {CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest} requestParameters Request parameters.
667
+ * @param {*} [options] Override http request option.
668
+ * @throws {RequiredError}
669
+ * @memberof CommissionAgreementProductsApi
670
+ */
671
+ public deleteCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiDeleteCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
672
+ return CommissionAgreementProductsApiFp(this.configuration).deleteCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
673
+ }
674
+
675
+ /**
676
+ * Retrieves the details of the commission agreement product that was previously created. Supply the unique commission agreement product code that was returned when you created it and Emil Api will return the corresponding commission agreement product information.
677
+ * @summary Retrieve the commission agreement product
678
+ * @param {CommissionAgreementProductsApiGetCommissionAgreementProductRequest} requestParameters Request parameters.
679
+ * @param {*} [options] Override http request option.
680
+ * @throws {RequiredError}
681
+ * @memberof CommissionAgreementProductsApi
682
+ */
683
+ public getCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiGetCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
684
+ return CommissionAgreementProductsApiFp(this.configuration).getCommissionAgreementProduct(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
685
+ }
686
+
687
+ /**
688
+ * Returns a list of commission agreement products you have previously created. The commission agreement products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
689
+ * @summary List commission agreement products
690
+ * @param {CommissionAgreementProductsApiListCommissionAgreementProductsRequest} requestParameters Request parameters.
691
+ * @param {*} [options] Override http request option.
692
+ * @throws {RequiredError}
693
+ * @memberof CommissionAgreementProductsApi
694
+ */
695
+ public listCommissionAgreementProducts(requestParameters: CommissionAgreementProductsApiListCommissionAgreementProductsRequest = {}, options?: AxiosRequestConfig) {
696
+ return CommissionAgreementProductsApiFp(this.configuration).listCommissionAgreementProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
697
+ }
698
+
699
+ /**
700
+ * Updates the specified commission agreement product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
701
+ * @summary Update the commission agreement product
702
+ * @param {CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest} requestParameters Request parameters.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ * @memberof CommissionAgreementProductsApi
706
+ */
707
+ public updateCommissionAgreementProduct(requestParameters: CommissionAgreementProductsApiUpdateCommissionAgreementProductRequest, options?: AxiosRequestConfig) {
708
+ return CommissionAgreementProductsApiFp(this.configuration).updateCommissionAgreementProduct(requestParameters.code, requestParameters.updateCommissionAgreementProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
709
+ }
710
+ }