@emilgroup/accounting-sdk 1.34.1-beta.1 → 1.34.1-beta.100
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 +37 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +158 -28
- package/api/booking-entries-api.ts +252 -13
- package/api/commission-account-mappings-api.ts +1231 -0
- package/api/financial-accounts-api.ts +169 -24
- 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 +1751 -0
- package/api.ts +4 -0
- package/base.ts +239 -43
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +206 -63
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +241 -26
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1051 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +168 -40
- 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 +972 -0
- package/dist/api/product-account-mappings-api.js +1493 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +26 -0
- package/dist/base.js +243 -60
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-class.d.ts +7 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/accounting-config-data-dto.d.ts +7 -0
- package/dist/models/booking-entry-class.d.ts +35 -0
- package/dist/models/booking-entry-class.js +11 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -0
- package/dist/models/commission-account-mapping-class.js +15 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
- package/dist/models/commission-agreement-partner-class.d.ts +30 -0
- package/dist/models/commission-agreement-partner-class.js +15 -0
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
- package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
- package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
- package/dist/models/commission-type-account-mapping-class.js +15 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +22 -0
- package/dist/models/create-booking-entry-request-dto.js +10 -0
- package/dist/models/create-financial-account-request-dto.d.ts +14 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +30 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +7 -0
- package/dist/models/financial-transaction-data-dto.js +1 -0
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +35 -0
- package/dist/models/index.js +35 -0
- package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/opening-balance-item-dto.d.ts +41 -0
- package/dist/models/opening-balance-item-dto.js +20 -0
- package/dist/models/personal-account-class.d.ts +6 -0
- package/dist/models/personal-account-range-class.d.ts +42 -0
- package/dist/models/personal-account-range-class.js +21 -0
- package/dist/models/personal-account-range-dto.d.ts +42 -0
- package/dist/models/personal-account-range-dto.js +21 -0
- package/dist/models/post-financial-event-request-dto.d.ts +46 -0
- package/dist/models/post-financial-event-request-dto.js +25 -0
- package/dist/models/post-financial-event-response-class.d.ts +25 -0
- package/dist/models/post-financial-event-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
- package/dist/models/resolved-commission-account-mapping-class.js +21 -0
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
- package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-type-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +48 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -0
- package/models/account-mapping-class.ts +3 -1
- package/models/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-class.ts +7 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
- package/models/accounting-config-data-dto.ts +7 -0
- package/models/booking-entry-class.ts +36 -0
- package/models/commission-account-mapping-class.ts +55 -0
- package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
- package/models/commission-agreement-partner-class.ts +36 -0
- package/models/commission-agreement-with-account-mapping-class.ts +49 -0
- package/models/commission-type-account-mapping-class.ts +37 -0
- package/models/create-booking-entry-request-dto.ts +25 -0
- package/models/create-financial-account-request-dto.ts +15 -1
- package/models/create-or-correct-opening-balance-dto.ts +31 -0
- package/models/create-or-correct-opening-balance-response-class.ts +31 -0
- package/models/financial-account-class.ts +31 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +7 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +35 -0
- package/models/list-commission-account-mappings-response-class.ts +49 -0
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
- package/models/list-commission-type-account-mappings-response-class.ts +49 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/opening-balance-item-dto.ts +50 -0
- package/models/personal-account-class.ts +6 -0
- package/models/personal-account-range-class.ts +51 -0
- package/models/personal-account-range-dto.ts +51 -0
- package/models/post-financial-event-request-dto.ts +55 -0
- package/models/post-financial-event-response-class.ts +31 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +62 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/resolved-commission-account-mapping-class.ts +46 -0
- package/models/update-commission-agreement-account-body-dto.ts +30 -0
- package/models/update-commission-type-account-body-dto.ts +30 -0
- package/models/update-financial-account-body-dto.ts +54 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -28,6 +28,10 @@ import { CreateFinancialAccountResponseClass } from '../models';
|
|
|
28
28
|
import { GetFinancialAccountResponseClass } from '../models';
|
|
29
29
|
// @ts-ignore
|
|
30
30
|
import { ListFinancialAccountsResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { UpdateFinancialAccountBodyDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { UpdateFinancialAccountResponseClass } from '../models';
|
|
31
35
|
/**
|
|
32
36
|
* FinancialAccountsApi - axios parameter creator
|
|
33
37
|
* @export
|
|
@@ -35,7 +39,7 @@ import { ListFinancialAccountsResponseClass } from '../models';
|
|
|
35
39
|
export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
40
|
return {
|
|
37
41
|
/**
|
|
38
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
42
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
39
43
|
* @summary Create the Financial Account
|
|
40
44
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
41
45
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -63,8 +67,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
63
67
|
// http bearer authentication required
|
|
64
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
69
|
|
|
66
|
-
|
|
67
|
-
|
|
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);
|
|
68
77
|
}
|
|
69
78
|
|
|
70
79
|
|
|
@@ -111,8 +120,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
111
120
|
// http bearer authentication required
|
|
112
121
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
122
|
|
|
114
|
-
|
|
115
|
-
|
|
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);
|
|
116
130
|
}
|
|
117
131
|
|
|
118
132
|
|
|
@@ -163,8 +177,13 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
163
177
|
localVarQueryParameter['expand'] = expand;
|
|
164
178
|
}
|
|
165
179
|
|
|
166
|
-
|
|
167
|
-
|
|
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);
|
|
168
187
|
}
|
|
169
188
|
|
|
170
189
|
|
|
@@ -184,11 +203,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
184
203
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
185
204
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
186
205
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
187
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
206
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
188
207
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
189
208
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
|
|
190
209
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
191
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
210
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
192
211
|
* @param {*} [options] Override http request option.
|
|
193
212
|
* @throws {RequiredError}
|
|
194
213
|
*/
|
|
@@ -239,15 +258,76 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
239
258
|
localVarQueryParameter['filters'] = filters;
|
|
240
259
|
}
|
|
241
260
|
|
|
242
|
-
|
|
243
|
-
|
|
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);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
273
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
274
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
275
|
+
|
|
276
|
+
return {
|
|
277
|
+
url: toPathString(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
};
|
|
280
|
+
},
|
|
281
|
+
/**
|
|
282
|
+
* 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\"
|
|
283
|
+
* @summary Update the Financial Account
|
|
284
|
+
* @param {string} code Unique identifier for the object.
|
|
285
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
286
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
287
|
+
* @param {*} [options] Override http request option.
|
|
288
|
+
* @throws {RequiredError}
|
|
289
|
+
*/
|
|
290
|
+
updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
291
|
+
// verify required parameter 'code' is not null or undefined
|
|
292
|
+
assertParamExists('updateFinancialAccount', 'code', code)
|
|
293
|
+
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
294
|
+
assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
|
|
295
|
+
const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
|
|
296
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
297
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
298
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
299
|
+
let baseOptions;
|
|
300
|
+
let baseAccessToken;
|
|
301
|
+
if (configuration) {
|
|
302
|
+
baseOptions = configuration.baseOptions;
|
|
303
|
+
baseAccessToken = configuration.accessToken;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
307
|
+
const localVarHeaderParameter = {} as any;
|
|
308
|
+
const localVarQueryParameter = {} as any;
|
|
309
|
+
|
|
310
|
+
// authentication bearer required
|
|
311
|
+
// http bearer authentication required
|
|
312
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
313
|
+
|
|
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);
|
|
244
321
|
}
|
|
245
322
|
|
|
246
323
|
|
|
247
324
|
|
|
325
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
326
|
+
|
|
248
327
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
249
328
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
250
329
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
330
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
|
|
251
331
|
|
|
252
332
|
return {
|
|
253
333
|
url: toPathString(localVarUrlObj),
|
|
@@ -265,7 +345,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
265
345
|
const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
|
|
266
346
|
return {
|
|
267
347
|
/**
|
|
268
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
348
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
269
349
|
* @summary Create the Financial Account
|
|
270
350
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
271
351
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -307,11 +387,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
307
387
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
308
388
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
309
389
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
310
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
390
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
311
391
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
312
392
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
|
|
313
393
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
314
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
394
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
315
395
|
* @param {*} [options] Override http request option.
|
|
316
396
|
* @throws {RequiredError}
|
|
317
397
|
*/
|
|
@@ -319,6 +399,19 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
319
399
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
320
400
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
321
401
|
},
|
|
402
|
+
/**
|
|
403
|
+
* 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\"
|
|
404
|
+
* @summary Update the Financial Account
|
|
405
|
+
* @param {string} code Unique identifier for the object.
|
|
406
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
407
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
408
|
+
* @param {*} [options] Override http request option.
|
|
409
|
+
* @throws {RequiredError}
|
|
410
|
+
*/
|
|
411
|
+
async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
|
|
412
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
|
|
413
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
414
|
+
},
|
|
322
415
|
}
|
|
323
416
|
};
|
|
324
417
|
|
|
@@ -330,7 +423,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
330
423
|
const localVarFp = FinancialAccountsApiFp(configuration)
|
|
331
424
|
return {
|
|
332
425
|
/**
|
|
333
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
426
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
334
427
|
* @summary Create the Financial Account
|
|
335
428
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
336
429
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -369,17 +462,29 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
369
462
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
370
463
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
371
464
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
372
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
465
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
373
466
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
374
467
|
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber, description, functionalCategory, type</i>
|
|
375
468
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
376
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
469
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
377
470
|
* @param {*} [options] Override http request option.
|
|
378
471
|
* @throws {RequiredError}
|
|
379
472
|
*/
|
|
380
473
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
|
|
381
474
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
382
475
|
},
|
|
476
|
+
/**
|
|
477
|
+
* 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\"
|
|
478
|
+
* @summary Update the Financial Account
|
|
479
|
+
* @param {string} code Unique identifier for the object.
|
|
480
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
481
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
482
|
+
* @param {*} [options] Override http request option.
|
|
483
|
+
* @throws {RequiredError}
|
|
484
|
+
*/
|
|
485
|
+
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
|
|
486
|
+
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
487
|
+
},
|
|
383
488
|
};
|
|
384
489
|
};
|
|
385
490
|
|
|
@@ -481,7 +586,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
481
586
|
readonly pageToken?: string
|
|
482
587
|
|
|
483
588
|
/**
|
|
484
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
589
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
485
590
|
* @type {string}
|
|
486
591
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
487
592
|
*/
|
|
@@ -509,13 +614,41 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
509
614
|
readonly expand?: string
|
|
510
615
|
|
|
511
616
|
/**
|
|
512
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory</i>
|
|
617
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type, status, isControlAccount, functionalCategory, linkedBankAccountCode, linkedBankAccountIban</i>
|
|
513
618
|
* @type {string}
|
|
514
619
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
515
620
|
*/
|
|
516
621
|
readonly filters?: string
|
|
517
622
|
}
|
|
518
623
|
|
|
624
|
+
/**
|
|
625
|
+
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
626
|
+
* @export
|
|
627
|
+
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
628
|
+
*/
|
|
629
|
+
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
630
|
+
/**
|
|
631
|
+
* Unique identifier for the object.
|
|
632
|
+
* @type {string}
|
|
633
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
634
|
+
*/
|
|
635
|
+
readonly code: string
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @type {UpdateFinancialAccountBodyDto}
|
|
640
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
641
|
+
*/
|
|
642
|
+
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
|
|
643
|
+
|
|
644
|
+
/**
|
|
645
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
646
|
+
* @type {string}
|
|
647
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
648
|
+
*/
|
|
649
|
+
readonly authorization?: string
|
|
650
|
+
}
|
|
651
|
+
|
|
519
652
|
/**
|
|
520
653
|
* FinancialAccountsApi - object-oriented interface
|
|
521
654
|
* @export
|
|
@@ -524,7 +657,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
524
657
|
*/
|
|
525
658
|
export class FinancialAccountsApi extends BaseAPI {
|
|
526
659
|
/**
|
|
527
|
-
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
660
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. A bank-category account may also name the connected bank account it books, via linkedBankAccountCode; the bank account\'s IBAN is stored alongside it for display. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
528
661
|
* @summary Create the Financial Account
|
|
529
662
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
530
663
|
* @param {*} [options] Override http request option.
|
|
@@ -532,7 +665,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
532
665
|
* @memberof FinancialAccountsApi
|
|
533
666
|
*/
|
|
534
667
|
public createFinancialAccount(requestParameters: FinancialAccountsApiCreateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
535
|
-
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));
|
|
536
669
|
}
|
|
537
670
|
|
|
538
671
|
/**
|
|
@@ -544,7 +677,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
544
677
|
* @memberof FinancialAccountsApi
|
|
545
678
|
*/
|
|
546
679
|
public deleteFinancialAccount(requestParameters: FinancialAccountsApiDeleteFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
547
|
-
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));
|
|
548
681
|
}
|
|
549
682
|
|
|
550
683
|
/**
|
|
@@ -556,7 +689,7 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
556
689
|
* @memberof FinancialAccountsApi
|
|
557
690
|
*/
|
|
558
691
|
public getFinancialAccount(requestParameters: FinancialAccountsApiGetFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
559
|
-
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));
|
|
560
693
|
}
|
|
561
694
|
|
|
562
695
|
/**
|
|
@@ -568,6 +701,18 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
568
701
|
* @memberof FinancialAccountsApi
|
|
569
702
|
*/
|
|
570
703
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
571
|
-
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));
|
|
705
|
+
}
|
|
706
|
+
|
|
707
|
+
/**
|
|
708
|
+
* 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\"
|
|
709
|
+
* @summary Update the Financial Account
|
|
710
|
+
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
711
|
+
* @param {*} [options] Override http request option.
|
|
712
|
+
* @throws {RequiredError}
|
|
713
|
+
* @memberof FinancialAccountsApi
|
|
714
|
+
*/
|
|
715
|
+
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
716
|
+
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
572
717
|
}
|
|
573
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
|
}
|
package/api/number-ranges-api.ts
CHANGED
|
@@ -63,8 +63,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
63
63
|
// http bearer authentication required
|
|
64
64
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
66
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
67
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
68
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
69
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
70
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
71
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
72
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
68
73
|
}
|
|
69
74
|
|
|
70
75
|
|
|
@@ -111,8 +116,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
111
116
|
// http bearer authentication required
|
|
112
117
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
113
118
|
|
|
114
|
-
|
|
115
|
-
|
|
119
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
120
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
121
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
122
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
123
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
124
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
116
126
|
}
|
|
117
127
|
|
|
118
128
|
|
|
@@ -163,8 +173,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
163
173
|
localVarQueryParameter['expand'] = expand;
|
|
164
174
|
}
|
|
165
175
|
|
|
166
|
-
|
|
167
|
-
|
|
176
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
177
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
178
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
179
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
180
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
181
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
182
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
168
183
|
}
|
|
169
184
|
|
|
170
185
|
|
|
@@ -239,8 +254,13 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
239
254
|
localVarQueryParameter['filters'] = filters;
|
|
240
255
|
}
|
|
241
256
|
|
|
242
|
-
|
|
243
|
-
|
|
257
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
258
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
259
|
+
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
260
|
+
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
261
|
+
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
262
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
263
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
244
264
|
}
|
|
245
265
|
|
|
246
266
|
|
|
@@ -532,7 +552,7 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
532
552
|
* @memberof NumberRangesApi
|
|
533
553
|
*/
|
|
534
554
|
public createNumberRange(requestParameters: NumberRangesApiCreateNumberRangeRequest, options?: AxiosRequestConfig) {
|
|
535
|
-
return NumberRangesApiFp(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
555
|
+
return NumberRangesApiFp(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
536
556
|
}
|
|
537
557
|
|
|
538
558
|
/**
|
|
@@ -544,7 +564,7 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
544
564
|
* @memberof NumberRangesApi
|
|
545
565
|
*/
|
|
546
566
|
public deleteNumberRange(requestParameters: NumberRangesApiDeleteNumberRangeRequest, options?: AxiosRequestConfig) {
|
|
547
|
-
return NumberRangesApiFp(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
567
|
+
return NumberRangesApiFp(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
548
568
|
}
|
|
549
569
|
|
|
550
570
|
/**
|
|
@@ -556,7 +576,7 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
556
576
|
* @memberof NumberRangesApi
|
|
557
577
|
*/
|
|
558
578
|
public getNumberRange(requestParameters: NumberRangesApiGetNumberRangeRequest, options?: AxiosRequestConfig) {
|
|
559
|
-
return NumberRangesApiFp(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
579
|
+
return NumberRangesApiFp(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
560
580
|
}
|
|
561
581
|
|
|
562
582
|
/**
|
|
@@ -568,6 +588,6 @@ export class NumberRangesApi extends BaseAPI {
|
|
|
568
588
|
* @memberof NumberRangesApi
|
|
569
589
|
*/
|
|
570
590
|
public listNumberRanges(requestParameters: NumberRangesApiListNumberRangesRequest = {}, options?: AxiosRequestConfig) {
|
|
571
|
-
return NumberRangesApiFp(this.configuration).listNumberRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
591
|
+
return NumberRangesApiFp(this.configuration).listNumberRanges(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));
|
|
572
592
|
}
|
|
573
593
|
}
|