@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
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.32.1-beta.106 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.32.1-beta.106
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -73,8 +73,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
77
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
78
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
79
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
80
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
81
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
83
|
}
|
|
79
84
|
|
|
80
85
|
|
|
@@ -121,8 +126,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
121
126
|
// http bearer authentication required
|
|
122
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
128
|
|
|
124
|
-
|
|
125
|
-
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
131
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
134
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
136
|
}
|
|
127
137
|
|
|
128
138
|
|
|
@@ -170,8 +180,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
170
180
|
// http bearer authentication required
|
|
171
181
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
172
182
|
|
|
173
|
-
|
|
174
|
-
|
|
183
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
184
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
185
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
186
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
187
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
188
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
175
190
|
}
|
|
176
191
|
|
|
177
192
|
|
|
@@ -211,8 +226,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
211
226
|
// http bearer authentication required
|
|
212
227
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
213
228
|
|
|
214
|
-
|
|
215
|
-
|
|
229
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
230
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
231
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
232
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
233
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
234
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
235
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
216
236
|
}
|
|
217
237
|
|
|
218
238
|
|
|
@@ -252,8 +272,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
252
272
|
// http bearer authentication required
|
|
253
273
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
254
274
|
|
|
255
|
-
|
|
256
|
-
|
|
275
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
276
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
277
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
278
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
279
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
280
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
281
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
257
282
|
}
|
|
258
283
|
|
|
259
284
|
|
|
@@ -293,8 +318,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
293
318
|
// http bearer authentication required
|
|
294
319
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
295
320
|
|
|
296
|
-
|
|
297
|
-
|
|
321
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
322
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
323
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
324
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
325
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
326
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
327
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
298
328
|
}
|
|
299
329
|
|
|
300
330
|
|
|
@@ -337,8 +367,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
337
367
|
// http bearer authentication required
|
|
338
368
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
369
|
|
|
340
|
-
|
|
341
|
-
|
|
370
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
371
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
372
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
373
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
374
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
375
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
376
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
342
377
|
}
|
|
343
378
|
|
|
344
379
|
|
|
@@ -385,8 +420,13 @@ export const AccountingConfigsApiAxiosParamCreator = function (configuration?: C
|
|
|
385
420
|
// http bearer authentication required
|
|
386
421
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
387
422
|
|
|
388
|
-
|
|
389
|
-
|
|
423
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
424
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
425
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
426
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
427
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
428
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
429
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
390
430
|
}
|
|
391
431
|
|
|
392
432
|
|
|
@@ -763,7 +803,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
763
803
|
* @memberof AccountingConfigsApi
|
|
764
804
|
*/
|
|
765
805
|
public createAndEnableSubledger(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerRequest, options?: AxiosRequestConfig) {
|
|
766
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
806
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledger(requestParameters.createAndEnableSubledgerRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
767
807
|
}
|
|
768
808
|
|
|
769
809
|
/**
|
|
@@ -775,7 +815,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
775
815
|
* @memberof AccountingConfigsApi
|
|
776
816
|
*/
|
|
777
817
|
public createAndEnableSubledgerFromFile(requestParameters: AccountingConfigsApiCreateAndEnableSubledgerFromFileRequest, options?: AxiosRequestConfig) {
|
|
778
|
-
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
818
|
+
return AccountingConfigsApiFp(this.configuration).createAndEnableSubledgerFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
779
819
|
}
|
|
780
820
|
|
|
781
821
|
/**
|
|
@@ -787,7 +827,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
787
827
|
* @memberof AccountingConfigsApi
|
|
788
828
|
*/
|
|
789
829
|
public exportAccountingConfig(requestParameters: AccountingConfigsApiExportAccountingConfigRequest = {}, options?: AxiosRequestConfig) {
|
|
790
|
-
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
830
|
+
return AccountingConfigsApiFp(this.configuration).exportAccountingConfig(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
791
831
|
}
|
|
792
832
|
|
|
793
833
|
/**
|
|
@@ -799,7 +839,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
799
839
|
* @memberof AccountingConfigsApi
|
|
800
840
|
*/
|
|
801
841
|
public getAccountingCategories(requestParameters: AccountingConfigsApiGetAccountingCategoriesRequest = {}, options?: AxiosRequestConfig) {
|
|
802
|
-
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
842
|
+
return AccountingConfigsApiFp(this.configuration).getAccountingCategories(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
803
843
|
}
|
|
804
844
|
|
|
805
845
|
/**
|
|
@@ -811,7 +851,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
811
851
|
* @memberof AccountingConfigsApi
|
|
812
852
|
*/
|
|
813
853
|
public getActivationSnapshot(requestParameters: AccountingConfigsApiGetActivationSnapshotRequest = {}, options?: AxiosRequestConfig) {
|
|
814
|
-
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
854
|
+
return AccountingConfigsApiFp(this.configuration).getActivationSnapshot(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
815
855
|
}
|
|
816
856
|
|
|
817
857
|
/**
|
|
@@ -823,7 +863,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
823
863
|
* @memberof AccountingConfigsApi
|
|
824
864
|
*/
|
|
825
865
|
public resetSubledger(requestParameters: AccountingConfigsApiResetSubledgerRequest = {}, options?: AxiosRequestConfig) {
|
|
826
|
-
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
866
|
+
return AccountingConfigsApiFp(this.configuration).resetSubledger(requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
827
867
|
}
|
|
828
868
|
|
|
829
869
|
/**
|
|
@@ -835,7 +875,7 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
835
875
|
* @memberof AccountingConfigsApi
|
|
836
876
|
*/
|
|
837
877
|
public validateAccountingConfig(requestParameters: AccountingConfigsApiValidateAccountingConfigRequest, options?: AxiosRequestConfig) {
|
|
838
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
878
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfig(requestParameters.validateAccountingConfigRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
839
879
|
}
|
|
840
880
|
|
|
841
881
|
/**
|
|
@@ -847,6 +887,6 @@ export class AccountingConfigsApi extends BaseAPI {
|
|
|
847
887
|
* @memberof AccountingConfigsApi
|
|
848
888
|
*/
|
|
849
889
|
public validateAccountingConfigFromFile(requestParameters: AccountingConfigsApiValidateAccountingConfigFromFileRequest, options?: AxiosRequestConfig) {
|
|
850
|
-
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
890
|
+
return AccountingConfigsApiFp(this.configuration).validateAccountingConfigFromFile(requestParameters.file, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
851
891
|
}
|
|
852
892
|
}
|
|
@@ -75,8 +75,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
75
75
|
// http bearer authentication required
|
|
76
76
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
79
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
80
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
81
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
82
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
83
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
84
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
80
85
|
}
|
|
81
86
|
|
|
82
87
|
|
|
@@ -122,8 +127,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
122
127
|
// http bearer authentication required
|
|
123
128
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
124
129
|
|
|
125
|
-
|
|
126
|
-
|
|
130
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
131
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
132
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
133
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
134
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
135
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
136
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
137
|
}
|
|
128
138
|
|
|
129
139
|
|
|
@@ -177,8 +187,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
177
187
|
localVarQueryParameter['expand'] = expand;
|
|
178
188
|
}
|
|
179
189
|
|
|
180
|
-
|
|
181
|
-
|
|
190
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
191
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
192
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
195
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
196
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
197
|
}
|
|
183
198
|
|
|
184
199
|
|
|
@@ -253,8 +268,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
253
268
|
localVarQueryParameter['filters'] = filters;
|
|
254
269
|
}
|
|
255
270
|
|
|
256
|
-
|
|
257
|
-
|
|
271
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
272
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
273
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
274
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
275
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
276
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
277
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
258
278
|
}
|
|
259
279
|
|
|
260
280
|
|
|
@@ -297,8 +317,13 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
297
317
|
// http bearer authentication required
|
|
298
318
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
319
|
|
|
300
|
-
|
|
301
|
-
|
|
320
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
321
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
322
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
323
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
324
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
325
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
326
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
302
327
|
}
|
|
303
328
|
|
|
304
329
|
|
|
@@ -637,7 +662,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
637
662
|
* @memberof BookingEntriesApi
|
|
638
663
|
*/
|
|
639
664
|
public createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig) {
|
|
640
|
-
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
665
|
+
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
641
666
|
}
|
|
642
667
|
|
|
643
668
|
/**
|
|
@@ -649,7 +674,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
649
674
|
* @memberof BookingEntriesApi
|
|
650
675
|
*/
|
|
651
676
|
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
652
|
-
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
677
|
+
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
653
678
|
}
|
|
654
679
|
|
|
655
680
|
/**
|
|
@@ -661,7 +686,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
661
686
|
* @memberof BookingEntriesApi
|
|
662
687
|
*/
|
|
663
688
|
public getBookingEntry(requestParameters: BookingEntriesApiGetBookingEntryRequest, options?: AxiosRequestConfig) {
|
|
664
|
-
return BookingEntriesApiFp(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
689
|
+
return BookingEntriesApiFp(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
665
690
|
}
|
|
666
691
|
|
|
667
692
|
/**
|
|
@@ -673,7 +698,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
673
698
|
* @memberof BookingEntriesApi
|
|
674
699
|
*/
|
|
675
700
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
676
|
-
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));
|
|
701
|
+
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));
|
|
677
702
|
}
|
|
678
703
|
|
|
679
704
|
/**
|
|
@@ -685,6 +710,6 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
685
710
|
* @memberof BookingEntriesApi
|
|
686
711
|
*/
|
|
687
712
|
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
688
|
-
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
713
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
689
714
|
}
|
|
690
715
|
}
|
|
@@ -78,8 +78,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
78
78
|
// http bearer authentication required
|
|
79
79
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
80
80
|
|
|
81
|
-
|
|
82
|
-
|
|
81
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
82
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
83
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
84
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
85
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
86
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
87
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
83
88
|
}
|
|
84
89
|
|
|
85
90
|
|
|
@@ -123,8 +128,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
123
128
|
// http bearer authentication required
|
|
124
129
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
130
|
|
|
126
|
-
|
|
127
|
-
|
|
131
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
132
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
133
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
134
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
135
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
136
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
137
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
138
|
}
|
|
129
139
|
|
|
130
140
|
|
|
@@ -168,8 +178,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
168
178
|
// http bearer authentication required
|
|
169
179
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
170
180
|
|
|
171
|
-
|
|
172
|
-
|
|
181
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
182
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
183
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
184
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
185
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
186
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
187
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
173
188
|
}
|
|
174
189
|
|
|
175
190
|
|
|
@@ -244,8 +259,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
244
259
|
localVarQueryParameter['filters'] = filters;
|
|
245
260
|
}
|
|
246
261
|
|
|
247
|
-
|
|
248
|
-
|
|
262
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
263
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
264
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
265
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
266
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
267
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
268
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
249
269
|
}
|
|
250
270
|
|
|
251
271
|
|
|
@@ -320,8 +340,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
320
340
|
localVarQueryParameter['filters'] = filters;
|
|
321
341
|
}
|
|
322
342
|
|
|
323
|
-
|
|
324
|
-
|
|
343
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
344
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
345
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
346
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
347
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
348
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
349
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
325
350
|
}
|
|
326
351
|
|
|
327
352
|
|
|
@@ -396,8 +421,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
396
421
|
localVarQueryParameter['filters'] = filters;
|
|
397
422
|
}
|
|
398
423
|
|
|
399
|
-
|
|
400
|
-
|
|
424
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
425
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
426
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
427
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
428
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
429
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
430
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
401
431
|
}
|
|
402
432
|
|
|
403
433
|
|
|
@@ -448,8 +478,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
448
478
|
// http bearer authentication required
|
|
449
479
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
450
480
|
|
|
451
|
-
|
|
452
|
-
|
|
481
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
482
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
483
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
484
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
485
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
486
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
487
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
453
488
|
}
|
|
454
489
|
|
|
455
490
|
|
|
@@ -499,8 +534,13 @@ export const CommissionAccountMappingsApiAxiosParamCreator = function (configura
|
|
|
499
534
|
// http bearer authentication required
|
|
500
535
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
501
536
|
|
|
502
|
-
|
|
503
|
-
|
|
537
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
538
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
539
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
540
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
541
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
542
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
543
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
504
544
|
}
|
|
505
545
|
|
|
506
546
|
|
|
@@ -1106,7 +1146,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1106
1146
|
* @memberof CommissionAccountMappingsApi
|
|
1107
1147
|
*/
|
|
1108
1148
|
public deleteCommissionAgreementAccount(requestParameters: CommissionAccountMappingsApiDeleteCommissionAgreementAccountRequest, options?: AxiosRequestConfig) {
|
|
1109
|
-
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1149
|
+
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1110
1150
|
}
|
|
1111
1151
|
|
|
1112
1152
|
/**
|
|
@@ -1118,7 +1158,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1118
1158
|
* @memberof CommissionAccountMappingsApi
|
|
1119
1159
|
*/
|
|
1120
1160
|
public deleteCommissionTypeAccount(requestParameters: CommissionAccountMappingsApiDeleteCommissionTypeAccountRequest, options?: AxiosRequestConfig) {
|
|
1121
|
-
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1161
|
+
return CommissionAccountMappingsApiFp(this.configuration).deleteCommissionTypeAccount(requestParameters.commissionType, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1122
1162
|
}
|
|
1123
1163
|
|
|
1124
1164
|
/**
|
|
@@ -1130,7 +1170,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1130
1170
|
* @memberof CommissionAccountMappingsApi
|
|
1131
1171
|
*/
|
|
1132
1172
|
public getCommissionAgreementAccountMapping(requestParameters: CommissionAccountMappingsApiGetCommissionAgreementAccountMappingRequest, options?: AxiosRequestConfig) {
|
|
1133
|
-
return CommissionAccountMappingsApiFp(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1173
|
+
return CommissionAccountMappingsApiFp(this.configuration).getCommissionAgreementAccountMapping(requestParameters.commissionAgreementCode, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1134
1174
|
}
|
|
1135
1175
|
|
|
1136
1176
|
/**
|
|
@@ -1142,7 +1182,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1142
1182
|
* @memberof CommissionAccountMappingsApi
|
|
1143
1183
|
*/
|
|
1144
1184
|
public listCommissionAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1145
|
-
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));
|
|
1185
|
+
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));
|
|
1146
1186
|
}
|
|
1147
1187
|
|
|
1148
1188
|
/**
|
|
@@ -1154,7 +1194,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1154
1194
|
* @memberof CommissionAccountMappingsApi
|
|
1155
1195
|
*/
|
|
1156
1196
|
public listCommissionAgreementsWithAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionAgreementsWithAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1157
|
-
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));
|
|
1197
|
+
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));
|
|
1158
1198
|
}
|
|
1159
1199
|
|
|
1160
1200
|
/**
|
|
@@ -1166,7 +1206,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1166
1206
|
* @memberof CommissionAccountMappingsApi
|
|
1167
1207
|
*/
|
|
1168
1208
|
public listCommissionTypeAccountMappings(requestParameters: CommissionAccountMappingsApiListCommissionTypeAccountMappingsRequest = {}, options?: AxiosRequestConfig) {
|
|
1169
|
-
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));
|
|
1209
|
+
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));
|
|
1170
1210
|
}
|
|
1171
1211
|
|
|
1172
1212
|
/**
|
|
@@ -1178,7 +1218,7 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1178
1218
|
* @memberof CommissionAccountMappingsApi
|
|
1179
1219
|
*/
|
|
1180
1220
|
public updateCommissionAgreementAccount(requestParameters: CommissionAccountMappingsApiUpdateCommissionAgreementAccountRequest, options?: AxiosRequestConfig) {
|
|
1181
|
-
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1221
|
+
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionAgreementAccount(requestParameters.commissionAgreementCode, requestParameters.commissionType, requestParameters.updateCommissionAgreementAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1182
1222
|
}
|
|
1183
1223
|
|
|
1184
1224
|
/**
|
|
@@ -1190,6 +1230,6 @@ export class CommissionAccountMappingsApi extends BaseAPI {
|
|
|
1190
1230
|
* @memberof CommissionAccountMappingsApi
|
|
1191
1231
|
*/
|
|
1192
1232
|
public updateCommissionTypeAccount(requestParameters: CommissionAccountMappingsApiUpdateCommissionTypeAccountRequest, options?: AxiosRequestConfig) {
|
|
1193
|
-
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1233
|
+
return CommissionAccountMappingsApiFp(this.configuration).updateCommissionTypeAccount(requestParameters.commissionType, requestParameters.updateCommissionTypeAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1194
1234
|
}
|
|
1195
1235
|
}
|