@emilgroup/accounting-sdk 1.34.1-beta.2 → 1.34.1-beta.21
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 +16 -0
- package/README.md +2 -2
- package/api/accounting-configs-api.ts +97 -7
- package/api/financial-accounts-api.ts +120 -0
- package/api/product-account-mappings-api.ts +1470 -0
- package/api.ts +2 -0
- package/dist/api/accounting-configs-api.d.ts +47 -0
- package/dist/api/accounting-configs-api.js +94 -7
- package/dist/api/financial-accounts-api.d.ts +66 -0
- package/dist/api/financial-accounts-api.js +99 -0
- package/dist/api/product-account-mappings-api.d.ts +851 -0
- package/dist/api/product-account-mappings-api.js +1224 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/accounting-config-class.d.ts +11 -0
- package/dist/models/accounting-config-class.js +5 -0
- package/dist/models/create-financial-account-request-dto.d.ts +6 -0
- package/dist/models/financial-account-class.d.ts +18 -1
- package/dist/models/financial-account-class.js +5 -1
- 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 +15 -0
- package/dist/models/index.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/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 +50 -0
- package/dist/models/product-account-mapping-detail-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-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/update-financial-account-body-dto.d.ts +42 -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/accounting-config-class.ts +14 -0
- package/models/create-financial-account-request-dto.ts +6 -0
- package/models/financial-account-class.ts +19 -1
- package/models/get-activation-snapshot-response-class.ts +31 -0
- package/models/index.ts +15 -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/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 +56 -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-version-category-account-body-dto.ts +30 -0
- package/models/resolved-account-mapping-class.ts +37 -0
- package/models/update-financial-account-body-dto.ts +48 -0
- package/models/update-financial-account-response-class.ts +31 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { FinancialTransactionsApi } from './api';
|
|
|
27
27
|
import { HealthApi } from './api';
|
|
28
28
|
import { NumberRangesApi } from './api';
|
|
29
29
|
import { PersonalAccountsApi } from './api';
|
|
30
|
+
import { ProductAccountMappingsApi } from './api';
|
|
30
31
|
|
|
31
32
|
|
|
32
33
|
export * from './api/accounting-configs-api';
|
|
@@ -36,4 +37,5 @@ export * from './api/financial-transactions-api';
|
|
|
36
37
|
export * from './api/health-api';
|
|
37
38
|
export * from './api/number-ranges-api';
|
|
38
39
|
export * from './api/personal-accounts-api';
|
|
40
|
+
export * from './api/product-account-mappings-api';
|
|
39
41
|
|
|
@@ -16,6 +16,7 @@ import { CreateAndEnableSubledgerRequestDto } from '../models';
|
|
|
16
16
|
import { CreateAndEnableSubledgerResponseClass } from '../models';
|
|
17
17
|
import { ExportAccountingConfigResponseClass } from '../models';
|
|
18
18
|
import { GetAccountingCategoriesResponseClass } from '../models';
|
|
19
|
+
import { GetActivationSnapshotResponseClass } from '../models';
|
|
19
20
|
import { ValidateAccountingConfigRequestDto } from '../models';
|
|
20
21
|
import { ValidateAccountingConfigResponseClass } from '../models';
|
|
21
22
|
/**
|
|
@@ -57,6 +58,14 @@ export declare const AccountingConfigsApiAxiosParamCreator: (configuration?: Con
|
|
|
57
58
|
* @throws {RequiredError}
|
|
58
59
|
*/
|
|
59
60
|
getAccountingCategories: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
|
+
/**
|
|
62
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
63
|
+
* @summary Retrieve the get activation snapshot
|
|
64
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
65
|
+
* @param {*} [options] Override http request option.
|
|
66
|
+
* @throws {RequiredError}
|
|
67
|
+
*/
|
|
68
|
+
getActivationSnapshot: (authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
69
|
/**
|
|
61
70
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
62
71
|
* @summary Delete the reset subledger
|
|
@@ -123,6 +132,14 @@ export declare const AccountingConfigsApiFp: (configuration?: Configuration) =>
|
|
|
123
132
|
* @throws {RequiredError}
|
|
124
133
|
*/
|
|
125
134
|
getAccountingCategories(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAccountingCategoriesResponseClass>>;
|
|
135
|
+
/**
|
|
136
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
137
|
+
* @summary Retrieve the get activation snapshot
|
|
138
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
139
|
+
* @param {*} [options] Override http request option.
|
|
140
|
+
* @throws {RequiredError}
|
|
141
|
+
*/
|
|
142
|
+
getActivationSnapshot(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetActivationSnapshotResponseClass>>;
|
|
126
143
|
/**
|
|
127
144
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
128
145
|
* @summary Delete the reset subledger
|
|
@@ -189,6 +206,14 @@ export declare const AccountingConfigsApiFactory: (configuration?: Configuration
|
|
|
189
206
|
* @throws {RequiredError}
|
|
190
207
|
*/
|
|
191
208
|
getAccountingCategories(authorization?: string, options?: any): AxiosPromise<GetAccountingCategoriesResponseClass>;
|
|
209
|
+
/**
|
|
210
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
211
|
+
* @summary Retrieve the get activation snapshot
|
|
212
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
213
|
+
* @param {*} [options] Override http request option.
|
|
214
|
+
* @throws {RequiredError}
|
|
215
|
+
*/
|
|
216
|
+
getActivationSnapshot(authorization?: string, options?: any): AxiosPromise<GetActivationSnapshotResponseClass>;
|
|
192
217
|
/**
|
|
193
218
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
194
219
|
* @summary Delete the reset subledger
|
|
@@ -280,6 +305,19 @@ export interface AccountingConfigsApiGetAccountingCategoriesRequest {
|
|
|
280
305
|
*/
|
|
281
306
|
readonly authorization?: string;
|
|
282
307
|
}
|
|
308
|
+
/**
|
|
309
|
+
* Request parameters for getActivationSnapshot operation in AccountingConfigsApi.
|
|
310
|
+
* @export
|
|
311
|
+
* @interface AccountingConfigsApiGetActivationSnapshotRequest
|
|
312
|
+
*/
|
|
313
|
+
export interface AccountingConfigsApiGetActivationSnapshotRequest {
|
|
314
|
+
/**
|
|
315
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
316
|
+
* @type {string}
|
|
317
|
+
* @memberof AccountingConfigsApiGetActivationSnapshot
|
|
318
|
+
*/
|
|
319
|
+
readonly authorization?: string;
|
|
320
|
+
}
|
|
283
321
|
/**
|
|
284
322
|
* Request parameters for resetSubledger operation in AccountingConfigsApi.
|
|
285
323
|
* @export
|
|
@@ -374,6 +412,15 @@ export declare class AccountingConfigsApi extends BaseAPI {
|
|
|
374
412
|
* @memberof AccountingConfigsApi
|
|
375
413
|
*/
|
|
376
414
|
getAccountingCategories(requestParameters?: AccountingConfigsApiGetAccountingCategoriesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetAccountingCategoriesResponseClass, any, {}>>;
|
|
415
|
+
/**
|
|
416
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
417
|
+
* @summary Retrieve the get activation snapshot
|
|
418
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
419
|
+
* @param {*} [options] Override http request option.
|
|
420
|
+
* @throws {RequiredError}
|
|
421
|
+
* @memberof AccountingConfigsApi
|
|
422
|
+
*/
|
|
423
|
+
getActivationSnapshot(requestParameters?: AccountingConfigsApiGetActivationSnapshotRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetActivationSnapshotResponseClass, any, {}>>;
|
|
377
424
|
/**
|
|
378
425
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
379
426
|
* @summary Delete the reset subledger
|
|
@@ -109,7 +109,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
109
109
|
case 0:
|
|
110
110
|
// verify required parameter 'createAndEnableSubledgerRequestDto' is not null or undefined
|
|
111
111
|
(0, common_1.assertParamExists)('createAndEnableSubledger', 'createAndEnableSubledgerRequestDto', createAndEnableSubledgerRequestDto);
|
|
112
|
-
localVarPath = "/accountingservice/v1/
|
|
112
|
+
localVarPath = "/accountingservice/v1/subledger";
|
|
113
113
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
114
114
|
if (configuration) {
|
|
115
115
|
baseOptions = configuration.baseOptions;
|
|
@@ -158,7 +158,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
158
158
|
case 0:
|
|
159
159
|
// verify required parameter 'file' is not null or undefined
|
|
160
160
|
(0, common_1.assertParamExists)('createAndEnableSubledgerFromFile', 'file', file);
|
|
161
|
-
localVarPath = "/accountingservice/v1/
|
|
161
|
+
localVarPath = "/accountingservice/v1/subledger/upload";
|
|
162
162
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
163
163
|
if (configuration) {
|
|
164
164
|
baseOptions = configuration.baseOptions;
|
|
@@ -207,7 +207,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
207
207
|
return __generator(this, function (_a) {
|
|
208
208
|
switch (_a.label) {
|
|
209
209
|
case 0:
|
|
210
|
-
localVarPath = "/accountingservice/v1/
|
|
210
|
+
localVarPath = "/accountingservice/v1/subledger/config/export";
|
|
211
211
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
212
212
|
if (configuration) {
|
|
213
213
|
baseOptions = configuration.baseOptions;
|
|
@@ -251,7 +251,51 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
251
251
|
return __generator(this, function (_a) {
|
|
252
252
|
switch (_a.label) {
|
|
253
253
|
case 0:
|
|
254
|
-
localVarPath = "/accountingservice/v1/
|
|
254
|
+
localVarPath = "/accountingservice/v1/subledger/categories";
|
|
255
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
|
+
if (configuration) {
|
|
257
|
+
baseOptions = configuration.baseOptions;
|
|
258
|
+
baseAccessToken = configuration.accessToken;
|
|
259
|
+
}
|
|
260
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
261
|
+
localVarHeaderParameter = {};
|
|
262
|
+
localVarQueryParameter = {};
|
|
263
|
+
// authentication bearer required
|
|
264
|
+
// http bearer authentication required
|
|
265
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
266
|
+
case 1:
|
|
267
|
+
// authentication bearer required
|
|
268
|
+
// http bearer authentication required
|
|
269
|
+
_a.sent();
|
|
270
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
271
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
272
|
+
}
|
|
273
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
274
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
275
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
276
|
+
return [2 /*return*/, {
|
|
277
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
278
|
+
options: localVarRequestOptions,
|
|
279
|
+
}];
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
});
|
|
283
|
+
},
|
|
284
|
+
/**
|
|
285
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
286
|
+
* @summary Retrieve the get activation snapshot
|
|
287
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
288
|
+
* @param {*} [options] Override http request option.
|
|
289
|
+
* @throws {RequiredError}
|
|
290
|
+
*/
|
|
291
|
+
getActivationSnapshot: function (authorization, options) {
|
|
292
|
+
if (options === void 0) { options = {}; }
|
|
293
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
294
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
295
|
+
return __generator(this, function (_a) {
|
|
296
|
+
switch (_a.label) {
|
|
297
|
+
case 0:
|
|
298
|
+
localVarPath = "/accountingservice/v1/subledger/activation-snapshot";
|
|
255
299
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
256
300
|
if (configuration) {
|
|
257
301
|
baseOptions = configuration.baseOptions;
|
|
@@ -295,7 +339,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
295
339
|
return __generator(this, function (_a) {
|
|
296
340
|
switch (_a.label) {
|
|
297
341
|
case 0:
|
|
298
|
-
localVarPath = "/accountingservice/v1/
|
|
342
|
+
localVarPath = "/accountingservice/v1/subledger/reset";
|
|
299
343
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
300
344
|
if (configuration) {
|
|
301
345
|
baseOptions = configuration.baseOptions;
|
|
@@ -342,7 +386,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
342
386
|
case 0:
|
|
343
387
|
// verify required parameter 'validateAccountingConfigRequestDto' is not null or undefined
|
|
344
388
|
(0, common_1.assertParamExists)('validateAccountingConfig', 'validateAccountingConfigRequestDto', validateAccountingConfigRequestDto);
|
|
345
|
-
localVarPath = "/accountingservice/v1/
|
|
389
|
+
localVarPath = "/accountingservice/v1/subledger/config/validate";
|
|
346
390
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
347
391
|
if (configuration) {
|
|
348
392
|
baseOptions = configuration.baseOptions;
|
|
@@ -391,7 +435,7 @@ var AccountingConfigsApiAxiosParamCreator = function (configuration) {
|
|
|
391
435
|
case 0:
|
|
392
436
|
// verify required parameter 'file' is not null or undefined
|
|
393
437
|
(0, common_1.assertParamExists)('validateAccountingConfigFromFile', 'file', file);
|
|
394
|
-
localVarPath = "/accountingservice/v1/
|
|
438
|
+
localVarPath = "/accountingservice/v1/subledger/config/validate/upload";
|
|
395
439
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
396
440
|
if (configuration) {
|
|
397
441
|
baseOptions = configuration.baseOptions;
|
|
@@ -518,6 +562,26 @@ var AccountingConfigsApiFp = function (configuration) {
|
|
|
518
562
|
});
|
|
519
563
|
});
|
|
520
564
|
},
|
|
565
|
+
/**
|
|
566
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
567
|
+
* @summary Retrieve the get activation snapshot
|
|
568
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
569
|
+
* @param {*} [options] Override http request option.
|
|
570
|
+
* @throws {RequiredError}
|
|
571
|
+
*/
|
|
572
|
+
getActivationSnapshot: function (authorization, options) {
|
|
573
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
574
|
+
var localVarAxiosArgs;
|
|
575
|
+
return __generator(this, function (_a) {
|
|
576
|
+
switch (_a.label) {
|
|
577
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getActivationSnapshot(authorization, options)];
|
|
578
|
+
case 1:
|
|
579
|
+
localVarAxiosArgs = _a.sent();
|
|
580
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
581
|
+
}
|
|
582
|
+
});
|
|
583
|
+
});
|
|
584
|
+
},
|
|
521
585
|
/**
|
|
522
586
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
523
587
|
* @summary Delete the reset subledger
|
|
@@ -632,6 +696,16 @@ var AccountingConfigsApiFactory = function (configuration, basePath, axios) {
|
|
|
632
696
|
getAccountingCategories: function (authorization, options) {
|
|
633
697
|
return localVarFp.getAccountingCategories(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
634
698
|
},
|
|
699
|
+
/**
|
|
700
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
701
|
+
* @summary Retrieve the get activation snapshot
|
|
702
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
703
|
+
* @param {*} [options] Override http request option.
|
|
704
|
+
* @throws {RequiredError}
|
|
705
|
+
*/
|
|
706
|
+
getActivationSnapshot: function (authorization, options) {
|
|
707
|
+
return localVarFp.getActivationSnapshot(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
708
|
+
},
|
|
635
709
|
/**
|
|
636
710
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
637
711
|
* @summary Delete the reset subledger
|
|
@@ -728,6 +802,19 @@ var AccountingConfigsApi = /** @class */ (function (_super) {
|
|
|
728
802
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
729
803
|
return (0, exports.AccountingConfigsApiFp)(this.configuration).getAccountingCategories(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
730
804
|
};
|
|
805
|
+
/**
|
|
806
|
+
* Returns the subledger configuration as it was when the subledger was enabled, along with who created it, when, and its enablement status. **Required Permissions** \"accounting-management.financial-accounts.view\"
|
|
807
|
+
* @summary Retrieve the get activation snapshot
|
|
808
|
+
* @param {AccountingConfigsApiGetActivationSnapshotRequest} requestParameters Request parameters.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
* @memberof AccountingConfigsApi
|
|
812
|
+
*/
|
|
813
|
+
AccountingConfigsApi.prototype.getActivationSnapshot = function (requestParameters, options) {
|
|
814
|
+
var _this = this;
|
|
815
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
816
|
+
return (0, exports.AccountingConfigsApiFp)(this.configuration).getActivationSnapshot(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
817
|
+
};
|
|
731
818
|
/**
|
|
732
819
|
* This will reset the subledger, and remove all config and accounts. **Required Permissions** \"accounting-management.financial-accounts.delete\"
|
|
733
820
|
* @summary Delete the reset subledger
|
|
@@ -16,6 +16,8 @@ import { CreateFinancialAccountRequestDto } from '../models';
|
|
|
16
16
|
import { CreateFinancialAccountResponseClass } from '../models';
|
|
17
17
|
import { GetFinancialAccountResponseClass } from '../models';
|
|
18
18
|
import { ListFinancialAccountsResponseClass } from '../models';
|
|
19
|
+
import { UpdateFinancialAccountBodyDto } from '../models';
|
|
20
|
+
import { UpdateFinancialAccountResponseClass } from '../models';
|
|
19
21
|
/**
|
|
20
22
|
* FinancialAccountsApi - axios parameter creator
|
|
21
23
|
* @export
|
|
@@ -64,6 +66,16 @@ export declare const FinancialAccountsApiAxiosParamCreator: (configuration?: Con
|
|
|
64
66
|
* @throws {RequiredError}
|
|
65
67
|
*/
|
|
66
68
|
listFinancialAccounts: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
69
|
+
/**
|
|
70
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
71
|
+
* @summary Update the Financial Account
|
|
72
|
+
* @param {string} code Unique identifier for the object.
|
|
73
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
74
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
updateFinancialAccount: (code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
67
79
|
};
|
|
68
80
|
/**
|
|
69
81
|
* FinancialAccountsApi - functional programming interface
|
|
@@ -113,6 +125,16 @@ export declare const FinancialAccountsApiFp: (configuration?: Configuration) =>
|
|
|
113
125
|
* @throws {RequiredError}
|
|
114
126
|
*/
|
|
115
127
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialAccountsResponseClass>>;
|
|
128
|
+
/**
|
|
129
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
130
|
+
* @summary Update the Financial Account
|
|
131
|
+
* @param {string} code Unique identifier for the object.
|
|
132
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
133
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateFinancialAccountResponseClass>>;
|
|
116
138
|
};
|
|
117
139
|
/**
|
|
118
140
|
* FinancialAccountsApi - factory interface
|
|
@@ -162,6 +184,16 @@ export declare const FinancialAccountsApiFactory: (configuration?: Configuration
|
|
|
162
184
|
* @throws {RequiredError}
|
|
163
185
|
*/
|
|
164
186
|
listFinancialAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialAccountsResponseClass>;
|
|
187
|
+
/**
|
|
188
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
189
|
+
* @summary Update the Financial Account
|
|
190
|
+
* @param {string} code Unique identifier for the object.
|
|
191
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
192
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
193
|
+
* @param {*} [options] Override http request option.
|
|
194
|
+
* @throws {RequiredError}
|
|
195
|
+
*/
|
|
196
|
+
updateFinancialAccount(code: string, updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto, authorization?: string, options?: any): AxiosPromise<UpdateFinancialAccountResponseClass>;
|
|
165
197
|
};
|
|
166
198
|
/**
|
|
167
199
|
* Request parameters for createFinancialAccount operation in FinancialAccountsApi.
|
|
@@ -281,6 +313,31 @@ export interface FinancialAccountsApiListFinancialAccountsRequest {
|
|
|
281
313
|
*/
|
|
282
314
|
readonly filters?: string;
|
|
283
315
|
}
|
|
316
|
+
/**
|
|
317
|
+
* Request parameters for updateFinancialAccount operation in FinancialAccountsApi.
|
|
318
|
+
* @export
|
|
319
|
+
* @interface FinancialAccountsApiUpdateFinancialAccountRequest
|
|
320
|
+
*/
|
|
321
|
+
export interface FinancialAccountsApiUpdateFinancialAccountRequest {
|
|
322
|
+
/**
|
|
323
|
+
* Unique identifier for the object.
|
|
324
|
+
* @type {string}
|
|
325
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
326
|
+
*/
|
|
327
|
+
readonly code: string;
|
|
328
|
+
/**
|
|
329
|
+
*
|
|
330
|
+
* @type {UpdateFinancialAccountBodyDto}
|
|
331
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
332
|
+
*/
|
|
333
|
+
readonly updateFinancialAccountBodyDto: UpdateFinancialAccountBodyDto;
|
|
334
|
+
/**
|
|
335
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
|
+
* @type {string}
|
|
337
|
+
* @memberof FinancialAccountsApiUpdateFinancialAccount
|
|
338
|
+
*/
|
|
339
|
+
readonly authorization?: string;
|
|
340
|
+
}
|
|
284
341
|
/**
|
|
285
342
|
* FinancialAccountsApi - object-oriented interface
|
|
286
343
|
* @export
|
|
@@ -324,4 +381,13 @@ export declare class FinancialAccountsApi extends BaseAPI {
|
|
|
324
381
|
* @memberof FinancialAccountsApi
|
|
325
382
|
*/
|
|
326
383
|
listFinancialAccounts(requestParameters?: FinancialAccountsApiListFinancialAccountsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListFinancialAccountsResponseClass, any, {}>>;
|
|
384
|
+
/**
|
|
385
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
386
|
+
* @summary Update the Financial Account
|
|
387
|
+
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
* @memberof FinancialAccountsApi
|
|
391
|
+
*/
|
|
392
|
+
updateFinancialAccount(requestParameters: FinancialAccountsApiUpdateFinancialAccountRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateFinancialAccountResponseClass, any, {}>>;
|
|
327
393
|
}
|
|
@@ -315,6 +315,59 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
315
315
|
});
|
|
316
316
|
});
|
|
317
317
|
},
|
|
318
|
+
/**
|
|
319
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
320
|
+
* @summary Update the Financial Account
|
|
321
|
+
* @param {string} code Unique identifier for the object.
|
|
322
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
323
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
328
|
+
if (options === void 0) { options = {}; }
|
|
329
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
330
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
331
|
+
return __generator(this, function (_a) {
|
|
332
|
+
switch (_a.label) {
|
|
333
|
+
case 0:
|
|
334
|
+
// verify required parameter 'code' is not null or undefined
|
|
335
|
+
(0, common_1.assertParamExists)('updateFinancialAccount', 'code', code);
|
|
336
|
+
// verify required parameter 'updateFinancialAccountBodyDto' is not null or undefined
|
|
337
|
+
(0, common_1.assertParamExists)('updateFinancialAccount', 'updateFinancialAccountBodyDto', updateFinancialAccountBodyDto);
|
|
338
|
+
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
339
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
340
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
+
if (configuration) {
|
|
342
|
+
baseOptions = configuration.baseOptions;
|
|
343
|
+
baseAccessToken = configuration.accessToken;
|
|
344
|
+
}
|
|
345
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
346
|
+
localVarHeaderParameter = {};
|
|
347
|
+
localVarQueryParameter = {};
|
|
348
|
+
// authentication bearer required
|
|
349
|
+
// http bearer authentication required
|
|
350
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
351
|
+
case 1:
|
|
352
|
+
// authentication bearer required
|
|
353
|
+
// http bearer authentication required
|
|
354
|
+
_a.sent();
|
|
355
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
356
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
357
|
+
}
|
|
358
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
359
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
360
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
361
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
362
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateFinancialAccountBodyDto, localVarRequestOptions, configuration);
|
|
363
|
+
return [2 /*return*/, {
|
|
364
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
365
|
+
options: localVarRequestOptions,
|
|
366
|
+
}];
|
|
367
|
+
}
|
|
368
|
+
});
|
|
369
|
+
});
|
|
370
|
+
},
|
|
318
371
|
};
|
|
319
372
|
};
|
|
320
373
|
exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
|
|
@@ -416,6 +469,28 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
416
469
|
});
|
|
417
470
|
});
|
|
418
471
|
},
|
|
472
|
+
/**
|
|
473
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
474
|
+
* @summary Update the Financial Account
|
|
475
|
+
* @param {string} code Unique identifier for the object.
|
|
476
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
477
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
478
|
+
* @param {*} [options] Override http request option.
|
|
479
|
+
* @throws {RequiredError}
|
|
480
|
+
*/
|
|
481
|
+
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
482
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
483
|
+
var localVarAxiosArgs;
|
|
484
|
+
return __generator(this, function (_a) {
|
|
485
|
+
switch (_a.label) {
|
|
486
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options)];
|
|
487
|
+
case 1:
|
|
488
|
+
localVarAxiosArgs = _a.sent();
|
|
489
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
490
|
+
}
|
|
491
|
+
});
|
|
492
|
+
});
|
|
493
|
+
},
|
|
419
494
|
};
|
|
420
495
|
};
|
|
421
496
|
exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
|
|
@@ -477,6 +552,18 @@ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
|
477
552
|
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
478
553
|
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
479
554
|
},
|
|
555
|
+
/**
|
|
556
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
557
|
+
* @summary Update the Financial Account
|
|
558
|
+
* @param {string} code Unique identifier for the object.
|
|
559
|
+
* @param {UpdateFinancialAccountBodyDto} updateFinancialAccountBodyDto
|
|
560
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
561
|
+
* @param {*} [options] Override http request option.
|
|
562
|
+
* @throws {RequiredError}
|
|
563
|
+
*/
|
|
564
|
+
updateFinancialAccount: function (code, updateFinancialAccountBodyDto, authorization, options) {
|
|
565
|
+
return localVarFp.updateFinancialAccount(code, updateFinancialAccountBodyDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
566
|
+
},
|
|
480
567
|
};
|
|
481
568
|
};
|
|
482
569
|
exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
|
|
@@ -540,6 +627,18 @@ var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
|
540
627
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
541
628
|
return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
542
629
|
};
|
|
630
|
+
/**
|
|
631
|
+
* Updates name and description (always editable), financialAccountNumber (only while the account is not locked), and isDefault (pool-category accounts only; cannot be unset). **Required Permissions** \"accounting-management.financial-accounts.update\"
|
|
632
|
+
* @summary Update the Financial Account
|
|
633
|
+
* @param {FinancialAccountsApiUpdateFinancialAccountRequest} requestParameters Request parameters.
|
|
634
|
+
* @param {*} [options] Override http request option.
|
|
635
|
+
* @throws {RequiredError}
|
|
636
|
+
* @memberof FinancialAccountsApi
|
|
637
|
+
*/
|
|
638
|
+
FinancialAccountsApi.prototype.updateFinancialAccount = function (requestParameters, options) {
|
|
639
|
+
var _this = this;
|
|
640
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).updateFinancialAccount(requestParameters.code, requestParameters.updateFinancialAccountBodyDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
641
|
+
};
|
|
543
642
|
return FinancialAccountsApi;
|
|
544
643
|
}(base_1.BaseAPI));
|
|
545
644
|
exports.FinancialAccountsApi = FinancialAccountsApi;
|