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

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 +1 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +64 -24
  4. package/api/booking-entries-api.ts +40 -15
  5. package/api/commission-account-mappings-api.ts +64 -24
  6. package/api/financial-accounts-api.ts +40 -15
  7. package/api/financial-transactions-api.ts +16 -6
  8. package/api/health-api.ts +1 -1
  9. package/api/number-ranges-api.ts +32 -12
  10. package/api/personal-accounts-api.ts +32 -12
  11. package/api/product-account-mappings-api.ts +377 -36
  12. package/base.ts +239 -43
  13. package/common.ts +3 -2
  14. package/configuration.ts +20 -0
  15. package/dist/api/accounting-configs-api.d.ts +8 -8
  16. package/dist/api/accounting-configs-api.js +120 -64
  17. package/dist/api/booking-entries-api.d.ts +5 -5
  18. package/dist/api/booking-entries-api.js +67 -38
  19. package/dist/api/commission-account-mappings-api.d.ts +8 -8
  20. package/dist/api/commission-account-mappings-api.js +108 -61
  21. package/dist/api/financial-accounts-api.d.ts +5 -5
  22. package/dist/api/financial-accounts-api.js +67 -38
  23. package/dist/api/financial-transactions-api.d.ts +2 -2
  24. package/dist/api/financial-transactions-api.js +22 -14
  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 +52 -30
  29. package/dist/api/personal-accounts-api.d.ts +4 -4
  30. package/dist/api/personal-accounts-api.js +52 -30
  31. package/dist/api/product-account-mappings-api.d.ts +168 -12
  32. package/dist/api/product-account-mappings-api.js +401 -94
  33. package/dist/base.d.ts +26 -0
  34. package/dist/base.js +243 -60
  35. package/dist/common.d.ts +1 -1
  36. package/dist/common.js +1 -0
  37. package/dist/configuration.d.ts +17 -0
  38. package/dist/configuration.js +2 -0
  39. package/dist/models/account-mapping-class.d.ts +3 -2
  40. package/dist/models/account-mapping-class.js +4 -3
  41. package/dist/models/accounting-category-class.d.ts +12 -0
  42. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +3 -2
  43. package/dist/models/accounting-config-data-dto-default-account-mappings.js +4 -3
  44. package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
  45. package/dist/models/create-booking-entry-request-dto.js +0 -6
  46. package/dist/models/create-financial-account-request-dto.d.ts +3 -2
  47. package/dist/models/create-financial-account-request-dto.js +4 -3
  48. package/dist/models/index.d.ts +1 -0
  49. package/dist/models/index.js +1 -0
  50. package/dist/models/premium-item-account-mapping-class.d.ts +12 -0
  51. package/dist/models/put-premium-item-carrier-body-dto.d.ts +24 -0
  52. package/dist/models/put-premium-item-carrier-body-dto.js +15 -0
  53. package/models/account-mapping-class.ts +4 -3
  54. package/models/accounting-category-class.ts +12 -0
  55. package/models/accounting-config-data-dto-default-account-mappings.ts +4 -3
  56. package/models/create-booking-entry-request-dto.ts +1 -7
  57. package/models/create-financial-account-request-dto.ts +4 -3
  58. package/models/index.ts +1 -0
  59. package/models/premium-item-account-mapping-class.ts +12 -0
  60. package/models/put-premium-item-carrier-body-dto.ts +30 -0
  61. package/package.json +2 -2
@@ -296,7 +296,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
296
296
  * @throws {RequiredError}
297
297
  * @memberof PersonalAccountsApi
298
298
  */
299
- createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any, {}>>;
299
+ createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePersonalAccountResponseClass, any, {}, any>>;
300
300
  /**
301
301
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
302
302
  * @summary Delete the Personal Account
@@ -305,7 +305,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
305
305
  * @throws {RequiredError}
306
306
  * @memberof PersonalAccountsApi
307
307
  */
308
- deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
308
+ deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
309
309
  /**
310
310
  * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
311
311
  * @summary Retrieve the Personal Account
@@ -314,7 +314,7 @@ export declare class PersonalAccountsApi extends BaseAPI {
314
314
  * @throws {RequiredError}
315
315
  * @memberof PersonalAccountsApi
316
316
  */
317
- getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}>>;
317
+ getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetPersonalAccountResponseClass, any, {}, any>>;
318
318
  /**
319
319
  * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
320
320
  * @summary List Personal Accounts
@@ -323,5 +323,5 @@ export declare class PersonalAccountsApi extends BaseAPI {
323
323
  * @throws {RequiredError}
324
324
  * @memberof PersonalAccountsApi
325
325
  */
326
- listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}>>;
326
+ listPersonalAccounts(requestParameters?: PersonalAccountsApiListPersonalAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPersonalAccountsResponseClass, any, {}, any>>;
327
327
  }
@@ -103,9 +103,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
103
103
  createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
- return __generator(this, function (_a) {
108
- switch (_a.label) {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
107
+ var _a;
108
+ return __generator(this, function (_b) {
109
+ switch (_b.label) {
109
110
  case 0:
110
111
  // verify required parameter 'createPersonalAccountRequestDto' is not null or undefined
111
112
  (0, common_1.assertParamExists)('createPersonalAccount', 'createPersonalAccountRequestDto', createPersonalAccountRequestDto);
@@ -120,13 +121,19 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
120
121
  localVarQueryParameter = {};
121
122
  // authentication bearer required
122
123
  // http bearer authentication required
123
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
125
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
126
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
127
+ ];
124
128
  case 1:
125
129
  // authentication bearer required
126
130
  // http bearer authentication required
127
- _a.sent();
128
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
131
+ _b.sent();
132
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
133
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
134
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
135
+ if (authorizationValue || authorizationKeepEmpty) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
130
137
  }
131
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
132
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -152,9 +159,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
152
159
  deletePersonalAccount: function (code, authorization, options) {
153
160
  if (options === void 0) { options = {}; }
154
161
  return __awaiter(_this, void 0, void 0, function () {
155
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
- return __generator(this, function (_a) {
157
- switch (_a.label) {
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
163
+ var _a;
164
+ return __generator(this, function (_b) {
165
+ switch (_b.label) {
158
166
  case 0:
159
167
  // verify required parameter 'code' is not null or undefined
160
168
  (0, common_1.assertParamExists)('deletePersonalAccount', 'code', code);
@@ -170,13 +178,19 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
170
178
  localVarQueryParameter = {};
171
179
  // authentication bearer required
172
180
  // http bearer authentication required
173
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
182
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
183
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
184
+ ];
174
185
  case 1:
175
186
  // authentication bearer required
176
187
  // http bearer authentication required
177
- _a.sent();
178
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ _b.sent();
189
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
190
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
191
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
192
+ if (authorizationValue || authorizationKeepEmpty) {
193
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
180
194
  }
181
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
196
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -201,9 +215,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
201
215
  getPersonalAccount: function (code, expand, authorization, options) {
202
216
  if (options === void 0) { options = {}; }
203
217
  return __awaiter(_this, void 0, void 0, function () {
204
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
- return __generator(this, function (_a) {
206
- switch (_a.label) {
218
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
219
+ var _a;
220
+ return __generator(this, function (_b) {
221
+ switch (_b.label) {
207
222
  case 0:
208
223
  // verify required parameter 'code' is not null or undefined
209
224
  (0, common_1.assertParamExists)('getPersonalAccount', 'code', code);
@@ -225,12 +240,15 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
225
240
  case 1:
226
241
  // authentication bearer required
227
242
  // http bearer authentication required
228
- _a.sent();
243
+ _b.sent();
229
244
  if (expand !== undefined) {
230
245
  localVarQueryParameter['expand'] = expand;
231
246
  }
232
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
247
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
248
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
249
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
250
+ if (authorizationValue || authorizationKeepEmpty) {
251
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
234
252
  }
235
253
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
254
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -260,9 +278,10 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
260
278
  listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
279
  if (options === void 0) { options = {}; }
262
280
  return __awaiter(_this, void 0, void 0, function () {
263
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
- return __generator(this, function (_a) {
265
- switch (_a.label) {
281
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
282
+ var _a;
283
+ return __generator(this, function (_b) {
284
+ switch (_b.label) {
266
285
  case 0:
267
286
  localVarPath = "/accountingservice/v1/personal-accounts";
268
287
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -279,7 +298,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
279
298
  case 1:
280
299
  // authentication bearer required
281
300
  // http bearer authentication required
282
- _a.sent();
301
+ _b.sent();
283
302
  if (pageSize !== undefined) {
284
303
  localVarQueryParameter['pageSize'] = pageSize;
285
304
  }
@@ -301,8 +320,11 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
301
320
  if (filters !== undefined) {
302
321
  localVarQueryParameter['filters'] = filters;
303
322
  }
304
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
323
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
324
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
325
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
326
+ if (authorizationValue || authorizationKeepEmpty) {
327
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
306
328
  }
307
329
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
330
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -501,7 +523,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
501
523
  */
502
524
  PersonalAccountsApi.prototype.createPersonalAccount = function (requestParameters, options) {
503
525
  var _this = this;
504
- return (0, exports.PersonalAccountsApiFp)(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
526
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
505
527
  };
506
528
  /**
507
529
  * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
@@ -513,7 +535,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
513
535
  */
514
536
  PersonalAccountsApi.prototype.deletePersonalAccount = function (requestParameters, options) {
515
537
  var _this = this;
516
- return (0, exports.PersonalAccountsApiFp)(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
538
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
517
539
  };
518
540
  /**
519
541
  * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -525,7 +547,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
525
547
  */
526
548
  PersonalAccountsApi.prototype.getPersonalAccount = function (requestParameters, options) {
527
549
  var _this = this;
528
- return (0, exports.PersonalAccountsApiFp)(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
550
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
529
551
  };
530
552
  /**
531
553
  * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.financial-accounts.view\"
@@ -538,7 +560,7 @@ var PersonalAccountsApi = /** @class */ (function (_super) {
538
560
  PersonalAccountsApi.prototype.listPersonalAccounts = function (requestParameters, options) {
539
561
  var _this = this;
540
562
  if (requestParameters === void 0) { requestParameters = {}; }
541
- return (0, exports.PersonalAccountsApiFp)(this.configuration).listPersonalAccounts(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); });
563
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).listPersonalAccounts(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); });
542
564
  };
543
565
  return PersonalAccountsApi;
544
566
  }(base_1.BaseAPI));
@@ -19,6 +19,7 @@ import { ProductAccountMappingDetailClass } from '../models';
19
19
  import { ProductRiskCarrierClass } from '../models';
20
20
  import { ProductVersionAccountMappingDetailClass } from '../models';
21
21
  import { PutPremiumItemAccountBodyDto } from '../models';
22
+ import { PutPremiumItemCarrierBodyDto } from '../models';
22
23
  import { PutProductCategoryAccountBodyDto } from '../models';
23
24
  import { PutProductRiskCarrierBodyDto } from '../models';
24
25
  import { PutProductVersionCategoryAccountBodyDto } from '../models';
@@ -40,6 +41,17 @@ export declare const ProductAccountMappingsApiAxiosParamCreator: (configuration?
40
41
  * @throws {RequiredError}
41
42
  */
42
43
  deletePremiumItemAccount: (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
44
+ /**
45
+ * 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\"
46
+ * @summary Delete the Premium Item Carrier
47
+ * @param {string} productCode
48
+ * @param {string} productVersionCode
49
+ * @param {string} premiumFormulaCode
50
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
51
+ * @param {*} [options] Override http request option.
52
+ * @throws {RequiredError}
53
+ */
54
+ deletePremiumItemCarrier: (productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
43
55
  /**
44
56
  * 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\"
45
57
  * @summary Delete the Product Category Account
@@ -132,6 +144,18 @@ export declare const ProductAccountMappingsApiAxiosParamCreator: (configuration?
132
144
  * @throws {RequiredError}
133
145
  */
134
146
  putPremiumItemAccount: (productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
147
+ /**
148
+ * 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\"
149
+ * @summary Update the Premium Item Carrier
150
+ * @param {string} productCode
151
+ * @param {string} productVersionCode
152
+ * @param {string} premiumFormulaCode
153
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
154
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
155
+ * @param {*} [options] Override http request option.
156
+ * @throws {RequiredError}
157
+ */
158
+ putPremiumItemCarrier: (productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
135
159
  /**
136
160
  * 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\"
137
161
  * @summary Update the Product Category Account
@@ -183,6 +207,17 @@ export declare const ProductAccountMappingsApiFp: (configuration?: Configuration
183
207
  * @throws {RequiredError}
184
208
  */
185
209
  deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
210
+ /**
211
+ * 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\"
212
+ * @summary Delete the Premium Item Carrier
213
+ * @param {string} productCode
214
+ * @param {string} productVersionCode
215
+ * @param {string} premiumFormulaCode
216
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
217
+ * @param {*} [options] Override http request option.
218
+ * @throws {RequiredError}
219
+ */
220
+ deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
186
221
  /**
187
222
  * 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\"
188
223
  * @summary Delete the Product Category Account
@@ -275,6 +310,18 @@ export declare const ProductAccountMappingsApiFp: (configuration?: Configuration
275
310
  * @throws {RequiredError}
276
311
  */
277
312
  putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>>;
313
+ /**
314
+ * 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\"
315
+ * @summary Update the Premium Item Carrier
316
+ * @param {string} productCode
317
+ * @param {string} productVersionCode
318
+ * @param {string} premiumFormulaCode
319
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
320
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
321
+ * @param {*} [options] Override http request option.
322
+ * @throws {RequiredError}
323
+ */
324
+ putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremiumItemAccountMappingClass>>;
278
325
  /**
279
326
  * 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\"
280
327
  * @summary Update the Product Category Account
@@ -326,6 +373,17 @@ export declare const ProductAccountMappingsApiFactory: (configuration?: Configur
326
373
  * @throws {RequiredError}
327
374
  */
328
375
  deletePremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void>;
376
+ /**
377
+ * 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\"
378
+ * @summary Delete the Premium Item Carrier
379
+ * @param {string} productCode
380
+ * @param {string} productVersionCode
381
+ * @param {string} premiumFormulaCode
382
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
383
+ * @param {*} [options] Override http request option.
384
+ * @throws {RequiredError}
385
+ */
386
+ deletePremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, authorization?: string, options?: any): AxiosPromise<void>;
329
387
  /**
330
388
  * 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\"
331
389
  * @summary Delete the Product Category Account
@@ -418,6 +476,18 @@ export declare const ProductAccountMappingsApiFactory: (configuration?: Configur
418
476
  * @throws {RequiredError}
419
477
  */
420
478
  putPremiumItemAccount(productCode: string, productVersionCode: string, premiumFormulaCode: string, category: string, putPremiumItemAccountBodyDto: PutPremiumItemAccountBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass>;
479
+ /**
480
+ * 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\"
481
+ * @summary Update the Premium Item Carrier
482
+ * @param {string} productCode
483
+ * @param {string} productVersionCode
484
+ * @param {string} premiumFormulaCode
485
+ * @param {PutPremiumItemCarrierBodyDto} putPremiumItemCarrierBodyDto
486
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
487
+ * @param {*} [options] Override http request option.
488
+ * @throws {RequiredError}
489
+ */
490
+ putPremiumItemCarrier(productCode: string, productVersionCode: string, premiumFormulaCode: string, putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<PremiumItemAccountMappingClass>;
421
491
  /**
422
492
  * 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\"
423
493
  * @summary Update the Product Category Account
@@ -489,6 +559,37 @@ export interface ProductAccountMappingsApiDeletePremiumItemAccountRequest {
489
559
  */
490
560
  readonly authorization?: string;
491
561
  }
562
+ /**
563
+ * Request parameters for deletePremiumItemCarrier operation in ProductAccountMappingsApi.
564
+ * @export
565
+ * @interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest
566
+ */
567
+ export interface ProductAccountMappingsApiDeletePremiumItemCarrierRequest {
568
+ /**
569
+ *
570
+ * @type {string}
571
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
572
+ */
573
+ readonly productCode: string;
574
+ /**
575
+ *
576
+ * @type {string}
577
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
578
+ */
579
+ readonly productVersionCode: string;
580
+ /**
581
+ *
582
+ * @type {string}
583
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
584
+ */
585
+ readonly premiumFormulaCode: string;
586
+ /**
587
+ * Bearer Token: provided by the login endpoint under the name accessToken.
588
+ * @type {string}
589
+ * @memberof ProductAccountMappingsApiDeletePremiumItemCarrier
590
+ */
591
+ readonly authorization?: string;
592
+ }
492
593
  /**
493
594
  * Request parameters for deleteProductCategoryAccount operation in ProductAccountMappingsApi.
494
595
  * @export
@@ -761,6 +862,43 @@ export interface ProductAccountMappingsApiPutPremiumItemAccountRequest {
761
862
  */
762
863
  readonly authorization?: string;
763
864
  }
865
+ /**
866
+ * Request parameters for putPremiumItemCarrier operation in ProductAccountMappingsApi.
867
+ * @export
868
+ * @interface ProductAccountMappingsApiPutPremiumItemCarrierRequest
869
+ */
870
+ export interface ProductAccountMappingsApiPutPremiumItemCarrierRequest {
871
+ /**
872
+ *
873
+ * @type {string}
874
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
875
+ */
876
+ readonly productCode: string;
877
+ /**
878
+ *
879
+ * @type {string}
880
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
881
+ */
882
+ readonly productVersionCode: string;
883
+ /**
884
+ *
885
+ * @type {string}
886
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
887
+ */
888
+ readonly premiumFormulaCode: string;
889
+ /**
890
+ *
891
+ * @type {PutPremiumItemCarrierBodyDto}
892
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
893
+ */
894
+ readonly putPremiumItemCarrierBodyDto: PutPremiumItemCarrierBodyDto;
895
+ /**
896
+ * Bearer Token: provided by the login endpoint under the name accessToken.
897
+ * @type {string}
898
+ * @memberof ProductAccountMappingsApiPutPremiumItemCarrier
899
+ */
900
+ readonly authorization?: string;
901
+ }
764
902
  /**
765
903
  * Request parameters for putProductCategoryAccount operation in ProductAccountMappingsApi.
766
904
  * @export
@@ -869,7 +1007,16 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
869
1007
  * @throws {RequiredError}
870
1008
  * @memberof ProductAccountMappingsApi
871
1009
  */
872
- deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1010
+ deletePremiumItemAccount(requestParameters: ProductAccountMappingsApiDeletePremiumItemAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
1011
+ /**
1012
+ * 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\"
1013
+ * @summary Delete the Premium Item Carrier
1014
+ * @param {ProductAccountMappingsApiDeletePremiumItemCarrierRequest} requestParameters Request parameters.
1015
+ * @param {*} [options] Override http request option.
1016
+ * @throws {RequiredError}
1017
+ * @memberof ProductAccountMappingsApi
1018
+ */
1019
+ deletePremiumItemCarrier(requestParameters: ProductAccountMappingsApiDeletePremiumItemCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
873
1020
  /**
874
1021
  * 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\"
875
1022
  * @summary Delete the Product Category Account
@@ -878,7 +1025,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
878
1025
  * @throws {RequiredError}
879
1026
  * @memberof ProductAccountMappingsApi
880
1027
  */
881
- deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1028
+ deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
882
1029
  /**
883
1030
  * 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\"
884
1031
  * @summary Delete the Product Risk Carrier
@@ -887,7 +1034,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
887
1034
  * @throws {RequiredError}
888
1035
  * @memberof ProductAccountMappingsApi
889
1036
  */
890
- deleteProductRiskCarrier(requestParameters: ProductAccountMappingsApiDeleteProductRiskCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1037
+ deleteProductRiskCarrier(requestParameters: ProductAccountMappingsApiDeleteProductRiskCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
891
1038
  /**
892
1039
  * 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\"
893
1040
  * @summary Delete the Product Version Category Account
@@ -896,7 +1043,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
896
1043
  * @throws {RequiredError}
897
1044
  * @memberof ProductAccountMappingsApi
898
1045
  */
899
- deleteProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
1046
+ deleteProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductVersionCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
900
1047
  /**
901
1048
  * 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\"
902
1049
  * @summary Retrieve the Product Account Mapping
@@ -905,7 +1052,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
905
1052
  * @throws {RequiredError}
906
1053
  * @memberof ProductAccountMappingsApi
907
1054
  */
908
- getProductAccountMapping(requestParameters: ProductAccountMappingsApiGetProductAccountMappingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductAccountMappingDetailClass, any, {}>>;
1055
+ getProductAccountMapping(requestParameters: ProductAccountMappingsApiGetProductAccountMappingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductAccountMappingDetailClass, any, {}, any>>;
909
1056
  /**
910
1057
  * 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\"
911
1058
  * @summary Retrieve the Product Version Account Mapping
@@ -914,7 +1061,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
914
1061
  * @throws {RequiredError}
915
1062
  * @memberof ProductAccountMappingsApi
916
1063
  */
917
- getProductVersionAccountMapping(requestParameters: ProductAccountMappingsApiGetProductVersionAccountMappingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductVersionAccountMappingDetailClass, any, {}>>;
1064
+ getProductVersionAccountMapping(requestParameters: ProductAccountMappingsApiGetProductVersionAccountMappingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductVersionAccountMappingDetailClass, any, {}, any>>;
918
1065
  /**
919
1066
  * 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\"
920
1067
  * @summary List Product Account Mappings
@@ -923,7 +1070,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
923
1070
  * @throws {RequiredError}
924
1071
  * @memberof ProductAccountMappingsApi
925
1072
  */
926
- listProductAccountMappings(requestParameters?: ProductAccountMappingsApiListProductAccountMappingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductAccountMappingsResponseClass, any, {}>>;
1073
+ listProductAccountMappings(requestParameters?: ProductAccountMappingsApiListProductAccountMappingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductAccountMappingsResponseClass, any, {}, any>>;
927
1074
  /**
928
1075
  * 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\"
929
1076
  * @summary List Products With Account Mappings
@@ -932,7 +1079,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
932
1079
  * @throws {RequiredError}
933
1080
  * @memberof ProductAccountMappingsApi
934
1081
  */
935
- listProductsWithAccountMappings(requestParameters?: ProductAccountMappingsApiListProductsWithAccountMappingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsWithAccountMappingsResponseClass, any, {}>>;
1082
+ listProductsWithAccountMappings(requestParameters?: ProductAccountMappingsApiListProductsWithAccountMappingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductsWithAccountMappingsResponseClass, any, {}, any>>;
936
1083
  /**
937
1084
  * 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\"
938
1085
  * @summary Update the Premium Item Account
@@ -941,7 +1088,16 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
941
1088
  * @throws {RequiredError}
942
1089
  * @memberof ProductAccountMappingsApi
943
1090
  */
944
- putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PremiumItemAccountMappingClass, any, {}>>;
1091
+ putPremiumItemAccount(requestParameters: ProductAccountMappingsApiPutPremiumItemAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PremiumItemAccountMappingClass, any, {}, any>>;
1092
+ /**
1093
+ * 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\"
1094
+ * @summary Update the Premium Item Carrier
1095
+ * @param {ProductAccountMappingsApiPutPremiumItemCarrierRequest} requestParameters Request parameters.
1096
+ * @param {*} [options] Override http request option.
1097
+ * @throws {RequiredError}
1098
+ * @memberof ProductAccountMappingsApi
1099
+ */
1100
+ putPremiumItemCarrier(requestParameters: ProductAccountMappingsApiPutPremiumItemCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PremiumItemAccountMappingClass, any, {}, any>>;
945
1101
  /**
946
1102
  * 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\"
947
1103
  * @summary Update the Product Category Account
@@ -950,7 +1106,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
950
1106
  * @throws {RequiredError}
951
1107
  * @memberof ProductAccountMappingsApi
952
1108
  */
953
- putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResolvedAccountMappingClass, any, {}>>;
1109
+ putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResolvedAccountMappingClass, any, {}, any>>;
954
1110
  /**
955
1111
  * 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\"
956
1112
  * @summary Update the Product Risk Carrier
@@ -959,7 +1115,7 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
959
1115
  * @throws {RequiredError}
960
1116
  * @memberof ProductAccountMappingsApi
961
1117
  */
962
- putProductRiskCarrier(requestParameters: ProductAccountMappingsApiPutProductRiskCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRiskCarrierClass, any, {}>>;
1118
+ putProductRiskCarrier(requestParameters: ProductAccountMappingsApiPutProductRiskCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRiskCarrierClass, any, {}, any>>;
963
1119
  /**
964
1120
  * 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\"
965
1121
  * @summary Update the Product Version Category Account
@@ -968,5 +1124,5 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
968
1124
  * @throws {RequiredError}
969
1125
  * @memberof ProductAccountMappingsApi
970
1126
  */
971
- putProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductVersionCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResolvedAccountMappingClass, any, {}>>;
1127
+ putProductVersionCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductVersionCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResolvedAccountMappingClass, any, {}, any>>;
972
1128
  }