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