@emilgroup/accounting-sdk-node 1.19.0 → 1.20.1-beta.0
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 +29 -52
- package/README.md +2 -2
- package/api/{zip-codes-api.ts → booking-entries-api.ts} +195 -162
- package/api/financial-accounts-api.ts +577 -0
- package/api/financial-transactions-api.ts +369 -0
- package/api/health-api.ts +7 -7
- package/api/number-ranges-api.ts +577 -0
- package/api/personal-accounts-api.ts +577 -0
- package/api.ts +12 -14
- package/base.ts +2 -2
- package/common.ts +4 -4
- package/configuration.ts +2 -2
- package/dist/api/{zip-codes-api.d.ts → booking-entries-api.d.ts} +130 -111
- package/dist/api/{zip-codes-api.js → booking-entries-api.js} +144 -130
- package/dist/api/financial-accounts-api.d.ts +327 -0
- package/dist/api/{users-api.js → financial-accounts-api.js} +171 -134
- package/dist/api/financial-transactions-api.d.ts +215 -0
- package/dist/api/financial-transactions-api.js +364 -0
- package/dist/api/health-api.d.ts +6 -6
- package/dist/api/health-api.js +7 -7
- package/dist/api/number-ranges-api.d.ts +327 -0
- package/dist/api/{vbas-api.js → number-ranges-api.js} +156 -161
- package/dist/api/personal-accounts-api.d.ts +327 -0
- package/dist/api/{vbus-api.js → personal-accounts-api.js} +136 -234
- package/dist/api.d.ts +7 -8
- package/dist/api.js +7 -8
- package/dist/base.d.ts +2 -2
- package/dist/base.js +2 -2
- package/dist/common.d.ts +4 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/booking-entry-class.d.ts +123 -0
- package/dist/models/{create-vbuv-request-dto.js → booking-entry-class.js} +15 -6
- package/dist/models/create-booking-entry-request-dto.d.ts +61 -0
- package/dist/models/{address-class.js → create-booking-entry-request-dto.js} +2 -2
- package/dist/models/create-booking-entry-response-class.d.ts +25 -0
- package/dist/models/{create-user-response-class.js → create-booking-entry-response-class.js} +2 -2
- package/dist/models/create-financial-account-request-dto.d.ts +75 -0
- package/dist/models/create-financial-account-request-dto.js +24 -0
- package/dist/models/create-financial-account-response-class.d.ts +25 -0
- package/dist/models/{create-mailbox-request-dto.js → create-financial-account-response-class.js} +2 -2
- package/dist/models/create-number-range-request-dto.d.ts +53 -0
- package/dist/models/create-number-range-request-dto.js +26 -0
- package/dist/models/create-number-range-response-class.d.ts +25 -0
- package/dist/models/{create-vba-response-class.js → create-number-range-response-class.js} +2 -2
- package/dist/models/create-personal-account-request-dto.d.ts +60 -0
- package/dist/models/{create-vba-request-dto.js → create-personal-account-request-dto.js} +7 -6
- package/dist/models/create-personal-account-response-class.d.ts +25 -0
- package/dist/models/create-personal-account-response-class.js +15 -0
- package/dist/models/financial-account-class.d.ts +111 -0
- package/dist/models/{create-vbu-request-dto.js → financial-account-class.js} +10 -6
- package/dist/models/financial-transaction-class.d.ts +114 -0
- package/dist/models/financial-transaction-class.js +15 -0
- package/dist/models/financial-transaction-data-dto.d.ts +71 -0
- package/dist/models/financial-transaction-data-dto.js +25 -0
- package/dist/models/get-booking-entry-response-class.d.ts +25 -0
- package/dist/models/get-booking-entry-response-class.js +15 -0
- package/dist/models/get-financial-account-response-class.d.ts +25 -0
- package/dist/models/get-financial-account-response-class.js +15 -0
- package/dist/models/get-financial-transaction-response-class.d.ts +25 -0
- package/dist/models/get-financial-transaction-response-class.js +15 -0
- package/dist/models/get-number-range-response-class.d.ts +25 -0
- package/dist/models/get-number-range-response-class.js +15 -0
- package/dist/models/get-personal-account-response-class.d.ts +25 -0
- package/dist/models/get-personal-account-response-class.js +15 -0
- package/dist/models/index.d.ts +24 -46
- package/dist/models/index.js +24 -46
- package/dist/models/inline-response200.d.ts +2 -2
- package/dist/models/inline-response200.js +2 -2
- package/dist/models/inline-response503.d.ts +2 -2
- package/dist/models/inline-response503.js +2 -2
- package/dist/models/list-booking-entries-response-class.d.ts +31 -0
- package/dist/models/list-booking-entries-response-class.js +15 -0
- package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
- package/dist/models/list-financial-accounts-response-class.js +15 -0
- package/dist/models/list-financial-transactions-response-class.d.ts +31 -0
- package/dist/models/list-financial-transactions-response-class.js +15 -0
- package/dist/models/list-number-range-response-class.d.ts +31 -0
- package/dist/models/list-number-range-response-class.js +15 -0
- package/dist/models/list-personal-accounts-response-class.d.ts +31 -0
- package/dist/models/list-personal-accounts-response-class.js +15 -0
- package/dist/models/number-range-class.d.ts +84 -0
- package/dist/models/number-range-class.js +15 -0
- package/dist/models/personal-account-class.d.ts +105 -0
- package/dist/models/{create-user-request-dto.js → personal-account-class.js} +10 -10
- package/index.ts +2 -2
- package/models/booking-entry-class.ts +132 -0
- package/models/create-booking-entry-request-dto.ts +67 -0
- package/models/create-booking-entry-response-class.ts +31 -0
- package/models/create-financial-account-request-dto.ts +84 -0
- package/models/create-financial-account-response-class.ts +31 -0
- package/models/create-number-range-request-dto.ts +62 -0
- package/models/create-number-range-response-class.ts +31 -0
- package/models/create-personal-account-request-dto.ts +69 -0
- package/models/create-personal-account-response-class.ts +31 -0
- package/models/financial-account-class.ts +120 -0
- package/models/financial-transaction-class.ts +120 -0
- package/models/financial-transaction-data-dto.ts +81 -0
- package/models/get-booking-entry-response-class.ts +31 -0
- package/models/get-financial-account-response-class.ts +31 -0
- package/models/get-financial-transaction-response-class.ts +31 -0
- package/models/get-number-range-response-class.ts +31 -0
- package/models/get-personal-account-response-class.ts +31 -0
- package/models/index.ts +24 -46
- package/models/inline-response200.ts +2 -2
- package/models/inline-response503.ts +2 -2
- package/models/list-booking-entries-response-class.ts +37 -0
- package/models/list-financial-accounts-response-class.ts +37 -0
- package/models/list-financial-transactions-response-class.ts +37 -0
- package/models/list-number-range-response-class.ts +37 -0
- package/models/list-personal-accounts-response-class.ts +37 -0
- package/models/number-range-class.ts +90 -0
- package/models/personal-account-class.ts +114 -0
- package/package.json +1 -1
- package/api/mailbox-api.ts +0 -255
- package/api/messages-api.ts +0 -1100
- package/api/users-api.ts +0 -496
- package/api/vbas-api.ts +0 -592
- package/api/vbus-api.ts +0 -701
- package/dist/api/mailbox-api.d.ts +0 -142
- package/dist/api/mailbox-api.js +0 -315
- package/dist/api/messages-api.d.ts +0 -632
- package/dist/api/messages-api.js +0 -916
- package/dist/api/users-api.d.ts +0 -275
- package/dist/api/vbas-api.d.ts +0 -337
- package/dist/api/vbus-api.d.ts +0 -395
- package/dist/models/address-class.d.ts +0 -48
- package/dist/models/create-mailbox-request-dto.d.ts +0 -36
- package/dist/models/create-user-request-dto.d.ts +0 -76
- package/dist/models/create-user-response-class.d.ts +0 -25
- package/dist/models/create-vba-request-dto.d.ts +0 -41
- package/dist/models/create-vba-response-class.d.ts +0 -24
- package/dist/models/create-vbu-request-dto.d.ts +0 -41
- package/dist/models/create-vbu-response-class.d.ts +0 -24
- package/dist/models/create-vbu-response-class.js +0 -15
- package/dist/models/create-vbuv-request-dto.d.ts +0 -41
- package/dist/models/create-vbuv-response-class.d.ts +0 -24
- package/dist/models/create-vbuv-response-class.js +0 -15
- package/dist/models/get-request-message-response-class.d.ts +0 -25
- package/dist/models/get-request-message-response-class.js +0 -15
- package/dist/models/get-response-message-response-class.d.ts +0 -25
- package/dist/models/get-response-message-response-class.js +0 -15
- package/dist/models/get-user-response-class.d.ts +0 -25
- package/dist/models/get-user-response-class.js +0 -15
- package/dist/models/get-vba-response-class.d.ts +0 -25
- package/dist/models/get-vba-response-class.js +0 -15
- package/dist/models/get-vbu-response-class.d.ts +0 -25
- package/dist/models/get-vbu-response-class.js +0 -15
- package/dist/models/get-zip-code-response-class.d.ts +0 -25
- package/dist/models/get-zip-code-response-class.js +0 -15
- package/dist/models/list-all-messages-response-class.d.ts +0 -31
- package/dist/models/list-all-messages-response-class.js +0 -15
- package/dist/models/list-requests-messages-response-class.d.ts +0 -31
- package/dist/models/list-requests-messages-response-class.js +0 -15
- package/dist/models/list-responses-messages-response-class.d.ts +0 -31
- package/dist/models/list-responses-messages-response-class.js +0 -15
- package/dist/models/list-users-response-class.d.ts +0 -31
- package/dist/models/list-users-response-class.js +0 -15
- package/dist/models/list-vbas-response-class.d.ts +0 -31
- package/dist/models/list-vbas-response-class.js +0 -15
- package/dist/models/list-vbus-response-class.d.ts +0 -31
- package/dist/models/list-vbus-response-class.js +0 -15
- package/dist/models/list-zip-codes-response-class.d.ts +0 -31
- package/dist/models/list-zip-codes-response-class.js +0 -15
- package/dist/models/message-class.d.ts +0 -90
- package/dist/models/message-class.js +0 -15
- package/dist/models/request-details-class.d.ts +0 -48
- package/dist/models/request-details-class.js +0 -15
- package/dist/models/request-message-class.d.ts +0 -127
- package/dist/models/request-message-class.js +0 -15
- package/dist/models/response-details-class.d.ts +0 -42
- package/dist/models/response-details-class.js +0 -15
- package/dist/models/response-message-class.d.ts +0 -139
- package/dist/models/response-message-class.js +0 -15
- package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
- package/dist/models/store-zip-codes-request-dto.js +0 -15
- package/dist/models/store-zip-codes-response-class.d.ts +0 -25
- package/dist/models/store-zip-codes-response-class.js +0 -15
- package/dist/models/update-request-message-request-dto.d.ts +0 -36
- package/dist/models/update-request-message-request-dto.js +0 -15
- package/dist/models/update-request-message-response-class.d.ts +0 -25
- package/dist/models/update-request-message-response-class.js +0 -15
- package/dist/models/update-response-message-request-dto.d.ts +0 -36
- package/dist/models/update-response-message-request-dto.js +0 -15
- package/dist/models/update-response-message-response-class.d.ts +0 -25
- package/dist/models/update-response-message-response-class.js +0 -15
- package/dist/models/update-user-request-dto.d.ts +0 -82
- package/dist/models/update-user-request-dto.js +0 -24
- package/dist/models/update-user-response-class.d.ts +0 -25
- package/dist/models/update-user-response-class.js +0 -15
- package/dist/models/update-vba-request-dto.d.ts +0 -30
- package/dist/models/update-vba-request-dto.js +0 -15
- package/dist/models/update-vbu-request-dto.d.ts +0 -30
- package/dist/models/update-vbu-request-dto.js +0 -15
- package/dist/models/update-vbu-response-class.d.ts +0 -25
- package/dist/models/update-vbu-response-class.js +0 -15
- package/dist/models/user-class.d.ts +0 -107
- package/dist/models/user-class.js +0 -20
- package/dist/models/vba-class.d.ts +0 -116
- package/dist/models/vba-class.js +0 -15
- package/dist/models/vba-response-class.d.ts +0 -48
- package/dist/models/vba-response-class.js +0 -15
- package/dist/models/vbu-class.d.ts +0 -115
- package/dist/models/vbu-class.js +0 -15
- package/dist/models/vbu-response-class.d.ts +0 -48
- package/dist/models/vbu-response-class.js +0 -15
- package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
- package/dist/models/xlsx-zip-code-dto.js +0 -15
- package/dist/models/zip-code-class.d.ts +0 -60
- package/dist/models/zip-code-class.js +0 -15
- package/models/address-class.ts +0 -54
- package/models/create-mailbox-request-dto.ts +0 -42
- package/models/create-user-request-dto.ts +0 -86
- package/models/create-user-response-class.ts +0 -31
- package/models/create-vba-request-dto.ts +0 -50
- package/models/create-vba-response-class.ts +0 -30
- package/models/create-vbu-request-dto.ts +0 -50
- package/models/create-vbu-response-class.ts +0 -30
- package/models/create-vbuv-request-dto.ts +0 -50
- package/models/create-vbuv-response-class.ts +0 -30
- package/models/get-request-message-response-class.ts +0 -31
- package/models/get-response-message-response-class.ts +0 -31
- package/models/get-user-response-class.ts +0 -31
- package/models/get-vba-response-class.ts +0 -31
- package/models/get-vbu-response-class.ts +0 -31
- package/models/get-zip-code-response-class.ts +0 -31
- package/models/list-all-messages-response-class.ts +0 -37
- package/models/list-requests-messages-response-class.ts +0 -37
- package/models/list-responses-messages-response-class.ts +0 -37
- package/models/list-users-response-class.ts +0 -37
- package/models/list-vbas-response-class.ts +0 -37
- package/models/list-vbus-response-class.ts +0 -37
- package/models/list-zip-codes-response-class.ts +0 -37
- package/models/message-class.ts +0 -96
- package/models/request-details-class.ts +0 -54
- package/models/request-message-class.ts +0 -133
- package/models/response-details-class.ts +0 -48
- package/models/response-message-class.ts +0 -145
- package/models/store-zip-codes-request-dto.ts +0 -31
- package/models/store-zip-codes-response-class.ts +0 -31
- package/models/update-request-message-request-dto.ts +0 -42
- package/models/update-request-message-response-class.ts +0 -31
- package/models/update-response-message-request-dto.ts +0 -42
- package/models/update-response-message-response-class.ts +0 -31
- package/models/update-user-request-dto.ts +0 -92
- package/models/update-user-response-class.ts +0 -31
- package/models/update-vba-request-dto.ts +0 -36
- package/models/update-vbu-request-dto.ts +0 -36
- package/models/update-vbu-response-class.ts +0 -31
- package/models/user-class.ts +0 -116
- package/models/vba-class.ts +0 -122
- package/models/vba-response-class.ts +0 -54
- package/models/vbu-class.ts +0 -121
- package/models/vbu-response-class.ts +0 -54
- package/models/xlsx-zip-code-dto.ts +0 -36
- package/models/zip-code-class.ts +0 -66
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* EMIL
|
|
6
|
-
* The EMIL
|
|
5
|
+
* EMIL AccountingService
|
|
6
|
+
* The EMIL AccountingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.FinancialAccountsApi = exports.FinancialAccountsApiFactory = exports.FinancialAccountsApiFp = exports.FinancialAccountsApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,30 +90,30 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* FinancialAccountsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary Create the
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
|
|
101
|
+
* @summary Create the Financial Account
|
|
102
|
+
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
103
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
104
104
|
* @param {*} [options] Override http request option.
|
|
105
105
|
* @throws {RequiredError}
|
|
106
106
|
*/
|
|
107
|
-
|
|
107
|
+
createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('
|
|
116
|
-
localVarPath = "/
|
|
114
|
+
// verify required parameter 'createFinancialAccountRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
|
|
116
|
+
localVarPath = "/accountingservice/v1/financial-accounts";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
119
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -136,7 +136,7 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFinancialAccountRequestDto, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -146,15 +146,14 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @summary
|
|
149
|
+
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
150
|
+
* @summary Delete the Financial Account
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
|
-
* @param {string} [authorization] Bearer Token
|
|
153
|
-
* @param {string} [expand]
|
|
152
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
153
|
* @param {*} [options] Override http request option.
|
|
155
154
|
* @throws {RequiredError}
|
|
156
155
|
*/
|
|
157
|
-
|
|
156
|
+
deleteFinancialAccount: function (code, authorization, options) {
|
|
158
157
|
if (options === void 0) { options = {}; }
|
|
159
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
160
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -162,15 +161,15 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
162
161
|
switch (_a.label) {
|
|
163
162
|
case 0:
|
|
164
163
|
// verify required parameter 'code' is not null or undefined
|
|
165
|
-
(0, common_1.assertParamExists)('
|
|
166
|
-
localVarPath = "/
|
|
164
|
+
(0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
|
|
165
|
+
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
167
166
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
168
167
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
169
168
|
if (configuration) {
|
|
170
169
|
baseOptions = configuration.baseOptions;
|
|
171
170
|
baseAccessToken = configuration.accessToken;
|
|
172
171
|
}
|
|
173
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
174
173
|
localVarHeaderParameter = {};
|
|
175
174
|
localVarQueryParameter = {};
|
|
176
175
|
// authentication bearer required
|
|
@@ -180,9 +179,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
180
179
|
// authentication bearer required
|
|
181
180
|
// http bearer authentication required
|
|
182
181
|
_a.sent();
|
|
183
|
-
if (expand !== undefined) {
|
|
184
|
-
localVarQueryParameter['expand'] = expand;
|
|
185
|
-
}
|
|
186
182
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
187
183
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
188
184
|
}
|
|
@@ -198,20 +194,27 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
198
194
|
});
|
|
199
195
|
},
|
|
200
196
|
/**
|
|
201
|
-
*
|
|
202
|
-
* @summary
|
|
203
|
-
* @param {string}
|
|
197
|
+
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
198
|
+
* @summary Retrieve the Financial Account
|
|
199
|
+
* @param {string} code Unique identifier for the object.
|
|
200
|
+
* @param {string} expand
|
|
201
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
204
202
|
* @param {*} [options] Override http request option.
|
|
205
203
|
* @throws {RequiredError}
|
|
206
204
|
*/
|
|
207
|
-
|
|
205
|
+
getFinancialAccount: function (code, expand, authorization, options) {
|
|
208
206
|
if (options === void 0) { options = {}; }
|
|
209
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
211
209
|
return __generator(this, function (_a) {
|
|
212
210
|
switch (_a.label) {
|
|
213
211
|
case 0:
|
|
214
|
-
|
|
212
|
+
// verify required parameter 'code' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('getFinancialAccount', 'code', code);
|
|
214
|
+
// verify required parameter 'expand' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('getFinancialAccount', 'expand', expand);
|
|
216
|
+
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
217
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
215
218
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
219
|
if (configuration) {
|
|
217
220
|
baseOptions = configuration.baseOptions;
|
|
@@ -227,6 +230,9 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
227
230
|
// authentication bearer required
|
|
228
231
|
// http bearer authentication required
|
|
229
232
|
_a.sent();
|
|
233
|
+
if (expand !== undefined) {
|
|
234
|
+
localVarQueryParameter['expand'] = expand;
|
|
235
|
+
}
|
|
230
236
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
237
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
238
|
}
|
|
@@ -242,33 +248,33 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
242
248
|
});
|
|
243
249
|
},
|
|
244
250
|
/**
|
|
245
|
-
*
|
|
246
|
-
* @summary
|
|
247
|
-
* @param {string}
|
|
248
|
-
* @param {
|
|
249
|
-
* @param {string} [
|
|
251
|
+
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
|
|
252
|
+
* @summary List Financial Accounts
|
|
253
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
255
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
256
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
257
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
258
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
259
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
260
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
250
261
|
* @param {*} [options] Override http request option.
|
|
251
262
|
* @throws {RequiredError}
|
|
252
263
|
*/
|
|
253
|
-
|
|
264
|
+
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
254
265
|
if (options === void 0) { options = {}; }
|
|
255
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
256
267
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
257
268
|
return __generator(this, function (_a) {
|
|
258
269
|
switch (_a.label) {
|
|
259
270
|
case 0:
|
|
260
|
-
|
|
261
|
-
(0, common_1.assertParamExists)('updateUser', 'code', code);
|
|
262
|
-
// verify required parameter 'updateUserRequestDto' is not null or undefined
|
|
263
|
-
(0, common_1.assertParamExists)('updateUser', 'updateUserRequestDto', updateUserRequestDto);
|
|
264
|
-
localVarPath = "/gdvservice/v1/users/{code}"
|
|
265
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
271
|
+
localVarPath = "/accountingservice/v1/financial-accounts";
|
|
266
272
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
267
273
|
if (configuration) {
|
|
268
274
|
baseOptions = configuration.baseOptions;
|
|
269
275
|
baseAccessToken = configuration.accessToken;
|
|
270
276
|
}
|
|
271
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
277
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
272
278
|
localVarHeaderParameter = {};
|
|
273
279
|
localVarQueryParameter = {};
|
|
274
280
|
// authentication bearer required
|
|
@@ -278,14 +284,33 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
278
284
|
// authentication bearer required
|
|
279
285
|
// http bearer authentication required
|
|
280
286
|
_a.sent();
|
|
287
|
+
if (pageSize !== undefined) {
|
|
288
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
289
|
+
}
|
|
290
|
+
if (pageToken !== undefined) {
|
|
291
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
292
|
+
}
|
|
293
|
+
if (filter !== undefined) {
|
|
294
|
+
localVarQueryParameter['filter'] = filter;
|
|
295
|
+
}
|
|
296
|
+
if (search !== undefined) {
|
|
297
|
+
localVarQueryParameter['search'] = search;
|
|
298
|
+
}
|
|
299
|
+
if (order !== undefined) {
|
|
300
|
+
localVarQueryParameter['order'] = order;
|
|
301
|
+
}
|
|
302
|
+
if (expand !== undefined) {
|
|
303
|
+
localVarQueryParameter['expand'] = expand;
|
|
304
|
+
}
|
|
305
|
+
if (filters !== undefined) {
|
|
306
|
+
localVarQueryParameter['filters'] = filters;
|
|
307
|
+
}
|
|
281
308
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
282
309
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
283
310
|
}
|
|
284
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
285
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
286
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
287
313
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
288
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestDto, localVarRequestOptions, configuration);
|
|
289
314
|
return [2 /*return*/, {
|
|
290
315
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
291
316
|
options: localVarRequestOptions,
|
|
@@ -296,28 +321,28 @@ var UsersApiAxiosParamCreator = function (configuration) {
|
|
|
296
321
|
},
|
|
297
322
|
};
|
|
298
323
|
};
|
|
299
|
-
exports.
|
|
324
|
+
exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
|
|
300
325
|
/**
|
|
301
|
-
*
|
|
326
|
+
* FinancialAccountsApi - functional programming interface
|
|
302
327
|
* @export
|
|
303
328
|
*/
|
|
304
|
-
var
|
|
305
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
329
|
+
var FinancialAccountsApiFp = function (configuration) {
|
|
330
|
+
var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
|
|
306
331
|
return {
|
|
307
332
|
/**
|
|
308
|
-
*
|
|
309
|
-
* @summary Create the
|
|
310
|
-
* @param {
|
|
311
|
-
* @param {string} [authorization] Bearer Token
|
|
333
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
|
|
334
|
+
* @summary Create the Financial Account
|
|
335
|
+
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
336
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
312
337
|
* @param {*} [options] Override http request option.
|
|
313
338
|
* @throws {RequiredError}
|
|
314
339
|
*/
|
|
315
|
-
|
|
340
|
+
createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
|
|
316
341
|
return __awaiter(this, void 0, void 0, function () {
|
|
317
342
|
var localVarAxiosArgs;
|
|
318
343
|
return __generator(this, function (_a) {
|
|
319
344
|
switch (_a.label) {
|
|
320
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
345
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFinancialAccount(createFinancialAccountRequestDto, authorization, options)];
|
|
321
346
|
case 1:
|
|
322
347
|
localVarAxiosArgs = _a.sent();
|
|
323
348
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -326,20 +351,19 @@ var UsersApiFp = function (configuration) {
|
|
|
326
351
|
});
|
|
327
352
|
},
|
|
328
353
|
/**
|
|
329
|
-
*
|
|
330
|
-
* @summary
|
|
354
|
+
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
355
|
+
* @summary Delete the Financial Account
|
|
331
356
|
* @param {string} code Unique identifier for the object.
|
|
332
|
-
* @param {string} [authorization] Bearer Token
|
|
333
|
-
* @param {string} [expand]
|
|
357
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
334
358
|
* @param {*} [options] Override http request option.
|
|
335
359
|
* @throws {RequiredError}
|
|
336
360
|
*/
|
|
337
|
-
|
|
361
|
+
deleteFinancialAccount: function (code, authorization, options) {
|
|
338
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
339
363
|
var localVarAxiosArgs;
|
|
340
364
|
return __generator(this, function (_a) {
|
|
341
365
|
switch (_a.label) {
|
|
342
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
366
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteFinancialAccount(code, authorization, options)];
|
|
343
367
|
case 1:
|
|
344
368
|
localVarAxiosArgs = _a.sent();
|
|
345
369
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -348,18 +372,20 @@ var UsersApiFp = function (configuration) {
|
|
|
348
372
|
});
|
|
349
373
|
},
|
|
350
374
|
/**
|
|
351
|
-
*
|
|
352
|
-
* @summary
|
|
353
|
-
* @param {string}
|
|
375
|
+
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
376
|
+
* @summary Retrieve the Financial Account
|
|
377
|
+
* @param {string} code Unique identifier for the object.
|
|
378
|
+
* @param {string} expand
|
|
379
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
354
380
|
* @param {*} [options] Override http request option.
|
|
355
381
|
* @throws {RequiredError}
|
|
356
382
|
*/
|
|
357
|
-
|
|
383
|
+
getFinancialAccount: function (code, expand, authorization, options) {
|
|
358
384
|
return __awaiter(this, void 0, void 0, function () {
|
|
359
385
|
var localVarAxiosArgs;
|
|
360
386
|
return __generator(this, function (_a) {
|
|
361
387
|
switch (_a.label) {
|
|
362
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFinancialAccount(code, expand, authorization, options)];
|
|
363
389
|
case 1:
|
|
364
390
|
localVarAxiosArgs = _a.sent();
|
|
365
391
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -368,20 +394,25 @@ var UsersApiFp = function (configuration) {
|
|
|
368
394
|
});
|
|
369
395
|
},
|
|
370
396
|
/**
|
|
371
|
-
*
|
|
372
|
-
* @summary
|
|
373
|
-
* @param {string}
|
|
374
|
-
* @param {
|
|
375
|
-
* @param {string} [
|
|
397
|
+
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
|
|
398
|
+
* @summary List Financial Accounts
|
|
399
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
401
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
402
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
403
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
404
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
405
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
406
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
376
407
|
* @param {*} [options] Override http request option.
|
|
377
408
|
* @throws {RequiredError}
|
|
378
409
|
*/
|
|
379
|
-
|
|
410
|
+
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
380
411
|
return __awaiter(this, void 0, void 0, function () {
|
|
381
412
|
var localVarAxiosArgs;
|
|
382
413
|
return __generator(this, function (_a) {
|
|
383
414
|
switch (_a.label) {
|
|
384
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
415
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
385
416
|
case 1:
|
|
386
417
|
localVarAxiosArgs = _a.sent();
|
|
387
418
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -391,122 +422,128 @@ var UsersApiFp = function (configuration) {
|
|
|
391
422
|
},
|
|
392
423
|
};
|
|
393
424
|
};
|
|
394
|
-
exports.
|
|
425
|
+
exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
|
|
395
426
|
/**
|
|
396
|
-
*
|
|
427
|
+
* FinancialAccountsApi - factory interface
|
|
397
428
|
* @export
|
|
398
429
|
*/
|
|
399
|
-
var
|
|
400
|
-
var localVarFp = (0, exports.
|
|
430
|
+
var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
|
|
431
|
+
var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
|
|
401
432
|
return {
|
|
402
433
|
/**
|
|
403
|
-
*
|
|
404
|
-
* @summary Create the
|
|
405
|
-
* @param {
|
|
406
|
-
* @param {string} [authorization] Bearer Token
|
|
434
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
|
|
435
|
+
* @summary Create the Financial Account
|
|
436
|
+
* @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
407
438
|
* @param {*} [options] Override http request option.
|
|
408
439
|
* @throws {RequiredError}
|
|
409
440
|
*/
|
|
410
|
-
|
|
411
|
-
return localVarFp.
|
|
441
|
+
createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
|
|
442
|
+
return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
412
443
|
},
|
|
413
444
|
/**
|
|
414
|
-
*
|
|
415
|
-
* @summary
|
|
445
|
+
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
446
|
+
* @summary Delete the Financial Account
|
|
416
447
|
* @param {string} code Unique identifier for the object.
|
|
417
|
-
* @param {string} [authorization] Bearer Token
|
|
418
|
-
* @param {string} [expand]
|
|
448
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
419
449
|
* @param {*} [options] Override http request option.
|
|
420
450
|
* @throws {RequiredError}
|
|
421
451
|
*/
|
|
422
|
-
|
|
423
|
-
return localVarFp.
|
|
452
|
+
deleteFinancialAccount: function (code, authorization, options) {
|
|
453
|
+
return localVarFp.deleteFinancialAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
424
454
|
},
|
|
425
455
|
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary
|
|
428
|
-
* @param {string}
|
|
456
|
+
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
457
|
+
* @summary Retrieve the Financial Account
|
|
458
|
+
* @param {string} code Unique identifier for the object.
|
|
459
|
+
* @param {string} expand
|
|
460
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
429
461
|
* @param {*} [options] Override http request option.
|
|
430
462
|
* @throws {RequiredError}
|
|
431
463
|
*/
|
|
432
|
-
|
|
433
|
-
return localVarFp.
|
|
464
|
+
getFinancialAccount: function (code, expand, authorization, options) {
|
|
465
|
+
return localVarFp.getFinancialAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
434
466
|
},
|
|
435
467
|
/**
|
|
436
|
-
*
|
|
437
|
-
* @summary
|
|
438
|
-
* @param {string}
|
|
439
|
-
* @param {
|
|
440
|
-
* @param {string} [
|
|
468
|
+
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
|
|
469
|
+
* @summary List Financial Accounts
|
|
470
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
471
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
472
|
+
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
473
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
474
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
475
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
476
|
+
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
477
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
441
478
|
* @param {*} [options] Override http request option.
|
|
442
479
|
* @throws {RequiredError}
|
|
443
480
|
*/
|
|
444
|
-
|
|
445
|
-
return localVarFp.
|
|
481
|
+
listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
482
|
+
return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
446
483
|
},
|
|
447
484
|
};
|
|
448
485
|
};
|
|
449
|
-
exports.
|
|
486
|
+
exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
|
|
450
487
|
/**
|
|
451
|
-
*
|
|
488
|
+
* FinancialAccountsApi - object-oriented interface
|
|
452
489
|
* @export
|
|
453
|
-
* @class
|
|
490
|
+
* @class FinancialAccountsApi
|
|
454
491
|
* @extends {BaseAPI}
|
|
455
492
|
*/
|
|
456
|
-
var
|
|
457
|
-
__extends(
|
|
458
|
-
function
|
|
493
|
+
var FinancialAccountsApi = /** @class */ (function (_super) {
|
|
494
|
+
__extends(FinancialAccountsApi, _super);
|
|
495
|
+
function FinancialAccountsApi() {
|
|
459
496
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
460
497
|
}
|
|
461
498
|
/**
|
|
462
|
-
*
|
|
463
|
-
* @summary Create the
|
|
464
|
-
* @param {
|
|
499
|
+
* This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
|
|
500
|
+
* @summary Create the Financial Account
|
|
501
|
+
* @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
|
|
465
502
|
* @param {*} [options] Override http request option.
|
|
466
503
|
* @throws {RequiredError}
|
|
467
|
-
* @memberof
|
|
504
|
+
* @memberof FinancialAccountsApi
|
|
468
505
|
*/
|
|
469
|
-
|
|
506
|
+
FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
|
|
470
507
|
var _this = this;
|
|
471
|
-
return (0, exports.
|
|
508
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
472
509
|
};
|
|
473
510
|
/**
|
|
474
|
-
*
|
|
475
|
-
* @summary
|
|
476
|
-
* @param {
|
|
511
|
+
* Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
512
|
+
* @summary Delete the Financial Account
|
|
513
|
+
* @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
|
|
477
514
|
* @param {*} [options] Override http request option.
|
|
478
515
|
* @throws {RequiredError}
|
|
479
|
-
* @memberof
|
|
516
|
+
* @memberof FinancialAccountsApi
|
|
480
517
|
*/
|
|
481
|
-
|
|
518
|
+
FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
|
|
482
519
|
var _this = this;
|
|
483
|
-
return (0, exports.
|
|
520
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
484
521
|
};
|
|
485
522
|
/**
|
|
486
|
-
*
|
|
487
|
-
* @summary
|
|
488
|
-
* @param {
|
|
523
|
+
* Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
524
|
+
* @summary Retrieve the Financial Account
|
|
525
|
+
* @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
|
|
489
526
|
* @param {*} [options] Override http request option.
|
|
490
527
|
* @throws {RequiredError}
|
|
491
|
-
* @memberof
|
|
528
|
+
* @memberof FinancialAccountsApi
|
|
492
529
|
*/
|
|
493
|
-
|
|
530
|
+
FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
|
|
494
531
|
var _this = this;
|
|
495
|
-
|
|
496
|
-
return (0, exports.UsersApiFp)(this.configuration).listUsers(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
532
|
+
return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
497
533
|
};
|
|
498
534
|
/**
|
|
499
|
-
*
|
|
500
|
-
* @summary
|
|
501
|
-
* @param {
|
|
535
|
+
* Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
|
|
536
|
+
* @summary List Financial Accounts
|
|
537
|
+
* @param {FinancialAccountsApiListFinancialAccountsRequest} requestParameters Request parameters.
|
|
502
538
|
* @param {*} [options] Override http request option.
|
|
503
539
|
* @throws {RequiredError}
|
|
504
|
-
* @memberof
|
|
540
|
+
* @memberof FinancialAccountsApi
|
|
505
541
|
*/
|
|
506
|
-
|
|
542
|
+
FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
|
|
507
543
|
var _this = this;
|
|
508
|
-
|
|
544
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
545
|
+
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); });
|
|
509
546
|
};
|
|
510
|
-
return
|
|
547
|
+
return FinancialAccountsApi;
|
|
511
548
|
}(base_1.BaseAPI));
|
|
512
|
-
exports.
|
|
549
|
+
exports.FinancialAccountsApi = FinancialAccountsApi;
|