@emilgroup/accounting-sdk 1.34.1-beta.112 → 1.34.1-beta.113

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 (61) hide show
  1. package/.openapi-generator/FILES +0 -1
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +24 -64
  4. package/api/booking-entries-api.ts +15 -40
  5. package/api/commission-account-mappings-api.ts +24 -64
  6. package/api/financial-accounts-api.ts +15 -40
  7. package/api/financial-transactions-api.ts +6 -16
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +12 -32
  10. package/api/personal-accounts-api.ts +12 -32
  11. package/api/product-account-mappings-api.ts +36 -377
  12. package/base.ts +43 -239
  13. package/common.ts +2 -3
  14. package/configuration.ts +0 -20
  15. package/dist/api/accounting-configs-api.d.ts +8 -8
  16. package/dist/api/accounting-configs-api.js +64 -120
  17. package/dist/api/booking-entries-api.d.ts +5 -5
  18. package/dist/api/booking-entries-api.js +38 -67
  19. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  20. package/dist/api/commission-account-mappings-api.js +61 -108
  21. package/dist/api/financial-accounts-api.d.ts +5 -5
  22. package/dist/api/financial-accounts-api.js +38 -67
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +14 -22
  25. package/dist/api/health-api.d.ts +1 -1
  26. package/dist/api/health-api.js +1 -1
  27. package/dist/api/number-ranges-api.d.ts +4 -4
  28. package/dist/api/number-ranges-api.js +30 -52
  29. package/dist/api/personal-accounts-api.d.ts +4 -4
  30. package/dist/api/personal-accounts-api.js +30 -52
  31. package/dist/api/product-account-mappings-api.d.ts +12 -168
  32. package/dist/api/product-account-mappings-api.js +94 -401
  33. package/dist/base.d.ts +0 -26
  34. package/dist/base.js +60 -243
  35. package/dist/common.d.ts +1 -1
  36. package/dist/common.js +0 -1
  37. package/dist/configuration.d.ts +0 -17
  38. package/dist/configuration.js +0 -2
  39. package/dist/models/account-mapping-class.d.ts +2 -3
  40. package/dist/models/account-mapping-class.js +3 -4
  41. package/dist/models/accounting-category-class.d.ts +0 -12
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -3
  43. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -4
  44. package/dist/models/create-booking-entry-request-dto.d.ts +7 -1
  45. package/dist/models/create-booking-entry-request-dto.js +6 -0
  46. package/dist/models/create-financial-account-request-dto.d.ts +2 -3
  47. package/dist/models/create-financial-account-request-dto.js +3 -4
  48. package/dist/models/index.d.ts +0 -1
  49. package/dist/models/index.js +0 -1
  50. package/dist/models/premium-item-account-mapping-class.d.ts +0 -12
  51. package/models/account-mapping-class.ts +3 -4
  52. package/models/accounting-category-class.ts +0 -12
  53. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -4
  54. package/models/create-booking-entry-request-dto.ts +7 -1
  55. package/models/create-financial-account-request-dto.ts +3 -4
  56. package/models/index.ts +0 -1
  57. package/models/premium-item-account-mapping-class.ts +0 -12
  58. package/package.json +2 -2
  59. package/dist/models/put-premium-item-carrier-body-dto.d.ts +0 -24
  60. package/dist/models/put-premium-item-carrier-body-dto.js +0 -15
  61. package/models/put-premium-item-carrier-body-dto.ts +0 -30
@@ -106,10 +106,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
106
106
  deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
107
107
  if (options === void 0) { options = {}; }
108
108
  return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
110
- var _a;
111
- return __generator(this, function (_b) {
112
- switch (_b.label) {
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ return __generator(this, function (_a) {
111
+ switch (_a.label) {
113
112
  case 0:
114
113
  // verify required parameter 'productCode' is not null or undefined
115
114
  (0, common_1.assertParamExists)('deletePremiumItemAccount', 'productCode', productCode);
@@ -134,82 +133,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
134
133
  localVarQueryParameter = {};
135
134
  // authentication bearer required
136
135
  // http bearer authentication required
137
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
138
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
139
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
140
- ];
141
- case 1:
142
- // authentication bearer required
143
- // http bearer authentication required
144
- _b.sent();
145
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
146
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
147
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
148
- if (authorizationValue || authorizationKeepEmpty) {
149
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
150
- }
151
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
152
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
153
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
154
- return [2 /*return*/, {
155
- url: (0, common_1.toPathString)(localVarUrlObj),
156
- options: localVarRequestOptions,
157
- }];
158
- }
159
- });
160
- });
161
- },
162
- /**
163
- * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
164
- * @summary Delete the Premium Item Carrier
165
- * @param {string} productCode
166
- * @param {string} productVersionCode
167
- * @param {string} premiumFormulaCode
168
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- */
172
- deletePremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, authorization, options) {
173
- if (options === void 0) { options = {}; }
174
- return __awaiter(_this, void 0, void 0, function () {
175
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
176
- var _a;
177
- return __generator(this, function (_b) {
178
- switch (_b.label) {
179
- case 0:
180
- // verify required parameter 'productCode' is not null or undefined
181
- (0, common_1.assertParamExists)('deletePremiumItemCarrier', 'productCode', productCode);
182
- // verify required parameter 'productVersionCode' is not null or undefined
183
- (0, common_1.assertParamExists)('deletePremiumItemCarrier', 'productVersionCode', productVersionCode);
184
- // verify required parameter 'premiumFormulaCode' is not null or undefined
185
- (0, common_1.assertParamExists)('deletePremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode);
186
- localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier"
187
- .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
188
- .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
189
- .replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)));
190
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
191
- if (configuration) {
192
- baseOptions = configuration.baseOptions;
193
- baseAccessToken = configuration.accessToken;
194
- }
195
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
196
- localVarHeaderParameter = {};
197
- localVarQueryParameter = {};
198
- // authentication bearer required
199
- // http bearer authentication required
200
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
201
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
202
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
203
- ];
136
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
204
137
  case 1:
205
138
  // authentication bearer required
206
139
  // http bearer authentication required
207
- _b.sent();
208
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
209
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
210
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
211
- if (authorizationValue || authorizationKeepEmpty) {
212
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
140
+ _a.sent();
141
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
142
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
213
143
  }
214
144
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
215
145
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -234,10 +164,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
234
164
  deleteProductCategoryAccount: function (productCode, category, authorization, options) {
235
165
  if (options === void 0) { options = {}; }
236
166
  return __awaiter(_this, void 0, void 0, function () {
237
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
238
- var _a;
239
- return __generator(this, function (_b) {
240
- switch (_b.label) {
167
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
168
+ return __generator(this, function (_a) {
169
+ switch (_a.label) {
241
170
  case 0:
242
171
  // verify required parameter 'productCode' is not null or undefined
243
172
  (0, common_1.assertParamExists)('deleteProductCategoryAccount', 'productCode', productCode);
@@ -256,19 +185,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
256
185
  localVarQueryParameter = {};
257
186
  // authentication bearer required
258
187
  // http bearer authentication required
259
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
260
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
261
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
262
- ];
188
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
263
189
  case 1:
264
190
  // authentication bearer required
265
191
  // http bearer authentication required
266
- _b.sent();
267
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
268
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
269
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
270
- if (authorizationValue || authorizationKeepEmpty) {
271
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
+ _a.sent();
193
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
194
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
195
  }
273
196
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
197
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -292,10 +215,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
292
215
  deleteProductRiskCarrier: function (productCode, authorization, options) {
293
216
  if (options === void 0) { options = {}; }
294
217
  return __awaiter(_this, void 0, void 0, function () {
295
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
296
- var _a;
297
- return __generator(this, function (_b) {
298
- switch (_b.label) {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
219
+ return __generator(this, function (_a) {
220
+ switch (_a.label) {
299
221
  case 0:
300
222
  // verify required parameter 'productCode' is not null or undefined
301
223
  (0, common_1.assertParamExists)('deleteProductRiskCarrier', 'productCode', productCode);
@@ -311,19 +233,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
311
233
  localVarQueryParameter = {};
312
234
  // authentication bearer required
313
235
  // http bearer authentication required
314
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
315
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
316
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
317
- ];
236
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
318
237
  case 1:
319
238
  // authentication bearer required
320
239
  // http bearer authentication required
321
- _b.sent();
322
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
323
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
324
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
325
- if (authorizationValue || authorizationKeepEmpty) {
326
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
240
+ _a.sent();
241
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
242
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
327
243
  }
328
244
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
329
245
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -349,10 +265,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
349
265
  deleteProductVersionCategoryAccount: function (productCode, productVersionCode, category, authorization, options) {
350
266
  if (options === void 0) { options = {}; }
351
267
  return __awaiter(_this, void 0, void 0, function () {
352
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
353
- var _a;
354
- return __generator(this, function (_b) {
355
- switch (_b.label) {
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
+ return __generator(this, function (_a) {
270
+ switch (_a.label) {
356
271
  case 0:
357
272
  // verify required parameter 'productCode' is not null or undefined
358
273
  (0, common_1.assertParamExists)('deleteProductVersionCategoryAccount', 'productCode', productCode);
@@ -374,19 +289,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
374
289
  localVarQueryParameter = {};
375
290
  // authentication bearer required
376
291
  // http bearer authentication required
377
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
378
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
379
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
380
- ];
292
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
381
293
  case 1:
382
294
  // authentication bearer required
383
295
  // http bearer authentication required
384
- _b.sent();
385
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
386
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
387
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
388
- if (authorizationValue || authorizationKeepEmpty) {
389
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
296
+ _a.sent();
297
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
298
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
390
299
  }
391
300
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
392
301
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -410,10 +319,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
410
319
  getProductAccountMapping: function (productCode, authorization, options) {
411
320
  if (options === void 0) { options = {}; }
412
321
  return __awaiter(_this, void 0, void 0, function () {
413
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
414
- var _a;
415
- return __generator(this, function (_b) {
416
- switch (_b.label) {
322
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
323
+ return __generator(this, function (_a) {
324
+ switch (_a.label) {
417
325
  case 0:
418
326
  // verify required parameter 'productCode' is not null or undefined
419
327
  (0, common_1.assertParamExists)('getProductAccountMapping', 'productCode', productCode);
@@ -429,19 +337,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
429
337
  localVarQueryParameter = {};
430
338
  // authentication bearer required
431
339
  // http bearer authentication required
432
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
433
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
434
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
435
- ];
340
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
436
341
  case 1:
437
342
  // authentication bearer required
438
343
  // http bearer authentication required
439
- _b.sent();
440
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
441
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
442
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
443
- if (authorizationValue || authorizationKeepEmpty) {
444
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
344
+ _a.sent();
345
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
346
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
445
347
  }
446
348
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
447
349
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -466,10 +368,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
466
368
  getProductVersionAccountMapping: function (productCode, productVersionCode, authorization, options) {
467
369
  if (options === void 0) { options = {}; }
468
370
  return __awaiter(_this, void 0, void 0, function () {
469
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
470
- var _a;
471
- return __generator(this, function (_b) {
472
- switch (_b.label) {
371
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
372
+ return __generator(this, function (_a) {
373
+ switch (_a.label) {
473
374
  case 0:
474
375
  // verify required parameter 'productCode' is not null or undefined
475
376
  (0, common_1.assertParamExists)('getProductVersionAccountMapping', 'productCode', productCode);
@@ -488,19 +389,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
488
389
  localVarQueryParameter = {};
489
390
  // authentication bearer required
490
391
  // http bearer authentication required
491
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
492
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
493
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
494
- ];
392
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
495
393
  case 1:
496
394
  // authentication bearer required
497
395
  // http bearer authentication required
498
- _b.sent();
499
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
500
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
501
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
502
- if (authorizationValue || authorizationKeepEmpty) {
503
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
396
+ _a.sent();
397
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
398
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
504
399
  }
505
400
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
506
401
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -530,10 +425,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
530
425
  listProductAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
531
426
  if (options === void 0) { options = {}; }
532
427
  return __awaiter(_this, void 0, void 0, function () {
533
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
534
- var _a;
535
- return __generator(this, function (_b) {
536
- switch (_b.label) {
428
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
429
+ return __generator(this, function (_a) {
430
+ switch (_a.label) {
537
431
  case 0:
538
432
  localVarPath = "/accountingservice/v1/product-account-mappings";
539
433
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -550,7 +444,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
550
444
  case 1:
551
445
  // authentication bearer required
552
446
  // http bearer authentication required
553
- _b.sent();
447
+ _a.sent();
554
448
  if (pageSize !== undefined) {
555
449
  localVarQueryParameter['pageSize'] = pageSize;
556
450
  }
@@ -572,11 +466,8 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
572
466
  if (filters !== undefined) {
573
467
  localVarQueryParameter['filters'] = filters;
574
468
  }
575
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
576
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
577
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
578
- if (authorizationValue || authorizationKeepEmpty) {
579
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
469
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
470
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
580
471
  }
581
472
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
582
473
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -606,10 +497,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
606
497
  listProductsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
607
498
  if (options === void 0) { options = {}; }
608
499
  return __awaiter(_this, void 0, void 0, function () {
609
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
610
- var _a;
611
- return __generator(this, function (_b) {
612
- switch (_b.label) {
500
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
501
+ return __generator(this, function (_a) {
502
+ switch (_a.label) {
613
503
  case 0:
614
504
  localVarPath = "/accountingservice/v1/product-account-mappings/products";
615
505
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -626,7 +516,7 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
626
516
  case 1:
627
517
  // authentication bearer required
628
518
  // http bearer authentication required
629
- _b.sent();
519
+ _a.sent();
630
520
  if (pageSize !== undefined) {
631
521
  localVarQueryParameter['pageSize'] = pageSize;
632
522
  }
@@ -648,11 +538,8 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
648
538
  if (filters !== undefined) {
649
539
  localVarQueryParameter['filters'] = filters;
650
540
  }
651
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
652
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
653
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
654
- if (authorizationValue || authorizationKeepEmpty) {
655
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
541
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
542
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
656
543
  }
657
544
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
658
545
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -680,10 +567,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
680
567
  putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
681
568
  if (options === void 0) { options = {}; }
682
569
  return __awaiter(_this, void 0, void 0, function () {
683
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
684
- var _a;
685
- return __generator(this, function (_b) {
686
- switch (_b.label) {
570
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
571
+ return __generator(this, function (_a) {
572
+ switch (_a.label) {
687
573
  case 0:
688
574
  // verify required parameter 'productCode' is not null or undefined
689
575
  (0, common_1.assertParamExists)('putPremiumItemAccount', 'productCode', productCode);
@@ -710,19 +596,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
710
596
  localVarQueryParameter = {};
711
597
  // authentication bearer required
712
598
  // http bearer authentication required
713
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
714
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
715
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
716
- ];
599
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
717
600
  case 1:
718
601
  // authentication bearer required
719
602
  // http bearer authentication required
720
- _b.sent();
721
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
722
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
723
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
724
- if (authorizationValue || authorizationKeepEmpty) {
725
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
603
+ _a.sent();
604
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
605
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
726
606
  }
727
607
  localVarHeaderParameter['Content-Type'] = 'application/json';
728
608
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -737,74 +617,6 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
737
617
  });
738
618
  });
739
619
  },
740
- /**
741
- * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
742
- * @summary Update the Premium Item Carrier
743
- * @param {string} productCode
744
- * @param {string} productVersionCode
745
- * @param {string} premiumFormulaCode
746
- * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
747
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
748
- * @param {*} [options] Override http request option.
749
- * @throws {RequiredError}
750
- */
751
- putPremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options) {
752
- if (options === void 0) { options = {}; }
753
- return __awaiter(_this, void 0, void 0, function () {
754
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
755
- var _a;
756
- return __generator(this, function (_b) {
757
- switch (_b.label) {
758
- case 0:
759
- // verify required parameter 'productCode' is not null or undefined
760
- (0, common_1.assertParamExists)('putPremiumItemCarrier', 'productCode', productCode);
761
- // verify required parameter 'productVersionCode' is not null or undefined
762
- (0, common_1.assertParamExists)('putPremiumItemCarrier', 'productVersionCode', productVersionCode);
763
- // verify required parameter 'premiumFormulaCode' is not null or undefined
764
- (0, common_1.assertParamExists)('putPremiumItemCarrier', 'premiumFormulaCode', premiumFormulaCode);
765
- // verify required parameter 'putPremiumItemCarrierBodyDto' is not null or undefined
766
- (0, common_1.assertParamExists)('putPremiumItemCarrier', 'putPremiumItemCarrierBodyDto', putPremiumItemCarrierBodyDto);
767
- localVarPath = "/accountingservice/v1/product-account-mappings/products/{productCode}/versions/{productVersionCode}/premium-items/{premiumFormulaCode}/carrier"
768
- .replace("{".concat("productCode", "}"), encodeURIComponent(String(productCode)))
769
- .replace("{".concat("productVersionCode", "}"), encodeURIComponent(String(productVersionCode)))
770
- .replace("{".concat("premiumFormulaCode", "}"), encodeURIComponent(String(premiumFormulaCode)));
771
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
772
- if (configuration) {
773
- baseOptions = configuration.baseOptions;
774
- baseAccessToken = configuration.accessToken;
775
- }
776
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
777
- localVarHeaderParameter = {};
778
- localVarQueryParameter = {};
779
- // authentication bearer required
780
- // http bearer authentication required
781
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
782
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
783
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
784
- ];
785
- case 1:
786
- // authentication bearer required
787
- // http bearer authentication required
788
- _b.sent();
789
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
790
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
791
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
792
- if (authorizationValue || authorizationKeepEmpty) {
793
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
794
- }
795
- localVarHeaderParameter['Content-Type'] = 'application/json';
796
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
797
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
798
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
799
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(putPremiumItemCarrierBodyDto, localVarRequestOptions, configuration);
800
- return [2 /*return*/, {
801
- url: (0, common_1.toPathString)(localVarUrlObj),
802
- options: localVarRequestOptions,
803
- }];
804
- }
805
- });
806
- });
807
- },
808
620
  /**
809
621
  * 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\"
810
622
  * @summary Update the Product Category Account
@@ -818,10 +630,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
818
630
  putProductCategoryAccount: function (productCode, category, putProductCategoryAccountBodyDto, authorization, options) {
819
631
  if (options === void 0) { options = {}; }
820
632
  return __awaiter(_this, void 0, void 0, function () {
821
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
822
- var _a;
823
- return __generator(this, function (_b) {
824
- switch (_b.label) {
633
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
634
+ return __generator(this, function (_a) {
635
+ switch (_a.label) {
825
636
  case 0:
826
637
  // verify required parameter 'productCode' is not null or undefined
827
638
  (0, common_1.assertParamExists)('putProductCategoryAccount', 'productCode', productCode);
@@ -842,19 +653,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
842
653
  localVarQueryParameter = {};
843
654
  // authentication bearer required
844
655
  // http bearer authentication required
845
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
846
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
847
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
848
- ];
656
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
849
657
  case 1:
850
658
  // authentication bearer required
851
659
  // http bearer authentication required
852
- _b.sent();
853
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
854
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
855
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
856
- if (authorizationValue || authorizationKeepEmpty) {
857
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
660
+ _a.sent();
661
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
662
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
858
663
  }
859
664
  localVarHeaderParameter['Content-Type'] = 'application/json';
860
665
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -881,10 +686,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
881
686
  putProductRiskCarrier: function (productCode, putProductRiskCarrierBodyDto, authorization, options) {
882
687
  if (options === void 0) { options = {}; }
883
688
  return __awaiter(_this, void 0, void 0, function () {
884
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
885
- var _a;
886
- return __generator(this, function (_b) {
887
- switch (_b.label) {
689
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
690
+ return __generator(this, function (_a) {
691
+ switch (_a.label) {
888
692
  case 0:
889
693
  // verify required parameter 'productCode' is not null or undefined
890
694
  (0, common_1.assertParamExists)('putProductRiskCarrier', 'productCode', productCode);
@@ -902,19 +706,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
902
706
  localVarQueryParameter = {};
903
707
  // authentication bearer required
904
708
  // http bearer authentication required
905
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
906
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
907
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
908
- ];
709
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
909
710
  case 1:
910
711
  // authentication bearer required
911
712
  // http bearer authentication required
912
- _b.sent();
913
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
914
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
915
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
916
- if (authorizationValue || authorizationKeepEmpty) {
917
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
713
+ _a.sent();
714
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
715
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
918
716
  }
919
717
  localVarHeaderParameter['Content-Type'] = 'application/json';
920
718
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -943,10 +741,9 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
943
741
  putProductVersionCategoryAccount: function (productCode, productVersionCode, category, putProductVersionCategoryAccountBodyDto, authorization, options) {
944
742
  if (options === void 0) { options = {}; }
945
743
  return __awaiter(_this, void 0, void 0, function () {
946
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
947
- var _a;
948
- return __generator(this, function (_b) {
949
- switch (_b.label) {
744
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
745
+ return __generator(this, function (_a) {
746
+ switch (_a.label) {
950
747
  case 0:
951
748
  // verify required parameter 'productCode' is not null or undefined
952
749
  (0, common_1.assertParamExists)('putProductVersionCategoryAccount', 'productCode', productCode);
@@ -970,19 +767,13 @@ var ProductAccountMappingsApiAxiosParamCreator = function (configuration) {
970
767
  localVarQueryParameter = {};
971
768
  // authentication bearer required
972
769
  // http bearer authentication required
973
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
974
- // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
975
- // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
976
- ];
770
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
977
771
  case 1:
978
772
  // authentication bearer required
979
773
  // http bearer authentication required
980
- _b.sent();
981
- authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
982
- authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
983
- authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
984
- if (authorizationValue || authorizationKeepEmpty) {
985
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
774
+ _a.sent();
775
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
776
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
986
777
  }
987
778
  localVarHeaderParameter['Content-Type'] = 'application/json';
988
779
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -1031,29 +822,6 @@ var ProductAccountMappingsApiFp = function (configuration) {
1031
822
  });
1032
823
  });
1033
824
  },
1034
- /**
1035
- * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1036
- * @summary Delete the Premium Item Carrier
1037
- * @param {string} productCode
1038
- * @param {string} productVersionCode
1039
- * @param {string} premiumFormulaCode
1040
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1041
- * @param {*} [options] Override http request option.
1042
- * @throws {RequiredError}
1043
- */
1044
- deletePremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, authorization, options) {
1045
- return __awaiter(this, void 0, void 0, function () {
1046
- var localVarAxiosArgs;
1047
- return __generator(this, function (_a) {
1048
- switch (_a.label) {
1049
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options)];
1050
- case 1:
1051
- localVarAxiosArgs = _a.sent();
1052
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1053
- }
1054
- });
1055
- });
1056
- },
1057
825
  /**
1058
826
  * 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\"
1059
827
  * @summary Delete the Product Category Account
@@ -1242,30 +1010,6 @@ var ProductAccountMappingsApiFp = function (configuration) {
1242
1010
  });
1243
1011
  });
1244
1012
  },
1245
- /**
1246
- * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1247
- * @summary Update the Premium Item Carrier
1248
- * @param {string} productCode
1249
- * @param {string} productVersionCode
1250
- * @param {string} premiumFormulaCode
1251
- * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
1252
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1253
- * @param {*} [options] Override http request option.
1254
- * @throws {RequiredError}
1255
- */
1256
- putPremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options) {
1257
- return __awaiter(this, void 0, void 0, function () {
1258
- var localVarAxiosArgs;
1259
- return __generator(this, function (_a) {
1260
- switch (_a.label) {
1261
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options)];
1262
- case 1:
1263
- localVarAxiosArgs = _a.sent();
1264
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
1265
- }
1266
- });
1267
- });
1268
- },
1269
1013
  /**
1270
1014
  * 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\"
1271
1015
  * @summary Update the Product Category Account
@@ -1359,19 +1103,6 @@ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios)
1359
1103
  deletePremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, authorization, options) {
1360
1104
  return localVarFp.deletePremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, authorization, options).then(function (request) { return request(axios, basePath); });
1361
1105
  },
1362
- /**
1363
- * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1364
- * @summary Delete the Premium Item Carrier
1365
- * @param {string} productCode
1366
- * @param {string} productVersionCode
1367
- * @param {string} premiumFormulaCode
1368
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1369
- * @param {*} [options] Override http request option.
1370
- * @throws {RequiredError}
1371
- */
1372
- deletePremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, authorization, options) {
1373
- return localVarFp.deletePremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, authorization, options).then(function (request) { return request(axios, basePath); });
1374
- },
1375
1106
  /**
1376
1107
  * 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\"
1377
1108
  * @summary Delete the Product Category Account
@@ -1480,20 +1211,6 @@ var ProductAccountMappingsApiFactory = function (configuration, basePath, axios)
1480
1211
  putPremiumItemAccount: function (productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options) {
1481
1212
  return localVarFp.putPremiumItemAccount(productCode, productVersionCode, premiumFormulaCode, category, putPremiumItemAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1482
1213
  },
1483
- /**
1484
- * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1485
- * @summary Update the Premium Item Carrier
1486
- * @param {string} productCode
1487
- * @param {string} productVersionCode
1488
- * @param {string} premiumFormulaCode
1489
- * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
1490
- * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
1491
- * @param {*} [options] Override http request option.
1492
- * @throws {RequiredError}
1493
- */
1494
- putPremiumItemCarrier: function (productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options) {
1495
- return localVarFp.putPremiumItemCarrier(productCode, productVersionCode, premiumFormulaCode, putPremiumItemCarrierBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
1496
- },
1497
1214
  /**
1498
1215
  * 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\"
1499
1216
  * @summary Update the Product Category Account
@@ -1557,19 +1274,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1557
1274
  */
1558
1275
  ProductAccountMappingsApi.prototype.deletePremiumItemAccount = function (requestParameters, options) {
1559
1276
  var _this = this;
1560
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1561
- };
1562
- /**
1563
- * Permanently deletes the Premium Item Carrier. Supply the unique code that was returned when you created the Premium Item Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
1564
- * @summary Delete the Premium Item Carrier
1565
- * @param {ProductAccountMappingsApiDeletePremiumItemCarrierRequest} requestParameters Request parameters.
1566
- * @param {*} [options] Override http request option.
1567
- * @throws {RequiredError}
1568
- * @memberof ProductAccountMappingsApi
1569
- */
1570
- ProductAccountMappingsApi.prototype.deletePremiumItemCarrier = function (requestParameters, options) {
1571
- var _this = this;
1572
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1277
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deletePremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1573
1278
  };
1574
1279
  /**
1575
1280
  * 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\"
@@ -1581,7 +1286,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1581
1286
  */
1582
1287
  ProductAccountMappingsApi.prototype.deleteProductCategoryAccount = function (requestParameters, options) {
1583
1288
  var _this = this;
1584
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1289
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1585
1290
  };
1586
1291
  /**
1587
1292
  * Permanently deletes the Product Risk Carrier. Supply the unique code that was returned when you created the Product Risk Carrier and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -1593,7 +1298,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1593
1298
  */
1594
1299
  ProductAccountMappingsApi.prototype.deleteProductRiskCarrier = function (requestParameters, options) {
1595
1300
  var _this = this;
1596
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1301
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductRiskCarrier(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1597
1302
  };
1598
1303
  /**
1599
1304
  * 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\"
@@ -1605,7 +1310,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1605
1310
  */
1606
1311
  ProductAccountMappingsApi.prototype.deleteProductVersionCategoryAccount = function (requestParameters, options) {
1607
1312
  var _this = this;
1608
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1313
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).deleteProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1609
1314
  };
1610
1315
  /**
1611
1316
  * 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\"
@@ -1617,7 +1322,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1617
1322
  */
1618
1323
  ProductAccountMappingsApi.prototype.getProductAccountMapping = function (requestParameters, options) {
1619
1324
  var _this = this;
1620
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1325
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductAccountMapping(requestParameters.productCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1621
1326
  };
1622
1327
  /**
1623
1328
  * 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\"
@@ -1629,7 +1334,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1629
1334
  */
1630
1335
  ProductAccountMappingsApi.prototype.getProductVersionAccountMapping = function (requestParameters, options) {
1631
1336
  var _this = this;
1632
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1337
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).getProductVersionAccountMapping(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1633
1338
  };
1634
1339
  /**
1635
1340
  * 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\"
@@ -1642,7 +1347,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1642
1347
  ProductAccountMappingsApi.prototype.listProductAccountMappings = function (requestParameters, options) {
1643
1348
  var _this = this;
1644
1349
  if (requestParameters === void 0) { requestParameters = {}; }
1645
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1350
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1646
1351
  };
1647
1352
  /**
1648
1353
  * 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\"
@@ -1655,7 +1360,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1655
1360
  ProductAccountMappingsApi.prototype.listProductsWithAccountMappings = function (requestParameters, options) {
1656
1361
  var _this = this;
1657
1362
  if (requestParameters === void 0) { requestParameters = {}; }
1658
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1363
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).listProductsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
1659
1364
  };
1660
1365
  /**
1661
1366
  * 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\"
@@ -1667,19 +1372,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1667
1372
  */
1668
1373
  ProductAccountMappingsApi.prototype.putPremiumItemAccount = function (requestParameters, options) {
1669
1374
  var _this = this;
1670
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1671
- };
1672
- /**
1673
- * Updates the specified Premium Item Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
1674
- * @summary Update the Premium Item Carrier
1675
- * @param {ProductAccountMappingsApiPutPremiumItemCarrierRequest} requestParameters Request parameters.
1676
- * @param {*} [options] Override http request option.
1677
- * @throws {RequiredError}
1678
- * @memberof ProductAccountMappingsApi
1679
- */
1680
- ProductAccountMappingsApi.prototype.putPremiumItemCarrier = function (requestParameters, options) {
1681
- var _this = this;
1682
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemCarrier(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.putPremiumItemCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1375
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putPremiumItemAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.premiumFormulaCode, requestParameters.category, requestParameters.putPremiumItemAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1683
1376
  };
1684
1377
  /**
1685
1378
  * 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\"
@@ -1691,7 +1384,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1691
1384
  */
1692
1385
  ProductAccountMappingsApi.prototype.putProductCategoryAccount = function (requestParameters, options) {
1693
1386
  var _this = this;
1694
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1387
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductCategoryAccount(requestParameters.productCode, requestParameters.category, requestParameters.putProductCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1695
1388
  };
1696
1389
  /**
1697
1390
  * Updates the specified Product Risk Carrier by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
@@ -1703,7 +1396,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1703
1396
  */
1704
1397
  ProductAccountMappingsApi.prototype.putProductRiskCarrier = function (requestParameters, options) {
1705
1398
  var _this = this;
1706
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1399
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductRiskCarrier(requestParameters.productCode, requestParameters.putProductRiskCarrierBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1707
1400
  };
1708
1401
  /**
1709
1402
  * 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\"
@@ -1715,7 +1408,7 @@ var ProductAccountMappingsApi = /** @class */ (function (_super) {
1715
1408
  */
1716
1409
  ProductAccountMappingsApi.prototype.putProductVersionCategoryAccount = function (requestParameters, options) {
1717
1410
  var _this = this;
1718
- return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
1411
+ return (0, exports.ProductAccountMappingsApiFp)(this.configuration).putProductVersionCategoryAccount(requestParameters.productCode, requestParameters.productVersionCode, requestParameters.category, requestParameters.putProductVersionCategoryAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
1719
1412
  };
1720
1413
  return ProductAccountMappingsApi;
1721
1414
  }(base_1.BaseAPI));