@emilgroup/accounting-sdk-node 1.14.0 → 1.14.1-beta.1
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 +15 -52
- package/README.md +2 -2
- package/api/booking-processes-api.ts +357 -0
- 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/booking-processes-api.d.ts +207 -0
- package/dist/api/{zip-codes-api.js → booking-processes-api.js} +83 -169
- 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 +123 -0
- package/dist/models/booking-entry-class.js +34 -0
- package/dist/models/booking-process-class.d.ts +94 -0
- package/dist/models/booking-process-class.js +29 -0
- package/dist/models/create-booking-entry-request-dto.d.ts +99 -0
- package/dist/models/create-booking-entry-request-dto.js +34 -0
- package/dist/models/create-booking-process-request-dto.d.ts +64 -0
- package/dist/models/create-booking-process-request-dto.js +29 -0
- package/dist/models/create-booking-process-response-class.d.ts +25 -0
- package/dist/models/{address-class.js → create-booking-process-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-user-response-class.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 +108 -0
- package/dist/models/{create-mailbox-request-dto.js → financial-transaction-class.js} +2 -2
- package/dist/models/financial-transaction-data-dto.d.ts +71 -0
- package/dist/models/{create-vba-request-dto.js → financial-transaction-data-dto.js} +6 -6
- package/dist/models/get-financial-account-response-class.d.ts +25 -0
- package/dist/models/{create-vba-response-class.js → get-financial-account-response-class.js} +2 -2
- package/dist/models/index.d.ts +13 -46
- package/dist/models/index.js +13 -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-process-response-class.d.ts +31 -0
- package/dist/models/list-booking-process-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 +133 -0
- package/models/booking-process-class.ts +104 -0
- package/models/create-booking-entry-request-dto.ts +109 -0
- package/models/create-booking-process-request-dto.ts +74 -0
- package/models/create-booking-process-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 +114 -0
- package/models/financial-transaction-data-dto.ts +80 -0
- package/models/get-financial-account-response-class.ts +31 -0
- package/models/index.ts +13 -46
- package/models/inline-response200.ts +2 -2
- package/models/inline-response503.ts +2 -2
- package/models/list-booking-process-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/api/zip-codes-api.ts +0 -443
- 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/api/zip-codes-api.d.ts +0 -253
- 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-request-dto.js +0 -20
- 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 -84
- 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 -121
- 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 -133
- 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 -90
- package/models/request-details-class.ts +0 -54
- package/models/request-message-class.ts +0 -127
- package/models/response-details-class.ts +0 -48
- package/models/response-message-class.ts +0 -139
- 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
package/.openapi-generator/FILES
CHANGED
|
@@ -3,66 +3,29 @@
|
|
|
3
3
|
.openapi-generator-ignore
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
|
+
api/booking-processes-api.ts
|
|
7
|
+
api/financial-accounts-api.ts
|
|
6
8
|
api/health-api.ts
|
|
7
|
-
api/mailbox-api.ts
|
|
8
|
-
api/messages-api.ts
|
|
9
|
-
api/users-api.ts
|
|
10
|
-
api/vbas-api.ts
|
|
11
|
-
api/vbus-api.ts
|
|
12
|
-
api/zip-codes-api.ts
|
|
13
9
|
base.ts
|
|
14
10
|
common.ts
|
|
15
11
|
configuration.ts
|
|
16
12
|
git_push.sh
|
|
17
13
|
index.ts
|
|
18
|
-
models/
|
|
19
|
-
models/
|
|
20
|
-
models/create-
|
|
21
|
-
models/create-
|
|
22
|
-
models/create-
|
|
23
|
-
models/create-
|
|
24
|
-
models/create-
|
|
25
|
-
models/
|
|
26
|
-
models/
|
|
27
|
-
models/
|
|
28
|
-
models/get-
|
|
29
|
-
models/get-response-message-response-class.ts
|
|
30
|
-
models/get-user-response-class.ts
|
|
31
|
-
models/get-vba-response-class.ts
|
|
32
|
-
models/get-vbu-response-class.ts
|
|
33
|
-
models/get-zip-code-response-class.ts
|
|
14
|
+
models/booking-entry-class.ts
|
|
15
|
+
models/booking-process-class.ts
|
|
16
|
+
models/create-booking-entry-request-dto.ts
|
|
17
|
+
models/create-booking-process-request-dto.ts
|
|
18
|
+
models/create-booking-process-response-class.ts
|
|
19
|
+
models/create-financial-account-request-dto.ts
|
|
20
|
+
models/create-financial-account-response-class.ts
|
|
21
|
+
models/financial-account-class.ts
|
|
22
|
+
models/financial-transaction-class.ts
|
|
23
|
+
models/financial-transaction-data-dto.ts
|
|
24
|
+
models/get-financial-account-response-class.ts
|
|
34
25
|
models/index.ts
|
|
35
26
|
models/inline-response200.ts
|
|
36
27
|
models/inline-response503.ts
|
|
37
|
-
models/list-
|
|
38
|
-
models/list-
|
|
39
|
-
models/list-responses-messages-response-class.ts
|
|
40
|
-
models/list-users-response-class.ts
|
|
41
|
-
models/list-vbas-response-class.ts
|
|
42
|
-
models/list-vbus-response-class.ts
|
|
43
|
-
models/list-zip-codes-response-class.ts
|
|
44
|
-
models/message-class.ts
|
|
45
|
-
models/request-details-class.ts
|
|
46
|
-
models/request-message-class.ts
|
|
47
|
-
models/response-details-class.ts
|
|
48
|
-
models/response-message-class.ts
|
|
49
|
-
models/store-zip-codes-request-dto.ts
|
|
50
|
-
models/store-zip-codes-response-class.ts
|
|
51
|
-
models/update-request-message-request-dto.ts
|
|
52
|
-
models/update-request-message-response-class.ts
|
|
53
|
-
models/update-response-message-request-dto.ts
|
|
54
|
-
models/update-response-message-response-class.ts
|
|
55
|
-
models/update-user-request-dto.ts
|
|
56
|
-
models/update-user-response-class.ts
|
|
57
|
-
models/update-vba-request-dto.ts
|
|
58
|
-
models/update-vbu-request-dto.ts
|
|
59
|
-
models/update-vbu-response-class.ts
|
|
60
|
-
models/user-class.ts
|
|
61
|
-
models/vba-class.ts
|
|
62
|
-
models/vba-response-class.ts
|
|
63
|
-
models/vbu-class.ts
|
|
64
|
-
models/vbu-response-class.ts
|
|
65
|
-
models/xlsx-zip-code-dto.ts
|
|
66
|
-
models/zip-code-class.ts
|
|
28
|
+
models/list-booking-process-response-class.ts
|
|
29
|
+
models/list-financial-accounts-response-class.ts
|
|
67
30
|
package.json
|
|
68
31
|
tsconfig.json
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/accounting-sdk-node@1.14.
|
|
20
|
+
npm install @emilgroup/accounting-sdk-node@1.14.1-beta.1 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/accounting-sdk-node@1.14.
|
|
24
|
+
yarn add @emilgroup/accounting-sdk-node@1.14.1-beta.1
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `FinancialAccountsApi`.
|
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL AccountingService
|
|
5
|
+
* The EMIL AccountingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreateBookingProcessRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreateBookingProcessResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { ListBookingProcessResponseClass } from '../models';
|
|
29
|
+
// URLSearchParams not necessarily used
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
import { URL, URLSearchParams } from 'url';
|
|
32
|
+
const FormData = require('form-data');
|
|
33
|
+
/**
|
|
34
|
+
* BookingProcessesApi - axios parameter creator
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export const BookingProcessesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
38
|
+
return {
|
|
39
|
+
/**
|
|
40
|
+
* This endpoint creates a new booking process.
|
|
41
|
+
* @summary Create the booking process
|
|
42
|
+
* @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
|
|
43
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
createBookingProcess: async (createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
// verify required parameter 'createBookingProcessRequestDto' is not null or undefined
|
|
49
|
+
assertParamExists('createBookingProcess', 'createBookingProcessRequestDto', createBookingProcessRequestDto)
|
|
50
|
+
const localVarPath = `/accountingservice/v1/booking-processes`;
|
|
51
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
52
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
53
|
+
let baseOptions;
|
|
54
|
+
let baseAccessToken;
|
|
55
|
+
if (configuration) {
|
|
56
|
+
baseOptions = configuration.baseOptions;
|
|
57
|
+
baseAccessToken = configuration.accessToken;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
61
|
+
const localVarHeaderParameter = {} as any;
|
|
62
|
+
const localVarQueryParameter = {} as any;
|
|
63
|
+
|
|
64
|
+
// authentication bearer required
|
|
65
|
+
// http bearer authentication required
|
|
66
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
67
|
+
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
75
|
+
|
|
76
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
77
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
78
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
79
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBookingProcessRequestDto, localVarRequestOptions, configuration)
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
url: toPathString(localVarUrlObj),
|
|
83
|
+
options: localVarRequestOptions,
|
|
84
|
+
};
|
|
85
|
+
},
|
|
86
|
+
/**
|
|
87
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
88
|
+
* @summary List Booking processes
|
|
89
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
90
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
91
|
+
* @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.
|
|
92
|
+
* @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</i>
|
|
93
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
94
|
+
* @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, updatedAt, createdAt</i>
|
|
95
|
+
* @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/>
|
|
96
|
+
* @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</i>
|
|
97
|
+
* @param {*} [options] Override http request option.
|
|
98
|
+
* @throws {RequiredError}
|
|
99
|
+
*/
|
|
100
|
+
listBookingProcesses: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
101
|
+
const localVarPath = `/accountingservice/v1/booking-processes`;
|
|
102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
104
|
+
let baseOptions;
|
|
105
|
+
let baseAccessToken;
|
|
106
|
+
if (configuration) {
|
|
107
|
+
baseOptions = configuration.baseOptions;
|
|
108
|
+
baseAccessToken = configuration.accessToken;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
112
|
+
const localVarHeaderParameter = {} as any;
|
|
113
|
+
const localVarQueryParameter = {} as any;
|
|
114
|
+
|
|
115
|
+
// authentication bearer required
|
|
116
|
+
// http bearer authentication required
|
|
117
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
118
|
+
|
|
119
|
+
if (pageSize !== undefined) {
|
|
120
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (pageToken !== undefined) {
|
|
124
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (filter !== undefined) {
|
|
128
|
+
localVarQueryParameter['filter'] = filter;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (search !== undefined) {
|
|
132
|
+
localVarQueryParameter['search'] = search;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (order !== undefined) {
|
|
136
|
+
localVarQueryParameter['order'] = order;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
if (expand !== undefined) {
|
|
140
|
+
localVarQueryParameter['expand'] = expand;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
if (filters !== undefined) {
|
|
144
|
+
localVarQueryParameter['filters'] = filters;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
148
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
156
|
+
|
|
157
|
+
return {
|
|
158
|
+
url: toPathString(localVarUrlObj),
|
|
159
|
+
options: localVarRequestOptions,
|
|
160
|
+
};
|
|
161
|
+
},
|
|
162
|
+
}
|
|
163
|
+
};
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* BookingProcessesApi - functional programming interface
|
|
167
|
+
* @export
|
|
168
|
+
*/
|
|
169
|
+
export const BookingProcessesApiFp = function(configuration?: Configuration) {
|
|
170
|
+
const localVarAxiosParamCreator = BookingProcessesApiAxiosParamCreator(configuration)
|
|
171
|
+
return {
|
|
172
|
+
/**
|
|
173
|
+
* This endpoint creates a new booking process.
|
|
174
|
+
* @summary Create the booking process
|
|
175
|
+
* @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
|
|
176
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
async createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateBookingProcessResponseClass>> {
|
|
181
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createBookingProcess(createBookingProcessRequestDto, authorization, options);
|
|
182
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
183
|
+
},
|
|
184
|
+
/**
|
|
185
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
186
|
+
* @summary List Booking processes
|
|
187
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
188
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
189
|
+
* @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.
|
|
190
|
+
* @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</i>
|
|
191
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
192
|
+
* @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, updatedAt, createdAt</i>
|
|
193
|
+
* @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/>
|
|
194
|
+
* @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</i>
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
async listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListBookingProcessResponseClass>> {
|
|
199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
200
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
201
|
+
},
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
/**
|
|
206
|
+
* BookingProcessesApi - factory interface
|
|
207
|
+
* @export
|
|
208
|
+
*/
|
|
209
|
+
export const BookingProcessesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
210
|
+
const localVarFp = BookingProcessesApiFp(configuration)
|
|
211
|
+
return {
|
|
212
|
+
/**
|
|
213
|
+
* This endpoint creates a new booking process.
|
|
214
|
+
* @summary Create the booking process
|
|
215
|
+
* @param {CreateBookingProcessRequestDto} createBookingProcessRequestDto
|
|
216
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
217
|
+
* @param {*} [options] Override http request option.
|
|
218
|
+
* @throws {RequiredError}
|
|
219
|
+
*/
|
|
220
|
+
createBookingProcess(createBookingProcessRequestDto: CreateBookingProcessRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingProcessResponseClass> {
|
|
221
|
+
return localVarFp.createBookingProcess(createBookingProcessRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
222
|
+
},
|
|
223
|
+
/**
|
|
224
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
225
|
+
* @summary List Booking processes
|
|
226
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
227
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
228
|
+
* @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.
|
|
229
|
+
* @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</i>
|
|
230
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
231
|
+
* @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, updatedAt, createdAt</i>
|
|
232
|
+
* @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/>
|
|
233
|
+
* @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</i>
|
|
234
|
+
* @param {*} [options] Override http request option.
|
|
235
|
+
* @throws {RequiredError}
|
|
236
|
+
*/
|
|
237
|
+
listBookingProcesses(authorization?: string, pageSize?: any, pageToken?: any, filter?: string, search?: any, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListBookingProcessResponseClass> {
|
|
238
|
+
return localVarFp.listBookingProcesses(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
239
|
+
},
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Request parameters for createBookingProcess operation in BookingProcessesApi.
|
|
245
|
+
* @export
|
|
246
|
+
* @interface BookingProcessesApiCreateBookingProcessRequest
|
|
247
|
+
*/
|
|
248
|
+
export interface BookingProcessesApiCreateBookingProcessRequest {
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @type {CreateBookingProcessRequestDto}
|
|
252
|
+
* @memberof BookingProcessesApiCreateBookingProcess
|
|
253
|
+
*/
|
|
254
|
+
readonly createBookingProcessRequestDto: CreateBookingProcessRequestDto
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
258
|
+
* @type {string}
|
|
259
|
+
* @memberof BookingProcessesApiCreateBookingProcess
|
|
260
|
+
*/
|
|
261
|
+
readonly authorization?: string
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Request parameters for listBookingProcesses operation in BookingProcessesApi.
|
|
266
|
+
* @export
|
|
267
|
+
* @interface BookingProcessesApiListBookingProcessesRequest
|
|
268
|
+
*/
|
|
269
|
+
export interface BookingProcessesApiListBookingProcessesRequest {
|
|
270
|
+
/**
|
|
271
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
272
|
+
* @type {string}
|
|
273
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
274
|
+
*/
|
|
275
|
+
readonly authorization?: string
|
|
276
|
+
|
|
277
|
+
/**
|
|
278
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
279
|
+
* @type {any}
|
|
280
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
281
|
+
*/
|
|
282
|
+
readonly pageSize?: any
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* 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.
|
|
286
|
+
* @type {any}
|
|
287
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
288
|
+
*/
|
|
289
|
+
readonly pageToken?: any
|
|
290
|
+
|
|
291
|
+
/**
|
|
292
|
+
* 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</i>
|
|
293
|
+
* @type {string}
|
|
294
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
295
|
+
*/
|
|
296
|
+
readonly filter?: string
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* To search the list by any field, pass search=xxx to fetch the result.
|
|
300
|
+
* @type {any}
|
|
301
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
302
|
+
*/
|
|
303
|
+
readonly search?: any
|
|
304
|
+
|
|
305
|
+
/**
|
|
306
|
+
* 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, updatedAt, createdAt</i>
|
|
307
|
+
* @type {string}
|
|
308
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
309
|
+
*/
|
|
310
|
+
readonly order?: string
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* 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/>
|
|
314
|
+
* @type {string}
|
|
315
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
316
|
+
*/
|
|
317
|
+
readonly expand?: string
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* 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</i>
|
|
321
|
+
* @type {string}
|
|
322
|
+
* @memberof BookingProcessesApiListBookingProcesses
|
|
323
|
+
*/
|
|
324
|
+
readonly filters?: string
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* BookingProcessesApi - object-oriented interface
|
|
329
|
+
* @export
|
|
330
|
+
* @class BookingProcessesApi
|
|
331
|
+
* @extends {BaseAPI}
|
|
332
|
+
*/
|
|
333
|
+
export class BookingProcessesApi extends BaseAPI {
|
|
334
|
+
/**
|
|
335
|
+
* This endpoint creates a new booking process.
|
|
336
|
+
* @summary Create the booking process
|
|
337
|
+
* @param {BookingProcessesApiCreateBookingProcessRequest} requestParameters Request parameters.
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
* @memberof BookingProcessesApi
|
|
341
|
+
*/
|
|
342
|
+
public createBookingProcess(requestParameters: BookingProcessesApiCreateBookingProcessRequest, options?: AxiosRequestConfig) {
|
|
343
|
+
return BookingProcessesApiFp(this.configuration).createBookingProcess(requestParameters.createBookingProcessRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* Returns a list of Booking processes you have previously created. The Booking processes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
348
|
+
* @summary List Booking processes
|
|
349
|
+
* @param {BookingProcessesApiListBookingProcessesRequest} requestParameters Request parameters.
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
* @memberof BookingProcessesApi
|
|
353
|
+
*/
|
|
354
|
+
public listBookingProcesses(requestParameters: BookingProcessesApiListBookingProcessesRequest = {}, options?: AxiosRequestConfig) {
|
|
355
|
+
return BookingProcessesApiFp(this.configuration).listBookingProcesses(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
356
|
+
}
|
|
357
|
+
}
|