@emilgroup/accounting-sdk-node 1.32.1-beta.57 → 1.32.1-beta.59

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 (53) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +2 -2
  3. package/api/accounting-configs-api.ts +32 -16
  4. package/api/booking-entries-api.ts +20 -10
  5. package/api/commission-account-mappings-api.ts +32 -16
  6. package/api/financial-accounts-api.ts +20 -10
  7. package/api/financial-transactions-api.ts +8 -4
  8. package/api/number-ranges-api.ts +16 -8
  9. package/api/personal-accounts-api.ts +16 -8
  10. package/api/product-account-mappings-api.ts +265 -20
  11. package/dist/api/accounting-configs-api.js +56 -32
  12. package/dist/api/booking-entries-api.js +29 -18
  13. package/dist/api/commission-account-mappings-api.js +47 -29
  14. package/dist/api/financial-accounts-api.js +29 -18
  15. package/dist/api/financial-transactions-api.js +8 -6
  16. package/dist/api/number-ranges-api.js +22 -14
  17. package/dist/api/personal-accounts-api.js +22 -14
  18. package/dist/api/product-account-mappings-api.d.ts +121 -0
  19. package/dist/api/product-account-mappings-api.js +261 -38
  20. package/dist/models/account-mapping-class.d.ts +2 -0
  21. package/dist/models/account-mapping-class.js +3 -1
  22. package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +2 -0
  23. package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
  24. package/dist/models/booking-entry-class.d.ts +1 -0
  25. package/dist/models/booking-entry-class.js +1 -0
  26. package/dist/models/create-booking-entry-request-dto.d.ts +1 -0
  27. package/dist/models/create-booking-entry-request-dto.js +1 -0
  28. package/dist/models/create-financial-account-request-dto.d.ts +2 -0
  29. package/dist/models/create-financial-account-request-dto.js +3 -1
  30. package/dist/models/financial-transaction-class.d.ts +6 -0
  31. package/dist/models/financial-transaction-data-dto.d.ts +6 -0
  32. package/dist/models/index.d.ts +2 -0
  33. package/dist/models/index.js +2 -0
  34. package/dist/models/post-financial-event-request-dto.d.ts +3 -2
  35. package/dist/models/post-financial-event-request-dto.js +1 -0
  36. package/dist/models/product-account-mapping-detail-class.d.ts +6 -0
  37. package/dist/models/product-risk-carrier-class.d.ts +42 -0
  38. package/dist/models/product-risk-carrier-class.js +15 -0
  39. package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
  40. package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
  41. package/models/account-mapping-class.ts +3 -1
  42. package/models/accounting-config-data-dto-default-account-mappings.ts +3 -1
  43. package/models/booking-entry-class.ts +1 -0
  44. package/models/create-booking-entry-request-dto.ts +1 -0
  45. package/models/create-financial-account-request-dto.ts +3 -1
  46. package/models/financial-transaction-class.ts +6 -0
  47. package/models/financial-transaction-data-dto.ts +6 -0
  48. package/models/index.ts +2 -0
  49. package/models/post-financial-event-request-dto.ts +3 -2
  50. package/models/product-account-mapping-detail-class.ts +6 -0
  51. package/models/product-risk-carrier-class.ts +48 -0
  52. package/models/put-product-risk-carrier-body-dto.ts +30 -0
  53. package/package.json +1 -1
@@ -107,7 +107,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
107
107
  createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
156
159
  deleteFinancialAccount: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
205
211
  getFinancialAccount: function (code, expand, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -233,8 +239,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
233
239
  if (expand !== undefined) {
234
240
  localVarQueryParameter['expand'] = expand;
235
241
  }
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
245
  }
239
246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
247
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -264,7 +271,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
264
271
  listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
272
  if (options === void 0) { options = {}; }
266
273
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
268
275
  return __generator(this, function (_a) {
269
276
  switch (_a.label) {
270
277
  case 0:
@@ -305,8 +312,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
305
312
  if (filters !== undefined) {
306
313
  localVarQueryParameter['filters'] = filters;
307
314
  }
308
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
318
  }
311
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
320
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -331,7 +339,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
331
339
  updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
332
340
  if (options === void 0) { options = {}; }
333
341
  return __awaiter(_this, void 0, void 0, function () {
334
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
342
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
335
343
  return __generator(this, function (_a) {
336
344
  switch (_a.label) {
337
345
  case 0:
@@ -351,13 +359,16 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
351
359
  localVarQueryParameter = {};
352
360
  // authentication bearer required
353
361
  // http bearer authentication required
354
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
362
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
363
+ // Only Authorization falls back to the configured token; an empty value is never sent.
364
+ ];
355
365
  case 1:
356
366
  // authentication bearer required
357
367
  // http bearer authentication required
358
368
  _a.sent();
359
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
360
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
369
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
370
+ if (authorizationValue) {
371
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
361
372
  }
362
373
  localVarHeaderParameter['Content-Type'] = 'application/json';
363
374
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -108,7 +108,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
108
108
  getFinancialTransaction: function (code, expand, authorization, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -136,8 +136,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
136
136
  if (expand !== undefined) {
137
137
  localVarQueryParameter['expand'] = expand;
138
138
  }
139
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
140
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
139
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
140
+ if (authorizationValue) {
141
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
141
142
  }
142
143
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
143
144
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -167,7 +168,7 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
167
168
  listFinancialTransactions: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
168
169
  if (options === void 0) { options = {}; }
169
170
  return __awaiter(_this, void 0, void 0, function () {
170
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
171
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
171
172
  return __generator(this, function (_a) {
172
173
  switch (_a.label) {
173
174
  case 0:
@@ -208,8 +209,9 @@ var FinancialTransactionsApiAxiosParamCreator = function (configuration) {
208
209
  if (filters !== undefined) {
209
210
  localVarQueryParameter['filters'] = filters;
210
211
  }
211
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
212
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
213
+ if (authorizationValue) {
214
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
213
215
  }
214
216
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
215
217
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -107,7 +107,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
107
107
  createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
156
159
  deleteNumberRange: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
205
211
  getNumberRange: function (code, expand, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -233,8 +239,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
233
239
  if (expand !== undefined) {
234
240
  localVarQueryParameter['expand'] = expand;
235
241
  }
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
245
  }
239
246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
247
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -264,7 +271,7 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
264
271
  listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
272
  if (options === void 0) { options = {}; }
266
273
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
268
275
  return __generator(this, function (_a) {
269
276
  switch (_a.label) {
270
277
  case 0:
@@ -305,8 +312,9 @@ var NumberRangesApiAxiosParamCreator = function (configuration) {
305
312
  if (filters !== undefined) {
306
313
  localVarQueryParameter['filters'] = filters;
307
314
  }
308
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
318
  }
311
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
320
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -107,7 +107,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
107
107
  createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
+ // Only Authorization falls back to the configured token; an empty value is never sent.
129
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
156
159
  deletePersonalAccount: function (code, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -174,13 +177,16 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
174
177
  localVarQueryParameter = {};
175
178
  // authentication bearer required
176
179
  // http bearer authentication required
177
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
180
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
181
+ // Only Authorization falls back to the configured token; an empty value is never sent.
182
+ ];
178
183
  case 1:
179
184
  // authentication bearer required
180
185
  // http bearer authentication required
181
186
  _a.sent();
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
187
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
188
+ if (authorizationValue) {
189
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
184
190
  }
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
192
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -205,7 +211,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
205
211
  getPersonalAccount: function (code, expand, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -233,8 +239,9 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
233
239
  if (expand !== undefined) {
234
240
  localVarQueryParameter['expand'] = expand;
235
241
  }
236
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
237
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
242
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
243
+ if (authorizationValue) {
244
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
238
245
  }
239
246
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
240
247
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -264,7 +271,7 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
264
271
  listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
265
272
  if (options === void 0) { options = {}; }
266
273
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
274
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
268
275
  return __generator(this, function (_a) {
269
276
  switch (_a.label) {
270
277
  case 0:
@@ -305,8 +312,9 @@ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
305
312
  if (filters !== undefined) {
306
313
  localVarQueryParameter['filters'] = filters;
307
314
  }
308
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
309
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
315
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
316
+ if (authorizationValue) {
317
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
310
318
  }
311
319
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
312
320
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -16,9 +16,11 @@ import { ListProductAccountMappingsResponseClass } from '../models';
16
16
  import { ListProductsWithAccountMappingsResponseClass } from '../models';
17
17
  import { PremiumItemAccountMappingClass } from '../models';
18
18
  import { ProductAccountMappingDetailClass } from '../models';
19
+ import { ProductRiskCarrierClass } from '../models';
19
20
  import { ProductVersionAccountMappingDetailClass } from '../models';
20
21
  import { PutPremiumItemAccountBodyDto } from '../models';
21
22
  import { PutProductCategoryAccountBodyDto } from '../models';
23
+ import { PutProductRiskCarrierBodyDto } from '../models';
22
24
  import { PutProductVersionCategoryAccountBodyDto } from '../models';
23
25
  import { ResolvedAccountMappingClass } from '../models';
24
26
  /**
@@ -48,6 +50,15 @@ export declare const ProductAccountMappingsApiAxiosParamCreator: (configuration?
48
50
  * @throws {RequiredError}
49
51
  */
50
52
  deleteProductCategoryAccount: (productCode: string, category: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
+ /**
54
+ * 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\"
55
+ * @summary Delete the Product Risk Carrier
56
+ * @param {string} productCode
57
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
58
+ * @param {*} [options] Override http request option.
59
+ * @throws {RequiredError}
60
+ */
61
+ deleteProductRiskCarrier: (productCode: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
62
  /**
52
63
  * 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\"
53
64
  * @summary Delete the Product Version Category Account
@@ -132,6 +143,16 @@ export declare const ProductAccountMappingsApiAxiosParamCreator: (configuration?
132
143
  * @throws {RequiredError}
133
144
  */
134
145
  putProductCategoryAccount: (productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
146
+ /**
147
+ * 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\"
148
+ * @summary Update the Product Risk Carrier
149
+ * @param {string} productCode
150
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
151
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
152
+ * @param {*} [options] Override http request option.
153
+ * @throws {RequiredError}
154
+ */
155
+ putProductRiskCarrier: (productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
135
156
  /**
136
157
  * 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\"
137
158
  * @summary Update the Product Version Category Account
@@ -172,6 +193,15 @@ export declare const ProductAccountMappingsApiFp: (configuration?: Configuration
172
193
  * @throws {RequiredError}
173
194
  */
174
195
  deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
196
+ /**
197
+ * 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\"
198
+ * @summary Delete the Product Risk Carrier
199
+ * @param {string} productCode
200
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
201
+ * @param {*} [options] Override http request option.
202
+ * @throws {RequiredError}
203
+ */
204
+ deleteProductRiskCarrier(productCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
175
205
  /**
176
206
  * 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\"
177
207
  * @summary Delete the Product Version Category Account
@@ -256,6 +286,16 @@ export declare const ProductAccountMappingsApiFp: (configuration?: Configuration
256
286
  * @throws {RequiredError}
257
287
  */
258
288
  putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ResolvedAccountMappingClass>>;
289
+ /**
290
+ * 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\"
291
+ * @summary Update the Product Risk Carrier
292
+ * @param {string} productCode
293
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
294
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ putProductRiskCarrier(productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductRiskCarrierClass>>;
259
299
  /**
260
300
  * 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\"
261
301
  * @summary Update the Product Version Category Account
@@ -296,6 +336,15 @@ export declare const ProductAccountMappingsApiFactory: (configuration?: Configur
296
336
  * @throws {RequiredError}
297
337
  */
298
338
  deleteProductCategoryAccount(productCode: string, category: string, authorization?: string, options?: any): AxiosPromise<void>;
339
+ /**
340
+ * 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\"
341
+ * @summary Delete the Product Risk Carrier
342
+ * @param {string} productCode
343
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ deleteProductRiskCarrier(productCode: string, authorization?: string, options?: any): AxiosPromise<void>;
299
348
  /**
300
349
  * 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\"
301
350
  * @summary Delete the Product Version Category Account
@@ -380,6 +429,16 @@ export declare const ProductAccountMappingsApiFactory: (configuration?: Configur
380
429
  * @throws {RequiredError}
381
430
  */
382
431
  putProductCategoryAccount(productCode: string, category: string, putProductCategoryAccountBodyDto: PutProductCategoryAccountBodyDto, authorization?: string, options?: any): AxiosPromise<ResolvedAccountMappingClass>;
432
+ /**
433
+ * 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\"
434
+ * @summary Update the Product Risk Carrier
435
+ * @param {string} productCode
436
+ * @param {PutProductRiskCarrierBodyDto} putProductRiskCarrierBodyDto
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
438
+ * @param {*} [options] Override http request option.
439
+ * @throws {RequiredError}
440
+ */
441
+ putProductRiskCarrier(productCode: string, putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto, authorization?: string, options?: any): AxiosPromise<ProductRiskCarrierClass>;
383
442
  /**
384
443
  * 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\"
385
444
  * @summary Update the Product Version Category Account
@@ -455,6 +514,25 @@ export interface ProductAccountMappingsApiDeleteProductCategoryAccountRequest {
455
514
  */
456
515
  readonly authorization?: string;
457
516
  }
517
+ /**
518
+ * Request parameters for deleteProductRiskCarrier operation in ProductAccountMappingsApi.
519
+ * @export
520
+ * @interface ProductAccountMappingsApiDeleteProductRiskCarrierRequest
521
+ */
522
+ export interface ProductAccountMappingsApiDeleteProductRiskCarrierRequest {
523
+ /**
524
+ *
525
+ * @type {string}
526
+ * @memberof ProductAccountMappingsApiDeleteProductRiskCarrier
527
+ */
528
+ readonly productCode: string;
529
+ /**
530
+ * Bearer Token: provided by the login endpoint under the name accessToken.
531
+ * @type {string}
532
+ * @memberof ProductAccountMappingsApiDeleteProductRiskCarrier
533
+ */
534
+ readonly authorization?: string;
535
+ }
458
536
  /**
459
537
  * Request parameters for deleteProductVersionCategoryAccount operation in ProductAccountMappingsApi.
460
538
  * @export
@@ -714,6 +792,31 @@ export interface ProductAccountMappingsApiPutProductCategoryAccountRequest {
714
792
  */
715
793
  readonly authorization?: string;
716
794
  }
795
+ /**
796
+ * Request parameters for putProductRiskCarrier operation in ProductAccountMappingsApi.
797
+ * @export
798
+ * @interface ProductAccountMappingsApiPutProductRiskCarrierRequest
799
+ */
800
+ export interface ProductAccountMappingsApiPutProductRiskCarrierRequest {
801
+ /**
802
+ *
803
+ * @type {string}
804
+ * @memberof ProductAccountMappingsApiPutProductRiskCarrier
805
+ */
806
+ readonly productCode: string;
807
+ /**
808
+ *
809
+ * @type {PutProductRiskCarrierBodyDto}
810
+ * @memberof ProductAccountMappingsApiPutProductRiskCarrier
811
+ */
812
+ readonly putProductRiskCarrierBodyDto: PutProductRiskCarrierBodyDto;
813
+ /**
814
+ * Bearer Token: provided by the login endpoint under the name accessToken.
815
+ * @type {string}
816
+ * @memberof ProductAccountMappingsApiPutProductRiskCarrier
817
+ */
818
+ readonly authorization?: string;
819
+ }
717
820
  /**
718
821
  * Request parameters for putProductVersionCategoryAccount operation in ProductAccountMappingsApi.
719
822
  * @export
@@ -776,6 +879,15 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
776
879
  * @memberof ProductAccountMappingsApi
777
880
  */
778
881
  deleteProductCategoryAccount(requestParameters: ProductAccountMappingsApiDeleteProductCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
882
+ /**
883
+ * 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
+ * @summary Delete the Product Risk Carrier
885
+ * @param {ProductAccountMappingsApiDeleteProductRiskCarrierRequest} requestParameters Request parameters.
886
+ * @param {*} [options] Override http request option.
887
+ * @throws {RequiredError}
888
+ * @memberof ProductAccountMappingsApi
889
+ */
890
+ deleteProductRiskCarrier(requestParameters: ProductAccountMappingsApiDeleteProductRiskCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
779
891
  /**
780
892
  * 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\"
781
893
  * @summary Delete the Product Version Category Account
@@ -839,6 +951,15 @@ export declare class ProductAccountMappingsApi extends BaseAPI {
839
951
  * @memberof ProductAccountMappingsApi
840
952
  */
841
953
  putProductCategoryAccount(requestParameters: ProductAccountMappingsApiPutProductCategoryAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ResolvedAccountMappingClass, any, {}>>;
954
+ /**
955
+ * 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
+ * @summary Update the Product Risk Carrier
957
+ * @param {ProductAccountMappingsApiPutProductRiskCarrierRequest} requestParameters Request parameters.
958
+ * @param {*} [options] Override http request option.
959
+ * @throws {RequiredError}
960
+ * @memberof ProductAccountMappingsApi
961
+ */
962
+ putProductRiskCarrier(requestParameters: ProductAccountMappingsApiPutProductRiskCarrierRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ProductRiskCarrierClass, any, {}>>;
842
963
  /**
843
964
  * 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\"
844
965
  * @summary Update the Product Version Category Account