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