@emilgroup/accounting-sdk 1.34.1-beta.57 → 1.34.1-beta.58
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/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/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
package/.openapi-generator/FILES
CHANGED
|
@@ -3,52 +3,29 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
-
api/accounting-configs-api.ts
|
|
7
6
|
api/booking-entries-api.ts
|
|
8
|
-
api/commission-account-mappings-api.ts
|
|
9
7
|
api/financial-accounts-api.ts
|
|
10
8
|
api/financial-transactions-api.ts
|
|
11
9
|
api/health-api.ts
|
|
12
10
|
api/number-ranges-api.ts
|
|
13
11
|
api/personal-accounts-api.ts
|
|
14
|
-
api/product-account-mappings-api.ts
|
|
15
12
|
base.ts
|
|
16
13
|
common.ts
|
|
17
14
|
configuration.ts
|
|
18
15
|
git_push.sh
|
|
19
16
|
index.ts
|
|
20
|
-
models/account-mapping-class.ts
|
|
21
|
-
models/accounting-category-class.ts
|
|
22
|
-
models/accounting-config-class.ts
|
|
23
|
-
models/accounting-config-data-class.ts
|
|
24
|
-
models/accounting-config-data-dto-accounting-configuration.ts
|
|
25
|
-
models/accounting-config-data-dto-default-account-mappings.ts
|
|
26
|
-
models/accounting-config-data-dto.ts
|
|
27
|
-
models/accounting-configuration-class.ts
|
|
28
17
|
models/booking-entry-class.ts
|
|
29
|
-
models/commission-account-mapping-class.ts
|
|
30
|
-
models/commission-agreement-account-mapping-detail-class.ts
|
|
31
|
-
models/commission-agreement-partner-class.ts
|
|
32
|
-
models/commission-agreement-with-account-mapping-class.ts
|
|
33
|
-
models/commission-type-account-mapping-class.ts
|
|
34
|
-
models/create-and-enable-subledger-request-dto.ts
|
|
35
|
-
models/create-and-enable-subledger-response-class.ts
|
|
36
18
|
models/create-booking-entry-request-dto.ts
|
|
37
19
|
models/create-booking-entry-response-class.ts
|
|
38
20
|
models/create-financial-account-request-dto.ts
|
|
39
21
|
models/create-financial-account-response-class.ts
|
|
40
22
|
models/create-number-range-request-dto.ts
|
|
41
23
|
models/create-number-range-response-class.ts
|
|
42
|
-
models/create-or-correct-opening-balance-dto.ts
|
|
43
|
-
models/create-or-correct-opening-balance-response-class.ts
|
|
44
24
|
models/create-personal-account-request-dto.ts
|
|
45
25
|
models/create-personal-account-response-class.ts
|
|
46
|
-
models/export-accounting-config-response-class.ts
|
|
47
26
|
models/financial-account-class.ts
|
|
48
27
|
models/financial-transaction-class.ts
|
|
49
28
|
models/financial-transaction-data-dto.ts
|
|
50
|
-
models/get-accounting-categories-response-class.ts
|
|
51
|
-
models/get-activation-snapshot-response-class.ts
|
|
52
29
|
models/get-booking-entry-response-class.ts
|
|
53
30
|
models/get-financial-account-response-class.ts
|
|
54
31
|
models/get-financial-transaction-response-class.ts
|
|
@@ -58,36 +35,11 @@ models/index.ts
|
|
|
58
35
|
models/inline-response200.ts
|
|
59
36
|
models/inline-response503.ts
|
|
60
37
|
models/list-booking-entries-response-class.ts
|
|
61
|
-
models/list-commission-account-mappings-response-class.ts
|
|
62
|
-
models/list-commission-agreements-with-account-mappings-response-class.ts
|
|
63
|
-
models/list-commission-type-account-mappings-response-class.ts
|
|
64
38
|
models/list-financial-accounts-response-class.ts
|
|
65
39
|
models/list-financial-transactions-response-class.ts
|
|
66
40
|
models/list-number-range-response-class.ts
|
|
67
41
|
models/list-personal-accounts-response-class.ts
|
|
68
|
-
models/list-product-account-mappings-response-class.ts
|
|
69
|
-
models/list-products-with-account-mappings-response-class.ts
|
|
70
42
|
models/number-range-class.ts
|
|
71
|
-
models/opening-balance-item-dto.ts
|
|
72
43
|
models/personal-account-class.ts
|
|
73
|
-
models/post-financial-event-request-dto.ts
|
|
74
|
-
models/post-financial-event-response-class.ts
|
|
75
|
-
models/premium-item-account-mapping-class.ts
|
|
76
|
-
models/product-account-mapping-class.ts
|
|
77
|
-
models/product-account-mapping-detail-class.ts
|
|
78
|
-
models/product-version-account-mapping-detail-class.ts
|
|
79
|
-
models/product-version-with-account-mappings-class.ts
|
|
80
|
-
models/product-with-account-mappings-class.ts
|
|
81
|
-
models/put-premium-item-account-body-dto.ts
|
|
82
|
-
models/put-product-category-account-body-dto.ts
|
|
83
|
-
models/put-product-version-category-account-body-dto.ts
|
|
84
|
-
models/resolved-account-mapping-class.ts
|
|
85
|
-
models/resolved-commission-account-mapping-class.ts
|
|
86
|
-
models/update-commission-agreement-account-body-dto.ts
|
|
87
|
-
models/update-commission-type-account-body-dto.ts
|
|
88
|
-
models/update-financial-account-body-dto.ts
|
|
89
|
-
models/update-financial-account-response-class.ts
|
|
90
|
-
models/validate-accounting-config-request-dto.ts
|
|
91
|
-
models/validate-accounting-config-response-class.ts
|
|
92
44
|
package.json
|
|
93
45
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk@1.34.1-beta.
|
|
20
|
+
npm install @emilgroup/accounting-sdk@1.34.1-beta.58 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk@1.34.1-beta.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk@1.34.1-beta.58
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -25,17 +25,9 @@ import { CreateBookingEntryRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateBookingEntryResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import { CreateOrCorrectOpeningBalanceDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { CreateOrCorrectOpeningBalanceResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
28
|
import { GetBookingEntryResponseClass } from '../models';
|
|
33
29
|
// @ts-ignore
|
|
34
30
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
35
|
-
// @ts-ignore
|
|
36
|
-
import { PostFinancialEventRequestDto } from '../models';
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
import { PostFinancialEventResponseClass } from '../models';
|
|
39
31
|
/**
|
|
40
32
|
* BookingEntriesApi - axios parameter creator
|
|
41
33
|
* @export
|
|
@@ -89,53 +81,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
89
81
|
options: localVarRequestOptions,
|
|
90
82
|
};
|
|
91
83
|
},
|
|
92
|
-
/**
|
|
93
|
-
* 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\"
|
|
94
|
-
* @summary Update the create or correct opening balance
|
|
95
|
-
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
96
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
97
|
-
* @param {*} [options] Override http request option.
|
|
98
|
-
* @throws {RequiredError}
|
|
99
|
-
*/
|
|
100
|
-
createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
-
// verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
|
|
102
|
-
assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
|
|
103
|
-
const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
|
|
104
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
|
-
let baseOptions;
|
|
107
|
-
let baseAccessToken;
|
|
108
|
-
if (configuration) {
|
|
109
|
-
baseOptions = configuration.baseOptions;
|
|
110
|
-
baseAccessToken = configuration.accessToken;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
114
|
-
const localVarHeaderParameter = {} as any;
|
|
115
|
-
const localVarQueryParameter = {} as any;
|
|
116
|
-
|
|
117
|
-
// authentication bearer required
|
|
118
|
-
// http bearer authentication required
|
|
119
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
|
-
|
|
121
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
122
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
128
|
-
|
|
129
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
130
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
132
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
url: toPathString(localVarUrlObj),
|
|
136
|
-
options: localVarRequestOptions,
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
84
|
/**
|
|
140
85
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
141
86
|
* @summary Retrieve the booking entry
|
|
@@ -259,53 +204,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
259
204
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
205
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
261
206
|
|
|
262
|
-
return {
|
|
263
|
-
url: toPathString(localVarUrlObj),
|
|
264
|
-
options: localVarRequestOptions,
|
|
265
|
-
};
|
|
266
|
-
},
|
|
267
|
-
/**
|
|
268
|
-
* 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\"
|
|
269
|
-
* @summary Create the booking entry from a source entity
|
|
270
|
-
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
271
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
272
|
-
* @param {*} [options] Override http request option.
|
|
273
|
-
* @throws {RequiredError}
|
|
274
|
-
*/
|
|
275
|
-
postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
276
|
-
// verify required parameter 'postFinancialEventRequestDto' is not null or undefined
|
|
277
|
-
assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
|
|
278
|
-
const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
|
|
279
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
280
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
281
|
-
let baseOptions;
|
|
282
|
-
let baseAccessToken;
|
|
283
|
-
if (configuration) {
|
|
284
|
-
baseOptions = configuration.baseOptions;
|
|
285
|
-
baseAccessToken = configuration.accessToken;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
289
|
-
const localVarHeaderParameter = {} as any;
|
|
290
|
-
const localVarQueryParameter = {} as any;
|
|
291
|
-
|
|
292
|
-
// authentication bearer required
|
|
293
|
-
// http bearer authentication required
|
|
294
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
295
|
-
|
|
296
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
297
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
303
|
-
|
|
304
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
305
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
307
|
-
localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
|
|
308
|
-
|
|
309
207
|
return {
|
|
310
208
|
url: toPathString(localVarUrlObj),
|
|
311
209
|
options: localVarRequestOptions,
|
|
@@ -333,18 +231,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
333
231
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
|
|
334
232
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
335
233
|
},
|
|
336
|
-
/**
|
|
337
|
-
* 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\"
|
|
338
|
-
* @summary Update the create or correct opening balance
|
|
339
|
-
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
340
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
341
|
-
* @param {*} [options] Override http request option.
|
|
342
|
-
* @throws {RequiredError}
|
|
343
|
-
*/
|
|
344
|
-
async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
|
|
345
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
|
|
346
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
347
|
-
},
|
|
348
234
|
/**
|
|
349
235
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
350
236
|
* @summary Retrieve the booking entry
|
|
@@ -376,18 +262,6 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
376
262
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
377
263
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
378
264
|
},
|
|
379
|
-
/**
|
|
380
|
-
* 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\"
|
|
381
|
-
* @summary Create the booking entry from a source entity
|
|
382
|
-
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
383
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
384
|
-
* @param {*} [options] Override http request option.
|
|
385
|
-
* @throws {RequiredError}
|
|
386
|
-
*/
|
|
387
|
-
async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
|
|
388
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
|
|
389
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
390
|
-
},
|
|
391
265
|
}
|
|
392
266
|
};
|
|
393
267
|
|
|
@@ -409,17 +283,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
409
283
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
|
|
410
284
|
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
411
285
|
},
|
|
412
|
-
/**
|
|
413
|
-
* 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\"
|
|
414
|
-
* @summary Update the create or correct opening balance
|
|
415
|
-
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
416
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
417
|
-
* @param {*} [options] Override http request option.
|
|
418
|
-
* @throws {RequiredError}
|
|
419
|
-
*/
|
|
420
|
-
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
|
|
421
|
-
return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
|
|
422
|
-
},
|
|
423
286
|
/**
|
|
424
287
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
425
288
|
* @summary Retrieve the booking entry
|
|
@@ -449,17 +312,6 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
449
312
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
|
|
450
313
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
451
314
|
},
|
|
452
|
-
/**
|
|
453
|
-
* 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\"
|
|
454
|
-
* @summary Create the booking entry from a source entity
|
|
455
|
-
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
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
|
-
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
|
|
461
|
-
return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
462
|
-
},
|
|
463
315
|
};
|
|
464
316
|
};
|
|
465
317
|
|
|
@@ -484,27 +336,6 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
484
336
|
readonly authorization?: string
|
|
485
337
|
}
|
|
486
338
|
|
|
487
|
-
/**
|
|
488
|
-
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
489
|
-
* @export
|
|
490
|
-
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
491
|
-
*/
|
|
492
|
-
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
493
|
-
/**
|
|
494
|
-
*
|
|
495
|
-
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
496
|
-
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
497
|
-
*/
|
|
498
|
-
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
|
|
499
|
-
|
|
500
|
-
/**
|
|
501
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
502
|
-
* @type {string}
|
|
503
|
-
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
504
|
-
*/
|
|
505
|
-
readonly authorization?: string
|
|
506
|
-
}
|
|
507
|
-
|
|
508
339
|
/**
|
|
509
340
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
510
341
|
* @export
|
|
@@ -596,27 +427,6 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
596
427
|
readonly filters?: string
|
|
597
428
|
}
|
|
598
429
|
|
|
599
|
-
/**
|
|
600
|
-
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
601
|
-
* @export
|
|
602
|
-
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
603
|
-
*/
|
|
604
|
-
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @type {PostFinancialEventRequestDto}
|
|
608
|
-
* @memberof BookingEntriesApiPostFinancialEvent
|
|
609
|
-
*/
|
|
610
|
-
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
|
|
611
|
-
|
|
612
|
-
/**
|
|
613
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
614
|
-
* @type {string}
|
|
615
|
-
* @memberof BookingEntriesApiPostFinancialEvent
|
|
616
|
-
*/
|
|
617
|
-
readonly authorization?: string
|
|
618
|
-
}
|
|
619
|
-
|
|
620
430
|
/**
|
|
621
431
|
* BookingEntriesApi - object-oriented interface
|
|
622
432
|
* @export
|
|
@@ -636,18 +446,6 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
636
446
|
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
637
447
|
}
|
|
638
448
|
|
|
639
|
-
/**
|
|
640
|
-
* 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\"
|
|
641
|
-
* @summary Update the create or correct opening balance
|
|
642
|
-
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
643
|
-
* @param {*} [options] Override http request option.
|
|
644
|
-
* @throws {RequiredError}
|
|
645
|
-
* @memberof BookingEntriesApi
|
|
646
|
-
*/
|
|
647
|
-
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
648
|
-
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
649
|
-
}
|
|
650
|
-
|
|
651
449
|
/**
|
|
652
450
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
653
451
|
* @summary Retrieve the booking entry
|
|
@@ -671,16 +469,4 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
671
469
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
672
470
|
return BookingEntriesApiFp(this.configuration).listBookingEntries(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
673
471
|
}
|
|
674
|
-
|
|
675
|
-
/**
|
|
676
|
-
* 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\"
|
|
677
|
-
* @summary Create the booking entry from a source entity
|
|
678
|
-
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
679
|
-
* @param {*} [options] Override http request option.
|
|
680
|
-
* @throws {RequiredError}
|
|
681
|
-
* @memberof BookingEntriesApi
|
|
682
|
-
*/
|
|
683
|
-
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
684
|
-
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
685
|
-
}
|
|
686
472
|
}
|