@emilgroup/accounting-sdk-node 1.16.0 → 1.16.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +14 -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/health-api.ts +7 -7
- package/api.ts +6 -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/{vbas-api.js → financial-accounts-api.js} +156 -161
- package/dist/api/health-api.d.ts +6 -6
- package/dist/api/health-api.js +7 -7
- package/dist/api.d.ts +4 -8
- package/dist/api.js +4 -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 +111 -0
- package/dist/models/{create-vbu-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 +62 -0
- package/dist/models/{create-user-request-dto.js → create-financial-account-request-dto.js} +9 -10
- 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/financial-account-class.d.ts +98 -0
- package/dist/models/{user-class.js → financial-account-class.js} +9 -6
- package/dist/models/financial-transaction-class.d.ts +96 -0
- package/dist/models/{create-vba-response-class.js → financial-transaction-class.js} +2 -2
- package/dist/models/financial-transaction-data-dto.d.ts +59 -0
- package/dist/models/{create-vba-request-dto.js → financial-transaction-data-dto.js} +6 -6
- 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/index.d.ts +12 -46
- package/dist/models/index.js +12 -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/index.ts +2 -2
- package/models/booking-entry-class.ts +120 -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 +71 -0
- package/models/create-financial-account-response-class.ts +31 -0
- package/models/financial-account-class.ts +107 -0
- package/models/financial-transaction-class.ts +102 -0
- package/models/financial-transaction-data-dto.ts +68 -0
- package/models/get-booking-entry-response-class.ts +31 -0
- package/models/get-financial-account-response-class.ts +31 -0
- package/models/index.ts +12 -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/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/users-api.js +0 -512
- package/dist/api/vbas-api.d.ts +0 -337
- package/dist/api/vbus-api.d.ts +0 -395
- package/dist/api/vbus-api.js +0 -647
- 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-request-dto.js +0 -20
- 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/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.BookingEntriesApi = exports.BookingEntriesApiFactory = exports.BookingEntriesApiFp = exports.BookingEntriesApiAxiosParamCreator = 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,37 +90,36 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* BookingEntriesApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var BookingEntriesApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary
|
|
102
|
-
* @param {
|
|
103
|
-
* @param {string} [authorization] Bearer Token
|
|
100
|
+
* This endpoint creates a new booking entry.
|
|
101
|
+
* @summary Create the booking entry
|
|
102
|
+
* @param {CreateBookingEntryRequestDto} createBookingEntryRequestDto
|
|
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
|
+
createBookingEntry: function (createBookingEntryRequestDto, 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 = "/
|
|
117
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
114
|
+
// verify required parameter 'createBookingEntryRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createBookingEntry', 'createBookingEntryRequestDto', createBookingEntryRequestDto);
|
|
116
|
+
localVarPath = "/accountingservice/v1/booking-entries";
|
|
118
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
119
118
|
if (configuration) {
|
|
120
119
|
baseOptions = configuration.baseOptions;
|
|
121
120
|
baseAccessToken = configuration.accessToken;
|
|
122
121
|
}
|
|
123
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
122
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
124
123
|
localVarHeaderParameter = {};
|
|
125
124
|
localVarQueryParameter = {};
|
|
126
125
|
// authentication bearer required
|
|
@@ -133,9 +132,11 @@ var ZipCodesApiAxiosParamCreator = function (configuration) {
|
|
|
133
132
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
133
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
135
134
|
}
|
|
135
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
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)(createBookingEntryRequestDto, localVarRequestOptions, configuration);
|
|
139
140
|
return [2 /*return*/, {
|
|
140
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
141
142
|
options: localVarRequestOptions,
|
|
@@ -145,27 +146,27 @@ var ZipCodesApiAxiosParamCreator = function (configuration) {
|
|
|
145
146
|
});
|
|
146
147
|
},
|
|
147
148
|
/**
|
|
148
|
-
*
|
|
149
|
-
* @summary
|
|
150
|
-
* @param {string}
|
|
151
|
-
* @param {
|
|
152
|
-
* @param {
|
|
153
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
154
|
-
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
155
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
156
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
157
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
149
|
+
* This endpoint gets a booking entry.
|
|
150
|
+
* @summary Retrieve the booking entry
|
|
151
|
+
* @param {string} code
|
|
152
|
+
* @param {string} expand
|
|
153
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
154
|
* @param {*} [options] Override http request option.
|
|
159
155
|
* @throws {RequiredError}
|
|
160
156
|
*/
|
|
161
|
-
|
|
157
|
+
getBookingEntry: function (code, expand, authorization, options) {
|
|
162
158
|
if (options === void 0) { options = {}; }
|
|
163
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
161
|
return __generator(this, function (_a) {
|
|
166
162
|
switch (_a.label) {
|
|
167
163
|
case 0:
|
|
168
|
-
|
|
164
|
+
// verify required parameter 'code' is not null or undefined
|
|
165
|
+
(0, common_1.assertParamExists)('getBookingEntry', 'code', code);
|
|
166
|
+
// verify required parameter 'expand' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('getBookingEntry', 'expand', expand);
|
|
168
|
+
localVarPath = "/accountingservice/v1/booking-entries/{code}"
|
|
169
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
169
170
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
170
171
|
if (configuration) {
|
|
171
172
|
baseOptions = configuration.baseOptions;
|
|
@@ -181,27 +182,9 @@ var ZipCodesApiAxiosParamCreator = function (configuration) {
|
|
|
181
182
|
// authentication bearer required
|
|
182
183
|
// http bearer authentication required
|
|
183
184
|
_a.sent();
|
|
184
|
-
if (pageSize !== undefined) {
|
|
185
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
186
|
-
}
|
|
187
|
-
if (pageToken !== undefined) {
|
|
188
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
189
|
-
}
|
|
190
|
-
if (filter !== undefined) {
|
|
191
|
-
localVarQueryParameter['filter'] = filter;
|
|
192
|
-
}
|
|
193
|
-
if (search !== undefined) {
|
|
194
|
-
localVarQueryParameter['search'] = search;
|
|
195
|
-
}
|
|
196
|
-
if (order !== undefined) {
|
|
197
|
-
localVarQueryParameter['order'] = order;
|
|
198
|
-
}
|
|
199
185
|
if (expand !== undefined) {
|
|
200
186
|
localVarQueryParameter['expand'] = expand;
|
|
201
187
|
}
|
|
202
|
-
if (filters !== undefined) {
|
|
203
|
-
localVarQueryParameter['filters'] = filters;
|
|
204
|
-
}
|
|
205
188
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
206
189
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
207
190
|
}
|
|
@@ -217,26 +200,33 @@ var ZipCodesApiAxiosParamCreator = function (configuration) {
|
|
|
217
200
|
});
|
|
218
201
|
},
|
|
219
202
|
/**
|
|
220
|
-
*
|
|
221
|
-
* @summary
|
|
222
|
-
* @param {string} [authorization] Bearer Token
|
|
203
|
+
* This endpoint gets booking entries.
|
|
204
|
+
* @summary List booking entries
|
|
205
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
206
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
207
|
+
* @param {any} [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.
|
|
208
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
209
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
210
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
211
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
212
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
223
213
|
* @param {*} [options] Override http request option.
|
|
224
214
|
* @throws {RequiredError}
|
|
225
215
|
*/
|
|
226
|
-
|
|
216
|
+
listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
227
217
|
if (options === void 0) { options = {}; }
|
|
228
218
|
return __awaiter(_this, void 0, void 0, function () {
|
|
229
219
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
230
220
|
return __generator(this, function (_a) {
|
|
231
221
|
switch (_a.label) {
|
|
232
222
|
case 0:
|
|
233
|
-
localVarPath = "/
|
|
223
|
+
localVarPath = "/accountingservice/v1/booking-entries";
|
|
234
224
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
235
225
|
if (configuration) {
|
|
236
226
|
baseOptions = configuration.baseOptions;
|
|
237
227
|
baseAccessToken = configuration.accessToken;
|
|
238
228
|
}
|
|
239
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
229
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
240
230
|
localVarHeaderParameter = {};
|
|
241
231
|
localVarQueryParameter = {};
|
|
242
232
|
// authentication bearer required
|
|
@@ -246,6 +236,27 @@ var ZipCodesApiAxiosParamCreator = function (configuration) {
|
|
|
246
236
|
// authentication bearer required
|
|
247
237
|
// http bearer authentication required
|
|
248
238
|
_a.sent();
|
|
239
|
+
if (pageSize !== undefined) {
|
|
240
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
241
|
+
}
|
|
242
|
+
if (pageToken !== undefined) {
|
|
243
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
244
|
+
}
|
|
245
|
+
if (filter !== undefined) {
|
|
246
|
+
localVarQueryParameter['filter'] = filter;
|
|
247
|
+
}
|
|
248
|
+
if (search !== undefined) {
|
|
249
|
+
localVarQueryParameter['search'] = search;
|
|
250
|
+
}
|
|
251
|
+
if (order !== undefined) {
|
|
252
|
+
localVarQueryParameter['order'] = order;
|
|
253
|
+
}
|
|
254
|
+
if (expand !== undefined) {
|
|
255
|
+
localVarQueryParameter['expand'] = expand;
|
|
256
|
+
}
|
|
257
|
+
if (filters !== undefined) {
|
|
258
|
+
localVarQueryParameter['filters'] = filters;
|
|
259
|
+
}
|
|
249
260
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
250
261
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
251
262
|
}
|
|
@@ -262,28 +273,28 @@ var ZipCodesApiAxiosParamCreator = function (configuration) {
|
|
|
262
273
|
},
|
|
263
274
|
};
|
|
264
275
|
};
|
|
265
|
-
exports.
|
|
276
|
+
exports.BookingEntriesApiAxiosParamCreator = BookingEntriesApiAxiosParamCreator;
|
|
266
277
|
/**
|
|
267
|
-
*
|
|
278
|
+
* BookingEntriesApi - functional programming interface
|
|
268
279
|
* @export
|
|
269
280
|
*/
|
|
270
|
-
var
|
|
271
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
281
|
+
var BookingEntriesApiFp = function (configuration) {
|
|
282
|
+
var localVarAxiosParamCreator = (0, exports.BookingEntriesApiAxiosParamCreator)(configuration);
|
|
272
283
|
return {
|
|
273
284
|
/**
|
|
274
|
-
*
|
|
275
|
-
* @summary
|
|
276
|
-
* @param {
|
|
277
|
-
* @param {string} [authorization] Bearer Token
|
|
285
|
+
* This endpoint creates a new booking entry.
|
|
286
|
+
* @summary Create the booking entry
|
|
287
|
+
* @param {CreateBookingEntryRequestDto} createBookingEntryRequestDto
|
|
288
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
278
289
|
* @param {*} [options] Override http request option.
|
|
279
290
|
* @throws {RequiredError}
|
|
280
291
|
*/
|
|
281
|
-
|
|
292
|
+
createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
|
|
282
293
|
return __awaiter(this, void 0, void 0, function () {
|
|
283
294
|
var localVarAxiosArgs;
|
|
284
295
|
return __generator(this, function (_a) {
|
|
285
296
|
switch (_a.label) {
|
|
286
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
297
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createBookingEntry(createBookingEntryRequestDto, authorization, options)];
|
|
287
298
|
case 1:
|
|
288
299
|
localVarAxiosArgs = _a.sent();
|
|
289
300
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -292,25 +303,20 @@ var ZipCodesApiFp = function (configuration) {
|
|
|
292
303
|
});
|
|
293
304
|
},
|
|
294
305
|
/**
|
|
295
|
-
*
|
|
296
|
-
* @summary
|
|
297
|
-
* @param {string}
|
|
298
|
-
* @param {
|
|
299
|
-
* @param {
|
|
300
|
-
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
301
|
-
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
302
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
303
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
304
|
-
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
306
|
+
* This endpoint gets a booking entry.
|
|
307
|
+
* @summary Retrieve the booking entry
|
|
308
|
+
* @param {string} code
|
|
309
|
+
* @param {string} expand
|
|
310
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
305
311
|
* @param {*} [options] Override http request option.
|
|
306
312
|
* @throws {RequiredError}
|
|
307
313
|
*/
|
|
308
|
-
|
|
314
|
+
getBookingEntry: function (code, expand, authorization, options) {
|
|
309
315
|
return __awaiter(this, void 0, void 0, function () {
|
|
310
316
|
var localVarAxiosArgs;
|
|
311
317
|
return __generator(this, function (_a) {
|
|
312
318
|
switch (_a.label) {
|
|
313
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
319
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getBookingEntry(code, expand, authorization, options)];
|
|
314
320
|
case 1:
|
|
315
321
|
localVarAxiosArgs = _a.sent();
|
|
316
322
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -319,18 +325,25 @@ var ZipCodesApiFp = function (configuration) {
|
|
|
319
325
|
});
|
|
320
326
|
},
|
|
321
327
|
/**
|
|
322
|
-
*
|
|
323
|
-
* @summary
|
|
324
|
-
* @param {string} [authorization] Bearer Token
|
|
328
|
+
* This endpoint gets booking entries.
|
|
329
|
+
* @summary List booking entries
|
|
330
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
331
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
332
|
+
* @param {any} [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.
|
|
333
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
334
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
335
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
336
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
337
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
325
338
|
* @param {*} [options] Override http request option.
|
|
326
339
|
* @throws {RequiredError}
|
|
327
340
|
*/
|
|
328
|
-
|
|
341
|
+
listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
329
342
|
return __awaiter(this, void 0, void 0, function () {
|
|
330
343
|
var localVarAxiosArgs;
|
|
331
344
|
return __generator(this, function (_a) {
|
|
332
345
|
switch (_a.label) {
|
|
333
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
346
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
334
347
|
case 1:
|
|
335
348
|
localVarAxiosArgs = _a.sent();
|
|
336
349
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -340,29 +353,41 @@ var ZipCodesApiFp = function (configuration) {
|
|
|
340
353
|
},
|
|
341
354
|
};
|
|
342
355
|
};
|
|
343
|
-
exports.
|
|
356
|
+
exports.BookingEntriesApiFp = BookingEntriesApiFp;
|
|
344
357
|
/**
|
|
345
|
-
*
|
|
358
|
+
* BookingEntriesApi - factory interface
|
|
346
359
|
* @export
|
|
347
360
|
*/
|
|
348
|
-
var
|
|
349
|
-
var localVarFp = (0, exports.
|
|
361
|
+
var BookingEntriesApiFactory = function (configuration, basePath, axios) {
|
|
362
|
+
var localVarFp = (0, exports.BookingEntriesApiFp)(configuration);
|
|
350
363
|
return {
|
|
351
364
|
/**
|
|
352
|
-
*
|
|
353
|
-
* @summary
|
|
354
|
-
* @param {
|
|
355
|
-
* @param {string} [authorization] Bearer Token
|
|
365
|
+
* This endpoint creates a new booking entry.
|
|
366
|
+
* @summary Create the booking entry
|
|
367
|
+
* @param {CreateBookingEntryRequestDto} createBookingEntryRequestDto
|
|
368
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
356
369
|
* @param {*} [options] Override http request option.
|
|
357
370
|
* @throws {RequiredError}
|
|
358
371
|
*/
|
|
359
|
-
|
|
360
|
-
return localVarFp.
|
|
372
|
+
createBookingEntry: function (createBookingEntryRequestDto, authorization, options) {
|
|
373
|
+
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
361
374
|
},
|
|
362
375
|
/**
|
|
363
|
-
*
|
|
364
|
-
* @summary
|
|
365
|
-
* @param {string}
|
|
376
|
+
* This endpoint gets a booking entry.
|
|
377
|
+
* @summary Retrieve the booking entry
|
|
378
|
+
* @param {string} code
|
|
379
|
+
* @param {string} expand
|
|
380
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
*/
|
|
384
|
+
getBookingEntry: function (code, expand, authorization, options) {
|
|
385
|
+
return localVarFp.getBookingEntry(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
386
|
+
},
|
|
387
|
+
/**
|
|
388
|
+
* This endpoint gets booking entries.
|
|
389
|
+
* @summary List booking entries
|
|
390
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
366
391
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
367
392
|
* @param {any} [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.
|
|
368
393
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -373,71 +398,60 @@ var ZipCodesApiFactory = function (configuration, basePath, axios) {
|
|
|
373
398
|
* @param {*} [options] Override http request option.
|
|
374
399
|
* @throws {RequiredError}
|
|
375
400
|
*/
|
|
376
|
-
|
|
377
|
-
return localVarFp.
|
|
378
|
-
},
|
|
379
|
-
/**
|
|
380
|
-
* Store zip codes from file.
|
|
381
|
-
* @summary Create the zip codes
|
|
382
|
-
* @param {string} [authorization] Bearer Token
|
|
383
|
-
* @param {*} [options] Override http request option.
|
|
384
|
-
* @throws {RequiredError}
|
|
385
|
-
*/
|
|
386
|
-
storeZipCodes: function (authorization, options) {
|
|
387
|
-
return localVarFp.storeZipCodes(authorization, options).then(function (request) { return request(axios, basePath); });
|
|
401
|
+
listBookingEntries: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
402
|
+
return localVarFp.listBookingEntries(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
388
403
|
},
|
|
389
404
|
};
|
|
390
405
|
};
|
|
391
|
-
exports.
|
|
406
|
+
exports.BookingEntriesApiFactory = BookingEntriesApiFactory;
|
|
392
407
|
/**
|
|
393
|
-
*
|
|
408
|
+
* BookingEntriesApi - object-oriented interface
|
|
394
409
|
* @export
|
|
395
|
-
* @class
|
|
410
|
+
* @class BookingEntriesApi
|
|
396
411
|
* @extends {BaseAPI}
|
|
397
412
|
*/
|
|
398
|
-
var
|
|
399
|
-
__extends(
|
|
400
|
-
function
|
|
413
|
+
var BookingEntriesApi = /** @class */ (function (_super) {
|
|
414
|
+
__extends(BookingEntriesApi, _super);
|
|
415
|
+
function BookingEntriesApi() {
|
|
401
416
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
402
417
|
}
|
|
403
418
|
/**
|
|
404
|
-
*
|
|
405
|
-
* @summary
|
|
406
|
-
* @param {
|
|
419
|
+
* This endpoint creates a new booking entry.
|
|
420
|
+
* @summary Create the booking entry
|
|
421
|
+
* @param {BookingEntriesApiCreateBookingEntryRequest} requestParameters Request parameters.
|
|
407
422
|
* @param {*} [options] Override http request option.
|
|
408
423
|
* @throws {RequiredError}
|
|
409
|
-
* @memberof
|
|
424
|
+
* @memberof BookingEntriesApi
|
|
410
425
|
*/
|
|
411
|
-
|
|
426
|
+
BookingEntriesApi.prototype.createBookingEntry = function (requestParameters, options) {
|
|
412
427
|
var _this = this;
|
|
413
|
-
return (0, exports.
|
|
428
|
+
return (0, exports.BookingEntriesApiFp)(this.configuration).createBookingEntry(requestParameters.createBookingEntryRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
414
429
|
};
|
|
415
430
|
/**
|
|
416
|
-
*
|
|
417
|
-
* @summary
|
|
418
|
-
* @param {
|
|
431
|
+
* This endpoint gets a booking entry.
|
|
432
|
+
* @summary Retrieve the booking entry
|
|
433
|
+
* @param {BookingEntriesApiGetBookingEntryRequest} requestParameters Request parameters.
|
|
419
434
|
* @param {*} [options] Override http request option.
|
|
420
435
|
* @throws {RequiredError}
|
|
421
|
-
* @memberof
|
|
436
|
+
* @memberof BookingEntriesApi
|
|
422
437
|
*/
|
|
423
|
-
|
|
438
|
+
BookingEntriesApi.prototype.getBookingEntry = function (requestParameters, options) {
|
|
424
439
|
var _this = this;
|
|
425
|
-
|
|
426
|
-
return (0, exports.ZipCodesApiFp)(this.configuration).listZipCodes(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); });
|
|
440
|
+
return (0, exports.BookingEntriesApiFp)(this.configuration).getBookingEntry(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
427
441
|
};
|
|
428
442
|
/**
|
|
429
|
-
*
|
|
430
|
-
* @summary
|
|
431
|
-
* @param {
|
|
443
|
+
* This endpoint gets booking entries.
|
|
444
|
+
* @summary List booking entries
|
|
445
|
+
* @param {BookingEntriesApiListBookingEntriesRequest} requestParameters Request parameters.
|
|
432
446
|
* @param {*} [options] Override http request option.
|
|
433
447
|
* @throws {RequiredError}
|
|
434
|
-
* @memberof
|
|
448
|
+
* @memberof BookingEntriesApi
|
|
435
449
|
*/
|
|
436
|
-
|
|
450
|
+
BookingEntriesApi.prototype.listBookingEntries = function (requestParameters, options) {
|
|
437
451
|
var _this = this;
|
|
438
452
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
439
|
-
return (0, exports.
|
|
453
|
+
return (0, exports.BookingEntriesApiFp)(this.configuration).listBookingEntries(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); });
|
|
440
454
|
};
|
|
441
|
-
return
|
|
455
|
+
return BookingEntriesApi;
|
|
442
456
|
}(base_1.BaseAPI));
|
|
443
|
-
exports.
|
|
457
|
+
exports.BookingEntriesApi = BookingEntriesApi;
|