@emilgroup/accounting-sdk 1.34.1-beta.52 → 1.34.1-beta.54
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 +0 -48
- package/README.md +2 -2
- package/api/booking-entries-api.ts +0 -214
- package/api/financial-accounts-api.ts +16 -136
- package/api.ts +0 -6
- package/base.ts +15 -36
- package/configuration.ts +0 -11
- package/dist/api/booking-entries-api.d.ts +0 -114
- package/dist/api/booking-entries-api.js +0 -186
- package/dist/api/financial-accounts-api.d.ts +16 -82
- package/dist/api/financial-accounts-api.js +13 -112
- package/dist/api.d.ts +0 -3
- package/dist/api.js +0 -3
- package/dist/base.d.ts +0 -1
- package/dist/base.js +16 -36
- package/dist/configuration.d.ts +0 -9
- package/dist/configuration.js +0 -1
- package/dist/models/booking-entry-class.d.ts +0 -20
- package/dist/models/booking-entry-class.js +1 -8
- package/dist/models/create-booking-entry-request-dto.d.ts +2 -24
- package/dist/models/create-booking-entry-request-dto.js +0 -8
- package/dist/models/create-financial-account-request-dto.d.ts +5 -48
- package/dist/models/create-financial-account-request-dto.js +2 -24
- package/dist/models/create-number-range-request-dto.d.ts +4 -4
- package/dist/models/create-number-range-request-dto.js +4 -4
- package/dist/models/create-personal-account-request-dto.d.ts +6 -14
- package/dist/models/create-personal-account-request-dto.js +3 -3
- package/dist/models/financial-account-class.d.ts +2 -49
- package/dist/models/financial-account-class.js +2 -6
- package/dist/models/financial-transaction-data-dto.d.ts +2 -5
- package/dist/models/financial-transaction-data-dto.js +0 -1
- package/dist/models/index.d.ts +0 -45
- package/dist/models/index.js +0 -45
- package/dist/models/personal-account-class.d.ts +2 -8
- package/dist/models/personal-account-class.js +1 -1
- package/models/booking-entry-class.ts +0 -21
- package/models/create-booking-entry-request-dto.ts +2 -25
- package/models/create-financial-account-request-dto.ts +5 -47
- package/models/create-number-range-request-dto.ts +4 -4
- package/models/create-personal-account-request-dto.ts +6 -12
- package/models/financial-account-class.ts +2 -50
- package/models/financial-transaction-data-dto.ts +2 -3
- package/models/index.ts +0 -45
- package/models/personal-account-class.ts +2 -8
- package/package.json +1 -1
- package/api/accounting-configs-api.ts +0 -846
- package/api/commission-account-mappings-api.ts +0 -1191
- package/api/product-account-mappings-api.ts +0 -1470
- package/dist/api/accounting-configs-api.d.ts +0 -451
- package/dist/api/accounting-configs-api.js +0 -857
- package/dist/api/commission-account-mappings-api.d.ts +0 -685
- package/dist/api/commission-account-mappings-api.js +0 -1004
- package/dist/api/product-account-mappings-api.d.ts +0 -851
- package/dist/api/product-account-mappings-api.js +0 -1224
- package/dist/models/account-mapping-class.d.ts +0 -71
- package/dist/models/account-mapping-class.js +0 -38
- package/dist/models/accounting-category-class.d.ts +0 -45
- package/dist/models/accounting-category-class.js +0 -24
- package/dist/models/accounting-config-class.d.ts +0 -78
- package/dist/models/accounting-config-class.js +0 -20
- package/dist/models/accounting-config-data-class.d.ts +0 -38
- package/dist/models/accounting-config-data-class.js +0 -15
- package/dist/models/accounting-config-data-dto-accounting-configuration.d.ts +0 -46
- package/dist/models/accounting-config-data-dto-accounting-configuration.js +0 -24
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +0 -77
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +0 -38
- package/dist/models/accounting-config-data-dto.d.ts +0 -38
- package/dist/models/accounting-config-data-dto.js +0 -15
- package/dist/models/accounting-configuration-class.d.ts +0 -36
- package/dist/models/accounting-configuration-class.js +0 -15
- package/dist/models/commission-account-mapping-class.d.ts +0 -49
- package/dist/models/commission-account-mapping-class.js +0 -15
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +0 -44
- package/dist/models/commission-agreement-account-mapping-detail-class.js +0 -15
- package/dist/models/commission-agreement-partner-class.d.ts +0 -30
- package/dist/models/commission-agreement-partner-class.js +0 -15
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +0 -43
- package/dist/models/commission-agreement-with-account-mapping-class.js +0 -15
- package/dist/models/commission-type-account-mapping-class.d.ts +0 -31
- package/dist/models/commission-type-account-mapping-class.js +0 -15
- package/dist/models/create-and-enable-subledger-request-dto.d.ts +0 -25
- package/dist/models/create-and-enable-subledger-request-dto.js +0 -15
- package/dist/models/create-and-enable-subledger-response-class.d.ts +0 -25
- package/dist/models/create-and-enable-subledger-response-class.js +0 -15
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +0 -25
- package/dist/models/create-or-correct-opening-balance-dto.js +0 -15
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +0 -25
- package/dist/models/create-or-correct-opening-balance-response-class.js +0 -15
- package/dist/models/export-accounting-config-response-class.d.ts +0 -25
- package/dist/models/export-accounting-config-response-class.js +0 -15
- package/dist/models/get-accounting-categories-response-class.d.ts +0 -25
- package/dist/models/get-accounting-categories-response-class.js +0 -15
- package/dist/models/get-activation-snapshot-response-class.d.ts +0 -25
- package/dist/models/get-activation-snapshot-response-class.js +0 -15
- package/dist/models/list-commission-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-account-mappings-response-class.js +0 -15
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +0 -15
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-commission-type-account-mappings-response-class.js +0 -15
- package/dist/models/list-product-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-product-account-mappings-response-class.js +0 -15
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +0 -43
- package/dist/models/list-products-with-account-mappings-response-class.js +0 -15
- package/dist/models/opening-balance-item-dto.d.ts +0 -41
- package/dist/models/opening-balance-item-dto.js +0 -20
- package/dist/models/post-financial-event-request-dto.d.ts +0 -44
- package/dist/models/post-financial-event-request-dto.js +0 -23
- package/dist/models/post-financial-event-response-class.d.ts +0 -25
- package/dist/models/post-financial-event-response-class.js +0 -15
- package/dist/models/premium-item-account-mapping-class.d.ts +0 -37
- package/dist/models/premium-item-account-mapping-class.js +0 -15
- package/dist/models/product-account-mapping-class.d.ts +0 -61
- package/dist/models/product-account-mapping-class.js +0 -15
- package/dist/models/product-account-mapping-detail-class.d.ts +0 -50
- package/dist/models/product-account-mapping-detail-class.js +0 -15
- package/dist/models/product-version-account-mapping-detail-class.d.ts +0 -50
- package/dist/models/product-version-account-mapping-detail-class.js +0 -15
- package/dist/models/product-version-with-account-mappings-class.d.ts +0 -42
- package/dist/models/product-version-with-account-mappings-class.js +0 -15
- package/dist/models/product-with-account-mappings-class.d.ts +0 -49
- package/dist/models/product-with-account-mappings-class.js +0 -15
- package/dist/models/put-premium-item-account-body-dto.d.ts +0 -24
- package/dist/models/put-premium-item-account-body-dto.js +0 -15
- package/dist/models/put-product-category-account-body-dto.d.ts +0 -24
- package/dist/models/put-product-category-account-body-dto.js +0 -15
- package/dist/models/put-product-version-category-account-body-dto.d.ts +0 -24
- package/dist/models/put-product-version-category-account-body-dto.js +0 -15
- package/dist/models/resolved-account-mapping-class.d.ts +0 -31
- package/dist/models/resolved-account-mapping-class.js +0 -15
- package/dist/models/resolved-commission-account-mapping-class.d.ts +0 -37
- package/dist/models/resolved-commission-account-mapping-class.js +0 -21
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +0 -24
- package/dist/models/update-commission-agreement-account-body-dto.js +0 -15
- package/dist/models/update-commission-type-account-body-dto.d.ts +0 -24
- package/dist/models/update-commission-type-account-body-dto.js +0 -15
- package/dist/models/update-financial-account-body-dto.d.ts +0 -48
- package/dist/models/update-financial-account-body-dto.js +0 -15
- package/dist/models/update-financial-account-response-class.d.ts +0 -25
- package/dist/models/update-financial-account-response-class.js +0 -15
- package/dist/models/validate-accounting-config-request-dto.d.ts +0 -25
- package/dist/models/validate-accounting-config-request-dto.js +0 -15
- package/dist/models/validate-accounting-config-response-class.d.ts +0 -30
- package/dist/models/validate-accounting-config-response-class.js +0 -15
- package/models/account-mapping-class.ts +0 -80
- package/models/accounting-category-class.ts +0 -54
- package/models/accounting-config-class.ts +0 -87
- package/models/accounting-config-data-class.ts +0 -44
- package/models/accounting-config-data-dto-accounting-configuration.ts +0 -56
- package/models/accounting-config-data-dto-default-account-mappings.ts +0 -86
- package/models/accounting-config-data-dto.ts +0 -44
- package/models/accounting-configuration-class.ts +0 -42
- package/models/commission-account-mapping-class.ts +0 -55
- package/models/commission-agreement-account-mapping-detail-class.ts +0 -50
- package/models/commission-agreement-partner-class.ts +0 -36
- package/models/commission-agreement-with-account-mapping-class.ts +0 -49
- package/models/commission-type-account-mapping-class.ts +0 -37
- package/models/create-and-enable-subledger-request-dto.ts +0 -31
- package/models/create-and-enable-subledger-response-class.ts +0 -31
- package/models/create-or-correct-opening-balance-dto.ts +0 -31
- package/models/create-or-correct-opening-balance-response-class.ts +0 -31
- package/models/export-accounting-config-response-class.ts +0 -31
- package/models/get-accounting-categories-response-class.ts +0 -31
- package/models/get-activation-snapshot-response-class.ts +0 -31
- package/models/list-commission-account-mappings-response-class.ts +0 -49
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +0 -49
- package/models/list-commission-type-account-mappings-response-class.ts +0 -49
- package/models/list-product-account-mappings-response-class.ts +0 -49
- package/models/list-products-with-account-mappings-response-class.ts +0 -49
- package/models/opening-balance-item-dto.ts +0 -50
- package/models/post-financial-event-request-dto.ts +0 -53
- package/models/post-financial-event-response-class.ts +0 -31
- package/models/premium-item-account-mapping-class.ts +0 -43
- package/models/product-account-mapping-class.ts +0 -67
- package/models/product-account-mapping-detail-class.ts +0 -56
- package/models/product-version-account-mapping-detail-class.ts +0 -56
- package/models/product-version-with-account-mappings-class.ts +0 -48
- package/models/product-with-account-mappings-class.ts +0 -55
- package/models/put-premium-item-account-body-dto.ts +0 -30
- package/models/put-product-category-account-body-dto.ts +0 -30
- package/models/put-product-version-category-account-body-dto.ts +0 -30
- package/models/resolved-account-mapping-class.ts +0 -37
- package/models/resolved-commission-account-mapping-class.ts +0 -46
- package/models/update-commission-agreement-account-body-dto.ts +0 -30
- package/models/update-commission-type-account-body-dto.ts +0 -30
- package/models/update-financial-account-body-dto.ts +0 -54
- package/models/update-financial-account-response-class.ts +0 -31
- package/models/validate-accounting-config-request-dto.ts +0 -31
- package/models/validate-accounting-config-response-class.ts +0 -36
|
@@ -28,10 +28,6 @@ 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';
|
|
35
31
|
/**
|
|
36
32
|
* FinancialAccountsApi - axios parameter creator
|
|
37
33
|
* @export
|
|
@@ -39,7 +35,7 @@ import { UpdateFinancialAccountResponseClass } from '../models';
|
|
|
39
35
|
export const FinancialAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
36
|
return {
|
|
41
37
|
/**
|
|
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.
|
|
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\"
|
|
43
39
|
* @summary Create the Financial Account
|
|
44
40
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
45
41
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -188,11 +184,11 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
188
184
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
189
185
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
190
186
|
* @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
|
|
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</i>
|
|
192
188
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
193
|
-
* @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
|
|
189
|
+
* @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</i>
|
|
194
190
|
* @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
|
|
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</i>
|
|
196
192
|
* @param {*} [options] Override http request option.
|
|
197
193
|
* @throws {RequiredError}
|
|
198
194
|
*/
|
|
@@ -253,57 +249,6 @@ export const FinancialAccountsApiAxiosParamCreator = function (configuration?: C
|
|
|
253
249
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
250
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
255
251
|
|
|
256
|
-
return {
|
|
257
|
-
url: toPathString(localVarUrlObj),
|
|
258
|
-
options: localVarRequestOptions,
|
|
259
|
-
};
|
|
260
|
-
},
|
|
261
|
-
/**
|
|
262
|
-
* 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\"
|
|
263
|
-
* @summary Update the Financial Account
|
|
264
|
-
* @param {string} code Unique identifier for the object.
|
|
265
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
266
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
267
|
-
* @param {*} [options] Override http request option.
|
|
268
|
-
* @throws {RequiredError}
|
|
269
|
-
*/
|
|
270
|
-
updateFinancialAccount: async (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
271
|
-
// verify required parameter 'code' is not null or undefined
|
|
272
|
-
assertParamExists('updateFinancialAccount', 'code', code)
|
|
273
|
-
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
274
|
-
assertParamExists('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto)
|
|
275
|
-
const localVarPath = `/accountingservice/v1/financial-accounts/{code}`
|
|
276
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
277
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
278
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
279
|
-
let baseOptions;
|
|
280
|
-
let baseAccessToken;
|
|
281
|
-
if (configuration) {
|
|
282
|
-
baseOptions = configuration.baseOptions;
|
|
283
|
-
baseAccessToken = configuration.accessToken;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
287
|
-
const localVarHeaderParameter = {} as any;
|
|
288
|
-
const localVarQueryParameter = {} as any;
|
|
289
|
-
|
|
290
|
-
// authentication bearer required
|
|
291
|
-
// http bearer authentication required
|
|
292
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
|
-
|
|
294
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
295
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
301
|
-
|
|
302
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
303
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
304
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
305
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateFinancialAccountBodyDto, localVarRequestOptions, configuration)
|
|
306
|
-
|
|
307
252
|
return {
|
|
308
253
|
url: toPathString(localVarUrlObj),
|
|
309
254
|
options: localVarRequestOptions,
|
|
@@ -320,7 +265,7 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
320
265
|
const localVarAxiosParamCreator = FinancialAccountsApiAxiosParamCreator(configuration)
|
|
321
266
|
return {
|
|
322
267
|
/**
|
|
323
|
-
* 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.
|
|
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\"
|
|
324
269
|
* @summary Create the Financial Account
|
|
325
270
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
326
271
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -362,11 +307,11 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
362
307
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
363
308
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
364
309
|
* @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.
|
|
365
|
-
* @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
|
|
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</i>
|
|
366
311
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
367
|
-
* @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
|
|
312
|
+
* @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</i>
|
|
368
313
|
* @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/>
|
|
369
|
-
* @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
|
|
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</i>
|
|
370
315
|
* @param {*} [options] Override http request option.
|
|
371
316
|
* @throws {RequiredError}
|
|
372
317
|
*/
|
|
@@ -374,19 +319,6 @@ export const FinancialAccountsApiFp = function(configuration?: Configuration) {
|
|
|
374
319
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
375
320
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
376
321
|
},
|
|
377
|
-
/**
|
|
378
|
-
* 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\"
|
|
379
|
-
* @summary Update the Financial Account
|
|
380
|
-
* @param {string} code Unique identifier for the object.
|
|
381
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
382
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
383
|
-
* @param {*} [options] Override http request option.
|
|
384
|
-
* @throws {RequiredError}
|
|
385
|
-
*/
|
|
386
|
-
async updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>> {
|
|
387
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options);
|
|
388
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
389
|
-
},
|
|
390
322
|
}
|
|
391
323
|
};
|
|
392
324
|
|
|
@@ -398,7 +330,7 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
398
330
|
const localVarFp = FinancialAccountsApiFp(configuration)
|
|
399
331
|
return {
|
|
400
332
|
/**
|
|
401
|
-
* 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.
|
|
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\"
|
|
402
334
|
* @summary Create the Financial Account
|
|
403
335
|
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
404
336
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
@@ -437,29 +369,17 @@ export const FinancialAccountsApiFactory = function (configuration?: Configurati
|
|
|
437
369
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
370
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
439
371
|
* @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.
|
|
440
|
-
* @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
|
|
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</i>
|
|
441
373
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
442
|
-
* @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
|
|
374
|
+
* @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</i>
|
|
443
375
|
* @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/>
|
|
444
|
-
* @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
|
|
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</i>
|
|
445
377
|
* @param {*} [options] Override http request option.
|
|
446
378
|
* @throws {RequiredError}
|
|
447
379
|
*/
|
|
448
380
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass> {
|
|
449
381
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
450
382
|
},
|
|
451
|
-
/**
|
|
452
|
-
* 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\"
|
|
453
|
-
* @summary Update the Financial Account
|
|
454
|
-
* @param {string} code Unique identifier for the object.
|
|
455
|
-
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
456
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
457
|
-
* @param {*} [options] Override http request option.
|
|
458
|
-
* @throws {RequiredError}
|
|
459
|
-
*/
|
|
460
|
-
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass> {
|
|
461
|
-
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then((request) => request(axios, basePath));
|
|
462
|
-
},
|
|
463
383
|
};
|
|
464
384
|
};
|
|
465
385
|
|
|
@@ -561,7 +481,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
561
481
|
readonly pageToken?: string
|
|
562
482
|
|
|
563
483
|
/**
|
|
564
|
-
* 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
|
|
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</i>
|
|
565
485
|
* @type {string}
|
|
566
486
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
567
487
|
*/
|
|
@@ -575,7 +495,7 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
575
495
|
readonly search?: string
|
|
576
496
|
|
|
577
497
|
/**
|
|
578
|
-
* 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
|
|
498
|
+
* 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</i>
|
|
579
499
|
* @type {string}
|
|
580
500
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
581
501
|
*/
|
|
@@ -589,41 +509,13 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
589
509
|
readonly expand?: string
|
|
590
510
|
|
|
591
511
|
/**
|
|
592
|
-
* 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
|
|
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</i>
|
|
593
513
|
* @type {string}
|
|
594
514
|
* @memberof FinancialAccountsApiListFinancialAccounts
|
|
595
515
|
*/
|
|
596
516
|
readonly filters?: string
|
|
597
517
|
}
|
|
598
518
|
|
|
599
|
-
/**
|
|
600
|
-
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
601
|
-
* @export
|
|
602
|
-
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
603
|
-
*/
|
|
604
|
-
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
605
|
-
/**
|
|
606
|
-
* Unique identifier for the object.
|
|
607
|
-
* @type {string}
|
|
608
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
609
|
-
*/
|
|
610
|
-
readonly code: string
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
*
|
|
614
|
-
* @type {UpdateFinancialAccountBodyDto}
|
|
615
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
616
|
-
*/
|
|
617
|
-
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto
|
|
618
|
-
|
|
619
|
-
/**
|
|
620
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
621
|
-
* @type {string}
|
|
622
|
-
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
623
|
-
*/
|
|
624
|
-
readonly authorization?: string
|
|
625
|
-
}
|
|
626
|
-
|
|
627
519
|
/**
|
|
628
520
|
* FinancialAccountsApi - object-oriented interface
|
|
629
521
|
* @export
|
|
@@ -632,7 +524,7 @@ export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
|
632
524
|
*/
|
|
633
525
|
export class FinancialAccountsApi extends BaseAPI {
|
|
634
526
|
/**
|
|
635
|
-
* 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.
|
|
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\"
|
|
636
528
|
* @summary Create the Financial Account
|
|
637
529
|
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
638
530
|
* @param {*} [options] Override http request option.
|
|
@@ -678,16 +570,4 @@ export class FinancialAccountsApi extends BaseAPI {
|
|
|
678
570
|
public listFinancialAccounts(requestParameters: FinancialAccountsApiListFinancialAccountsRequest = {}, options?: AxiosRequestConfig) {
|
|
679
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));
|
|
680
572
|
}
|
|
681
|
-
|
|
682
|
-
/**
|
|
683
|
-
* 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\"
|
|
684
|
-
* @summary Update the Financial Account
|
|
685
|
-
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
686
|
-
* @param {*} [options] Override http request option.
|
|
687
|
-
* @throws {RequiredError}
|
|
688
|
-
* @memberof FinancialAccountsApi
|
|
689
|
-
*/
|
|
690
|
-
public updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig) {
|
|
691
|
-
return FinancialAccountsApiFp(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
692
|
-
}
|
|
693
573
|
}
|
package/api.ts
CHANGED
|
@@ -20,24 +20,18 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
|
|
|
20
20
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
|
-
import { AccountingConfigsApi } from './api';
|
|
24
23
|
import { BookingEntriesApi } from './api';
|
|
25
|
-
import { CommissionAccountMappingsApi } from './api';
|
|
26
24
|
import { FinancialAccountsApi } from './api';
|
|
27
25
|
import { FinancialTransactionsApi } from './api';
|
|
28
26
|
import { HealthApi } from './api';
|
|
29
27
|
import { NumberRangesApi } from './api';
|
|
30
28
|
import { PersonalAccountsApi } from './api';
|
|
31
|
-
import { ProductAccountMappingsApi } from './api';
|
|
32
29
|
|
|
33
30
|
|
|
34
|
-
export * from './api/accounting-configs-api';
|
|
35
31
|
export * from './api/booking-entries-api';
|
|
36
|
-
export * from './api/commission-account-mappings-api';
|
|
37
32
|
export * from './api/financial-accounts-api';
|
|
38
33
|
export * from './api/financial-transactions-api';
|
|
39
34
|
export * from './api/health-api';
|
|
40
35
|
export * from './api/number-ranges-api';
|
|
41
36
|
export * from './api/personal-accounts-api';
|
|
42
|
-
export * from './api/product-account-mappings-api';
|
|
43
37
|
|
package/base.ts
CHANGED
|
@@ -102,14 +102,10 @@ export class BaseAPI {
|
|
|
102
102
|
this.configuration = configuration;
|
|
103
103
|
this.basePath = configuration.basePath || this.basePath;
|
|
104
104
|
|
|
105
|
-
if
|
|
106
|
-
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
const configToken = this.configuration.accessToken;
|
|
110
|
-
const storedToken = accessToken ? `Bearer ${accessToken}` : '';
|
|
111
|
-
this.configuration.accessToken = configToken || storedToken;
|
|
112
|
-
}
|
|
105
|
+
// Use config token if provided, otherwise use tokenData token
|
|
106
|
+
const configToken = this.configuration.accessToken;
|
|
107
|
+
const storedToken = accessToken ? `Bearer ${accessToken}` : '';
|
|
108
|
+
this.configuration.accessToken = configToken || storedToken;
|
|
113
109
|
} else {
|
|
114
110
|
const { accessToken, username } = this.tokenData;
|
|
115
111
|
|
|
@@ -123,12 +119,6 @@ export class BaseAPI {
|
|
|
123
119
|
this.attachInterceptor(axios);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
|
-
// Cookie mode: the browser sends the HttpOnly access cookie, so no token is read from storage.
|
|
127
|
-
private useCookieAuth() {
|
|
128
|
-
this.configuration.username = this.configuration.username || this.tokenData.username;
|
|
129
|
-
this.configuration.baseOptions = { ...this.configuration.baseOptions, withCredentials: true };
|
|
130
|
-
}
|
|
131
|
-
|
|
132
122
|
selectEnvironment(env: Environment) {
|
|
133
123
|
this.selectBasePath(env);
|
|
134
124
|
}
|
|
@@ -162,12 +152,10 @@ export class BaseAPI {
|
|
|
162
152
|
const { data: { accessToken, permissions } } = response;
|
|
163
153
|
|
|
164
154
|
this.configuration.username = username;
|
|
155
|
+
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
165
156
|
this.tokenData.username = username;
|
|
157
|
+
this.tokenData.accessToken = accessToken;
|
|
166
158
|
this.tokenData.permissions = permissions;
|
|
167
|
-
if (!this.configuration.cookieAuth) {
|
|
168
|
-
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
169
|
-
this.tokenData.accessToken = accessToken;
|
|
170
|
-
}
|
|
171
159
|
|
|
172
160
|
// Switch workspace if provided
|
|
173
161
|
if (targetWorkspace) {
|
|
@@ -190,7 +178,7 @@ export class BaseAPI {
|
|
|
190
178
|
url: `${this.configuration.basePath}/authservice/v1/workspaces/switch`,
|
|
191
179
|
headers: {
|
|
192
180
|
'Content-Type': 'application/json',
|
|
193
|
-
|
|
181
|
+
'Authorization': `Bearer ${this.configuration.accessToken}`,
|
|
194
182
|
},
|
|
195
183
|
data: {
|
|
196
184
|
username: this.configuration.username,
|
|
@@ -202,12 +190,10 @@ export class BaseAPI {
|
|
|
202
190
|
const response = await globalAxios.request<SwitchWorkspaceResponseClass>(options);
|
|
203
191
|
|
|
204
192
|
const { data: { accessToken, permissions } } = response;
|
|
205
|
-
|
|
193
|
+
|
|
194
|
+
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
195
|
+
this.tokenData.accessToken = accessToken;
|
|
206
196
|
this.tokenData.permissions = permissions;
|
|
207
|
-
if (!this.configuration.cookieAuth) {
|
|
208
|
-
this.configuration.accessToken = `Bearer ${accessToken}`;
|
|
209
|
-
this.tokenData.accessToken = accessToken;
|
|
210
|
-
}
|
|
211
197
|
|
|
212
198
|
this.storeTokenData({
|
|
213
199
|
...this.tokenData
|
|
@@ -247,11 +233,6 @@ export class BaseAPI {
|
|
|
247
233
|
|
|
248
234
|
private storeTokenData(tokenData?: TokenData) {
|
|
249
235
|
if (typeof window !== 'undefined') {
|
|
250
|
-
if (tokenData && this.configuration?.cookieAuth) {
|
|
251
|
-
// Cookie mode saves who is logged in, never the token; a token saved by apps not yet migrated stays.
|
|
252
|
-
const { username, permissions } = tokenData;
|
|
253
|
-
tokenData = { ...(defaultStorage().get<TokenData>(TOKEN_DATA) || {}), username, permissions };
|
|
254
|
-
}
|
|
255
236
|
defaultStorage().set<TokenData>(TOKEN_DATA, tokenData);
|
|
256
237
|
}
|
|
257
238
|
}
|
|
@@ -282,17 +263,15 @@ export class BaseAPI {
|
|
|
282
263
|
originalConfig._retry = true;
|
|
283
264
|
try {
|
|
284
265
|
const { accessToken: tokenString, permissions } = await this.refreshTokenInternal();
|
|
266
|
+
const accessToken = `Bearer ${tokenString}`;
|
|
285
267
|
this.tokenData.permissions = permissions;
|
|
286
268
|
|
|
287
269
|
delete originalConfig.headers['Authorization']
|
|
288
270
|
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
this.configuration.accessToken = accessToken;
|
|
294
|
-
this.tokenData.accessToken = tokenString;
|
|
295
|
-
}
|
|
271
|
+
originalConfig.headers['Authorization'] = accessToken;
|
|
272
|
+
|
|
273
|
+
this.configuration.accessToken = accessToken;
|
|
274
|
+
this.tokenData.accessToken = tokenString;
|
|
296
275
|
|
|
297
276
|
this.storeTokenData(this.tokenData);
|
|
298
277
|
|
package/configuration.ts
CHANGED
|
@@ -21,7 +21,6 @@ export interface ConfigurationParameters {
|
|
|
21
21
|
basePath?: string;
|
|
22
22
|
baseOptions?: any;
|
|
23
23
|
formDataCtor?: new () => any;
|
|
24
|
-
cookieAuth?: boolean;
|
|
25
24
|
}
|
|
26
25
|
|
|
27
26
|
export class Configuration {
|
|
@@ -75,15 +74,6 @@ export class Configuration {
|
|
|
75
74
|
*/
|
|
76
75
|
formDataCtor?: new () => any;
|
|
77
76
|
|
|
78
|
-
/**
|
|
79
|
-
* Authenticate with the HttpOnly access cookie instead of a stored token: every call sends credentials.
|
|
80
|
-
* The browser holds one cookie, so use it with one logged-in account; log out through the auth service.
|
|
81
|
-
*
|
|
82
|
-
* @type {boolean}
|
|
83
|
-
* @memberof Configuration
|
|
84
|
-
*/
|
|
85
|
-
cookieAuth?: boolean;
|
|
86
|
-
|
|
87
77
|
constructor(param: ConfigurationParameters = {}) {
|
|
88
78
|
this.apiKey = param.apiKey;
|
|
89
79
|
this.username = param.username;
|
|
@@ -92,7 +82,6 @@ export class Configuration {
|
|
|
92
82
|
this.basePath = param.basePath;
|
|
93
83
|
this.baseOptions = param.baseOptions;
|
|
94
84
|
this.formDataCtor = param.formDataCtor;
|
|
95
|
-
this.cookieAuth = param.cookieAuth;
|
|
96
85
|
}
|
|
97
86
|
|
|
98
87
|
/**
|
|
@@ -14,12 +14,8 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateBookingEntryRequestDto } from '../models';
|
|
16
16
|
import { CreateBookingEntryResponseClass } from '../models';
|
|
17
|
-
import { CreateOrCorrectOpeningBalanceDto } from '../models';
|
|
18
|
-
import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
|
|
19
17
|
import { GetBookingEntryResponseClass } from '../models';
|
|
20
18
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
21
|
-
import { PostFinancialEventRequestDto } from '../models';
|
|
22
|
-
import { PostFinancialEventResponseClass } from '../models';
|
|
23
19
|
/**
|
|
24
20
|
* BookingEntriesApi - axios parameter creator
|
|
25
21
|
* @export
|
|
@@ -34,15 +30,6 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
34
30
|
* @throws {RequiredError}
|
|
35
31
|
*/
|
|
36
32
|
createBookingEntry: (createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
37
|
-
/**
|
|
38
|
-
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
39
|
-
* @summary Update the create or correct opening balance
|
|
40
|
-
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
41
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
42
|
-
* @param {*} [options] Override http request option.
|
|
43
|
-
* @throws {RequiredError}
|
|
44
|
-
*/
|
|
45
|
-
createOrCorrectOpeningBalance: (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
46
33
|
/**
|
|
47
34
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
48
35
|
* @summary Retrieve the booking entry
|
|
@@ -68,15 +55,6 @@ export declare const BookingEntriesApiAxiosParamCreator: (configuration?: Config
|
|
|
68
55
|
* @throws {RequiredError}
|
|
69
56
|
*/
|
|
70
57
|
listBookingEntries: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
71
|
-
/**
|
|
72
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
73
|
-
* @summary Create the booking entry from a source entity
|
|
74
|
-
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
75
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
76
|
-
* @param {*} [options] Override http request option.
|
|
77
|
-
* @throws {RequiredError}
|
|
78
|
-
*/
|
|
79
|
-
postFinancialEvent: (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
80
58
|
};
|
|
81
59
|
/**
|
|
82
60
|
* BookingEntriesApi - functional programming interface
|
|
@@ -92,15 +70,6 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
92
70
|
* @throws {RequiredError}
|
|
93
71
|
*/
|
|
94
72
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingEntryResponseClass>>;
|
|
95
|
-
/**
|
|
96
|
-
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
97
|
-
* @summary Update the create or correct opening balance
|
|
98
|
-
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
99
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>>;
|
|
104
73
|
/**
|
|
105
74
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
106
75
|
* @summary Retrieve the booking entry
|
|
@@ -126,15 +95,6 @@ export declare const BookingEntriesApiFp: (configuration?: Configuration) => {
|
|
|
126
95
|
* @throws {RequiredError}
|
|
127
96
|
*/
|
|
128
97
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingEntriesResponseClass>>;
|
|
129
|
-
/**
|
|
130
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
131
|
-
* @summary Create the booking entry from a source entity
|
|
132
|
-
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
133
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
-
* @param {*} [options] Override http request option.
|
|
135
|
-
* @throws {RequiredError}
|
|
136
|
-
*/
|
|
137
|
-
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>>;
|
|
138
98
|
};
|
|
139
99
|
/**
|
|
140
100
|
* BookingEntriesApi - factory interface
|
|
@@ -150,15 +110,6 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
150
110
|
* @throws {RequiredError}
|
|
151
111
|
*/
|
|
152
112
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass>;
|
|
153
|
-
/**
|
|
154
|
-
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
155
|
-
* @summary Update the create or correct opening balance
|
|
156
|
-
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
157
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
|
-
* @param {*} [options] Override http request option.
|
|
159
|
-
* @throws {RequiredError}
|
|
160
|
-
*/
|
|
161
|
-
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>;
|
|
162
113
|
/**
|
|
163
114
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
164
115
|
* @summary Retrieve the booking entry
|
|
@@ -184,15 +135,6 @@ export declare const BookingEntriesApiFactory: (configuration?: Configuration, b
|
|
|
184
135
|
* @throws {RequiredError}
|
|
185
136
|
*/
|
|
186
137
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass>;
|
|
187
|
-
/**
|
|
188
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
189
|
-
* @summary Create the booking entry from a source entity
|
|
190
|
-
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
191
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
192
|
-
* @param {*} [options] Override http request option.
|
|
193
|
-
* @throws {RequiredError}
|
|
194
|
-
*/
|
|
195
|
-
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass>;
|
|
196
138
|
};
|
|
197
139
|
/**
|
|
198
140
|
* Request parameters for createBookingEntry operation in BookingEntriesApi.
|
|
@@ -213,25 +155,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
213
155
|
*/
|
|
214
156
|
readonly authorization?: string;
|
|
215
157
|
}
|
|
216
|
-
/**
|
|
217
|
-
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
218
|
-
* @export
|
|
219
|
-
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
220
|
-
*/
|
|
221
|
-
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
222
|
-
/**
|
|
223
|
-
*
|
|
224
|
-
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
225
|
-
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
226
|
-
*/
|
|
227
|
-
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto;
|
|
228
|
-
/**
|
|
229
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
230
|
-
* @type {string}
|
|
231
|
-
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
232
|
-
*/
|
|
233
|
-
readonly authorization?: string;
|
|
234
|
-
}
|
|
235
158
|
/**
|
|
236
159
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
237
160
|
* @export
|
|
@@ -312,25 +235,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
312
235
|
*/
|
|
313
236
|
readonly filters?: string;
|
|
314
237
|
}
|
|
315
|
-
/**
|
|
316
|
-
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
317
|
-
* @export
|
|
318
|
-
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
319
|
-
*/
|
|
320
|
-
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
321
|
-
/**
|
|
322
|
-
*
|
|
323
|
-
* @type {PostFinancialEventRequestDto}
|
|
324
|
-
* @memberof BookingEntriesApiPostFinancialEvent
|
|
325
|
-
*/
|
|
326
|
-
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto;
|
|
327
|
-
/**
|
|
328
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
329
|
-
* @type {string}
|
|
330
|
-
* @memberof BookingEntriesApiPostFinancialEvent
|
|
331
|
-
*/
|
|
332
|
-
readonly authorization?: string;
|
|
333
|
-
}
|
|
334
238
|
/**
|
|
335
239
|
* BookingEntriesApi - object-oriented interface
|
|
336
240
|
* @export
|
|
@@ -347,15 +251,6 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
347
251
|
* @memberof BookingEntriesApi
|
|
348
252
|
*/
|
|
349
253
|
createBookingEntry(requestParameters: BookingEntriesApiCreateBookingEntryRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateBookingEntryResponseClass, any, {}>>;
|
|
350
|
-
/**
|
|
351
|
-
* Enters or restates the confirmed opening balance for one or more accounts: a first-time entry for an account with no opening-balance history yet, a restatement for one that already has some. Each item carries the confirmed balance, not the delta; the service derives the delta itself and books it, per account, against the main-ledger bridge account. **Required Permissions** \"accounting-management.financial-accounts.create\"
|
|
352
|
-
* @summary Update the create or correct opening balance
|
|
353
|
-
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
354
|
-
* @param {*} [options] Override http request option.
|
|
355
|
-
* @throws {RequiredError}
|
|
356
|
-
* @memberof BookingEntriesApi
|
|
357
|
-
*/
|
|
358
|
-
createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateOrCorrectOpeningBalanceResponseClass, any, {}>>;
|
|
359
254
|
/**
|
|
360
255
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
361
256
|
* @summary Retrieve the booking entry
|
|
@@ -374,13 +269,4 @@ export declare class BookingEntriesApi extends BaseAPI {
|
|
|
374
269
|
* @memberof BookingEntriesApi
|
|
375
270
|
*/
|
|
376
271
|
listBookingEntries(requestParameters?: BookingEntriesApiListBookingEntriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListBookingEntriesResponseClass, any, {}>>;
|
|
377
|
-
/**
|
|
378
|
-
* This endpoint posts the booking entry for an existing invoice, payment, exceeding credit or credit allocation on demand. The entity is fetched from the service that owns it and run through the same posting flow its domain event triggers, so the call is idempotent: an entity that is already posted returns its existing booking entry. When the flow deliberately posts nothing (subledger not active for the booking date, non-positive amount) the call fails with a precondition error carrying the reason. **Required Permissions** \"accounting-management.entries.create\"
|
|
379
|
-
* @summary Create the booking entry from a source entity
|
|
380
|
-
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
381
|
-
* @param {*} [options] Override http request option.
|
|
382
|
-
* @throws {RequiredError}
|
|
383
|
-
* @memberof BookingEntriesApi
|
|
384
|
-
*/
|
|
385
|
-
postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PostFinancialEventResponseClass, any, {}>>;
|
|
386
272
|
}
|