@emilgroup/accounting-sdk 1.34.1-beta.115 → 1.34.1-beta.116
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 +5 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +64 -24
- package/api/bank-transaction-account-links-api.ts +346 -0
- 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 +112 -42
- package/api.ts +2 -0
- package/base.ts +310 -54
- 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/bank-transaction-account-links-api.d.ts +197 -0
- package/dist/api/bank-transaction-account-links-api.js +358 -0
- 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 +14 -14
- package/dist/api/product-account-mappings-api.js +202 -110
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/base.d.ts +33 -0
- package/dist/base.js +308 -72
- 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/bank-transaction-account-link-carrier-class.d.ts +36 -0
- package/dist/models/bank-transaction-account-link-carrier-class.js +15 -0
- package/dist/models/bank-transaction-account-link-row-class.d.ts +71 -0
- package/dist/models/bank-transaction-account-link-row-class.js +20 -0
- package/dist/models/booking-entry-class.d.ts +1 -0
- package/dist/models/booking-entry-class.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/dist/models/get-bank-transaction-account-link-options-response-class.d.ts +25 -0
- package/dist/models/get-bank-transaction-account-link-options-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/list-bank-transaction-account-link-carriers-response-class.d.ts +43 -0
- package/dist/models/list-bank-transaction-account-link-carriers-response-class.js +15 -0
- package/models/bank-transaction-account-link-carrier-class.ts +42 -0
- package/models/bank-transaction-account-link-row-class.ts +80 -0
- package/models/booking-entry-class.ts +1 -0
- package/models/create-booking-entry-request-dto.ts +1 -7
- package/models/get-bank-transaction-account-link-options-response-class.ts +31 -0
- package/models/index.ts +4 -0
- package/models/list-bank-transaction-account-link-carriers-response-class.ts +49 -0
- package/package.json +2 -2
|
@@ -71,8 +71,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
71
71
|
// http bearer authentication required
|
|
72
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
75
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
76
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
77
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
79
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
80
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
|
|
@@ -118,8 +123,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
118
123
|
// http bearer authentication required
|
|
119
124
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
125
|
|
|
121
|
-
|
|
122
|
-
|
|
126
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
127
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
128
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
129
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
130
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
131
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
132
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
123
133
|
}
|
|
124
134
|
|
|
125
135
|
|
|
@@ -173,8 +183,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
173
183
|
localVarQueryParameter['expand'] = expand;
|
|
174
184
|
}
|
|
175
185
|
|
|
176
|
-
|
|
177
|
-
|
|
186
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
187
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
188
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
189
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
190
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
191
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
192
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
193
|
}
|
|
179
194
|
|
|
180
195
|
|
|
@@ -249,8 +264,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
249
264
|
localVarQueryParameter['filters'] = filters;
|
|
250
265
|
}
|
|
251
266
|
|
|
252
|
-
|
|
253
|
-
|
|
267
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
268
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
269
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
270
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
271
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
272
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
273
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
254
274
|
}
|
|
255
275
|
|
|
256
276
|
|
|
@@ -293,8 +313,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
293
313
|
// http bearer authentication required
|
|
294
314
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
295
315
|
|
|
296
|
-
|
|
297
|
-
|
|
316
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
317
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
318
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
319
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
320
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
321
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
322
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
298
323
|
}
|
|
299
324
|
|
|
300
325
|
|
|
@@ -633,7 +658,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
633
658
|
* @memberof BookingEntriesApi
|
|
634
659
|
*/
|
|
635
660
|
public createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig) {
|
|
636
|
-
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
661
|
+
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
637
662
|
}
|
|
638
663
|
|
|
639
664
|
/**
|
|
@@ -645,7 +670,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
645
670
|
* @memberof BookingEntriesApi
|
|
646
671
|
*/
|
|
647
672
|
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
648
|
-
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
673
|
+
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
649
674
|
}
|
|
650
675
|
|
|
651
676
|
/**
|
|
@@ -657,7 +682,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
657
682
|
* @memberof BookingEntriesApi
|
|
658
683
|
*/
|
|
659
684
|
public getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig) {
|
|
660
|
-
return BookingEntriesApiFp(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
685
|
+
return BookingEntriesApiFp(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
661
686
|
}
|
|
662
687
|
|
|
663
688
|
/**
|
|
@@ -669,7 +694,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
669
694
|
* @memberof BookingEntriesApi
|
|
670
695
|
*/
|
|
671
696
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
672
|
-
return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
697
|
+
return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
673
698
|
}
|
|
674
699
|
|
|
675
700
|
/**
|
|
@@ -681,6 +706,6 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
681
706
|
* @memberof BookingEntriesApi
|
|
682
707
|
*/
|
|
683
708
|
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
684
|
-
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
709
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
685
710
|
}
|
|
686
711
|
}
|
|
@@ -74,8 +74,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
74
74
|
// http bearer authentication required
|
|
75
75
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
76
76
|
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
78
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
79
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
80
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
81
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
82
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
83
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
79
84
|
}
|
|
80
85
|
|
|
81
86
|
|
|
@@ -119,8 +124,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
119
124
|
// http bearer authentication required
|
|
120
125
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
121
126
|
|
|
122
|
-
|
|
123
|
-
|
|
127
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
128
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
129
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
130
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
131
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
132
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
133
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
134
|
}
|
|
125
135
|
|
|
126
136
|
|
|
@@ -164,8 +174,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
164
174
|
// http bearer authentication required
|
|
165
175
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
166
176
|
|
|
167
|
-
|
|
168
|
-
|
|
177
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
178
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
179
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
180
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
181
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
182
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
169
184
|
}
|
|
170
185
|
|
|
171
186
|
|
|
@@ -240,8 +255,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
240
255
|
localVarQueryParameter['filters'] = filters;
|
|
241
256
|
}
|
|
242
257
|
|
|
243
|
-
|
|
244
|
-
|
|
258
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
259
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
260
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
261
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
262
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
263
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
264
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
265
|
}
|
|
246
266
|
|
|
247
267
|
|
|
@@ -316,8 +336,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
316
336
|
localVarQueryParameter['filters'] = filters;
|
|
317
337
|
}
|
|
318
338
|
|
|
319
|
-
|
|
320
|
-
|
|
339
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
340
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
341
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
342
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
343
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
344
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
345
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
321
346
|
}
|
|
322
347
|
|
|
323
348
|
|
|
@@ -392,8 +417,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
392
417
|
localVarQueryParameter['filters'] = filters;
|
|
393
418
|
}
|
|
394
419
|
|
|
395
|
-
|
|
396
|
-
|
|
420
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
421
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
422
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
423
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
424
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
425
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
426
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
397
427
|
}
|
|
398
428
|
|
|
399
429
|
|
|
@@ -444,8 +474,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
444
474
|
// http bearer authentication required
|
|
445
475
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
446
476
|
|
|
447
|
-
|
|
448
|
-
|
|
477
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
478
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
479
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
480
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
481
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
482
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
483
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
449
484
|
}
|
|
450
485
|
|
|
451
486
|
|
|
@@ -495,8 +530,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
495
530
|
// http bearer authentication required
|
|
496
531
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
497
532
|
|
|
498
|
-
|
|
499
|
-
|
|
533
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
534
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
535
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
536
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
537
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
538
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
539
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
500
540
|
}
|
|
501
541
|
|
|
502
542
|
|
|
@@ -1102,7 +1142,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1102
1142
|
* @memberof CommissionAccountMappingsApi
|
|
1103
1143
|
*/
|
|
1104
1144
|
public deleteCommissionAgreementAccount(requestParameters: CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest, options?: AxiosRequestConfig) {
|
|
1105
|
-
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1145
|
+
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1106
1146
|
}
|
|
1107
1147
|
|
|
1108
1148
|
/**
|
|
@@ -1114,7 +1154,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1114
1154
|
* @memberof CommissionAccountMappingsApi
|
|
1115
1155
|
*/
|
|
1116
1156
|
public deleteCommissionTypeAccount(requestParameters: CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest, options?: AxiosRequestConfig) {
|
|
1117
|
-
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1157
|
+
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1118
1158
|
}
|
|
1119
1159
|
|
|
1120
1160
|
/**
|
|
@@ -1126,7 +1166,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1126
1166
|
* @memberof CommissionAccountMappingsApi
|
|
1127
1167
|
*/
|
|
1128
1168
|
public getCommissionAgreementAccountMapping(requestParameters: CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest, options?: AxiosRequestConfig) {
|
|
1129
|
-
return CommissionAccountMappingsApiFp(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1169
|
+
return CommissionAccountMappingsApiFp(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1130
1170
|
}
|
|
1131
1171
|
|
|
1132
1172
|
/**
|
|
@@ -1138,7 +1178,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1138
1178
|
* @memberof CommissionAccountMappingsApi
|
|
1139
1179
|
*/
|
|
1140
1180
|
public listCommissionAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1141
|
-
return CommissionAccountMappingsApiFp(this.configuration).listCommissionAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1181
|
+
return CommissionAccountMappingsApiFp(this.configuration).listCommissionAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1142
1182
|
}
|
|
1143
1183
|
|
|
1144
1184
|
/**
|
|
@@ -1150,7 +1190,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1150
1190
|
* @memberof CommissionAccountMappingsApi
|
|
1151
1191
|
*/
|
|
1152
1192
|
public listCommissionAgreementsWithAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1153
|
-
return CommissionAccountMappingsApiFp(this.configuration).listCommissionAgreementsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1193
|
+
return CommissionAccountMappingsApiFp(this.configuration).listCommissionAgreementsWithAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1154
1194
|
}
|
|
1155
1195
|
|
|
1156
1196
|
/**
|
|
@@ -1162,7 +1202,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1162
1202
|
* @memberof CommissionAccountMappingsApi
|
|
1163
1203
|
*/
|
|
1164
1204
|
public listCommissionTypeAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1165
|
-
return CommissionAccountMappingsApiFp(this.configuration).listCommissionTypeAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1205
|
+
return CommissionAccountMappingsApiFp(this.configuration).listCommissionTypeAccountMappings(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1166
1206
|
}
|
|
1167
1207
|
|
|
1168
1208
|
/**
|
|
@@ -1174,7 +1214,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1174
1214
|
* @memberof CommissionAccountMappingsApi
|
|
1175
1215
|
*/
|
|
1176
1216
|
public updateCommissionAgreementAccount(requestParameters: CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest, options?: AxiosRequestConfig) {
|
|
1177
|
-
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1217
|
+
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1178
1218
|
}
|
|
1179
1219
|
|
|
1180
1220
|
/**
|
|
@@ -1186,6 +1226,6 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1186
1226
|
* @memberof CommissionAccountMappingsApi
|
|
1187
1227
|
*/
|
|
1188
1228
|
public updateCommissionTypeAccount(requestParameters: CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest, options?: AxiosRequestConfig) {
|
|
1189
|
-
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1229
|
+
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1190
1230
|
}
|
|
1191
1231
|
}
|
|
@@ -67,8 +67,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -115,8 +120,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
115
120
|
// http bearer authentication required
|
|
116
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
122
|
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
124
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
125
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
126
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
127
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
128
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
130
|
}
|
|
121
131
|
|
|
122
132
|
|
|
@@ -167,8 +177,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
167
177
|
localVarQueryParameter['expand'] = expand;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
|
|
171
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
181
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
182
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
183
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
184
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
185
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
186
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
|
|
@@ -243,8 +258,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
243
258
|
localVarQueryParameter['filters'] = filters;
|
|
244
259
|
}
|
|
245
260
|
|
|
246
|
-
|
|
247
|
-
|
|
261
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
262
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
263
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
264
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
265
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
266
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
268
|
}
|
|
249
269
|
|
|
250
270
|
|
|
@@ -291,8 +311,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
291
311
|
// http bearer authentication required
|
|
292
312
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
313
|
|
|
294
|
-
|
|
295
|
-
|
|
314
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
315
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
316
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
317
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
318
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
319
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
320
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
296
321
|
}
|
|
297
322
|
|
|
298
323
|
|
|
@@ -640,7 +665,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
640
665
|
* @memberof FinancialAccountsApi
|
|
641
666
|
*/
|
|
642
667
|
public createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return FinancialAccountsApiFp(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
668
|
+
return FinancialAccountsApiFp(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
644
669
|
}
|
|
645
670
|
|
|
646
671
|
/**
|
|
@@ -652,7 +677,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
652
677
|
* @memberof FinancialAccountsApi
|
|
653
678
|
*/
|
|
654
679
|
public deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
655
|
-
return FinancialAccountsApiFp(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
680
|
+
return FinancialAccountsApiFp(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
656
681
|
}
|
|
657
682
|
|
|
658
683
|
/**
|
|
@@ -664,7 +689,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
664
689
|
* @memberof FinancialAccountsApi
|
|
665
690
|
*/
|
|
666
691
|
public getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return FinancialAccountsApiFp(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
692
|
+
return FinancialAccountsApiFp(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
668
693
|
}
|
|
669
694
|
|
|
670
695
|
/**
|
|
@@ -676,7 +701,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
676
701
|
* @memberof FinancialAccountsApi
|
|
677
702
|
*/
|
|
678
703
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
-
return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
704
|
+
return FinancialAccountsApiFp(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
680
705
|
}
|
|
681
706
|
|
|
682
707
|
/**
|
|
@@ -688,6 +713,6 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
688
713
|
* @memberof FinancialAccountsApi
|
|
689
714
|
*/
|
|
690
715
|
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
691
|
-
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
716
|
+
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
692
717
|
}
|
|
693
718
|
}
|
|
@@ -67,8 +67,13 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
67
67
|
localVarQueryParameter['expand'] = expand;
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
71
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
72
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
73
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
74
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
75
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
76
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
|
|
@@ -143,8 +148,13 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
143
148
|
localVarQueryParameter['filters'] = filters;
|
|
144
149
|
}
|
|
145
150
|
|
|
146
|
-
|
|
147
|
-
|
|
151
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
152
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
153
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
154
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
155
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
156
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
157
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
148
158
|
}
|
|
149
159
|
|
|
150
160
|
|
|
@@ -348,7 +358,7 @@ export class FinancialTransactionsApi extends BaseAPI {
|
|
|
348
358
|
* @memberof FinancialTransactionsApi
|
|
349
359
|
*/
|
|
350
360
|
public getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig) {
|
|
351
|
-
return FinancialTransactionsApiFp(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
361
|
+
return FinancialTransactionsApiFp(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
352
362
|
}
|
|
353
363
|
|
|
354
364
|
/**
|
|
@@ -360,6 +370,6 @@ export class FinancialTransactionsApi extends BaseAPI {
|
|
|
360
370
|
* @memberof FinancialTransactionsApi
|
|
361
371
|
*/
|
|
362
372
|
public listFinancialTransactions(requestParameters: FinancialTransactionsApiListFinancialTransactionsRequest = {}, options?: AxiosRequestConfig) {
|
|
363
|
-
return FinancialTransactionsApiFp(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
373
|
+
return FinancialTransactionsApiFp(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
364
374
|
}
|
|
365
375
|
}
|
package/api/health-api.ts
CHANGED
|
@@ -119,6 +119,6 @@ export class HealthApi extends BaseAPI {
|
|
|
119
119
|
* @memberof HealthApi
|
|
120
120
|
*/
|
|
121
121
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
122
|
+
return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
123
123
|
}
|
|
124
124
|
}
|