@emilgroup/accounting-sdk-node 1.32.1-beta.2 → 1.32.1-beta.21

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 (71) hide show
  1. package/.openapi-generator/FILES +16 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +97 -7
  4. package/api/financial-accounts-api.ts +120 -0
  5. package/api/product-account-mappings-api.ts +1474 -0
  6. package/api.ts +2 -0
  7. package/dist/api/accounting-configs-api.d.ts +47 -0
  8. package/dist/api/accounting-configs-api.js +94 -7
  9. package/dist/api/financial-accounts-api.d.ts +66 -0
  10. package/dist/api/financial-accounts-api.js +99 -0
  11. package/dist/api/product-account-mappings-api.d.ts +851 -0
  12. package/dist/api/product-account-mappings-api.js +1228 -0
  13. package/dist/api.d.ts +1 -0
  14. package/dist/api.js +1 -0
  15. package/dist/models/accounting-config-class.d.ts +11 -0
  16. package/dist/models/accounting-config-class.js +5 -0
  17. package/dist/models/create-financial-account-request-dto.d.ts +6 -0
  18. package/dist/models/financial-account-class.d.ts +18 -1
  19. package/dist/models/financial-account-class.js +5 -1
  20. package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
  21. package/dist/models/get-activation-snapshot-response-class.js +15 -0
  22. package/dist/models/index.d.ts +15 -0
  23. package/dist/models/index.js +15 -0
  24. package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
  25. package/dist/models/list-product-account-mappings-response-class.js +15 -0
  26. package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
  27. package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
  28. package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
  29. package/dist/models/premium-item-account-mapping-class.js +15 -0
  30. package/dist/models/product-account-mapping-class.d.ts +61 -0
  31. package/dist/models/product-account-mapping-class.js +15 -0
  32. package/dist/models/product-account-mapping-detail-class.d.ts +50 -0
  33. package/dist/models/product-account-mapping-detail-class.js +15 -0
  34. package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
  35. package/dist/models/product-version-account-mapping-detail-class.js +15 -0
  36. package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
  37. package/dist/models/product-version-with-account-mappings-class.js +15 -0
  38. package/dist/models/product-with-account-mappings-class.d.ts +49 -0
  39. package/dist/models/product-with-account-mappings-class.js +15 -0
  40. package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
  41. package/dist/models/put-premium-item-account-body-dto.js +15 -0
  42. package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
  43. package/dist/models/put-product-category-account-body-dto.js +15 -0
  44. package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
  45. package/dist/models/put-product-version-category-account-body-dto.js +15 -0
  46. package/dist/models/resolved-account-mapping-class.d.ts +31 -0
  47. package/dist/models/resolved-account-mapping-class.js +15 -0
  48. package/dist/models/update-financial-account-body-dto.d.ts +42 -0
  49. package/dist/models/update-financial-account-body-dto.js +15 -0
  50. package/dist/models/update-financial-account-response-class.d.ts +25 -0
  51. package/dist/models/update-financial-account-response-class.js +15 -0
  52. package/models/accounting-config-class.ts +14 -0
  53. package/models/create-financial-account-request-dto.ts +6 -0
  54. package/models/financial-account-class.ts +19 -1
  55. package/models/get-activation-snapshot-response-class.ts +31 -0
  56. package/models/index.ts +15 -0
  57. package/models/list-product-account-mappings-response-class.ts +49 -0
  58. package/models/list-products-with-account-mappings-response-class.ts +49 -0
  59. package/models/premium-item-account-mapping-class.ts +43 -0
  60. package/models/product-account-mapping-class.ts +67 -0
  61. package/models/product-account-mapping-detail-class.ts +56 -0
  62. package/models/product-version-account-mapping-detail-class.ts +56 -0
  63. package/models/product-version-with-account-mappings-class.ts +48 -0
  64. package/models/product-with-account-mappings-class.ts +55 -0
  65. package/models/put-premium-item-account-body-dto.ts +30 -0
  66. package/models/put-product-category-account-body-dto.ts +30 -0
  67. package/models/put-product-version-category-account-body-dto.ts +30 -0
  68. package/models/resolved-account-mapping-class.ts +37 -0
  69. package/models/update-financial-account-body-dto.ts +48 -0
  70. package/models/update-financial-account-response-class.ts +31 -0
  71. package/package.json +1 -1
@@ -0,0 +1,1474 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService 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 { ListProductAccountMappingsResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListProductsWithAccountMappingsResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { PremiumItemAccountMappingClass } from '../models';
29
+ // @ts-ignore
30
+ import { ProductAccountMappingDetailClass } from '../models';
31
+ // @ts-ignore
32
+ import { ProductVersionAccountMappingDetailClass } from '../models';
33
+ // @ts-ignore
34
+ import { PutPremiumItemAccountBodyDto } from '../models';
35
+ // @ts-ignore
36
+ import { PutProductCategoryAccountBodyDto } from '../models';
37
+ // @ts-ignore
38
+ import { PutProductVersionCategoryAccountBodyDto } from '../models';
39
+ // @ts-ignore
40
+ import { ResolvedAccountMappingClass } from '../models';
41
+ // URLSearchParams not necessarily used
42
+ // @ts-ignore
43
+ import { URL, URLSearchParams } from 'url';
44
+ const FormData = require('form-data');
45
+ /**
46
+ * ProductAccountMappingsApi - axios parameter creator
47
+ * @export
48
+ */
49
+ export const ProductAccountMappingsApiAxiosParamCreator = function (configuration?: Configuration) {
50
+ return {
51
+ /**
52
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
53
+ * @summary Delete the Premium Item Account
54
+ * @param {string} productCode
55
+ * @param {string} productVersionCode
56
+ * @param {string} premiumFormulaCode
57
+ * @param {string} category
58
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
59
+ * @param {*} [options] Override http request option.
60
+ * @throws {RequiredError}
61
+ */
62
+ deletePremiumItemAccount: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
63
+ // verify required parameter 'productCode' is not null or undefined
64
+ assertParamExists('deletePremiumItemAccount', 'productCode', productCode)
65
+ // verify required parameter 'productVersionCode' is not null or undefined
66
+ assertParamExists('deletePremiumItemAccount', 'productVersionCode', productVersionCode)
67
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
68
+ assertParamExists('deletePremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode)
69
+ // verify required parameter 'category' is not null or undefined
70
+ assertParamExists('deletePremiumItemAccount', 'category', category)
71
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}`
72
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
73
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
74
+ .replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)))
75
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
76
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
78
+ let baseOptions;
79
+ let baseAccessToken;
80
+ if (configuration) {
81
+ baseOptions = configuration.baseOptions;
82
+ baseAccessToken = configuration.accessToken;
83
+ }
84
+
85
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
86
+ const localVarHeaderParameter = {} as any;
87
+ const localVarQueryParameter = {} as any;
88
+
89
+ // authentication bearer required
90
+ // http bearer authentication required
91
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
92
+
93
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
94
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
95
+ }
96
+
97
+
98
+
99
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
100
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
101
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
102
+
103
+ return {
104
+ url: toPathString(localVarUrlObj),
105
+ options: localVarRequestOptions,
106
+ };
107
+ },
108
+ /**
109
+ * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
110
+ * @summary Delete the Product Category Account
111
+ * @param {string} productCode
112
+ * @param {string} category
113
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
114
+ * @param {*} [options] Override http request option.
115
+ * @throws {RequiredError}
116
+ */
117
+ deleteProductCategoryAccount: async (productCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
118
+ // verify required parameter 'productCode' is not null or undefined
119
+ assertParamExists('deleteProductCategoryAccount', 'productCode', productCode)
120
+ // verify required parameter 'category' is not null or undefined
121
+ assertParamExists('deleteProductCategoryAccount', 'category', category)
122
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}`
123
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
124
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
125
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
126
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
127
+ let baseOptions;
128
+ let baseAccessToken;
129
+ if (configuration) {
130
+ baseOptions = configuration.baseOptions;
131
+ baseAccessToken = configuration.accessToken;
132
+ }
133
+
134
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
135
+ const localVarHeaderParameter = {} as any;
136
+ const localVarQueryParameter = {} as any;
137
+
138
+ // authentication bearer required
139
+ // http bearer authentication required
140
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
141
+
142
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
143
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
144
+ }
145
+
146
+
147
+
148
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
149
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
150
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
151
+
152
+ return {
153
+ url: toPathString(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ /**
158
+ * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
159
+ * @summary Delete the Product Version Category Account
160
+ * @param {string} productCode
161
+ * @param {string} productVersionCode
162
+ * @param {string} category
163
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
164
+ * @param {*} [options] Override http request option.
165
+ * @throws {RequiredError}
166
+ */
167
+ deleteProductVersionCategoryAccount: async (productCode: string, productVersionCode: string, category: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
168
+ // verify required parameter 'productCode' is not null or undefined
169
+ assertParamExists('deleteProductVersionCategoryAccount', 'productCode', productCode)
170
+ // verify required parameter 'productVersionCode' is not null or undefined
171
+ assertParamExists('deleteProductVersionCategoryAccount', 'productVersionCode', productVersionCode)
172
+ // verify required parameter 'category' is not null or undefined
173
+ assertParamExists('deleteProductVersionCategoryAccount', 'category', category)
174
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}`
175
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
176
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
177
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
178
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
179
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
180
+ let baseOptions;
181
+ let baseAccessToken;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ baseAccessToken = configuration.accessToken;
185
+ }
186
+
187
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
188
+ const localVarHeaderParameter = {} as any;
189
+ const localVarQueryParameter = {} as any;
190
+
191
+ // authentication bearer required
192
+ // http bearer authentication required
193
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
194
+
195
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
196
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
197
+ }
198
+
199
+
200
+
201
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
202
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
203
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
204
+
205
+ return {
206
+ url: toPathString(localVarUrlObj),
207
+ options: localVarRequestOptions,
208
+ };
209
+ },
210
+ /**
211
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
212
+ * @summary Retrieve the Product Account Mapping
213
+ * @param {string} productCode
214
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
215
+ * @param {*} [options] Override http request option.
216
+ * @throws {RequiredError}
217
+ */
218
+ getProductAccountMapping: async (productCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
219
+ // verify required parameter 'productCode' is not null or undefined
220
+ assertParamExists('getProductAccountMapping', 'productCode', productCode)
221
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}`
222
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)));
223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
225
+ let baseOptions;
226
+ let baseAccessToken;
227
+ if (configuration) {
228
+ baseOptions = configuration.baseOptions;
229
+ baseAccessToken = configuration.accessToken;
230
+ }
231
+
232
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
233
+ const localVarHeaderParameter = {} as any;
234
+ const localVarQueryParameter = {} as any;
235
+
236
+ // authentication bearer required
237
+ // http bearer authentication required
238
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
239
+
240
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
241
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ }
243
+
244
+
245
+
246
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
247
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
248
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
249
+
250
+ return {
251
+ url: toPathString(localVarUrlObj),
252
+ options: localVarRequestOptions,
253
+ };
254
+ },
255
+ /**
256
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
257
+ * @summary Retrieve the Product Version Account Mapping
258
+ * @param {string} productCode
259
+ * @param {string} productVersionCode
260
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
261
+ * @param {*} [options] Override http request option.
262
+ * @throws {RequiredError}
263
+ */
264
+ getProductVersionAccountMapping: async (productCode: string, productVersionCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
265
+ // verify required parameter 'productCode' is not null or undefined
266
+ assertParamExists('getProductVersionAccountMapping', 'productCode', productCode)
267
+ // verify required parameter 'productVersionCode' is not null or undefined
268
+ assertParamExists('getProductVersionAccountMapping', 'productVersionCode', productVersionCode)
269
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}`
270
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
271
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)));
272
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
273
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
274
+ let baseOptions;
275
+ let baseAccessToken;
276
+ if (configuration) {
277
+ baseOptions = configuration.baseOptions;
278
+ baseAccessToken = configuration.accessToken;
279
+ }
280
+
281
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
282
+ const localVarHeaderParameter = {} as any;
283
+ const localVarQueryParameter = {} as any;
284
+
285
+ // authentication bearer required
286
+ // http bearer authentication required
287
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
288
+
289
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
290
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
291
+ }
292
+
293
+
294
+
295
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
296
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
297
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
298
+
299
+ return {
300
+ url: toPathString(localVarUrlObj),
301
+ options: localVarRequestOptions,
302
+ };
303
+ },
304
+ /**
305
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
306
+ * @summary List Product Account Mappings
307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
309
+ * @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.
310
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
311
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
312
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
313
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
314
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ listProductAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
319
+ const localVarPath = `/accountingservice/v1/product-account-mappings`;
320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
321
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
322
+ let baseOptions;
323
+ let baseAccessToken;
324
+ if (configuration) {
325
+ baseOptions = configuration.baseOptions;
326
+ baseAccessToken = configuration.accessToken;
327
+ }
328
+
329
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
330
+ const localVarHeaderParameter = {} as any;
331
+ const localVarQueryParameter = {} as any;
332
+
333
+ // authentication bearer required
334
+ // http bearer authentication required
335
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
336
+
337
+ if (pageSize !== undefined) {
338
+ localVarQueryParameter['pageSize'] = pageSize;
339
+ }
340
+
341
+ if (pageToken !== undefined) {
342
+ localVarQueryParameter['pageToken'] = pageToken;
343
+ }
344
+
345
+ if (filter !== undefined) {
346
+ localVarQueryParameter['filter'] = filter;
347
+ }
348
+
349
+ if (search !== undefined) {
350
+ localVarQueryParameter['search'] = search;
351
+ }
352
+
353
+ if (order !== undefined) {
354
+ localVarQueryParameter['order'] = order;
355
+ }
356
+
357
+ if (expand !== undefined) {
358
+ localVarQueryParameter['expand'] = expand;
359
+ }
360
+
361
+ if (filters !== undefined) {
362
+ localVarQueryParameter['filters'] = filters;
363
+ }
364
+
365
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
366
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
367
+ }
368
+
369
+
370
+
371
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
372
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
373
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
374
+
375
+ return {
376
+ url: toPathString(localVarUrlObj),
377
+ options: localVarRequestOptions,
378
+ };
379
+ },
380
+ /**
381
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
382
+ * @summary List Products With Account Mappings
383
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
384
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
385
+ * @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.
386
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
387
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
388
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
389
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
390
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
391
+ * @param {*} [options] Override http request option.
392
+ * @throws {RequiredError}
393
+ */
394
+ listProductsWithAccountMappings: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
395
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products`;
396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
398
+ let baseOptions;
399
+ let baseAccessToken;
400
+ if (configuration) {
401
+ baseOptions = configuration.baseOptions;
402
+ baseAccessToken = configuration.accessToken;
403
+ }
404
+
405
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
406
+ const localVarHeaderParameter = {} as any;
407
+ const localVarQueryParameter = {} as any;
408
+
409
+ // authentication bearer required
410
+ // http bearer authentication required
411
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
412
+
413
+ if (pageSize !== undefined) {
414
+ localVarQueryParameter['pageSize'] = pageSize;
415
+ }
416
+
417
+ if (pageToken !== undefined) {
418
+ localVarQueryParameter['pageToken'] = pageToken;
419
+ }
420
+
421
+ if (filter !== undefined) {
422
+ localVarQueryParameter['filter'] = filter;
423
+ }
424
+
425
+ if (search !== undefined) {
426
+ localVarQueryParameter['search'] = search;
427
+ }
428
+
429
+ if (order !== undefined) {
430
+ localVarQueryParameter['order'] = order;
431
+ }
432
+
433
+ if (expand !== undefined) {
434
+ localVarQueryParameter['expand'] = expand;
435
+ }
436
+
437
+ if (filters !== undefined) {
438
+ localVarQueryParameter['filters'] = filters;
439
+ }
440
+
441
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
442
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
443
+ }
444
+
445
+
446
+
447
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
448
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
449
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
450
+
451
+ return {
452
+ url: toPathString(localVarUrlObj),
453
+ options: localVarRequestOptions,
454
+ };
455
+ },
456
+ /**
457
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
458
+ * @summary Update the Premium Item Account
459
+ * @param {string} productCode
460
+ * @param {string} productVersionCode
461
+ * @param {string} premiumFormulaCode
462
+ * @param {string} category
463
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
464
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ putPremiumItemAccount: async (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
469
+ // verify required parameter 'productCode' is not null or undefined
470
+ assertParamExists('putPremiumItemAccount', 'productCode', productCode)
471
+ // verify required parameter 'productVersionCode' is not null or undefined
472
+ assertParamExists('putPremiumItemAccount', 'productVersionCode', productVersionCode)
473
+ // verify required parameter 'premiumFormulaCode' is not null or undefined
474
+ assertParamExists('putPremiumItemAccount', 'premiumFormulaCode', premiumFormulaCode)
475
+ // verify required parameter 'category' is not null or undefined
476
+ assertParamExists('putPremiumItemAccount', 'category', category)
477
+ // verify required parameter 'putPremiumItemAccountBodyDto' is not null or undefined
478
+ assertParamExists('putPremiumItemAccount', 'putPremiumItemAccountBodyDto', putPremiumItemAccountBodyDto)
479
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/category/{category}`
480
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
481
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
482
+ .replace(`{${"premiumFormulaCode"}}`, encodeURIComponent(String(premiumFormulaCode)))
483
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
484
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
485
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
486
+ let baseOptions;
487
+ let baseAccessToken;
488
+ if (configuration) {
489
+ baseOptions = configuration.baseOptions;
490
+ baseAccessToken = configuration.accessToken;
491
+ }
492
+
493
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
494
+ const localVarHeaderParameter = {} as any;
495
+ const localVarQueryParameter = {} as any;
496
+
497
+ // authentication bearer required
498
+ // http bearer authentication required
499
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
500
+
501
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
502
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
503
+ }
504
+
505
+
506
+
507
+ localVarHeaderParameter['Content-Type'] = 'application/json';
508
+
509
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
510
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
511
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
512
+ localVarRequestOptions.data = serializeDataIfNeeded(putPremiumItemAccountBodyDto, localVarRequestOptions, configuration)
513
+
514
+ return {
515
+ url: toPathString(localVarUrlObj),
516
+ options: localVarRequestOptions,
517
+ };
518
+ },
519
+ /**
520
+ * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
521
+ * @summary Update the Product Category Account
522
+ * @param {string} productCode
523
+ * @param {string} category
524
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
525
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
526
+ * @param {*} [options] Override http request option.
527
+ * @throws {RequiredError}
528
+ */
529
+ putProductCategoryAccount: async (productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
530
+ // verify required parameter 'productCode' is not null or undefined
531
+ assertParamExists('putProductCategoryAccount', 'productCode', productCode)
532
+ // verify required parameter 'category' is not null or undefined
533
+ assertParamExists('putProductCategoryAccount', 'category', category)
534
+ // verify required parameter 'putProductCategoryAccountBodyDto' is not null or undefined
535
+ assertParamExists('putProductCategoryAccount', 'putProductCategoryAccountBodyDto', putProductCategoryAccountBodyDto)
536
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/category/{category}`
537
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
538
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
539
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
540
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
541
+ let baseOptions;
542
+ let baseAccessToken;
543
+ if (configuration) {
544
+ baseOptions = configuration.baseOptions;
545
+ baseAccessToken = configuration.accessToken;
546
+ }
547
+
548
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
549
+ const localVarHeaderParameter = {} as any;
550
+ const localVarQueryParameter = {} as any;
551
+
552
+ // authentication bearer required
553
+ // http bearer authentication required
554
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
555
+
556
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
557
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
558
+ }
559
+
560
+
561
+
562
+ localVarHeaderParameter['Content-Type'] = 'application/json';
563
+
564
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
565
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
566
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
567
+ localVarRequestOptions.data = serializeDataIfNeeded(putProductCategoryAccountBodyDto, localVarRequestOptions, configuration)
568
+
569
+ return {
570
+ url: toPathString(localVarUrlObj),
571
+ options: localVarRequestOptions,
572
+ };
573
+ },
574
+ /**
575
+ * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
576
+ * @summary Update the Product Version Category Account
577
+ * @param {string} productCode
578
+ * @param {string} productVersionCode
579
+ * @param {string} category
580
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
581
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
582
+ * @param {*} [options] Override http request option.
583
+ * @throws {RequiredError}
584
+ */
585
+ putProductVersionCategoryAccount: async (productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
586
+ // verify required parameter 'productCode' is not null or undefined
587
+ assertParamExists('putProductVersionCategoryAccount', 'productCode', productCode)
588
+ // verify required parameter 'productVersionCode' is not null or undefined
589
+ assertParamExists('putProductVersionCategoryAccount', 'productVersionCode', productVersionCode)
590
+ // verify required parameter 'category' is not null or undefined
591
+ assertParamExists('putProductVersionCategoryAccount', 'category', category)
592
+ // verify required parameter 'putProductVersionCategoryAccountBodyDto' is not null or undefined
593
+ assertParamExists('putProductVersionCategoryAccount', 'putProductVersionCategoryAccountBodyDto', putProductVersionCategoryAccountBodyDto)
594
+ const localVarPath = `/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/category/{category}`
595
+ .replace(`{${"productCode"}}`, encodeURIComponent(String(productCode)))
596
+ .replace(`{${"productVersionCode"}}`, encodeURIComponent(String(productVersionCode)))
597
+ .replace(`{${"category"}}`, encodeURIComponent(String(category)));
598
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
599
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
600
+ let baseOptions;
601
+ let baseAccessToken;
602
+ if (configuration) {
603
+ baseOptions = configuration.baseOptions;
604
+ baseAccessToken = configuration.accessToken;
605
+ }
606
+
607
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
608
+ const localVarHeaderParameter = {} as any;
609
+ const localVarQueryParameter = {} as any;
610
+
611
+ // authentication bearer required
612
+ // http bearer authentication required
613
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
614
+
615
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
616
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
617
+ }
618
+
619
+
620
+
621
+ localVarHeaderParameter['Content-Type'] = 'application/json';
622
+
623
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
625
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
626
+ localVarRequestOptions.data = serializeDataIfNeeded(putProductVersionCategoryAccountBodyDto, localVarRequestOptions, configuration)
627
+
628
+ return {
629
+ url: toPathString(localVarUrlObj),
630
+ options: localVarRequestOptions,
631
+ };
632
+ },
633
+ }
634
+ };
635
+
636
+ /**
637
+ * ProductAccountMappingsApi - functional programming interface
638
+ * @export
639
+ */
640
+ export const ProductAccountMappingsApiFp = function(configuration?: Configuration) {
641
+ const localVarAxiosParamCreator = ProductAccountMappingsApiAxiosParamCreator(configuration)
642
+ return {
643
+ /**
644
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
645
+ * @summary Delete the Premium Item Account
646
+ * @param {string} productCode
647
+ * @param {string} productVersionCode
648
+ * @param {string} premiumFormulaCode
649
+ * @param {string} category
650
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
651
+ * @param {*} [options] Override http request option.
652
+ * @throws {RequiredError}
653
+ */
654
+ async deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
655
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options);
656
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
657
+ },
658
+ /**
659
+ * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
660
+ * @summary Delete the Product Category Account
661
+ * @param {string} productCode
662
+ * @param {string} category
663
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
664
+ * @param {*} [options] Override http request option.
665
+ * @throws {RequiredError}
666
+ */
667
+ async deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
668
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductCategoryAccount(productCode, category, authorization, options);
669
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
670
+ },
671
+ /**
672
+ * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
673
+ * @summary Delete the Product Version Category Account
674
+ * @param {string} productCode
675
+ * @param {string} productVersionCode
676
+ * @param {string} category
677
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ async deleteProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
682
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options);
683
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
684
+ },
685
+ /**
686
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
687
+ * @summary Retrieve the Product Account Mapping
688
+ * @param {string} productCode
689
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
690
+ * @param {*} [options] Override http request option.
691
+ * @throws {RequiredError}
692
+ */
693
+ async getProductAccountMapping(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductAccountMappingDetailClass>> {
694
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductAccountMapping(productCode, authorization, options);
695
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
696
+ },
697
+ /**
698
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
699
+ * @summary Retrieve the Product Version Account Mapping
700
+ * @param {string} productCode
701
+ * @param {string} productVersionCode
702
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
703
+ * @param {*} [options] Override http request option.
704
+ * @throws {RequiredError}
705
+ */
706
+ async getProductVersionAccountMapping(productCode: string, productVersionCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductVersionAccountMappingDetailClass>> {
707
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options);
708
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
709
+ },
710
+ /**
711
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
712
+ * @summary List Product Account Mappings
713
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
714
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
715
+ * @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.
716
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
717
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
718
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
719
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
720
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
721
+ * @param {*} [options] Override http request option.
722
+ * @throws {RequiredError}
723
+ */
724
+ async listProductAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductAccountMappingsResponseClass>> {
725
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
726
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
727
+ },
728
+ /**
729
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
730
+ * @summary List Products With Account Mappings
731
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
732
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
733
+ * @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.
734
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
735
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
736
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
737
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
738
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
739
+ * @param {*} [options] Override http request option.
740
+ * @throws {RequiredError}
741
+ */
742
+ async listProductsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsWithAccountMappingsResponseClass>> {
743
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
744
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
745
+ },
746
+ /**
747
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
748
+ * @summary Update the Premium Item Account
749
+ * @param {string} productCode
750
+ * @param {string} productVersionCode
751
+ * @param {string} premiumFormulaCode
752
+ * @param {string} category
753
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
754
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
755
+ * @param {*} [options] Override http request option.
756
+ * @throws {RequiredError}
757
+ */
758
+ async putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>> {
759
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options);
760
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
761
+ },
762
+ /**
763
+ * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
764
+ * @summary Update the Product Category Account
765
+ * @param {string} productCode
766
+ * @param {string} category
767
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
768
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
769
+ * @param {*} [options] Override http request option.
770
+ * @throws {RequiredError}
771
+ */
772
+ async putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>> {
773
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options);
774
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
775
+ },
776
+ /**
777
+ * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
778
+ * @summary Update the Product Version Category Account
779
+ * @param {string} productCode
780
+ * @param {string} productVersionCode
781
+ * @param {string} category
782
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
783
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
784
+ * @param {*} [options] Override http request option.
785
+ * @throws {RequiredError}
786
+ */
787
+ async putProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>> {
788
+ const localVarAxiosArgs = await localVarAxiosParamCreator.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options);
789
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
790
+ },
791
+ }
792
+ };
793
+
794
+ /**
795
+ * ProductAccountMappingsApi - factory interface
796
+ * @export
797
+ */
798
+ export const ProductAccountMappingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
799
+ const localVarFp = ProductAccountMappingsApiFp(configuration)
800
+ return {
801
+ /**
802
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
803
+ * @summary Delete the Premium Item Account
804
+ * @param {string} productCode
805
+ * @param {string} productVersionCode
806
+ * @param {string} premiumFormulaCode
807
+ * @param {string} category
808
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
809
+ * @param {*} [options] Override http request option.
810
+ * @throws {RequiredError}
811
+ */
812
+ deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
813
+ return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then((request) => request(axios, basePath));
814
+ },
815
+ /**
816
+ * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
817
+ * @summary Delete the Product Category Account
818
+ * @param {string} productCode
819
+ * @param {string} category
820
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
821
+ * @param {*} [options] Override http request option.
822
+ * @throws {RequiredError}
823
+ */
824
+ deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
825
+ return localVarFp.deleteProductCategoryAccount(productCode, category, authorization, options).then((request) => request(axios, basePath));
826
+ },
827
+ /**
828
+ * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
829
+ * @summary Delete the Product Version Category Account
830
+ * @param {string} productCode
831
+ * @param {string} productVersionCode
832
+ * @param {string} category
833
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ */
837
+ deleteProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void> {
838
+ return localVarFp.deleteProductVersionCategoryAccount(productCode, productVersionCode, category, authorization, options).then((request) => request(axios, basePath));
839
+ },
840
+ /**
841
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
842
+ * @summary Retrieve the Product Account Mapping
843
+ * @param {string} productCode
844
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
845
+ * @param {*} [options] Override http request option.
846
+ * @throws {RequiredError}
847
+ */
848
+ getProductAccountMapping(productCode: string, authorization?: string, options?: any): AxiosPromise<ProductAccountMappingDetailClass> {
849
+ return localVarFp.getProductAccountMapping(productCode, authorization, options).then((request) => request(axios, basePath));
850
+ },
851
+ /**
852
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
853
+ * @summary Retrieve the Product Version Account Mapping
854
+ * @param {string} productCode
855
+ * @param {string} productVersionCode
856
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
857
+ * @param {*} [options] Override http request option.
858
+ * @throws {RequiredError}
859
+ */
860
+ getProductVersionAccountMapping(productCode: string, productVersionCode: string, authorization?: string, options?: any): AxiosPromise<ProductVersionAccountMappingDetailClass> {
861
+ return localVarFp.getProductVersionAccountMapping(productCode, productVersionCode, authorization, options).then((request) => request(axios, basePath));
862
+ },
863
+ /**
864
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
865
+ * @summary List Product Account Mappings
866
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
867
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
868
+ * @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.
869
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
870
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
871
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
872
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
873
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
874
+ * @param {*} [options] Override http request option.
875
+ * @throws {RequiredError}
876
+ */
877
+ listProductAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductAccountMappingsResponseClass> {
878
+ return localVarFp.listProductAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
879
+ },
880
+ /**
881
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
882
+ * @summary List Products With Account Mappings
883
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
884
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
885
+ * @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.
886
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
887
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
888
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
889
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
890
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
891
+ * @param {*} [options] Override http request option.
892
+ * @throws {RequiredError}
893
+ */
894
+ listProductsWithAccountMappings(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListProductsWithAccountMappingsResponseClass> {
895
+ return localVarFp.listProductsWithAccountMappings(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
896
+ },
897
+ /**
898
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
899
+ * @summary Update the Premium Item Account
900
+ * @param {string} productCode
901
+ * @param {string} productVersionCode
902
+ * @param {string} premiumFormulaCode
903
+ * @param {string} category
904
+ * @param {PutPremiumItemAccountBodyDto} putPremiumItemAccountBodyDto
905
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
906
+ * @param {*} [options] Override http request option.
907
+ * @throws {RequiredError}
908
+ */
909
+ putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass> {
910
+ return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
911
+ },
912
+ /**
913
+ * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
914
+ * @summary Update the Product Category Account
915
+ * @param {string} productCode
916
+ * @param {string} category
917
+ * @param {PutProductCategoryAccountBodyDto} putProductCategoryAccountBodyDto
918
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
919
+ * @param {*} [options] Override http request option.
920
+ * @throws {RequiredError}
921
+ */
922
+ putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
923
+ return localVarFp.putProductCategoryAccount(productCode, category, putProductCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
924
+ },
925
+ /**
926
+ * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
927
+ * @summary Update the Product Version Category Account
928
+ * @param {string} productCode
929
+ * @param {string} productVersionCode
930
+ * @param {string} category
931
+ * @param {PutProductVersionCategoryAccountBodyDto} putProductVersionCategoryAccountBodyDto
932
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
933
+ * @param {*} [options] Override http request option.
934
+ * @throws {RequiredError}
935
+ */
936
+ putProductVersionCategoryAccount(productCode: string, productVersionCode: string, category: string, putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass> {
937
+ return localVarFp.putProductVersionCategoryAccount(productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
938
+ },
939
+ };
940
+ };
941
+
942
+ /**
943
+ * Request parameters for deletePremiumItemAccount operation in ProductAccountMappingsApi.
944
+ * @export
945
+ * @interface ProductAccountMappingsApiDeletePremiumItemAccountRequest
946
+ */
947
+ export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
948
+ /**
949
+ *
950
+ * @type {string}
951
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
952
+ */
953
+ readonly productCode: string
954
+
955
+ /**
956
+ *
957
+ * @type {string}
958
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
959
+ */
960
+ readonly productVersionCode: string
961
+
962
+ /**
963
+ *
964
+ * @type {string}
965
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
966
+ */
967
+ readonly premiumFormulaCode: string
968
+
969
+ /**
970
+ *
971
+ * @type {string}
972
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
973
+ */
974
+ readonly category: string
975
+
976
+ /**
977
+ * Bearer Token: provided by the login endpoint under the name accessToken.
978
+ * @type {string}
979
+ * @memberof ProductAccountMappingsApiDeletePremiumItemAccount
980
+ */
981
+ readonly authorization?: string
982
+ }
983
+
984
+ /**
985
+ * Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
986
+ * @export
987
+ * @interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest
988
+ */
989
+ export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
990
+ /**
991
+ *
992
+ * @type {string}
993
+ * @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
994
+ */
995
+ readonly productCode: string
996
+
997
+ /**
998
+ *
999
+ * @type {string}
1000
+ * @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
1001
+ */
1002
+ readonly category: string
1003
+
1004
+ /**
1005
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1006
+ * @type {string}
1007
+ * @memberof ProductAccountMappingsApiDeleteProductCategoryAccount
1008
+ */
1009
+ readonly authorization?: string
1010
+ }
1011
+
1012
+ /**
1013
+ * Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1014
+ * @export
1015
+ * @interface ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest
1016
+ */
1017
+ export interface ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest {
1018
+ /**
1019
+ *
1020
+ * @type {string}
1021
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1022
+ */
1023
+ readonly productCode: string
1024
+
1025
+ /**
1026
+ *
1027
+ * @type {string}
1028
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1029
+ */
1030
+ readonly productVersionCode: string
1031
+
1032
+ /**
1033
+ *
1034
+ * @type {string}
1035
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1036
+ */
1037
+ readonly category: string
1038
+
1039
+ /**
1040
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1041
+ * @type {string}
1042
+ * @memberof ProductAccountMappingsApiDeleteProductVersionCategoryAccount
1043
+ */
1044
+ readonly authorization?: string
1045
+ }
1046
+
1047
+ /**
1048
+ * Request parameters for getProductAccountMapping operation in ProductAccountMappingsApi.
1049
+ * @export
1050
+ * @interface ProductAccountMappingsApiGetProductAccountMappingRequest
1051
+ */
1052
+ export interface ProductAccountMappingsApiGetProductAccountMappingRequest {
1053
+ /**
1054
+ *
1055
+ * @type {string}
1056
+ * @memberof ProductAccountMappingsApiGetProductAccountMapping
1057
+ */
1058
+ readonly productCode: string
1059
+
1060
+ /**
1061
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1062
+ * @type {string}
1063
+ * @memberof ProductAccountMappingsApiGetProductAccountMapping
1064
+ */
1065
+ readonly authorization?: string
1066
+ }
1067
+
1068
+ /**
1069
+ * Request parameters for getProductVersionAccountMapping operation in ProductAccountMappingsApi.
1070
+ * @export
1071
+ * @interface ProductAccountMappingsApiGetProductVersionAccountMappingRequest
1072
+ */
1073
+ export interface ProductAccountMappingsApiGetProductVersionAccountMappingRequest {
1074
+ /**
1075
+ *
1076
+ * @type {string}
1077
+ * @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
1078
+ */
1079
+ readonly productCode: string
1080
+
1081
+ /**
1082
+ *
1083
+ * @type {string}
1084
+ * @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
1085
+ */
1086
+ readonly productVersionCode: string
1087
+
1088
+ /**
1089
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1090
+ * @type {string}
1091
+ * @memberof ProductAccountMappingsApiGetProductVersionAccountMapping
1092
+ */
1093
+ readonly authorization?: string
1094
+ }
1095
+
1096
+ /**
1097
+ * Request parameters for listProductAccountMappings operation in ProductAccountMappingsApi.
1098
+ * @export
1099
+ * @interface ProductAccountMappingsApiListProductAccountMappingsRequest
1100
+ */
1101
+ export interface ProductAccountMappingsApiListProductAccountMappingsRequest {
1102
+ /**
1103
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1104
+ * @type {string}
1105
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1106
+ */
1107
+ readonly authorization?: string
1108
+
1109
+ /**
1110
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1111
+ * @type {number}
1112
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1113
+ */
1114
+ readonly pageSize?: number
1115
+
1116
+ /**
1117
+ * 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.
1118
+ * @type {string}
1119
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1120
+ */
1121
+ readonly pageToken?: string
1122
+
1123
+ /**
1124
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1125
+ * @type {string}
1126
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1127
+ */
1128
+ readonly filter?: string
1129
+
1130
+ /**
1131
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1132
+ * @type {string}
1133
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1134
+ */
1135
+ readonly search?: string
1136
+
1137
+ /**
1138
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
1139
+ * @type {string}
1140
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1141
+ */
1142
+ readonly order?: string
1143
+
1144
+ /**
1145
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1146
+ * @type {string}
1147
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1148
+ */
1149
+ readonly expand?: string
1150
+
1151
+ /**
1152
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1153
+ * @type {string}
1154
+ * @memberof ProductAccountMappingsApiListProductAccountMappings
1155
+ */
1156
+ readonly filters?: string
1157
+ }
1158
+
1159
+ /**
1160
+ * Request parameters for listProductsWithAccountMappings operation in ProductAccountMappingsApi.
1161
+ * @export
1162
+ * @interface ProductAccountMappingsApiListProductsWithAccountMappingsRequest
1163
+ */
1164
+ export interface ProductAccountMappingsApiListProductsWithAccountMappingsRequest {
1165
+ /**
1166
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1167
+ * @type {string}
1168
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1169
+ */
1170
+ readonly authorization?: string
1171
+
1172
+ /**
1173
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
1174
+ * @type {number}
1175
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1176
+ */
1177
+ readonly pageSize?: number
1178
+
1179
+ /**
1180
+ * 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.
1181
+ * @type {string}
1182
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1183
+ */
1184
+ readonly pageToken?: string
1185
+
1186
+ /**
1187
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
1188
+ * @type {string}
1189
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1190
+ */
1191
+ readonly filter?: string
1192
+
1193
+ /**
1194
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
1195
+ * @type {string}
1196
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1197
+ */
1198
+ readonly search?: string
1199
+
1200
+ /**
1201
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
1202
+ * @type {string}
1203
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1204
+ */
1205
+ readonly order?: string
1206
+
1207
+ /**
1208
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
1209
+ * @type {string}
1210
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1211
+ */
1212
+ readonly expand?: string
1213
+
1214
+ /**
1215
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
1216
+ * @type {string}
1217
+ * @memberof ProductAccountMappingsApiListProductsWithAccountMappings
1218
+ */
1219
+ readonly filters?: string
1220
+ }
1221
+
1222
+ /**
1223
+ * Request parameters for putPremiumItemAccount operation in ProductAccountMappingsApi.
1224
+ * @export
1225
+ * @interface ProductAccountMappingsApiPutPremiumItemAccountRequest
1226
+ */
1227
+ export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
1228
+ /**
1229
+ *
1230
+ * @type {string}
1231
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1232
+ */
1233
+ readonly productCode: string
1234
+
1235
+ /**
1236
+ *
1237
+ * @type {string}
1238
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1239
+ */
1240
+ readonly productVersionCode: string
1241
+
1242
+ /**
1243
+ *
1244
+ * @type {string}
1245
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1246
+ */
1247
+ readonly premiumFormulaCode: string
1248
+
1249
+ /**
1250
+ *
1251
+ * @type {string}
1252
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1253
+ */
1254
+ readonly category: string
1255
+
1256
+ /**
1257
+ *
1258
+ * @type {PutPremiumItemAccountBodyDto}
1259
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1260
+ */
1261
+ readonly putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto
1262
+
1263
+ /**
1264
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1265
+ * @type {string}
1266
+ * @memberof ProductAccountMappingsApiPutPremiumItemAccount
1267
+ */
1268
+ readonly authorization?: string
1269
+ }
1270
+
1271
+ /**
1272
+ * Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
1273
+ * @export
1274
+ * @interface ProductAccountMappingsApiPutProductCategoryAccountRequest
1275
+ */
1276
+ export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
1277
+ /**
1278
+ *
1279
+ * @type {string}
1280
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1281
+ */
1282
+ readonly productCode: string
1283
+
1284
+ /**
1285
+ *
1286
+ * @type {string}
1287
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1288
+ */
1289
+ readonly category: string
1290
+
1291
+ /**
1292
+ *
1293
+ * @type {PutProductCategoryAccountBodyDto}
1294
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1295
+ */
1296
+ readonly putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto
1297
+
1298
+ /**
1299
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1300
+ * @type {string}
1301
+ * @memberof ProductAccountMappingsApiPutProductCategoryAccount
1302
+ */
1303
+ readonly authorization?: string
1304
+ }
1305
+
1306
+ /**
1307
+ * Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
1308
+ * @export
1309
+ * @interface ProductAccountMappingsApiPutProductVersionCategoryAccountRequest
1310
+ */
1311
+ export interface ProductAccountMappingsApiPutProductVersionCategoryAccountRequest {
1312
+ /**
1313
+ *
1314
+ * @type {string}
1315
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1316
+ */
1317
+ readonly productCode: string
1318
+
1319
+ /**
1320
+ *
1321
+ * @type {string}
1322
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1323
+ */
1324
+ readonly productVersionCode: string
1325
+
1326
+ /**
1327
+ *
1328
+ * @type {string}
1329
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1330
+ */
1331
+ readonly category: string
1332
+
1333
+ /**
1334
+ *
1335
+ * @type {PutProductVersionCategoryAccountBodyDto}
1336
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1337
+ */
1338
+ readonly putProductVersionCategoryAccountBodyDto: PutProductVersionCategoryAccountBodyDto
1339
+
1340
+ /**
1341
+ * Bearer Token: provided by the login endpoint under the name accessToken.
1342
+ * @type {string}
1343
+ * @memberof ProductAccountMappingsApiPutProductVersionCategoryAccount
1344
+ */
1345
+ readonly authorization?: string
1346
+ }
1347
+
1348
+ /**
1349
+ * ProductAccountMappingsApi - object-oriented interface
1350
+ * @export
1351
+ * @class ProductAccountMappingsApi
1352
+ * @extends {BaseAPI}
1353
+ */
1354
+ export class ProductAccountMappingsApi extends BaseAPI {
1355
+ /**
1356
+ * Permanently deletes the Premium Item Account. Supply the unique code that was returned when you created the Premium Item Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1357
+ * @summary Delete the Premium Item Account
1358
+ * @param {ProductAccountMappingsApiDeletePremiumItemAccountRequest} requestParameters Request parameters.
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ * @memberof ProductAccountMappingsApi
1362
+ */
1363
+ public deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig) {
1364
+ return ProductAccountMappingsApiFp(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1365
+ }
1366
+
1367
+ /**
1368
+ * Permanently deletes the Product Category Account. Supply the unique code that was returned when you created the Product Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1369
+ * @summary Delete the Product Category Account
1370
+ * @param {ProductAccountMappingsApiDeleteProductCategoryAccountRequest} requestParameters Request parameters.
1371
+ * @param {*} [options] Override http request option.
1372
+ * @throws {RequiredError}
1373
+ * @memberof ProductAccountMappingsApi
1374
+ */
1375
+ public deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig) {
1376
+ return ProductAccountMappingsApiFp(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1377
+ }
1378
+
1379
+ /**
1380
+ * Permanently deletes the Product Version Category Account. Supply the unique code that was returned when you created the Product Version Category Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1381
+ * @summary Delete the Product Version Category Account
1382
+ * @param {ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest} requestParameters Request parameters.
1383
+ * @param {*} [options] Override http request option.
1384
+ * @throws {RequiredError}
1385
+ * @memberof ProductAccountMappingsApi
1386
+ */
1387
+ public deleteProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
1388
+ return ProductAccountMappingsApiFp(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1389
+ }
1390
+
1391
+ /**
1392
+ * Retrieves the details of the Product Account Mapping that was previously created. Supply the unique Product Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
1393
+ * @summary Retrieve the Product Account Mapping
1394
+ * @param {ProductAccountMappingsApiGetProductAccountMappingRequest} requestParameters Request parameters.
1395
+ * @param {*} [options] Override http request option.
1396
+ * @throws {RequiredError}
1397
+ * @memberof ProductAccountMappingsApi
1398
+ */
1399
+ public getProductAccountMapping(requestParameters: ProductAccountMappingsApiGetProductAccountMappingRequest, options?: AxiosRequestConfig) {
1400
+ return ProductAccountMappingsApiFp(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1401
+ }
1402
+
1403
+ /**
1404
+ * Retrieves the details of the Product Version Account Mapping that was previously created. Supply the unique Product Version Account Mapping code that was returned when you created it and Emil Api will return the corresponding Product Version Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
1405
+ * @summary Retrieve the Product Version Account Mapping
1406
+ * @param {ProductAccountMappingsApiGetProductVersionAccountMappingRequest} requestParameters Request parameters.
1407
+ * @param {*} [options] Override http request option.
1408
+ * @throws {RequiredError}
1409
+ * @memberof ProductAccountMappingsApi
1410
+ */
1411
+ public getProductVersionAccountMapping(requestParameters: ProductAccountMappingsApiGetProductVersionAccountMappingRequest, options?: AxiosRequestConfig) {
1412
+ return ProductAccountMappingsApiFp(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1413
+ }
1414
+
1415
+ /**
1416
+ * Paginated list of the actual stored override rows, across every level (product/version/premium-item). Filterable by productCode/productVersionCode/premiumFormulaCode/category. For browsing the product catalog with mapping badges, use GET /products instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
1417
+ * @summary List Product Account Mappings
1418
+ * @param {ProductAccountMappingsApiListProductAccountMappingsRequest} requestParameters Request parameters.
1419
+ * @param {*} [options] Override http request option.
1420
+ * @throws {RequiredError}
1421
+ * @memberof ProductAccountMappingsApi
1422
+ */
1423
+ public listProductAccountMappings(requestParameters: ProductAccountMappingsApiListProductAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1424
+ return ProductAccountMappingsApiFp(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1425
+ }
1426
+
1427
+ /**
1428
+ * Paginated product catalog (proxied from insuranceservice, every version regardless of status), each product carrying its versions and a hasCustomMapping badge at both levels. Cheap -- no resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
1429
+ * @summary List Products With Account Mappings
1430
+ * @param {ProductAccountMappingsApiListProductsWithAccountMappingsRequest} requestParameters Request parameters.
1431
+ * @param {*} [options] Override http request option.
1432
+ * @throws {RequiredError}
1433
+ * @memberof ProductAccountMappingsApi
1434
+ */
1435
+ public listProductsWithAccountMappings(requestParameters: ProductAccountMappingsApiListProductsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
1436
+ return ProductAccountMappingsApiFp(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
1437
+ }
1438
+
1439
+ /**
1440
+ * Updates the specified Premium Item Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1441
+ * @summary Update the Premium Item Account
1442
+ * @param {ProductAccountMappingsApiPutPremiumItemAccountRequest} requestParameters Request parameters.
1443
+ * @param {*} [options] Override http request option.
1444
+ * @throws {RequiredError}
1445
+ * @memberof ProductAccountMappingsApi
1446
+ */
1447
+ public putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig) {
1448
+ return ProductAccountMappingsApiFp(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1449
+ }
1450
+
1451
+ /**
1452
+ * Updates the specified Product Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1453
+ * @summary Update the Product Category Account
1454
+ * @param {ProductAccountMappingsApiPutProductCategoryAccountRequest} requestParameters Request parameters.
1455
+ * @param {*} [options] Override http request option.
1456
+ * @throws {RequiredError}
1457
+ * @memberof ProductAccountMappingsApi
1458
+ */
1459
+ public putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig) {
1460
+ return ProductAccountMappingsApiFp(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1461
+ }
1462
+
1463
+ /**
1464
+ * Updates the specified Product Version Category Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1465
+ * @summary Update the Product Version Category Account
1466
+ * @param {ProductAccountMappingsApiPutProductVersionCategoryAccountRequest} requestParameters Request parameters.
1467
+ * @param {*} [options] Override http request option.
1468
+ * @throws {RequiredError}
1469
+ * @memberof ProductAccountMappingsApi
1470
+ */
1471
+ public putProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductVersionCategoryAccountRequest, options?: AxiosRequestConfig) {
1472
+ return ProductAccountMappingsApiFp(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1473
+ }
1474
+ }