@emilgroup/accounting-sdk 1.34.1-beta.7 → 1.34.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 +1207 -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 +1715 -0
- package/api.ts +4 -0
- package/base.ts +174 -41
- package/common.ts +3 -2
- package/configuration.ts +20 -0
- package/dist/api/accounting-configs-api.d.ts +54 -7
- package/dist/api/accounting-configs-api.js +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 +1022 -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 +1447 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/base.d.ts +24 -0
- package/dist/base.js +178 -59
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/dist/configuration.d.ts +17 -0
- package/dist/configuration.js +2 -0
- package/dist/models/account-mapping-class.d.ts +2 -0
- package/dist/models/account-mapping-class.js +3 -1
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/accounting-config-data-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
|
/**
|
|
32
40
|
* BookingEntriesApi - axios parameter creator
|
|
33
41
|
* @export
|
|
@@ -63,8 +71,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
63
71
|
// http bearer authentication required
|
|
64
72
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
65
73
|
|
|
66
|
-
|
|
67
|
-
|
|
74
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
75
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
76
|
+
if (authorizationValue) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
68
78
|
}
|
|
69
79
|
|
|
70
80
|
|
|
@@ -81,6 +91,55 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
81
91
|
options: localVarRequestOptions,
|
|
82
92
|
};
|
|
83
93
|
},
|
|
94
|
+
/**
|
|
95
|
+
* 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\"
|
|
96
|
+
* @summary Update the create or correct opening balance
|
|
97
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
98
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
createOrCorrectOpeningBalance: async (createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
103
|
+
// verify required parameter 'createOrCorrectOpeningBalanceDto' is not null or undefined
|
|
104
|
+
assertParamExists('createOrCorrectOpeningBalance', 'createOrCorrectOpeningBalanceDto', createOrCorrectOpeningBalanceDto)
|
|
105
|
+
const localVarPath = `/accountingservice/v1/booking-entries/opening-balances`;
|
|
106
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
107
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
108
|
+
let baseOptions;
|
|
109
|
+
let baseAccessToken;
|
|
110
|
+
if (configuration) {
|
|
111
|
+
baseOptions = configuration.baseOptions;
|
|
112
|
+
baseAccessToken = configuration.accessToken;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
116
|
+
const localVarHeaderParameter = {} as any;
|
|
117
|
+
const localVarQueryParameter = {} as any;
|
|
118
|
+
|
|
119
|
+
// authentication bearer required
|
|
120
|
+
// http bearer authentication required
|
|
121
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
122
|
+
|
|
123
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
124
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
125
|
+
if (authorizationValue) {
|
|
126
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
132
|
+
|
|
133
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
134
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
135
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
136
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createOrCorrectOpeningBalanceDto, localVarRequestOptions, configuration)
|
|
137
|
+
|
|
138
|
+
return {
|
|
139
|
+
url: toPathString(localVarUrlObj),
|
|
140
|
+
options: localVarRequestOptions,
|
|
141
|
+
};
|
|
142
|
+
},
|
|
84
143
|
/**
|
|
85
144
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
86
145
|
* @summary Retrieve the booking entry
|
|
@@ -118,8 +177,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
118
177
|
localVarQueryParameter['expand'] = expand;
|
|
119
178
|
}
|
|
120
179
|
|
|
121
|
-
|
|
122
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
181
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
if (authorizationValue) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
123
184
|
}
|
|
124
185
|
|
|
125
186
|
|
|
@@ -134,7 +195,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
134
195
|
};
|
|
135
196
|
},
|
|
136
197
|
/**
|
|
137
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
198
|
+
* 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\"
|
|
138
199
|
* @summary List booking entries
|
|
139
200
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
140
201
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -194,8 +255,10 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
194
255
|
localVarQueryParameter['filters'] = filters;
|
|
195
256
|
}
|
|
196
257
|
|
|
197
|
-
|
|
198
|
-
|
|
258
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
259
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
260
|
+
if (authorizationValue) {
|
|
261
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
199
262
|
}
|
|
200
263
|
|
|
201
264
|
|
|
@@ -204,6 +267,55 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
204
267
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
205
268
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
206
269
|
|
|
270
|
+
return {
|
|
271
|
+
url: toPathString(localVarUrlObj),
|
|
272
|
+
options: localVarRequestOptions,
|
|
273
|
+
};
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* 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\"
|
|
277
|
+
* @summary Create the booking entry from a source entity
|
|
278
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
279
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
postFinancialEvent: async (postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
284
|
+
// verify required parameter 'postFinancialEventRequestDto' is not null or undefined
|
|
285
|
+
assertParamExists('postFinancialEvent', 'postFinancialEventRequestDto', postFinancialEventRequestDto)
|
|
286
|
+
const localVarPath = `/accountingservice/v1/booking-entries/post-financial-event`;
|
|
287
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
288
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
289
|
+
let baseOptions;
|
|
290
|
+
let baseAccessToken;
|
|
291
|
+
if (configuration) {
|
|
292
|
+
baseOptions = configuration.baseOptions;
|
|
293
|
+
baseAccessToken = configuration.accessToken;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
297
|
+
const localVarHeaderParameter = {} as any;
|
|
298
|
+
const localVarQueryParameter = {} as any;
|
|
299
|
+
|
|
300
|
+
// authentication bearer required
|
|
301
|
+
// http bearer authentication required
|
|
302
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
303
|
+
|
|
304
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
305
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
306
|
+
if (authorizationValue) {
|
|
307
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
313
|
+
|
|
314
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
317
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postFinancialEventRequestDto, localVarRequestOptions, configuration)
|
|
318
|
+
|
|
207
319
|
return {
|
|
208
320
|
url: toPathString(localVarUrlObj),
|
|
209
321
|
options: localVarRequestOptions,
|
|
@@ -231,6 +343,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
231
343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options);
|
|
232
344
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
233
345
|
},
|
|
346
|
+
/**
|
|
347
|
+
* 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\"
|
|
348
|
+
* @summary Update the create or correct opening balance
|
|
349
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
350
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
351
|
+
* @param {*} [options] Override http request option.
|
|
352
|
+
* @throws {RequiredError}
|
|
353
|
+
*/
|
|
354
|
+
async createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass>> {
|
|
355
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options);
|
|
356
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
357
|
+
},
|
|
234
358
|
/**
|
|
235
359
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
236
360
|
* @summary Retrieve the booking entry
|
|
@@ -245,7 +369,7 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
245
369
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
246
370
|
},
|
|
247
371
|
/**
|
|
248
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
372
|
+
* 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\"
|
|
249
373
|
* @summary List booking entries
|
|
250
374
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
251
375
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -262,6 +386,18 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
262
386
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
263
387
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
264
388
|
},
|
|
389
|
+
/**
|
|
390
|
+
* 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\"
|
|
391
|
+
* @summary Create the booking entry from a source entity
|
|
392
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
393
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
394
|
+
* @param {*} [options] Override http request option.
|
|
395
|
+
* @throws {RequiredError}
|
|
396
|
+
*/
|
|
397
|
+
async postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostFinancialEventResponseClass>> {
|
|
398
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postFinancialEvent(postFinancialEventRequestDto, authorization, options);
|
|
399
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
400
|
+
},
|
|
265
401
|
}
|
|
266
402
|
};
|
|
267
403
|
|
|
@@ -283,6 +419,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
283
419
|
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
|
|
284
420
|
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
285
421
|
},
|
|
422
|
+
/**
|
|
423
|
+
* 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\"
|
|
424
|
+
* @summary Update the create or correct opening balance
|
|
425
|
+
* @param {CreateOrCorrectOpeningBalanceDto} createOrCorrectOpeningBalanceDto
|
|
426
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
427
|
+
* @param {*} [options] Override http request option.
|
|
428
|
+
* @throws {RequiredError}
|
|
429
|
+
*/
|
|
430
|
+
createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto, authorization?: string, options?: any): AxiosPromise<CreateOrCorrectOpeningBalanceResponseClass> {
|
|
431
|
+
return localVarFp.createOrCorrectOpeningBalance(createOrCorrectOpeningBalanceDto, authorization, options).then((request) => request(axios, basePath));
|
|
432
|
+
},
|
|
286
433
|
/**
|
|
287
434
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
288
435
|
* @summary Retrieve the booking entry
|
|
@@ -296,7 +443,7 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
296
443
|
return localVarFp.getBookingEntry(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
297
444
|
},
|
|
298
445
|
/**
|
|
299
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
446
|
+
* 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\"
|
|
300
447
|
* @summary List booking entries
|
|
301
448
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
302
449
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
@@ -312,6 +459,17 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
312
459
|
listBookingEntries(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingEntriesResponseClass> {
|
|
313
460
|
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
314
461
|
},
|
|
462
|
+
/**
|
|
463
|
+
* 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\"
|
|
464
|
+
* @summary Create the booking entry from a source entity
|
|
465
|
+
* @param {PostFinancialEventRequestDto} postFinancialEventRequestDto
|
|
466
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
postFinancialEvent(postFinancialEventRequestDto: PostFinancialEventRequestDto, authorization?: string, options?: any): AxiosPromise<PostFinancialEventResponseClass> {
|
|
471
|
+
return localVarFp.postFinancialEvent(postFinancialEventRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
472
|
+
},
|
|
315
473
|
};
|
|
316
474
|
};
|
|
317
475
|
|
|
@@ -336,6 +494,27 @@ export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
|
336
494
|
readonly authorization?: string
|
|
337
495
|
}
|
|
338
496
|
|
|
497
|
+
/**
|
|
498
|
+
* Request parameters for createOrCorrectOpeningBalance operation in BookingEntriesApi.
|
|
499
|
+
* @export
|
|
500
|
+
* @interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest
|
|
501
|
+
*/
|
|
502
|
+
export interface BookingEntriesApiCreateOrCorrectOpeningBalanceRequest {
|
|
503
|
+
/**
|
|
504
|
+
*
|
|
505
|
+
* @type {CreateOrCorrectOpeningBalanceDto}
|
|
506
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
507
|
+
*/
|
|
508
|
+
readonly createOrCorrectOpeningBalanceDto: CreateOrCorrectOpeningBalanceDto
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof BookingEntriesApiCreateOrCorrectOpeningBalance
|
|
514
|
+
*/
|
|
515
|
+
readonly authorization?: string
|
|
516
|
+
}
|
|
517
|
+
|
|
339
518
|
/**
|
|
340
519
|
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
341
520
|
* @export
|
|
@@ -427,6 +606,27 @@ export interface BookingEntriesApiListBookingEntriesRequest {
|
|
|
427
606
|
readonly filters?: string
|
|
428
607
|
}
|
|
429
608
|
|
|
609
|
+
/**
|
|
610
|
+
* Request parameters for postFinancialEvent operation in BookingEntriesApi.
|
|
611
|
+
* @export
|
|
612
|
+
* @interface BookingEntriesApiPostFinancialEventRequest
|
|
613
|
+
*/
|
|
614
|
+
export interface BookingEntriesApiPostFinancialEventRequest {
|
|
615
|
+
/**
|
|
616
|
+
*
|
|
617
|
+
* @type {PostFinancialEventRequestDto}
|
|
618
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
619
|
+
*/
|
|
620
|
+
readonly postFinancialEventRequestDto: PostFinancialEventRequestDto
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
624
|
+
* @type {string}
|
|
625
|
+
* @memberof BookingEntriesApiPostFinancialEvent
|
|
626
|
+
*/
|
|
627
|
+
readonly authorization?: string
|
|
628
|
+
}
|
|
629
|
+
|
|
430
630
|
/**
|
|
431
631
|
* BookingEntriesApi - object-oriented interface
|
|
432
632
|
* @export
|
|
@@ -446,6 +646,18 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
446
646
|
return BookingEntriesApiFp(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
447
647
|
}
|
|
448
648
|
|
|
649
|
+
/**
|
|
650
|
+
* 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\"
|
|
651
|
+
* @summary Update the create or correct opening balance
|
|
652
|
+
* @param {BookingEntriesApiCreateOrCorrectOpeningBalanceRequest} requestParameters Request parameters.
|
|
653
|
+
* @param {*} [options] Override http request option.
|
|
654
|
+
* @throws {RequiredError}
|
|
655
|
+
* @memberof BookingEntriesApi
|
|
656
|
+
*/
|
|
657
|
+
public createOrCorrectOpeningBalance(requestParameters: BookingEntriesApiCreateOrCorrectOpeningBalanceRequest, options?: AxiosRequestConfig) {
|
|
658
|
+
return BookingEntriesApiFp(this.configuration).createOrCorrectOpeningBalance(requestParameters.createOrCorrectOpeningBalanceDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
659
|
+
}
|
|
660
|
+
|
|
449
661
|
/**
|
|
450
662
|
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.entries.view\"
|
|
451
663
|
* @summary Retrieve the booking entry
|
|
@@ -459,7 +671,7 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
459
671
|
}
|
|
460
672
|
|
|
461
673
|
/**
|
|
462
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.entries.view\"
|
|
674
|
+
* 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\"
|
|
463
675
|
* @summary List booking entries
|
|
464
676
|
* @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
|
|
465
677
|
* @param {*} [options] Override http request option.
|
|
@@ -469,4 +681,16 @@ export class BookingEntriesApi extends BaseAPI {
|
|
|
469
681
|
public listBookingEntries(requestParameters: BookingEntriesApiListBookingEntriesRequest = {}, options?: AxiosRequestConfig) {
|
|
470
682
|
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));
|
|
471
683
|
}
|
|
684
|
+
|
|
685
|
+
/**
|
|
686
|
+
* 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\"
|
|
687
|
+
* @summary Create the booking entry from a source entity
|
|
688
|
+
* @param {BookingEntriesApiPostFinancialEventRequest} requestParameters Request parameters.
|
|
689
|
+
* @param {*} [options] Override http request option.
|
|
690
|
+
* @throws {RequiredError}
|
|
691
|
+
* @memberof BookingEntriesApi
|
|
692
|
+
*/
|
|
693
|
+
public postFinancialEvent(requestParameters: BookingEntriesApiPostFinancialEventRequest, options?: AxiosRequestConfig) {
|
|
694
|
+
return BookingEntriesApiFp(this.configuration).postFinancialEvent(requestParameters.postFinancialEventRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
695
|
+
}
|
|
472
696
|
}
|