@emilgroup/accounting-sdk-node 1.32.1-beta.6 → 1.32.1-beta.63
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 +35 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +120 -14
- package/api/booking-entries-api.ts +230 -6
- package/api/commission-account-mappings-api.ts +1211 -0
- package/api/financial-accounts-api.ts +150 -20
- package/api/financial-transactions-api.ts +8 -4
- package/api/number-ranges-api.ts +16 -8
- package/api/personal-accounts-api.ts +16 -8
- package/api/product-account-mappings-api.ts +1719 -0
- package/api.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +139 -28
- package/dist/api/booking-entries-api.d.ts +117 -3
- package/dist/api/booking-entries-api.js +207 -10
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1026 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +134 -24
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +22 -14
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +22 -14
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1451 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -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-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +21 -0
- package/dist/models/booking-entry-class.js +9 -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 +21 -0
- package/dist/models/create-booking-entry-request-dto.js +9 -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 +33 -0
- package/dist/models/index.js +33 -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/post-financial-event-request-dto.d.ts +45 -0
- package/dist/models/post-financial-event-request-dto.js +24 -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-dto-default-account-mappings.ts +9 -1
- package/models/booking-entry-class.ts +22 -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 +24 -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 +33 -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/post-financial-event-request-dto.ts +54 -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
|
// URLSearchParams not necessarily used
|
|
32
36
|
// @ts-ignore
|
|
33
37
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -39,7 +43,7 @@ const FormData = require('form-data');
|
|
|
39
43
|
export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
44
|
return {
|
|
41
45
|
/**
|
|
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. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
46
|
+
* 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\"
|
|
43
47
|
* @summary Create the Financial Account
|
|
44
48
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
45
49
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -67,8 +71,10 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
67
71
|
// http bearer authentication required
|
|
68
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
73
|
|
|
70
|
-
|
|
71
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
75
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
if (authorizationValue) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
78
|
}
|
|
73
79
|
|
|
74
80
|
|
|
@@ -115,8 +121,10 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
115
121
|
// http bearer authentication required
|
|
116
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
123
|
|
|
118
|
-
|
|
119
|
-
|
|
124
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
126
|
+
if (authorizationValue) {
|
|
127
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
128
|
}
|
|
121
129
|
|
|
122
130
|
|
|
@@ -167,8 +175,10 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
167
175
|
localVarQueryParameter['expand'] = expand;
|
|
168
176
|
}
|
|
169
177
|
|
|
170
|
-
|
|
171
|
-
|
|
178
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
179
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
180
|
+
if (authorizationValue) {
|
|
181
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
182
|
}
|
|
173
183
|
|
|
174
184
|
|
|
@@ -188,11 +198,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
188
198
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
199
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
200
|
* @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.
|
|
191
|
-
* @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>
|
|
201
|
+
* @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>
|
|
192
202
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
193
203
|
* @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>
|
|
194
204
|
* @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/>
|
|
195
|
-
* @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>
|
|
205
|
+
* @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>
|
|
196
206
|
* @param {*} [options] Override http request option.
|
|
197
207
|
* @throws {RequiredError}
|
|
198
208
|
*/
|
|
@@ -243,15 +253,70 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
243
253
|
localVarQueryParameter['filters'] = filters;
|
|
244
254
|
}
|
|
245
255
|
|
|
246
|
-
|
|
247
|
-
|
|
256
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
257
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
258
|
+
if (authorizationValue) {
|
|
259
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
266
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
267
|
+
|
|
268
|
+
return {
|
|
269
|
+
url: toPathString(localVarUrlObj),
|
|
270
|
+
options: localVarRequestOptions,
|
|
271
|
+
};
|
|
272
|
+
},
|
|
273
|
+
/**
|
|
274
|
+
* 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\"
|
|
275
|
+
* @summary Update the Financial Account
|
|
276
|
+
* @param {string} code Unique identifier for the object.
|
|
277
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
278
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
279
|
+
* @param {*} [options] Override http request option.
|
|
280
|
+
* @throws {RequiredError}
|
|
281
|
+
*/
|
|
282
|
+
updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
283
|
+
// verify required parameter 'code' is not null or undefined
|
|
284
|
+
assertParamExists('updateFinancialAccount', 'code', code)
|
|
285
|
+
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
286
|
+
assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
|
|
287
|
+
const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
|
|
288
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
289
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
290
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
291
|
+
let baseOptions;
|
|
292
|
+
let baseAccessToken;
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
baseAccessToken = configuration.accessToken;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
299
|
+
const localVarHeaderParameter = {} as any;
|
|
300
|
+
const localVarQueryParameter = {} as any;
|
|
301
|
+
|
|
302
|
+
// authentication bearer required
|
|
303
|
+
// http bearer authentication required
|
|
304
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
|
+
|
|
306
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
307
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
308
|
+
if (authorizationValue) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
310
|
}
|
|
249
311
|
|
|
250
312
|
|
|
251
313
|
|
|
314
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
315
|
+
|
|
252
316
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
253
317
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
318
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
319
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
|
|
255
320
|
|
|
256
321
|
return {
|
|
257
322
|
url: toPathString(localVarUrlObj),
|
|
@@ -269,7 +334,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
269
334
|
const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
|
|
270
335
|
return {
|
|
271
336
|
/**
|
|
272
|
-
* 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\"
|
|
337
|
+
* 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\"
|
|
273
338
|
* @summary Create the Financial Account
|
|
274
339
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
275
340
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -311,11 +376,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
311
376
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
312
377
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
313
378
|
* @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.
|
|
314
|
-
* @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>
|
|
379
|
+
* @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>
|
|
315
380
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
316
381
|
* @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>
|
|
317
382
|
* @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/>
|
|
318
|
-
* @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>
|
|
383
|
+
* @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>
|
|
319
384
|
* @param {*} [options] Override http request option.
|
|
320
385
|
* @throws {RequiredError}
|
|
321
386
|
*/
|
|
@@ -323,6 +388,19 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
323
388
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
324
389
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
325
390
|
},
|
|
391
|
+
/**
|
|
392
|
+
* 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\"
|
|
393
|
+
* @summary Update the Financial Account
|
|
394
|
+
* @param {string} code Unique identifier for the object.
|
|
395
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
396
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
397
|
+
* @param {*} [options] Override http request option.
|
|
398
|
+
* @throws {RequiredError}
|
|
399
|
+
*/
|
|
400
|
+
async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
|
|
401
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
|
|
402
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
403
|
+
},
|
|
326
404
|
}
|
|
327
405
|
};
|
|
328
406
|
|
|
@@ -334,7 +412,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
334
412
|
const localVarFp = FinancialAccountsApiFp(configuration)
|
|
335
413
|
return {
|
|
336
414
|
/**
|
|
337
|
-
* 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\"
|
|
415
|
+
* 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\"
|
|
338
416
|
* @summary Create the Financial Account
|
|
339
417
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
340
418
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -373,17 +451,29 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
373
451
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
374
452
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
375
453
|
* @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.
|
|
376
|
-
* @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>
|
|
454
|
+
* @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>
|
|
377
455
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
378
456
|
* @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>
|
|
379
457
|
* @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/>
|
|
380
|
-
* @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>
|
|
458
|
+
* @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>
|
|
381
459
|
* @param {*} [options] Override http request option.
|
|
382
460
|
* @throws {RequiredError}
|
|
383
461
|
*/
|
|
384
462
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
|
|
385
463
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
386
464
|
},
|
|
465
|
+
/**
|
|
466
|
+
* 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\"
|
|
467
|
+
* @summary Update the Financial Account
|
|
468
|
+
* @param {string} code Unique identifier for the object.
|
|
469
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
470
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
|
|
475
|
+
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
387
477
|
};
|
|
388
478
|
};
|
|
389
479
|
|
|
@@ -485,7 +575,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
485
575
|
readonly pageToken?: string
|
|
486
576
|
|
|
487
577
|
/**
|
|
488
|
-
* 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>
|
|
578
|
+
* 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>
|
|
489
579
|
* @type {string}
|
|
490
580
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
491
581
|
*/
|
|
@@ -513,13 +603,41 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
513
603
|
readonly expand?: string
|
|
514
604
|
|
|
515
605
|
/**
|
|
516
|
-
* 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>
|
|
606
|
+
* 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>
|
|
517
607
|
* @type {string}
|
|
518
608
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
519
609
|
*/
|
|
520
610
|
readonly filters?: string
|
|
521
611
|
}
|
|
522
612
|
|
|
613
|
+
/**
|
|
614
|
+
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
615
|
+
* @export
|
|
616
|
+
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
617
|
+
*/
|
|
618
|
+
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
619
|
+
/**
|
|
620
|
+
* Unique identifier for the object.
|
|
621
|
+
* @type {string}
|
|
622
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
623
|
+
*/
|
|
624
|
+
readonly code: string
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
*
|
|
628
|
+
* @type {UpdateFinancialAccountBodyDto}
|
|
629
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
630
|
+
*/
|
|
631
|
+
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
635
|
+
* @type {string}
|
|
636
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
637
|
+
*/
|
|
638
|
+
readonly authorization?: string
|
|
639
|
+
}
|
|
640
|
+
|
|
523
641
|
/**
|
|
524
642
|
* FinancialAccountsApi - object-oriented interface
|
|
525
643
|
* @export
|
|
@@ -528,7 +646,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
528
646
|
*/
|
|
529
647
|
export class FinancialAccountsApi extends BaseAPI {
|
|
530
648
|
/**
|
|
531
|
-
* 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\"
|
|
649
|
+
* 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\"
|
|
532
650
|
* @summary Create the Financial Account
|
|
533
651
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
534
652
|
* @param {*} [options] Override http request option.
|
|
@@ -574,4 +692,16 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
574
692
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
575
693
|
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));
|
|
576
694
|
}
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* 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\"
|
|
698
|
+
* @summary Update the Financial Account
|
|
699
|
+
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
700
|
+
* @param {*} [options] Override http request option.
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
* @memberof FinancialAccountsApi
|
|
703
|
+
*/
|
|
704
|
+
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
705
|
+
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
706
|
+
}
|
|
577
707
|
}
|
|
@@ -71,8 +71,10 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
71
71
|
localVarQueryParameter['expand'] = expand;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
75
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
75
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
if (authorizationValue) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
|
|
@@ -147,8 +149,10 @@ export const FinancialTransactionsApiAxiosParamCreator = function (configuration
|
|
|
147
149
|
localVarQueryParameter['filters'] = filters;
|
|
148
150
|
}
|
|
149
151
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
153
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
154
|
+
if (authorizationValue) {
|
|
155
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
152
156
|
}
|
|
153
157
|
|
|
154
158
|
|
package/api/number-ranges-api.ts
CHANGED
|
@@ -67,8 +67,10 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
71
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
72
|
+
if (authorizationValue) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
|
|
@@ -115,8 +117,10 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
115
117
|
// http bearer authentication required
|
|
116
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
119
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
121
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
122
|
+
if (authorizationValue) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
|
|
@@ -167,8 +171,10 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
167
171
|
localVarQueryParameter['expand'] = expand;
|
|
168
172
|
}
|
|
169
173
|
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
175
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
176
|
+
if (authorizationValue) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
|
|
@@ -243,8 +249,10 @@ export const NumberRangesApiAxiosParamCreator = function (configuration?: Config
|
|
|
243
249
|
localVarQueryParameter['filters'] = filters;
|
|
244
250
|
}
|
|
245
251
|
|
|
246
|
-
|
|
247
|
-
|
|
252
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
253
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
254
|
+
if (authorizationValue) {
|
|
255
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
256
|
}
|
|
249
257
|
|
|
250
258
|
|
|
@@ -67,8 +67,10 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
67
67
|
// http bearer authentication required
|
|
68
68
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
69
|
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
71
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
72
|
+
if (authorizationValue) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
74
|
}
|
|
73
75
|
|
|
74
76
|
|
|
@@ -115,8 +117,10 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
115
117
|
// http bearer authentication required
|
|
116
118
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
119
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
121
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
122
|
+
if (authorizationValue) {
|
|
123
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
120
124
|
}
|
|
121
125
|
|
|
122
126
|
|
|
@@ -167,8 +171,10 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
167
171
|
localVarQueryParameter['expand'] = expand;
|
|
168
172
|
}
|
|
169
173
|
|
|
170
|
-
|
|
171
|
-
|
|
174
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
175
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
176
|
+
if (authorizationValue) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
172
178
|
}
|
|
173
179
|
|
|
174
180
|
|
|
@@ -243,8 +249,10 @@ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Co
|
|
|
243
249
|
localVarQueryParameter['filters'] = filters;
|
|
244
250
|
}
|
|
245
251
|
|
|
246
|
-
|
|
247
|
-
|
|
252
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
253
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
254
|
+
if (authorizationValue) {
|
|
255
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
256
|
}
|
|
249
257
|
|
|
250
258
|
|