@emilgroup/accounting-sdk-node 1.32.1-beta.7 → 1.32.1-beta.71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +35 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +120 -14
- package/api/booking-entries-api.ts +234 -10
- package/api/commission-account-mappings-api.ts +1211 -0
- package/api/financial-accounts-api.ts +150 -20
- package/api/financial-transactions-api.ts +8 -4
- package/api/number-ranges-api.ts +16 -8
- package/api/personal-accounts-api.ts +16 -8
- package/api/product-account-mappings-api.ts +1719 -0
- package/api.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +139 -28
- package/dist/api/booking-entries-api.d.ts +121 -7
- package/dist/api/booking-entries-api.js +211 -14
- package/dist/api/commission-account-mappings-api.d.ts +685 -0
- package/dist/api/commission-account-mappings-api.js +1026 -0
- package/dist/api/financial-accounts-api.d.ts +82 -16
- package/dist/api/financial-accounts-api.js +134 -24
- package/dist/api/financial-transactions-api.d.ts +2 -2
- package/dist/api/financial-transactions-api.js +8 -6
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/number-ranges-api.d.ts +4 -4
- package/dist/api/number-ranges-api.js +22 -14
- package/dist/api/personal-accounts-api.d.ts +4 -4
- package/dist/api/personal-accounts-api.js +22 -14
- package/dist/api/product-account-mappings-api.d.ts +972 -0
- package/dist/api/product-account-mappings-api.js +1451 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.d.ts +8 -0
- package/dist/models/accounting-config-data-dto-default-account-mappings.js +3 -1
- package/dist/models/booking-entry-class.d.ts +21 -0
- package/dist/models/booking-entry-class.js +9 -1
- package/dist/models/commission-account-mapping-class.d.ts +49 -0
- package/dist/models/commission-account-mapping-class.js +15 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.d.ts +44 -0
- package/dist/models/commission-agreement-account-mapping-detail-class.js +15 -0
- package/dist/models/commission-agreement-partner-class.d.ts +30 -0
- package/dist/models/commission-agreement-partner-class.js +15 -0
- package/dist/models/commission-agreement-with-account-mapping-class.d.ts +43 -0
- package/dist/models/commission-agreement-with-account-mapping-class.js +15 -0
- package/dist/models/commission-type-account-mapping-class.d.ts +31 -0
- package/dist/models/commission-type-account-mapping-class.js +15 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +21 -0
- package/dist/models/create-booking-entry-request-dto.js +9 -0
- package/dist/models/create-financial-account-request-dto.d.ts +8 -0
- package/dist/models/create-financial-account-request-dto.js +3 -1
- package/dist/models/create-or-correct-opening-balance-dto.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-dto.js +15 -0
- package/dist/models/create-or-correct-opening-balance-response-class.d.ts +25 -0
- package/dist/models/create-or-correct-opening-balance-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +24 -1
- package/dist/models/financial-account-class.js +5 -1
- package/dist/models/financial-transaction-class.d.ts +6 -0
- package/dist/models/financial-transaction-data-dto.d.ts +7 -0
- package/dist/models/financial-transaction-data-dto.js +1 -0
- package/dist/models/get-activation-snapshot-response-class.d.ts +25 -0
- package/dist/models/get-activation-snapshot-response-class.js +15 -0
- package/dist/models/index.d.ts +33 -0
- package/dist/models/index.js +33 -0
- package/dist/models/list-commission-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-agreements-with-account-mappings-response-class.js +15 -0
- package/dist/models/list-commission-type-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-commission-type-account-mappings-response-class.js +15 -0
- package/dist/models/list-product-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-product-account-mappings-response-class.js +15 -0
- package/dist/models/list-products-with-account-mappings-response-class.d.ts +43 -0
- package/dist/models/list-products-with-account-mappings-response-class.js +15 -0
- package/dist/models/opening-balance-item-dto.d.ts +41 -0
- package/dist/models/opening-balance-item-dto.js +20 -0
- package/dist/models/post-financial-event-request-dto.d.ts +45 -0
- package/dist/models/post-financial-event-request-dto.js +24 -0
- package/dist/models/post-financial-event-response-class.d.ts +25 -0
- package/dist/models/post-financial-event-response-class.js +15 -0
- package/dist/models/premium-item-account-mapping-class.d.ts +37 -0
- package/dist/models/premium-item-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-class.d.ts +61 -0
- package/dist/models/product-account-mapping-class.js +15 -0
- package/dist/models/product-account-mapping-detail-class.d.ts +56 -0
- package/dist/models/product-account-mapping-detail-class.js +15 -0
- package/dist/models/product-risk-carrier-class.d.ts +42 -0
- package/dist/models/product-risk-carrier-class.js +15 -0
- package/dist/models/product-version-account-mapping-detail-class.d.ts +50 -0
- package/dist/models/product-version-account-mapping-detail-class.js +15 -0
- package/dist/models/product-version-with-account-mappings-class.d.ts +42 -0
- package/dist/models/product-version-with-account-mappings-class.js +15 -0
- package/dist/models/product-with-account-mappings-class.d.ts +49 -0
- package/dist/models/product-with-account-mappings-class.js +15 -0
- package/dist/models/put-premium-item-account-body-dto.d.ts +24 -0
- package/dist/models/put-premium-item-account-body-dto.js +15 -0
- package/dist/models/put-product-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-category-account-body-dto.js +15 -0
- package/dist/models/put-product-risk-carrier-body-dto.d.ts +24 -0
- package/dist/models/put-product-risk-carrier-body-dto.js +15 -0
- package/dist/models/put-product-version-category-account-body-dto.d.ts +24 -0
- package/dist/models/put-product-version-category-account-body-dto.js +15 -0
- package/dist/models/resolved-account-mapping-class.d.ts +31 -0
- package/dist/models/resolved-account-mapping-class.js +15 -0
- package/dist/models/resolved-commission-account-mapping-class.d.ts +37 -0
- package/dist/models/resolved-commission-account-mapping-class.js +21 -0
- package/dist/models/update-commission-agreement-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-agreement-account-body-dto.js +15 -0
- package/dist/models/update-commission-type-account-body-dto.d.ts +24 -0
- package/dist/models/update-commission-type-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-body-dto.d.ts +48 -0
- package/dist/models/update-financial-account-body-dto.js +15 -0
- package/dist/models/update-financial-account-response-class.d.ts +25 -0
- package/dist/models/update-financial-account-response-class.js +15 -0
- package/models/account-mapping-class.ts +3 -1
- package/models/accounting-config-class.ts +14 -0
- package/models/accounting-config-data-dto-default-account-mappings.ts +9 -1
- package/models/booking-entry-class.ts +22 -0
- package/models/commission-account-mapping-class.ts +55 -0
- package/models/commission-agreement-account-mapping-detail-class.ts +50 -0
- package/models/commission-agreement-partner-class.ts +36 -0
- package/models/commission-agreement-with-account-mapping-class.ts +49 -0
- package/models/commission-type-account-mapping-class.ts +37 -0
- package/models/create-booking-entry-request-dto.ts +24 -0
- package/models/create-financial-account-request-dto.ts +9 -1
- package/models/create-or-correct-opening-balance-dto.ts +31 -0
- package/models/create-or-correct-opening-balance-response-class.ts +31 -0
- package/models/financial-account-class.ts +25 -1
- package/models/financial-transaction-class.ts +6 -0
- package/models/financial-transaction-data-dto.ts +7 -0
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +33 -0
- package/models/list-commission-account-mappings-response-class.ts +49 -0
- package/models/list-commission-agreements-with-account-mappings-response-class.ts +49 -0
- package/models/list-commission-type-account-mappings-response-class.ts +49 -0
- package/models/list-product-account-mappings-response-class.ts +49 -0
- package/models/list-products-with-account-mappings-response-class.ts +49 -0
- package/models/opening-balance-item-dto.ts +50 -0
- package/models/post-financial-event-request-dto.ts +54 -0
- package/models/post-financial-event-response-class.ts +31 -0
- package/models/premium-item-account-mapping-class.ts +43 -0
- package/models/product-account-mapping-class.ts +67 -0
- package/models/product-account-mapping-detail-class.ts +62 -0
- package/models/product-risk-carrier-class.ts +48 -0
- package/models/product-version-account-mapping-detail-class.ts +56 -0
- package/models/product-version-with-account-mappings-class.ts +48 -0
- package/models/product-with-account-mappings-class.ts +55 -0
- package/models/put-premium-item-account-body-dto.ts +30 -0
- package/models/put-product-category-account-body-dto.ts +30 -0
- package/models/put-product-risk-carrier-body-dto.ts +30 -0
- package/models/put-product-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/resolved-commission-account-mapping-class.ts +46 -0
- package/models/update-commission-agreement-account-body-dto.ts +30 -0
- package/models/update-commission-type-account-body-dto.ts +30 -0
- package/models/update-financial-account-body-dto.ts +54 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +2 -2
|
@@ -25,9 +25,17 @@ 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
|
|
28
32
|
import { GetBookingEntryResponseClass } from '../models';
|
|
29
33
|
// @ts-ignore
|
|
30
34
|
import { ListBookingEntriesResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { PostFinancialEventRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { PostFinancialEventResponseClass } from '../models';
|
|
31
39
|
// URLSearchParams not necessarily used
|
|
32
40
|
// @ts-ignore
|
|
33
41
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -67,8 +75,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
67
75
|
// http bearer authentication required
|
|
68
76
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
69
77
|
|
|
70
|
-
|
|
71
|
-
|
|
78
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
79
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
80
|
+
if (authorizationValue) {
|
|
81
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
72
82
|
}
|
|
73
83
|
|
|
74
84
|
|
|
@@ -85,6 +95,55 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
85
95
|
options: localVarRequestOptions,
|
|
86
96
|
};
|
|
87
97
|
},
|
|
98
|
+
/**
|
|
99
|
+
* 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\"
|
|
100
|
+
* @summary Update the create or correct opening balance
|
|
101
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
102
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
107
|
+
// verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
|
|
108
|
+
assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
|
|
109
|
+
const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
|
|
110
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
111
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
112
|
+
let baseOptions;
|
|
113
|
+
let baseAccessToken;
|
|
114
|
+
if (configuration) {
|
|
115
|
+
baseOptions = configuration.baseOptions;
|
|
116
|
+
baseAccessToken = configuration.accessToken;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
120
|
+
const localVarHeaderParameter = {} as any;
|
|
121
|
+
const localVarQueryParameter = {} as any;
|
|
122
|
+
|
|
123
|
+
// authentication bearer required
|
|
124
|
+
// http bearer authentication required
|
|
125
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
126
|
+
|
|
127
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
128
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
129
|
+
if (authorizationValue) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
|
+
|
|
137
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
138
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
140
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
url: toPathString(localVarUrlObj),
|
|
144
|
+
options: localVarRequestOptions,
|
|
145
|
+
};
|
|
146
|
+
},
|
|
88
147
|
/**
|
|
89
148
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
90
149
|
* @summary Retrieve the booking entry
|
|
@@ -122,8 +181,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
122
181
|
localVarQueryParameter['expand'] = expand;
|
|
123
182
|
}
|
|
124
183
|
|
|
125
|
-
|
|
126
|
-
|
|
184
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
185
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
186
|
+
if (authorizationValue) {
|
|
187
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
188
|
}
|
|
128
189
|
|
|
129
190
|
|
|
@@ -138,7 +199,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
138
199
|
};
|
|
139
200
|
},
|
|
140
201
|
/**
|
|
141
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
202
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
142
203
|
* @summary List booking entries
|
|
143
204
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
144
205
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -198,8 +259,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
198
259
|
localVarQueryParameter['filters'] = filters;
|
|
199
260
|
}
|
|
200
261
|
|
|
201
|
-
|
|
202
|
-
|
|
262
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
263
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
264
|
+
if (authorizationValue) {
|
|
265
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
203
266
|
}
|
|
204
267
|
|
|
205
268
|
|
|
@@ -208,6 +271,55 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
208
271
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
209
272
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
210
273
|
|
|
274
|
+
return {
|
|
275
|
+
url: toPathString(localVarUrlObj),
|
|
276
|
+
options: localVarRequestOptions,
|
|
277
|
+
};
|
|
278
|
+
},
|
|
279
|
+
/**
|
|
280
|
+
* 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\"
|
|
281
|
+
* @summary Create the booking entry from a source entity
|
|
282
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
283
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
284
|
+
* @param {*} [options] Override http request option.
|
|
285
|
+
* @throws {RequiredError}
|
|
286
|
+
*/
|
|
287
|
+
postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
288
|
+
// verify required parameter 'postFinancialEventRequestDto' is not null or undefined
|
|
289
|
+
assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
|
|
290
|
+
const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
|
|
291
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
292
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
293
|
+
let baseOptions;
|
|
294
|
+
let baseAccessToken;
|
|
295
|
+
if (configuration) {
|
|
296
|
+
baseOptions = configuration.baseOptions;
|
|
297
|
+
baseAccessToken = configuration.accessToken;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
301
|
+
const localVarHeaderParameter = {} as any;
|
|
302
|
+
const localVarQueryParameter = {} as any;
|
|
303
|
+
|
|
304
|
+
// authentication bearer required
|
|
305
|
+
// http bearer authentication required
|
|
306
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
307
|
+
|
|
308
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
309
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
310
|
+
if (authorizationValue) {
|
|
311
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
317
|
+
|
|
318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
321
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
|
|
322
|
+
|
|
211
323
|
return {
|
|
212
324
|
url: toPathString(localVarUrlObj),
|
|
213
325
|
options: localVarRequestOptions,
|
|
@@ -235,6 +347,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
235
347
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
|
|
236
348
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
237
349
|
},
|
|
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 {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
354
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
355
|
+
* @param {*} [options] Override http request option.
|
|
356
|
+
* @throws {RequiredError}
|
|
357
|
+
*/
|
|
358
|
+
async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
|
|
359
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
|
|
360
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
361
|
+
},
|
|
238
362
|
/**
|
|
239
363
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
240
364
|
* @summary Retrieve the booking entry
|
|
@@ -249,7 +373,7 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
249
373
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
250
374
|
},
|
|
251
375
|
/**
|
|
252
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
376
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
253
377
|
* @summary List booking entries
|
|
254
378
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
255
379
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -266,6 +390,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
266
390
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
267
391
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
392
|
},
|
|
393
|
+
/**
|
|
394
|
+
* 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\"
|
|
395
|
+
* @summary Create the booking entry from a source entity
|
|
396
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
397
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
|
|
402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
|
|
403
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
|
+
},
|
|
269
405
|
}
|
|
270
406
|
};
|
|
271
407
|
|
|
@@ -287,6 +423,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
287
423
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
|
|
288
424
|
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
289
425
|
},
|
|
426
|
+
/**
|
|
427
|
+
* 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\"
|
|
428
|
+
* @summary Update the create or correct opening balance
|
|
429
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
430
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
431
|
+
* @param {*} [options] Override http request option.
|
|
432
|
+
* @throws {RequiredError}
|
|
433
|
+
*/
|
|
434
|
+
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
|
|
435
|
+
return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
|
|
436
|
+
},
|
|
290
437
|
/**
|
|
291
438
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
292
439
|
* @summary Retrieve the booking entry
|
|
@@ -300,7 +447,7 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
300
447
|
return localVarFp.getBookingEntry(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
301
448
|
},
|
|
302
449
|
/**
|
|
303
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
450
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
304
451
|
* @summary List booking entries
|
|
305
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
306
453
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -316,6 +463,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
316
463
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
|
|
317
464
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
318
465
|
},
|
|
466
|
+
/**
|
|
467
|
+
* 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\"
|
|
468
|
+
* @summary Create the booking entry from a source entity
|
|
469
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
470
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
471
|
+
* @param {*} [options] Override http request option.
|
|
472
|
+
* @throws {RequiredError}
|
|
473
|
+
*/
|
|
474
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
|
|
475
|
+
return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
476
|
+
},
|
|
319
477
|
};
|
|
320
478
|
};
|
|
321
479
|
|
|
@@ -340,6 +498,27 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
340
498
|
readonly authorization?: string
|
|
341
499
|
}
|
|
342
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
503
|
+
* @export
|
|
504
|
+
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
505
|
+
*/
|
|
506
|
+
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
507
|
+
/**
|
|
508
|
+
*
|
|
509
|
+
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
510
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
511
|
+
*/
|
|
512
|
+
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
|
|
513
|
+
|
|
514
|
+
/**
|
|
515
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
516
|
+
* @type {string}
|
|
517
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
518
|
+
*/
|
|
519
|
+
readonly authorization?: string
|
|
520
|
+
}
|
|
521
|
+
|
|
343
522
|
/**
|
|
344
523
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
345
524
|
* @export
|
|
@@ -431,6 +610,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
431
610
|
readonly filters?: string
|
|
432
611
|
}
|
|
433
612
|
|
|
613
|
+
/**
|
|
614
|
+
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
615
|
+
* @export
|
|
616
|
+
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
617
|
+
*/
|
|
618
|
+
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
619
|
+
/**
|
|
620
|
+
*
|
|
621
|
+
* @type {PostFinancialEventRequestDto}
|
|
622
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
623
|
+
*/
|
|
624
|
+
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
628
|
+
* @type {string}
|
|
629
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
630
|
+
*/
|
|
631
|
+
readonly authorization?: string
|
|
632
|
+
}
|
|
633
|
+
|
|
434
634
|
/**
|
|
435
635
|
* BookingEntriesApi - object-oriented interface
|
|
436
636
|
* @export
|
|
@@ -450,6 +650,18 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
450
650
|
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
451
651
|
}
|
|
452
652
|
|
|
653
|
+
/**
|
|
654
|
+
* 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\"
|
|
655
|
+
* @summary Update the create or correct opening balance
|
|
656
|
+
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
657
|
+
* @param {*} [options] Override http request option.
|
|
658
|
+
* @throws {RequiredError}
|
|
659
|
+
* @memberof BookingEntriesApi
|
|
660
|
+
*/
|
|
661
|
+
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
662
|
+
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
663
|
+
}
|
|
664
|
+
|
|
453
665
|
/**
|
|
454
666
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
455
667
|
* @summary Retrieve the booking entry
|
|
@@ -463,7 +675,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
463
675
|
}
|
|
464
676
|
|
|
465
677
|
/**
|
|
466
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
678
|
+
* This endpoint gets booking entries. Without an explicit `order` they come back newest booking date first (`bookingDate:DESC`), with the entry id ascending as the tie-break for same-day bookings. **Required Permissions** \"accounting-management.entries.view\"
|
|
467
679
|
* @summary List booking entries
|
|
468
680
|
* @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
|
|
469
681
|
* @param {*} [options] Override http request option.
|
|
@@ -473,4 +685,16 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
473
685
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
474
686
|
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));
|
|
475
687
|
}
|
|
688
|
+
|
|
689
|
+
/**
|
|
690
|
+
* 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\"
|
|
691
|
+
* @summary Create the booking entry from a source entity
|
|
692
|
+
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
693
|
+
* @param {*} [options] Override http request option.
|
|
694
|
+
* @throws {RequiredError}
|
|
695
|
+
* @memberof BookingEntriesApi
|
|
696
|
+
*/
|
|
697
|
+
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
698
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
699
|
+
}
|
|
476
700
|
}
|