@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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +64 -24
- package/api/booking-entries-api.ts +40 -15
- package/api/commission-account-mappings-api.ts +64 -24
- package/api/financial-accounts-api.ts +40 -15
- package/api/financial-transactions-api.ts +16 -6
- package/api/health-api.ts +1 -1
- package/api/number-ranges-api.ts +32 -12
- package/api/personal-accounts-api.ts +32 -12
- package/api/product-account-mappings-api.ts +377 -36
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +8 -8
- package/dist/api/accounting-configs-api.js +120 -64
- package/dist/api/booking-entries-api.d.ts +5 -5
- package/dist/api/booking-entries-api.js +67 -38
- package/dist/api/commission-account-mappings-api.d.ts +8 -8
- package/dist/api/commission-account-mappings-api.js +108 -61
- package/dist/api/financial-accounts-api.d.ts +5 -5
- package/dist/api/financial-accounts-api.js +67 -38
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +22 -14
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +52 -30
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +52 -30
- package/dist/api/product-account-mappings-api.d.ts +168 -12
- package/dist/api/product-account-mappings-api.js +401 -94
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +3 -2
- package/dist/models/account-mapping-class.js +4 -3
- package/dist/models/accounting-category-class.d.ts +12 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +3 -2
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +4 -3
- package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
- package/dist/models/create-booking-entry-request-dto.js +0 -6
- package/dist/models/create-financial-account-request-dto.d.ts +3 -2
- package/dist/models/create-financial-account-request-dto.js +4 -3
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +12 -0
- package/dist/models/put-premium-item-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-carrier-body-dto.js +15 -0
- package/models/account-mapping-class.ts +4 -3
- package/models/accounting-category-class.ts +12 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +4 -3
- package/models/create-booking-entry-request-dto.ts +1 -7
- package/models/create-financial-account-request-dto.ts +4 -3
- package/models/index.ts +1 -0
- package/models/premium-item-account-mapping-class.ts +12 -0
- package/models/put-premium-item-carrier-body-dto.ts +30 -0
- package/package.json +2 -2
|
@@ -104,9 +104,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, authorization, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
108
|
+
var _a;
|
|
109
|
+
return __generator(this, function (_b) {
|
|
110
|
+
switch (_b.label) {
|
|
110
111
|
case 0:
|
|
111
112
|
// verify required parameter 'commissionAgreementCode' is not null or undefined
|
|
112
113
|
(0, common_1.assertParamExists)('deleteCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
|
|
@@ -125,13 +126,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
125
126
|
localVarQueryParameter = {};
|
|
126
127
|
// authentication bearer required
|
|
127
128
|
// http bearer authentication required
|
|
128
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
129
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
130
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
131
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
132
|
+
];
|
|
129
133
|
case 1:
|
|
130
134
|
// authentication bearer required
|
|
131
135
|
// http bearer authentication required
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
136
|
+
_b.sent();
|
|
137
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
138
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
139
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
140
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
141
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
135
142
|
}
|
|
136
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
144
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -155,9 +162,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
155
162
|
deleteCommissionTypeAccount: function (commissionType, authorization, options) {
|
|
156
163
|
if (options === void 0) { options = {}; }
|
|
157
164
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
|
-
|
|
160
|
-
|
|
165
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
166
|
+
var _a;
|
|
167
|
+
return __generator(this, function (_b) {
|
|
168
|
+
switch (_b.label) {
|
|
161
169
|
case 0:
|
|
162
170
|
// verify required parameter 'commissionType' is not null or undefined
|
|
163
171
|
(0, common_1.assertParamExists)('deleteCommissionTypeAccount', 'commissionType', commissionType);
|
|
@@ -173,13 +181,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
173
181
|
localVarQueryParameter = {};
|
|
174
182
|
// authentication bearer required
|
|
175
183
|
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
185
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
186
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
187
|
+
];
|
|
177
188
|
case 1:
|
|
178
189
|
// authentication bearer required
|
|
179
190
|
// http bearer authentication required
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
_b.sent();
|
|
192
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
195
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
196
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
183
197
|
}
|
|
184
198
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
199
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -203,9 +217,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
203
217
|
getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
|
|
204
218
|
if (options === void 0) { options = {}; }
|
|
205
219
|
return __awaiter(_this, void 0, void 0, function () {
|
|
206
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
207
|
-
|
|
208
|
-
|
|
220
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
221
|
+
var _a;
|
|
222
|
+
return __generator(this, function (_b) {
|
|
223
|
+
switch (_b.label) {
|
|
209
224
|
case 0:
|
|
210
225
|
// verify required parameter 'commissionAgreementCode' is not null or undefined
|
|
211
226
|
(0, common_1.assertParamExists)('getCommissionAgreementAccountMapping', 'commissionAgreementCode', commissionAgreementCode);
|
|
@@ -221,13 +236,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
221
236
|
localVarQueryParameter = {};
|
|
222
237
|
// authentication bearer required
|
|
223
238
|
// http bearer authentication required
|
|
224
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
239
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
240
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
241
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
242
|
+
];
|
|
225
243
|
case 1:
|
|
226
244
|
// authentication bearer required
|
|
227
245
|
// http bearer authentication required
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
246
|
+
_b.sent();
|
|
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);
|
|
231
252
|
}
|
|
232
253
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
233
254
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -257,9 +278,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
257
278
|
listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
258
279
|
if (options === void 0) { options = {}; }
|
|
259
280
|
return __awaiter(_this, void 0, void 0, function () {
|
|
260
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
261
|
-
|
|
262
|
-
|
|
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) {
|
|
263
285
|
case 0:
|
|
264
286
|
localVarPath = "/accountingservice/v1/commission-account-mappings";
|
|
265
287
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -276,7 +298,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
276
298
|
case 1:
|
|
277
299
|
// authentication bearer required
|
|
278
300
|
// http bearer authentication required
|
|
279
|
-
|
|
301
|
+
_b.sent();
|
|
280
302
|
if (pageSize !== undefined) {
|
|
281
303
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
282
304
|
}
|
|
@@ -298,8 +320,11 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
298
320
|
if (filters !== undefined) {
|
|
299
321
|
localVarQueryParameter['filters'] = filters;
|
|
300
322
|
}
|
|
301
|
-
|
|
302
|
-
|
|
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);
|
|
303
328
|
}
|
|
304
329
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
330
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -329,9 +354,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
329
354
|
listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
330
355
|
if (options === void 0) { options = {}; }
|
|
331
356
|
return __awaiter(_this, void 0, void 0, function () {
|
|
332
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
333
|
-
|
|
334
|
-
|
|
357
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
358
|
+
var _a;
|
|
359
|
+
return __generator(this, function (_b) {
|
|
360
|
+
switch (_b.label) {
|
|
335
361
|
case 0:
|
|
336
362
|
localVarPath = "/accountingservice/v1/commission-account-mappings/agreements";
|
|
337
363
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -348,7 +374,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
348
374
|
case 1:
|
|
349
375
|
// authentication bearer required
|
|
350
376
|
// http bearer authentication required
|
|
351
|
-
|
|
377
|
+
_b.sent();
|
|
352
378
|
if (pageSize !== undefined) {
|
|
353
379
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
354
380
|
}
|
|
@@ -370,8 +396,11 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
370
396
|
if (filters !== undefined) {
|
|
371
397
|
localVarQueryParameter['filters'] = filters;
|
|
372
398
|
}
|
|
373
|
-
|
|
374
|
-
|
|
399
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
400
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
401
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
402
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
403
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
375
404
|
}
|
|
376
405
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
377
406
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -401,9 +430,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
401
430
|
listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
402
431
|
if (options === void 0) { options = {}; }
|
|
403
432
|
return __awaiter(_this, void 0, void 0, function () {
|
|
404
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
405
|
-
|
|
406
|
-
|
|
433
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
434
|
+
var _a;
|
|
435
|
+
return __generator(this, function (_b) {
|
|
436
|
+
switch (_b.label) {
|
|
407
437
|
case 0:
|
|
408
438
|
localVarPath = "/accountingservice/v1/commission-account-mappings/types";
|
|
409
439
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -420,7 +450,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
420
450
|
case 1:
|
|
421
451
|
// authentication bearer required
|
|
422
452
|
// http bearer authentication required
|
|
423
|
-
|
|
453
|
+
_b.sent();
|
|
424
454
|
if (pageSize !== undefined) {
|
|
425
455
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
426
456
|
}
|
|
@@ -442,8 +472,11 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
442
472
|
if (filters !== undefined) {
|
|
443
473
|
localVarQueryParameter['filters'] = filters;
|
|
444
474
|
}
|
|
445
|
-
|
|
446
|
-
|
|
475
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
476
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
477
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
478
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
479
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
447
480
|
}
|
|
448
481
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
449
482
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -469,9 +502,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
469
502
|
updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
|
|
470
503
|
if (options === void 0) { options = {}; }
|
|
471
504
|
return __awaiter(_this, void 0, void 0, function () {
|
|
472
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
473
|
-
|
|
474
|
-
|
|
505
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
506
|
+
var _a;
|
|
507
|
+
return __generator(this, function (_b) {
|
|
508
|
+
switch (_b.label) {
|
|
475
509
|
case 0:
|
|
476
510
|
// verify required parameter 'commissionAgreementCode' is not null or undefined
|
|
477
511
|
(0, common_1.assertParamExists)('updateCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
|
|
@@ -492,13 +526,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
492
526
|
localVarQueryParameter = {};
|
|
493
527
|
// authentication bearer required
|
|
494
528
|
// http bearer authentication required
|
|
495
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
529
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
530
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
531
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
532
|
+
];
|
|
496
533
|
case 1:
|
|
497
534
|
// authentication bearer required
|
|
498
535
|
// http bearer authentication required
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
536
|
+
_b.sent();
|
|
537
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
538
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
539
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
540
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
541
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
502
542
|
}
|
|
503
543
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
504
544
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -525,9 +565,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
525
565
|
updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
|
|
526
566
|
if (options === void 0) { options = {}; }
|
|
527
567
|
return __awaiter(_this, void 0, void 0, function () {
|
|
528
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
529
|
-
|
|
530
|
-
|
|
568
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
569
|
+
var _a;
|
|
570
|
+
return __generator(this, function (_b) {
|
|
571
|
+
switch (_b.label) {
|
|
531
572
|
case 0:
|
|
532
573
|
// verify required parameter 'commissionType' is not null or undefined
|
|
533
574
|
(0, common_1.assertParamExists)('updateCommissionTypeAccount', 'commissionType', commissionType);
|
|
@@ -545,13 +586,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
545
586
|
localVarQueryParameter = {};
|
|
546
587
|
// authentication bearer required
|
|
547
588
|
// http bearer authentication required
|
|
548
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
589
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
590
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
591
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
592
|
+
];
|
|
549
593
|
case 1:
|
|
550
594
|
// authentication bearer required
|
|
551
595
|
// http bearer authentication required
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
596
|
+
_b.sent();
|
|
597
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
598
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
599
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
600
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
601
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
555
602
|
}
|
|
556
603
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
557
604
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -910,7 +957,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
910
957
|
*/
|
|
911
958
|
CommissionAccountMappingsApi.prototype.deleteCommissionAgreementAccount = function (requestParameters, options) {
|
|
912
959
|
var _this = this;
|
|
913
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
960
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
914
961
|
};
|
|
915
962
|
/**
|
|
916
963
|
* Permanently deletes the Commission Type Account. Supply the unique code that was returned when you created the Commission Type Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
@@ -922,7 +969,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
922
969
|
*/
|
|
923
970
|
CommissionAccountMappingsApi.prototype.deleteCommissionTypeAccount = function (requestParameters, options) {
|
|
924
971
|
var _this = this;
|
|
925
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
972
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
926
973
|
};
|
|
927
974
|
/**
|
|
928
975
|
* Retrieves the details of the Commission Agreement Account Mapping that was previously created. Supply the unique Commission Agreement Account Mapping code that was returned when you created it and Emil Api will return the corresponding Commission Agreement Account Mapping information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -934,7 +981,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
934
981
|
*/
|
|
935
982
|
CommissionAccountMappingsApi.prototype.getCommissionAgreementAccountMapping = function (requestParameters, options) {
|
|
936
983
|
var _this = this;
|
|
937
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
984
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
938
985
|
};
|
|
939
986
|
/**
|
|
940
987
|
* Paginated list of the actual stored override rows, across both levels (commission type/agreement). Filterable by commissionAgreementCode/commissionType. For browsing the commission-type standards or the agreement catalog, use the more specific endpoints below instead. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -947,7 +994,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
947
994
|
CommissionAccountMappingsApi.prototype.listCommissionAccountMappings = function (requestParameters, options) {
|
|
948
995
|
var _this = this;
|
|
949
996
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
950
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAccountMappings(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); });
|
|
997
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAccountMappings(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); });
|
|
951
998
|
};
|
|
952
999
|
/**
|
|
953
1000
|
* Paginated commission-agreement catalog (proxied from commissionservice), each item carrying its Agreement Number, Main Partner, and a hasCustomMapping badge. Cheap -- no per-type resolution, badges only. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -960,7 +1007,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
960
1007
|
CommissionAccountMappingsApi.prototype.listCommissionAgreementsWithAccountMappings = function (requestParameters, options) {
|
|
961
1008
|
var _this = this;
|
|
962
1009
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
963
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAgreementsWithAccountMappings(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); });
|
|
1010
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionAgreementsWithAccountMappings(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); });
|
|
964
1011
|
};
|
|
965
1012
|
/**
|
|
966
1013
|
* Paginated \"Standards per Commission Type\" section -- one entry per commission type that currently has a tenant-wide default. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
@@ -973,7 +1020,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
973
1020
|
CommissionAccountMappingsApi.prototype.listCommissionTypeAccountMappings = function (requestParameters, options) {
|
|
974
1021
|
var _this = this;
|
|
975
1022
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
976
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionTypeAccountMappings(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); });
|
|
1023
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).listCommissionTypeAccountMappings(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); });
|
|
977
1024
|
};
|
|
978
1025
|
/**
|
|
979
1026
|
* Updates the specified Commission Agreement Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -985,7 +1032,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
985
1032
|
*/
|
|
986
1033
|
CommissionAccountMappingsApi.prototype.updateCommissionAgreementAccount = function (requestParameters, options) {
|
|
987
1034
|
var _this = this;
|
|
988
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1035
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
989
1036
|
};
|
|
990
1037
|
/**
|
|
991
1038
|
* Updates the specified Commission Type Account by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
@@ -997,7 +1044,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
997
1044
|
*/
|
|
998
1045
|
CommissionAccountMappingsApi.prototype.updateCommissionTypeAccount = function (requestParameters, options) {
|
|
999
1046
|
var _this = this;
|
|
1000
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1047
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1001
1048
|
};
|
|
1002
1049
|
return CommissionAccountMappingsApi;
|
|
1003
1050
|
}(base_1.BaseAPI));
|
|
@@ -353,7 +353,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
353
353
|
* @throws {RequiredError}
|
|
354
354
|
* @memberof FinancialAccountsApi
|
|
355
355
|
*/
|
|
356
|
-
createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}>>;
|
|
356
|
+
createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateFinancialAccountResponseClass, any, {}, any>>;
|
|
357
357
|
/**
|
|
358
358
|
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
359
359
|
* @summary Delete the Financial Account
|
|
@@ -362,7 +362,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
362
362
|
* @throws {RequiredError}
|
|
363
363
|
* @memberof FinancialAccountsApi
|
|
364
364
|
*/
|
|
365
|
-
deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
|
|
365
|
+
deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
|
|
366
366
|
/**
|
|
367
367
|
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
368
368
|
* @summary Retrieve the Financial Account
|
|
@@ -371,7 +371,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
371
371
|
* @throws {RequiredError}
|
|
372
372
|
* @memberof FinancialAccountsApi
|
|
373
373
|
*/
|
|
374
|
-
getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}>>;
|
|
374
|
+
getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetFinancialAccountResponseClass, any, {}, any>>;
|
|
375
375
|
/**
|
|
376
376
|
* Returns a list of Financial Accounts you have previously created. The Financial 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\"
|
|
377
377
|
* @summary List Financial Accounts
|
|
@@ -380,7 +380,7 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
380
380
|
* @throws {RequiredError}
|
|
381
381
|
* @memberof FinancialAccountsApi
|
|
382
382
|
*/
|
|
383
|
-
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
|
|
383
|
+
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}, any>>;
|
|
384
384
|
/**
|
|
385
385
|
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), isDefault (pool-category accounts only; cannot be unset), and linkedBankAccountCode (bank-category accounts only; send an empty string to unlink, omit to leave the link untouched). Linking stays editable once the account is locked, and applies to later postings only. **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
386
386
|
* @summary Update the Financial Account
|
|
@@ -389,5 +389,5 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
389
389
|
* @throws {RequiredError}
|
|
390
390
|
* @memberof FinancialAccountsApi
|
|
391
391
|
*/
|
|
392
|
-
updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}>>;
|
|
392
|
+
updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}, any>>;
|
|
393
393
|
}
|