@emilgroup/accounting-sdk-node 1.19.0 → 1.20.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.PersonalAccountsApi = exports.PersonalAccountsApiFactory = exports.PersonalAccountsApiFp = exports.PersonalAccountsApiAxiosParamCreator = 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
|
+
* PersonalAccountsApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var PersonalAccountsApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This
|
|
101
|
-
* @summary Create the
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
|
|
101
|
+
* @summary Create the Personal Account
|
|
102
|
+
* @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
|
|
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
|
+
createPersonalAccount: function (createPersonalAccountRequestDto, 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 'createPersonalAccountRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createPersonalAccount', 'createPersonalAccountRequestDto', createPersonalAccountRequestDto);
|
|
116
|
+
localVarPath = "/accountingservice/v1/personal-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 VbusApiAxiosParamCreator = 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)(createPersonalAccountRequestDto, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -146,29 +146,30 @@ var VbusApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @summary
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {string} [authorization] Bearer Token
|
|
149
|
+
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
150
|
+
* @summary Delete the Personal Account
|
|
151
|
+
* @param {string} code Unique identifier for the object.
|
|
152
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
153
|
* @param {*} [options] Override http request option.
|
|
154
154
|
* @throws {RequiredError}
|
|
155
155
|
*/
|
|
156
|
-
|
|
156
|
+
deletePersonalAccount: function (code, authorization, options) {
|
|
157
157
|
if (options === void 0) { options = {}; }
|
|
158
158
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
159
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
160
|
return __generator(this, function (_a) {
|
|
161
161
|
switch (_a.label) {
|
|
162
162
|
case 0:
|
|
163
|
-
// verify required parameter '
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
165
|
-
localVarPath = "/
|
|
163
|
+
// verify required parameter 'code' is not null or undefined
|
|
164
|
+
(0, common_1.assertParamExists)('deletePersonalAccount', 'code', code);
|
|
165
|
+
localVarPath = "/accountingservice/v1/personal-accounts/{code}"
|
|
166
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
166
167
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
167
168
|
if (configuration) {
|
|
168
169
|
baseOptions = configuration.baseOptions;
|
|
169
170
|
baseAccessToken = configuration.accessToken;
|
|
170
171
|
}
|
|
171
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
172
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
172
173
|
localVarHeaderParameter = {};
|
|
173
174
|
localVarQueryParameter = {};
|
|
174
175
|
// authentication bearer required
|
|
@@ -181,11 +182,9 @@ var VbusApiAxiosParamCreator = function (configuration) {
|
|
|
181
182
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
182
183
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
183
184
|
}
|
|
184
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
185
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
186
186
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
187
187
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
188
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuvRequestDto, localVarRequestOptions, configuration);
|
|
189
188
|
return [2 /*return*/, {
|
|
190
189
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
191
190
|
options: localVarRequestOptions,
|
|
@@ -195,15 +194,15 @@ var VbusApiAxiosParamCreator = function (configuration) {
|
|
|
195
194
|
});
|
|
196
195
|
},
|
|
197
196
|
/**
|
|
198
|
-
* Retrieves the details of the
|
|
199
|
-
* @summary Retrieve the
|
|
197
|
+
* Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
198
|
+
* @summary Retrieve the Personal Account
|
|
200
199
|
* @param {string} code Unique identifier for the object.
|
|
201
|
-
* @param {string}
|
|
202
|
-
* @param {
|
|
200
|
+
* @param {string} expand
|
|
201
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
202
|
* @param {*} [options] Override http request option.
|
|
204
203
|
* @throws {RequiredError}
|
|
205
204
|
*/
|
|
206
|
-
|
|
205
|
+
getPersonalAccount: function (code, expand, authorization, options) {
|
|
207
206
|
if (options === void 0) { options = {}; }
|
|
208
207
|
return __awaiter(_this, void 0, void 0, function () {
|
|
209
208
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -211,8 +210,10 @@ var VbusApiAxiosParamCreator = function (configuration) {
|
|
|
211
210
|
switch (_a.label) {
|
|
212
211
|
case 0:
|
|
213
212
|
// verify required parameter 'code' is not null or undefined
|
|
214
|
-
(0, common_1.assertParamExists)('
|
|
215
|
-
|
|
213
|
+
(0, common_1.assertParamExists)('getPersonalAccount', 'code', code);
|
|
214
|
+
// verify required parameter 'expand' is not null or undefined
|
|
215
|
+
(0, common_1.assertParamExists)('getPersonalAccount', 'expand', expand);
|
|
216
|
+
localVarPath = "/accountingservice/v1/personal-accounts/{code}"
|
|
216
217
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
217
218
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
218
219
|
if (configuration) {
|
|
@@ -247,27 +248,27 @@ var VbusApiAxiosParamCreator = function (configuration) {
|
|
|
247
248
|
});
|
|
248
249
|
},
|
|
249
250
|
/**
|
|
250
|
-
* Returns a list of
|
|
251
|
-
* @summary List
|
|
252
|
-
* @param {string} [authorization] Bearer Token
|
|
251
|
+
* Returns a list of Personal Accounts you have previously created. The Personal 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 Personal Accounts
|
|
253
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
253
254
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
254
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.
|
|
255
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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, personalAccountNumber, createdAt, partnerNumber, type</i>
|
|
256
257
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
257
|
-
* @param {string} [order] Order
|
|
258
|
-
* @param {string} [expand]
|
|
259
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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, personalAccountNumber</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, personalAccountNumber, createdAt, partnerNumber, type</i>
|
|
260
261
|
* @param {*} [options] Override http request option.
|
|
261
262
|
* @throws {RequiredError}
|
|
262
263
|
*/
|
|
263
|
-
|
|
264
|
+
listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
264
265
|
if (options === void 0) { options = {}; }
|
|
265
266
|
return __awaiter(_this, void 0, void 0, function () {
|
|
266
267
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
267
268
|
return __generator(this, function (_a) {
|
|
268
269
|
switch (_a.label) {
|
|
269
270
|
case 0:
|
|
270
|
-
localVarPath = "/
|
|
271
|
+
localVarPath = "/accountingservice/v1/personal-accounts";
|
|
271
272
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
272
273
|
if (configuration) {
|
|
273
274
|
baseOptions = configuration.baseOptions;
|
|
@@ -318,83 +319,30 @@ var VbusApiAxiosParamCreator = function (configuration) {
|
|
|
318
319
|
});
|
|
319
320
|
});
|
|
320
321
|
},
|
|
321
|
-
/**
|
|
322
|
-
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
|
|
323
|
-
* @summary Update the vbu
|
|
324
|
-
* @param {string} code Unique identifier for the object.
|
|
325
|
-
* @param {UpdateVbuRequestDto} updateVbuRequestDto
|
|
326
|
-
* @param {string} [authorization] Bearer Token
|
|
327
|
-
* @param {*} [options] Override http request option.
|
|
328
|
-
* @throws {RequiredError}
|
|
329
|
-
*/
|
|
330
|
-
updateVbu: function (code, updateVbuRequestDto, authorization, options) {
|
|
331
|
-
if (options === void 0) { options = {}; }
|
|
332
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
333
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
334
|
-
return __generator(this, function (_a) {
|
|
335
|
-
switch (_a.label) {
|
|
336
|
-
case 0:
|
|
337
|
-
// verify required parameter 'code' is not null or undefined
|
|
338
|
-
(0, common_1.assertParamExists)('updateVbu', 'code', code);
|
|
339
|
-
// verify required parameter 'updateVbuRequestDto' is not null or undefined
|
|
340
|
-
(0, common_1.assertParamExists)('updateVbu', 'updateVbuRequestDto', updateVbuRequestDto);
|
|
341
|
-
localVarPath = "/gdvservice/v1/vbus/{code}"
|
|
342
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
343
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
344
|
-
if (configuration) {
|
|
345
|
-
baseOptions = configuration.baseOptions;
|
|
346
|
-
baseAccessToken = configuration.accessToken;
|
|
347
|
-
}
|
|
348
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
349
|
-
localVarHeaderParameter = {};
|
|
350
|
-
localVarQueryParameter = {};
|
|
351
|
-
// authentication bearer required
|
|
352
|
-
// http bearer authentication required
|
|
353
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
354
|
-
case 1:
|
|
355
|
-
// authentication bearer required
|
|
356
|
-
// http bearer authentication required
|
|
357
|
-
_a.sent();
|
|
358
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
359
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
360
|
-
}
|
|
361
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
362
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
365
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVbuRequestDto, localVarRequestOptions, configuration);
|
|
366
|
-
return [2 /*return*/, {
|
|
367
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
368
|
-
options: localVarRequestOptions,
|
|
369
|
-
}];
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
},
|
|
374
322
|
};
|
|
375
323
|
};
|
|
376
|
-
exports.
|
|
324
|
+
exports.PersonalAccountsApiAxiosParamCreator = PersonalAccountsApiAxiosParamCreator;
|
|
377
325
|
/**
|
|
378
|
-
*
|
|
326
|
+
* PersonalAccountsApi - functional programming interface
|
|
379
327
|
* @export
|
|
380
328
|
*/
|
|
381
|
-
var
|
|
382
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
329
|
+
var PersonalAccountsApiFp = function (configuration) {
|
|
330
|
+
var localVarAxiosParamCreator = (0, exports.PersonalAccountsApiAxiosParamCreator)(configuration);
|
|
383
331
|
return {
|
|
384
332
|
/**
|
|
385
|
-
* This
|
|
386
|
-
* @summary Create the
|
|
387
|
-
* @param {
|
|
388
|
-
* @param {string} [authorization] Bearer Token
|
|
333
|
+
* This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
|
|
334
|
+
* @summary Create the Personal Account
|
|
335
|
+
* @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
|
|
336
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
389
337
|
* @param {*} [options] Override http request option.
|
|
390
338
|
* @throws {RequiredError}
|
|
391
339
|
*/
|
|
392
|
-
|
|
340
|
+
createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
|
|
393
341
|
return __awaiter(this, void 0, void 0, function () {
|
|
394
342
|
var localVarAxiosArgs;
|
|
395
343
|
return __generator(this, function (_a) {
|
|
396
344
|
switch (_a.label) {
|
|
397
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
345
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPersonalAccount(createPersonalAccountRequestDto, authorization, options)];
|
|
398
346
|
case 1:
|
|
399
347
|
localVarAxiosArgs = _a.sent();
|
|
400
348
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -403,19 +351,19 @@ var VbusApiFp = function (configuration) {
|
|
|
403
351
|
});
|
|
404
352
|
},
|
|
405
353
|
/**
|
|
406
|
-
*
|
|
407
|
-
* @summary
|
|
408
|
-
* @param {
|
|
409
|
-
* @param {string} [authorization] Bearer Token
|
|
354
|
+
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
355
|
+
* @summary Delete the Personal Account
|
|
356
|
+
* @param {string} code Unique identifier for the object.
|
|
357
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
410
358
|
* @param {*} [options] Override http request option.
|
|
411
359
|
* @throws {RequiredError}
|
|
412
360
|
*/
|
|
413
|
-
|
|
361
|
+
deletePersonalAccount: function (code, authorization, options) {
|
|
414
362
|
return __awaiter(this, void 0, void 0, function () {
|
|
415
363
|
var localVarAxiosArgs;
|
|
416
364
|
return __generator(this, function (_a) {
|
|
417
365
|
switch (_a.label) {
|
|
418
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
366
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePersonalAccount(code, authorization, options)];
|
|
419
367
|
case 1:
|
|
420
368
|
localVarAxiosArgs = _a.sent();
|
|
421
369
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -424,20 +372,20 @@ var VbusApiFp = function (configuration) {
|
|
|
424
372
|
});
|
|
425
373
|
},
|
|
426
374
|
/**
|
|
427
|
-
* Retrieves the details of the
|
|
428
|
-
* @summary Retrieve the
|
|
375
|
+
* Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
376
|
+
* @summary Retrieve the Personal Account
|
|
429
377
|
* @param {string} code Unique identifier for the object.
|
|
430
|
-
* @param {string}
|
|
431
|
-
* @param {
|
|
378
|
+
* @param {string} expand
|
|
379
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
432
380
|
* @param {*} [options] Override http request option.
|
|
433
381
|
* @throws {RequiredError}
|
|
434
382
|
*/
|
|
435
|
-
|
|
383
|
+
getPersonalAccount: function (code, expand, authorization, options) {
|
|
436
384
|
return __awaiter(this, void 0, void 0, function () {
|
|
437
385
|
var localVarAxiosArgs;
|
|
438
386
|
return __generator(this, function (_a) {
|
|
439
387
|
switch (_a.label) {
|
|
440
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPersonalAccount(code, expand, authorization, options)];
|
|
441
389
|
case 1:
|
|
442
390
|
localVarAxiosArgs = _a.sent();
|
|
443
391
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -446,47 +394,25 @@ var VbusApiFp = function (configuration) {
|
|
|
446
394
|
});
|
|
447
395
|
},
|
|
448
396
|
/**
|
|
449
|
-
* Returns a list of
|
|
450
|
-
* @summary List
|
|
451
|
-
* @param {string} [authorization] Bearer Token
|
|
397
|
+
* Returns a list of Personal Accounts you have previously created. The Personal 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 Personal Accounts
|
|
399
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
452
400
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
453
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.
|
|
454
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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, personalAccountNumber, createdAt, partnerNumber, type</i>
|
|
455
403
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
456
|
-
* @param {string} [order] Order
|
|
457
|
-
* @param {string} [expand]
|
|
458
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
459
|
-
* @param {*} [options] Override http request option.
|
|
460
|
-
* @throws {RequiredError}
|
|
461
|
-
*/
|
|
462
|
-
listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
463
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
464
|
-
var localVarAxiosArgs;
|
|
465
|
-
return __generator(this, function (_a) {
|
|
466
|
-
switch (_a.label) {
|
|
467
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
468
|
-
case 1:
|
|
469
|
-
localVarAxiosArgs = _a.sent();
|
|
470
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
});
|
|
474
|
-
},
|
|
475
|
-
/**
|
|
476
|
-
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
|
|
477
|
-
* @summary Update the vbu
|
|
478
|
-
* @param {string} code Unique identifier for the object.
|
|
479
|
-
* @param {UpdateVbuRequestDto} updateVbuRequestDto
|
|
480
|
-
* @param {string} [authorization] Bearer Token
|
|
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, personalAccountNumber</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, personalAccountNumber, createdAt, partnerNumber, type</i>
|
|
481
407
|
* @param {*} [options] Override http request option.
|
|
482
408
|
* @throws {RequiredError}
|
|
483
409
|
*/
|
|
484
|
-
|
|
410
|
+
listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
485
411
|
return __awaiter(this, void 0, void 0, function () {
|
|
486
412
|
var localVarAxiosArgs;
|
|
487
413
|
return __generator(this, function (_a) {
|
|
488
414
|
switch (_a.label) {
|
|
489
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
415
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
490
416
|
case 1:
|
|
491
417
|
localVarAxiosArgs = _a.sent();
|
|
492
418
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -496,152 +422,128 @@ var VbusApiFp = function (configuration) {
|
|
|
496
422
|
},
|
|
497
423
|
};
|
|
498
424
|
};
|
|
499
|
-
exports.
|
|
425
|
+
exports.PersonalAccountsApiFp = PersonalAccountsApiFp;
|
|
500
426
|
/**
|
|
501
|
-
*
|
|
427
|
+
* PersonalAccountsApi - factory interface
|
|
502
428
|
* @export
|
|
503
429
|
*/
|
|
504
|
-
var
|
|
505
|
-
var localVarFp = (0, exports.
|
|
430
|
+
var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
|
|
431
|
+
var localVarFp = (0, exports.PersonalAccountsApiFp)(configuration);
|
|
506
432
|
return {
|
|
507
433
|
/**
|
|
508
|
-
* This
|
|
509
|
-
* @summary Create the
|
|
510
|
-
* @param {
|
|
511
|
-
* @param {string} [authorization] Bearer Token
|
|
434
|
+
* This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
|
|
435
|
+
* @summary Create the Personal Account
|
|
436
|
+
* @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
|
|
437
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
512
438
|
* @param {*} [options] Override http request option.
|
|
513
439
|
* @throws {RequiredError}
|
|
514
440
|
*/
|
|
515
|
-
|
|
516
|
-
return localVarFp.
|
|
441
|
+
createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
|
|
442
|
+
return localVarFp.createPersonalAccount(createPersonalAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
517
443
|
},
|
|
518
444
|
/**
|
|
519
|
-
*
|
|
520
|
-
* @summary
|
|
521
|
-
* @param {
|
|
522
|
-
* @param {string} [authorization] Bearer Token
|
|
445
|
+
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
446
|
+
* @summary Delete the Personal Account
|
|
447
|
+
* @param {string} code Unique identifier for the object.
|
|
448
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
449
|
* @param {*} [options] Override http request option.
|
|
524
450
|
* @throws {RequiredError}
|
|
525
451
|
*/
|
|
526
|
-
|
|
527
|
-
return localVarFp.
|
|
452
|
+
deletePersonalAccount: function (code, authorization, options) {
|
|
453
|
+
return localVarFp.deletePersonalAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
528
454
|
},
|
|
529
455
|
/**
|
|
530
|
-
* Retrieves the details of the
|
|
531
|
-
* @summary Retrieve the
|
|
456
|
+
* Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
457
|
+
* @summary Retrieve the Personal Account
|
|
532
458
|
* @param {string} code Unique identifier for the object.
|
|
533
|
-
* @param {string}
|
|
534
|
-
* @param {
|
|
459
|
+
* @param {string} expand
|
|
460
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
535
461
|
* @param {*} [options] Override http request option.
|
|
536
462
|
* @throws {RequiredError}
|
|
537
463
|
*/
|
|
538
|
-
|
|
539
|
-
return localVarFp.
|
|
464
|
+
getPersonalAccount: function (code, expand, authorization, options) {
|
|
465
|
+
return localVarFp.getPersonalAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
540
466
|
},
|
|
541
467
|
/**
|
|
542
|
-
* Returns a list of
|
|
543
|
-
* @summary List
|
|
544
|
-
* @param {string} [authorization] Bearer Token
|
|
468
|
+
* Returns a list of Personal Accounts you have previously created. The Personal 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 Personal Accounts
|
|
470
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
545
471
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
546
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.
|
|
547
|
-
* @param {string} [filter] Filter the response by one or multiple fields.
|
|
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, personalAccountNumber, createdAt, partnerNumber, type</i>
|
|
548
474
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
549
|
-
* @param {string} [order] Order
|
|
550
|
-
* @param {string} [expand]
|
|
551
|
-
* @param {string} [filters] Filters the response by one or multiple fields.
|
|
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, personalAccountNumber</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, personalAccountNumber, createdAt, partnerNumber, type</i>
|
|
552
478
|
* @param {*} [options] Override http request option.
|
|
553
479
|
* @throws {RequiredError}
|
|
554
480
|
*/
|
|
555
|
-
|
|
556
|
-
return localVarFp.
|
|
557
|
-
},
|
|
558
|
-
/**
|
|
559
|
-
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
|
|
560
|
-
* @summary Update the vbu
|
|
561
|
-
* @param {string} code Unique identifier for the object.
|
|
562
|
-
* @param {UpdateVbuRequestDto} updateVbuRequestDto
|
|
563
|
-
* @param {string} [authorization] Bearer Token
|
|
564
|
-
* @param {*} [options] Override http request option.
|
|
565
|
-
* @throws {RequiredError}
|
|
566
|
-
*/
|
|
567
|
-
updateVbu: function (code, updateVbuRequestDto, authorization, options) {
|
|
568
|
-
return localVarFp.updateVbu(code, updateVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
481
|
+
listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
482
|
+
return localVarFp.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
569
483
|
},
|
|
570
484
|
};
|
|
571
485
|
};
|
|
572
|
-
exports.
|
|
486
|
+
exports.PersonalAccountsApiFactory = PersonalAccountsApiFactory;
|
|
573
487
|
/**
|
|
574
|
-
*
|
|
488
|
+
* PersonalAccountsApi - object-oriented interface
|
|
575
489
|
* @export
|
|
576
|
-
* @class
|
|
490
|
+
* @class PersonalAccountsApi
|
|
577
491
|
* @extends {BaseAPI}
|
|
578
492
|
*/
|
|
579
|
-
var
|
|
580
|
-
__extends(
|
|
581
|
-
function
|
|
493
|
+
var PersonalAccountsApi = /** @class */ (function (_super) {
|
|
494
|
+
__extends(PersonalAccountsApi, _super);
|
|
495
|
+
function PersonalAccountsApi() {
|
|
582
496
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
583
497
|
}
|
|
584
498
|
/**
|
|
585
|
-
* This
|
|
586
|
-
* @summary Create the
|
|
587
|
-
* @param {
|
|
499
|
+
* This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
|
|
500
|
+
* @summary Create the Personal Account
|
|
501
|
+
* @param {PersonalAccountsApiCreatePersonalAccountRequest} requestParameters Request parameters.
|
|
588
502
|
* @param {*} [options] Override http request option.
|
|
589
503
|
* @throws {RequiredError}
|
|
590
|
-
* @memberof
|
|
504
|
+
* @memberof PersonalAccountsApi
|
|
591
505
|
*/
|
|
592
|
-
|
|
506
|
+
PersonalAccountsApi.prototype.createPersonalAccount = function (requestParameters, options) {
|
|
593
507
|
var _this = this;
|
|
594
|
-
return (0, exports.
|
|
508
|
+
return (0, exports.PersonalAccountsApiFp)(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
595
509
|
};
|
|
596
510
|
/**
|
|
597
|
-
*
|
|
598
|
-
* @summary
|
|
599
|
-
* @param {
|
|
511
|
+
* Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
|
|
512
|
+
* @summary Delete the Personal Account
|
|
513
|
+
* @param {PersonalAccountsApiDeletePersonalAccountRequest} requestParameters Request parameters.
|
|
600
514
|
* @param {*} [options] Override http request option.
|
|
601
515
|
* @throws {RequiredError}
|
|
602
|
-
* @memberof
|
|
516
|
+
* @memberof PersonalAccountsApi
|
|
603
517
|
*/
|
|
604
|
-
|
|
518
|
+
PersonalAccountsApi.prototype.deletePersonalAccount = function (requestParameters, options) {
|
|
605
519
|
var _this = this;
|
|
606
|
-
return (0, exports.
|
|
520
|
+
return (0, exports.PersonalAccountsApiFp)(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
607
521
|
};
|
|
608
522
|
/**
|
|
609
|
-
* Retrieves the details of the
|
|
610
|
-
* @summary Retrieve the
|
|
611
|
-
* @param {
|
|
523
|
+
* Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
|
|
524
|
+
* @summary Retrieve the Personal Account
|
|
525
|
+
* @param {PersonalAccountsApiGetPersonalAccountRequest} requestParameters Request parameters.
|
|
612
526
|
* @param {*} [options] Override http request option.
|
|
613
527
|
* @throws {RequiredError}
|
|
614
|
-
* @memberof
|
|
528
|
+
* @memberof PersonalAccountsApi
|
|
615
529
|
*/
|
|
616
|
-
|
|
530
|
+
PersonalAccountsApi.prototype.getPersonalAccount = function (requestParameters, options) {
|
|
617
531
|
var _this = this;
|
|
618
|
-
return (0, exports.
|
|
532
|
+
return (0, exports.PersonalAccountsApiFp)(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
619
533
|
};
|
|
620
534
|
/**
|
|
621
|
-
* Returns a list of
|
|
622
|
-
* @summary List
|
|
623
|
-
* @param {
|
|
535
|
+
* Returns a list of Personal Accounts you have previously created. The Personal 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 Personal Accounts
|
|
537
|
+
* @param {PersonalAccountsApiListPersonalAccountsRequest} requestParameters Request parameters.
|
|
624
538
|
* @param {*} [options] Override http request option.
|
|
625
539
|
* @throws {RequiredError}
|
|
626
|
-
* @memberof
|
|
540
|
+
* @memberof PersonalAccountsApi
|
|
627
541
|
*/
|
|
628
|
-
|
|
542
|
+
PersonalAccountsApi.prototype.listPersonalAccounts = function (requestParameters, options) {
|
|
629
543
|
var _this = this;
|
|
630
544
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
631
|
-
return (0, exports.
|
|
632
|
-
};
|
|
633
|
-
/**
|
|
634
|
-
* Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
|
|
635
|
-
* @summary Update the vbu
|
|
636
|
-
* @param {VbusApiUpdateVbuRequest} requestParameters Request parameters.
|
|
637
|
-
* @param {*} [options] Override http request option.
|
|
638
|
-
* @throws {RequiredError}
|
|
639
|
-
* @memberof VbusApi
|
|
640
|
-
*/
|
|
641
|
-
VbusApi.prototype.updateVbu = function (requestParameters, options) {
|
|
642
|
-
var _this = this;
|
|
643
|
-
return (0, exports.VbusApiFp)(this.configuration).updateVbu(requestParameters.code, requestParameters.updateVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
545
|
+
return (0, exports.PersonalAccountsApiFp)(this.configuration).listPersonalAccounts(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); });
|
|
644
546
|
};
|
|
645
|
-
return
|
|
547
|
+
return PersonalAccountsApi;
|
|
646
548
|
}(base_1.BaseAPI));
|
|
647
|
-
exports.
|
|
549
|
+
exports.PersonalAccountsApi = PersonalAccountsApi;
|