@emilgroup/accounting-sdk-node 1.32.1-beta.104 → 1.32.1-beta.106
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/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 +96 -36
- package/base.ts +4 -0
- package/common.ts +3 -2
- 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 +12 -12
- package/dist/api/product-account-mappings-api.js +172 -94
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +1 -7
- package/dist/models/create-booking-entry-request-dto.js +0 -6
- package/models/create-booking-entry-request-dto.ts +1 -7
- package/package.json +2 -2
|
@@ -108,9 +108,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
deleteCommissionAgreementAccount: function (commissionAgreementCode, commissionType, 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;
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
112
|
+
var _a;
|
|
113
|
+
return __generator(this, function (_b) {
|
|
114
|
+
switch (_b.label) {
|
|
114
115
|
case 0:
|
|
115
116
|
// verify required parameter 'commissionAgreementCode' is not null or undefined
|
|
116
117
|
(0, common_1.assertParamExists)('deleteCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
|
|
@@ -129,13 +130,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
129
130
|
localVarQueryParameter = {};
|
|
130
131
|
// authentication bearer required
|
|
131
132
|
// http bearer authentication required
|
|
132
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
133
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
134
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
135
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
136
|
+
];
|
|
133
137
|
case 1:
|
|
134
138
|
// authentication bearer required
|
|
135
139
|
// http bearer authentication required
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
_b.sent();
|
|
141
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
142
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
143
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
144
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
145
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
146
|
}
|
|
140
147
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
148
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -159,9 +166,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
159
166
|
deleteCommissionTypeAccount: function (commissionType, authorization, options) {
|
|
160
167
|
if (options === void 0) { options = {}; }
|
|
161
168
|
return __awaiter(_this, void 0, void 0, function () {
|
|
162
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
163
|
-
|
|
164
|
-
|
|
169
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
170
|
+
var _a;
|
|
171
|
+
return __generator(this, function (_b) {
|
|
172
|
+
switch (_b.label) {
|
|
165
173
|
case 0:
|
|
166
174
|
// verify required parameter 'commissionType' is not null or undefined
|
|
167
175
|
(0, common_1.assertParamExists)('deleteCommissionTypeAccount', 'commissionType', commissionType);
|
|
@@ -177,13 +185,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
177
185
|
localVarQueryParameter = {};
|
|
178
186
|
// authentication bearer required
|
|
179
187
|
// http bearer authentication required
|
|
180
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
188
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
189
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
190
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
191
|
+
];
|
|
181
192
|
case 1:
|
|
182
193
|
// authentication bearer required
|
|
183
194
|
// http bearer authentication required
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
195
|
+
_b.sent();
|
|
196
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
197
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
198
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
199
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
200
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
187
201
|
}
|
|
188
202
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
189
203
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -207,9 +221,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
207
221
|
getCommissionAgreementAccountMapping: function (commissionAgreementCode, authorization, options) {
|
|
208
222
|
if (options === void 0) { options = {}; }
|
|
209
223
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
211
|
-
|
|
212
|
-
|
|
224
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
225
|
+
var _a;
|
|
226
|
+
return __generator(this, function (_b) {
|
|
227
|
+
switch (_b.label) {
|
|
213
228
|
case 0:
|
|
214
229
|
// verify required parameter 'commissionAgreementCode' is not null or undefined
|
|
215
230
|
(0, common_1.assertParamExists)('getCommissionAgreementAccountMapping', 'commissionAgreementCode', commissionAgreementCode);
|
|
@@ -225,13 +240,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
225
240
|
localVarQueryParameter = {};
|
|
226
241
|
// authentication bearer required
|
|
227
242
|
// http bearer authentication required
|
|
228
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
243
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
244
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
245
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
246
|
+
];
|
|
229
247
|
case 1:
|
|
230
248
|
// authentication bearer required
|
|
231
249
|
// http bearer authentication required
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
250
|
+
_b.sent();
|
|
251
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
252
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
254
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
255
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
235
256
|
}
|
|
236
257
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
237
258
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -261,9 +282,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
261
282
|
listCommissionAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
262
283
|
if (options === void 0) { options = {}; }
|
|
263
284
|
return __awaiter(_this, void 0, void 0, function () {
|
|
264
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
265
|
-
|
|
266
|
-
|
|
285
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
286
|
+
var _a;
|
|
287
|
+
return __generator(this, function (_b) {
|
|
288
|
+
switch (_b.label) {
|
|
267
289
|
case 0:
|
|
268
290
|
localVarPath = "/accountingservice/v1/commission-account-mappings";
|
|
269
291
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -280,7 +302,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
280
302
|
case 1:
|
|
281
303
|
// authentication bearer required
|
|
282
304
|
// http bearer authentication required
|
|
283
|
-
|
|
305
|
+
_b.sent();
|
|
284
306
|
if (pageSize !== undefined) {
|
|
285
307
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
286
308
|
}
|
|
@@ -302,8 +324,11 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
302
324
|
if (filters !== undefined) {
|
|
303
325
|
localVarQueryParameter['filters'] = filters;
|
|
304
326
|
}
|
|
305
|
-
|
|
306
|
-
|
|
327
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
328
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
329
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
330
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
331
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
307
332
|
}
|
|
308
333
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
309
334
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -333,9 +358,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
333
358
|
listCommissionAgreementsWithAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
334
359
|
if (options === void 0) { options = {}; }
|
|
335
360
|
return __awaiter(_this, void 0, void 0, function () {
|
|
336
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
337
|
-
|
|
338
|
-
|
|
361
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
362
|
+
var _a;
|
|
363
|
+
return __generator(this, function (_b) {
|
|
364
|
+
switch (_b.label) {
|
|
339
365
|
case 0:
|
|
340
366
|
localVarPath = "/accountingservice/v1/commission-account-mappings/agreements";
|
|
341
367
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -352,7 +378,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
352
378
|
case 1:
|
|
353
379
|
// authentication bearer required
|
|
354
380
|
// http bearer authentication required
|
|
355
|
-
|
|
381
|
+
_b.sent();
|
|
356
382
|
if (pageSize !== undefined) {
|
|
357
383
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
358
384
|
}
|
|
@@ -374,8 +400,11 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
374
400
|
if (filters !== undefined) {
|
|
375
401
|
localVarQueryParameter['filters'] = filters;
|
|
376
402
|
}
|
|
377
|
-
|
|
378
|
-
|
|
403
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
404
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
405
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
406
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
407
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
379
408
|
}
|
|
380
409
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
381
410
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -405,9 +434,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
405
434
|
listCommissionTypeAccountMappings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
406
435
|
if (options === void 0) { options = {}; }
|
|
407
436
|
return __awaiter(_this, void 0, void 0, function () {
|
|
408
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
409
|
-
|
|
410
|
-
|
|
437
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
438
|
+
var _a;
|
|
439
|
+
return __generator(this, function (_b) {
|
|
440
|
+
switch (_b.label) {
|
|
411
441
|
case 0:
|
|
412
442
|
localVarPath = "/accountingservice/v1/commission-account-mappings/types";
|
|
413
443
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -424,7 +454,7 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
424
454
|
case 1:
|
|
425
455
|
// authentication bearer required
|
|
426
456
|
// http bearer authentication required
|
|
427
|
-
|
|
457
|
+
_b.sent();
|
|
428
458
|
if (pageSize !== undefined) {
|
|
429
459
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
430
460
|
}
|
|
@@ -446,8 +476,11 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
446
476
|
if (filters !== undefined) {
|
|
447
477
|
localVarQueryParameter['filters'] = filters;
|
|
448
478
|
}
|
|
449
|
-
|
|
450
|
-
|
|
479
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
480
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
481
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
482
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
483
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
451
484
|
}
|
|
452
485
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
453
486
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -473,9 +506,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
473
506
|
updateCommissionAgreementAccount: function (commissionAgreementCode, commissionType, updateCommissionAgreementAccountBodyDto, authorization, options) {
|
|
474
507
|
if (options === void 0) { options = {}; }
|
|
475
508
|
return __awaiter(_this, void 0, void 0, function () {
|
|
476
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
477
|
-
|
|
478
|
-
|
|
509
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
510
|
+
var _a;
|
|
511
|
+
return __generator(this, function (_b) {
|
|
512
|
+
switch (_b.label) {
|
|
479
513
|
case 0:
|
|
480
514
|
// verify required parameter 'commissionAgreementCode' is not null or undefined
|
|
481
515
|
(0, common_1.assertParamExists)('updateCommissionAgreementAccount', 'commissionAgreementCode', commissionAgreementCode);
|
|
@@ -496,13 +530,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
496
530
|
localVarQueryParameter = {};
|
|
497
531
|
// authentication bearer required
|
|
498
532
|
// http bearer authentication required
|
|
499
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
533
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
534
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
535
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
536
|
+
];
|
|
500
537
|
case 1:
|
|
501
538
|
// authentication bearer required
|
|
502
539
|
// http bearer authentication required
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
540
|
+
_b.sent();
|
|
541
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
542
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
543
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
544
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
545
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
506
546
|
}
|
|
507
547
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
508
548
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -529,9 +569,10 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
529
569
|
updateCommissionTypeAccount: function (commissionType, updateCommissionTypeAccountBodyDto, authorization, options) {
|
|
530
570
|
if (options === void 0) { options = {}; }
|
|
531
571
|
return __awaiter(_this, void 0, void 0, function () {
|
|
532
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
533
|
-
|
|
534
|
-
|
|
572
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
573
|
+
var _a;
|
|
574
|
+
return __generator(this, function (_b) {
|
|
575
|
+
switch (_b.label) {
|
|
535
576
|
case 0:
|
|
536
577
|
// verify required parameter 'commissionType' is not null or undefined
|
|
537
578
|
(0, common_1.assertParamExists)('updateCommissionTypeAccount', 'commissionType', commissionType);
|
|
@@ -549,13 +590,19 @@ var CommissionAccountMappingsApiAxiosParamCreator = function (configuration) {
|
|
|
549
590
|
localVarQueryParameter = {};
|
|
550
591
|
// authentication bearer required
|
|
551
592
|
// http bearer authentication required
|
|
552
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
593
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
594
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
595
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
596
|
+
];
|
|
553
597
|
case 1:
|
|
554
598
|
// authentication bearer required
|
|
555
599
|
// http bearer authentication required
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
600
|
+
_b.sent();
|
|
601
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
602
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
603
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
604
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
605
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
559
606
|
}
|
|
560
607
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
561
608
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -914,7 +961,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
914
961
|
*/
|
|
915
962
|
CommissionAccountMappingsApi.prototype.deleteCommissionAgreementAccount = function (requestParameters, options) {
|
|
916
963
|
var _this = this;
|
|
917
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
964
|
+
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); });
|
|
918
965
|
};
|
|
919
966
|
/**
|
|
920
967
|
* 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\"
|
|
@@ -926,7 +973,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
926
973
|
*/
|
|
927
974
|
CommissionAccountMappingsApi.prototype.deleteCommissionTypeAccount = function (requestParameters, options) {
|
|
928
975
|
var _this = this;
|
|
929
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
976
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
930
977
|
};
|
|
931
978
|
/**
|
|
932
979
|
* 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\"
|
|
@@ -938,7 +985,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
938
985
|
*/
|
|
939
986
|
CommissionAccountMappingsApi.prototype.getCommissionAgreementAccountMapping = function (requestParameters, options) {
|
|
940
987
|
var _this = this;
|
|
941
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
988
|
+
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
942
989
|
};
|
|
943
990
|
/**
|
|
944
991
|
* 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\"
|
|
@@ -951,7 +998,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
951
998
|
CommissionAccountMappingsApi.prototype.listCommissionAccountMappings = function (requestParameters, options) {
|
|
952
999
|
var _this = this;
|
|
953
1000
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
954
|
-
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); });
|
|
1001
|
+
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); });
|
|
955
1002
|
};
|
|
956
1003
|
/**
|
|
957
1004
|
* 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\"
|
|
@@ -964,7 +1011,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
964
1011
|
CommissionAccountMappingsApi.prototype.listCommissionAgreementsWithAccountMappings = function (requestParameters, options) {
|
|
965
1012
|
var _this = this;
|
|
966
1013
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
967
|
-
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); });
|
|
1014
|
+
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); });
|
|
968
1015
|
};
|
|
969
1016
|
/**
|
|
970
1017
|
* 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\"
|
|
@@ -977,7 +1024,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
977
1024
|
CommissionAccountMappingsApi.prototype.listCommissionTypeAccountMappings = function (requestParameters, options) {
|
|
978
1025
|
var _this = this;
|
|
979
1026
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
980
|
-
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); });
|
|
1027
|
+
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); });
|
|
981
1028
|
};
|
|
982
1029
|
/**
|
|
983
1030
|
* 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\"
|
|
@@ -989,7 +1036,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
989
1036
|
*/
|
|
990
1037
|
CommissionAccountMappingsApi.prototype.updateCommissionAgreementAccount = function (requestParameters, options) {
|
|
991
1038
|
var _this = this;
|
|
992
|
-
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); });
|
|
1039
|
+
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); });
|
|
993
1040
|
};
|
|
994
1041
|
/**
|
|
995
1042
|
* 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\"
|
|
@@ -1001,7 +1048,7 @@ var CommissionAccountMappingsApi = /** @class */ (function (_super) {
|
|
|
1001
1048
|
*/
|
|
1002
1049
|
CommissionAccountMappingsApi.prototype.updateCommissionTypeAccount = function (requestParameters, options) {
|
|
1003
1050
|
var _this = this;
|
|
1004
|
-
return (0, exports.CommissionAccountMappingsApiFp)(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1051
|
+
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); });
|
|
1005
1052
|
};
|
|
1006
1053
|
return CommissionAccountMappingsApi;
|
|
1007
1054
|
}(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
|
}
|