@emilgroup/accounting-sdk-node 1.20.1-beta.2 → 1.22.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 +52 -29
- package/README.md +2 -2
- package/api/health-api.ts +7 -7
- package/api/mailbox-api.ts +255 -0
- package/api/messages-api.ts +1100 -0
- package/api/users-api.ts +496 -0
- package/api/vbas-api.ts +592 -0
- package/api/vbus-api.ts +701 -0
- package/api/{booking-entries-api.ts → zip-codes-api.ts} +162 -195
- package/api.ts +14 -12
- package/base.ts +2 -2
- package/common.ts +4 -4
- package/configuration.ts +2 -2
- package/dist/api/health-api.d.ts +6 -6
- package/dist/api/health-api.js +7 -7
- package/dist/api/mailbox-api.d.ts +142 -0
- package/dist/api/mailbox-api.js +315 -0
- package/dist/api/messages-api.d.ts +632 -0
- package/dist/api/messages-api.js +916 -0
- package/dist/api/users-api.d.ts +275 -0
- package/dist/api/{financial-accounts-api.js → users-api.js} +134 -171
- package/dist/api/vbas-api.d.ts +337 -0
- package/dist/api/{number-ranges-api.js → vbas-api.js} +161 -156
- package/dist/api/vbus-api.d.ts +395 -0
- package/dist/api/{personal-accounts-api.js → vbus-api.js} +234 -136
- package/dist/api/{booking-entries-api.d.ts → zip-codes-api.d.ts} +111 -130
- package/dist/api/{booking-entries-api.js → zip-codes-api.js} +130 -144
- package/dist/api.d.ts +8 -7
- package/dist/api.js +8 -7
- 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/address-class.d.ts +48 -0
- package/dist/models/{create-number-range-response-class.js → address-class.js} +2 -2
- package/dist/models/create-mailbox-request-dto.d.ts +36 -0
- package/dist/models/{create-booking-entry-request-dto.js → create-mailbox-request-dto.js} +2 -2
- package/dist/models/create-user-request-dto.d.ts +76 -0
- package/dist/models/{create-personal-account-request-dto.js → create-user-request-dto.js} +10 -7
- package/dist/models/create-user-response-class.d.ts +25 -0
- package/dist/models/{create-financial-account-response-class.js → create-user-response-class.js} +2 -2
- package/dist/models/create-vba-request-dto.d.ts +41 -0
- package/dist/models/create-vba-request-dto.js +20 -0
- package/dist/models/create-vba-response-class.d.ts +24 -0
- package/dist/models/{create-booking-entry-response-class.js → create-vba-response-class.js} +2 -2
- package/dist/models/create-vbu-request-dto.d.ts +41 -0
- package/dist/models/create-vbu-request-dto.js +20 -0
- package/dist/models/create-vbu-response-class.d.ts +24 -0
- package/dist/models/create-vbu-response-class.js +15 -0
- package/dist/models/create-vbuv-request-dto.d.ts +41 -0
- package/dist/models/create-vbuv-request-dto.js +20 -0
- package/dist/models/create-vbuv-response-class.d.ts +24 -0
- package/dist/models/create-vbuv-response-class.js +15 -0
- package/dist/models/get-request-message-response-class.d.ts +25 -0
- package/dist/models/get-request-message-response-class.js +15 -0
- package/dist/models/get-response-message-response-class.d.ts +25 -0
- package/dist/models/get-response-message-response-class.js +15 -0
- package/dist/models/get-user-response-class.d.ts +25 -0
- package/dist/models/get-user-response-class.js +15 -0
- package/dist/models/get-vba-response-class.d.ts +25 -0
- package/dist/models/get-vba-response-class.js +15 -0
- package/dist/models/get-vbu-response-class.d.ts +25 -0
- package/dist/models/get-vbu-response-class.js +15 -0
- package/dist/models/get-zip-code-response-class.d.ts +25 -0
- package/dist/models/get-zip-code-response-class.js +15 -0
- package/dist/models/index.d.ts +46 -24
- package/dist/models/index.js +46 -24
- 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-all-messages-response-class.d.ts +31 -0
- package/dist/models/list-all-messages-response-class.js +15 -0
- package/dist/models/list-requests-messages-response-class.d.ts +31 -0
- package/dist/models/list-requests-messages-response-class.js +15 -0
- package/dist/models/list-responses-messages-response-class.d.ts +31 -0
- package/dist/models/list-responses-messages-response-class.js +15 -0
- package/dist/models/list-users-response-class.d.ts +31 -0
- package/dist/models/list-users-response-class.js +15 -0
- package/dist/models/list-vbas-response-class.d.ts +31 -0
- package/dist/models/list-vbas-response-class.js +15 -0
- package/dist/models/list-vbus-response-class.d.ts +31 -0
- package/dist/models/list-vbus-response-class.js +15 -0
- package/dist/models/list-zip-codes-response-class.d.ts +31 -0
- package/dist/models/list-zip-codes-response-class.js +15 -0
- package/dist/models/message-class.d.ts +90 -0
- package/dist/models/message-class.js +15 -0
- package/dist/models/request-details-class.d.ts +48 -0
- package/dist/models/request-details-class.js +15 -0
- package/dist/models/request-message-class.d.ts +127 -0
- package/dist/models/request-message-class.js +15 -0
- package/dist/models/response-details-class.d.ts +42 -0
- package/dist/models/response-details-class.js +15 -0
- package/dist/models/response-message-class.d.ts +139 -0
- package/dist/models/response-message-class.js +15 -0
- package/dist/models/store-zip-codes-request-dto.d.ts +25 -0
- package/dist/models/store-zip-codes-request-dto.js +15 -0
- package/dist/models/store-zip-codes-response-class.d.ts +25 -0
- package/dist/models/store-zip-codes-response-class.js +15 -0
- package/dist/models/update-request-message-request-dto.d.ts +36 -0
- package/dist/models/update-request-message-request-dto.js +15 -0
- package/dist/models/update-request-message-response-class.d.ts +25 -0
- package/dist/models/update-request-message-response-class.js +15 -0
- package/dist/models/update-response-message-request-dto.d.ts +36 -0
- package/dist/models/update-response-message-request-dto.js +15 -0
- package/dist/models/update-response-message-response-class.d.ts +25 -0
- package/dist/models/update-response-message-response-class.js +15 -0
- package/dist/models/update-user-request-dto.d.ts +82 -0
- package/dist/models/update-user-request-dto.js +24 -0
- package/dist/models/update-user-response-class.d.ts +25 -0
- package/dist/models/update-user-response-class.js +15 -0
- package/dist/models/update-vba-request-dto.d.ts +30 -0
- package/dist/models/update-vba-request-dto.js +15 -0
- package/dist/models/update-vbu-request-dto.d.ts +30 -0
- package/dist/models/update-vbu-request-dto.js +15 -0
- package/dist/models/update-vbu-response-class.d.ts +25 -0
- package/dist/models/update-vbu-response-class.js +15 -0
- package/dist/models/user-class.d.ts +107 -0
- package/dist/models/user-class.js +20 -0
- package/dist/models/vba-class.d.ts +116 -0
- package/dist/models/vba-class.js +15 -0
- package/dist/models/vba-response-class.d.ts +48 -0
- package/dist/models/vba-response-class.js +15 -0
- package/dist/models/vbu-class.d.ts +115 -0
- package/dist/models/vbu-class.js +15 -0
- package/dist/models/vbu-response-class.d.ts +48 -0
- package/dist/models/vbu-response-class.js +15 -0
- package/dist/models/xlsx-zip-code-dto.d.ts +30 -0
- package/dist/models/xlsx-zip-code-dto.js +15 -0
- package/dist/models/zip-code-class.d.ts +60 -0
- package/dist/models/zip-code-class.js +15 -0
- package/index.ts +2 -2
- package/models/address-class.ts +54 -0
- package/models/create-mailbox-request-dto.ts +42 -0
- package/models/create-user-request-dto.ts +86 -0
- package/models/create-user-response-class.ts +31 -0
- package/models/create-vba-request-dto.ts +50 -0
- package/models/create-vba-response-class.ts +30 -0
- package/models/create-vbu-request-dto.ts +50 -0
- package/models/create-vbu-response-class.ts +30 -0
- package/models/create-vbuv-request-dto.ts +50 -0
- package/models/create-vbuv-response-class.ts +30 -0
- package/models/get-request-message-response-class.ts +31 -0
- package/models/get-response-message-response-class.ts +31 -0
- package/models/get-user-response-class.ts +31 -0
- package/models/get-vba-response-class.ts +31 -0
- package/models/get-vbu-response-class.ts +31 -0
- package/models/get-zip-code-response-class.ts +31 -0
- package/models/index.ts +46 -24
- package/models/inline-response200.ts +2 -2
- package/models/inline-response503.ts +2 -2
- package/models/list-all-messages-response-class.ts +37 -0
- package/models/list-requests-messages-response-class.ts +37 -0
- package/models/list-responses-messages-response-class.ts +37 -0
- package/models/list-users-response-class.ts +37 -0
- package/models/list-vbas-response-class.ts +37 -0
- package/models/list-vbus-response-class.ts +37 -0
- package/models/list-zip-codes-response-class.ts +37 -0
- package/models/message-class.ts +96 -0
- package/models/request-details-class.ts +54 -0
- package/models/request-message-class.ts +133 -0
- package/models/response-details-class.ts +48 -0
- package/models/response-message-class.ts +145 -0
- package/models/store-zip-codes-request-dto.ts +31 -0
- package/models/store-zip-codes-response-class.ts +31 -0
- package/models/update-request-message-request-dto.ts +42 -0
- package/models/update-request-message-response-class.ts +31 -0
- package/models/update-response-message-request-dto.ts +42 -0
- package/models/update-response-message-response-class.ts +31 -0
- package/models/update-user-request-dto.ts +92 -0
- package/models/update-user-response-class.ts +31 -0
- package/models/update-vba-request-dto.ts +36 -0
- package/models/update-vbu-request-dto.ts +36 -0
- package/models/update-vbu-response-class.ts +31 -0
- package/models/user-class.ts +116 -0
- package/models/vba-class.ts +122 -0
- package/models/vba-response-class.ts +54 -0
- package/models/vbu-class.ts +121 -0
- package/models/vbu-response-class.ts +54 -0
- package/models/xlsx-zip-code-dto.ts +36 -0
- package/models/zip-code-class.ts +66 -0
- package/package.json +1 -1
- package/api/financial-accounts-api.ts +0 -577
- package/api/financial-transactions-api.ts +0 -369
- package/api/number-ranges-api.ts +0 -577
- package/api/personal-accounts-api.ts +0 -577
- package/dist/api/financial-accounts-api.d.ts +0 -327
- package/dist/api/financial-transactions-api.d.ts +0 -215
- package/dist/api/financial-transactions-api.js +0 -364
- package/dist/api/number-ranges-api.d.ts +0 -327
- package/dist/api/personal-accounts-api.d.ts +0 -327
- package/dist/models/booking-entry-class.d.ts +0 -123
- package/dist/models/booking-entry-class.js +0 -29
- package/dist/models/create-booking-entry-request-dto.d.ts +0 -61
- package/dist/models/create-booking-entry-response-class.d.ts +0 -25
- package/dist/models/create-financial-account-request-dto.d.ts +0 -75
- package/dist/models/create-financial-account-request-dto.js +0 -24
- package/dist/models/create-financial-account-response-class.d.ts +0 -25
- package/dist/models/create-number-range-request-dto.d.ts +0 -53
- package/dist/models/create-number-range-request-dto.js +0 -26
- package/dist/models/create-number-range-response-class.d.ts +0 -25
- package/dist/models/create-personal-account-request-dto.d.ts +0 -60
- package/dist/models/create-personal-account-response-class.d.ts +0 -25
- package/dist/models/create-personal-account-response-class.js +0 -15
- package/dist/models/financial-account-class.d.ts +0 -111
- package/dist/models/financial-account-class.js +0 -24
- package/dist/models/financial-transaction-class.d.ts +0 -114
- package/dist/models/financial-transaction-class.js +0 -15
- package/dist/models/financial-transaction-data-dto.d.ts +0 -71
- package/dist/models/financial-transaction-data-dto.js +0 -25
- package/dist/models/get-booking-entry-response-class.d.ts +0 -25
- package/dist/models/get-booking-entry-response-class.js +0 -15
- package/dist/models/get-financial-account-response-class.d.ts +0 -25
- package/dist/models/get-financial-account-response-class.js +0 -15
- package/dist/models/get-financial-transaction-response-class.d.ts +0 -25
- package/dist/models/get-financial-transaction-response-class.js +0 -15
- package/dist/models/get-number-range-response-class.d.ts +0 -25
- package/dist/models/get-number-range-response-class.js +0 -15
- package/dist/models/get-personal-account-response-class.d.ts +0 -25
- package/dist/models/get-personal-account-response-class.js +0 -15
- package/dist/models/list-booking-entries-response-class.d.ts +0 -31
- package/dist/models/list-booking-entries-response-class.js +0 -15
- package/dist/models/list-financial-accounts-response-class.d.ts +0 -31
- package/dist/models/list-financial-accounts-response-class.js +0 -15
- package/dist/models/list-financial-transactions-response-class.d.ts +0 -31
- package/dist/models/list-financial-transactions-response-class.js +0 -15
- package/dist/models/list-number-range-response-class.d.ts +0 -31
- package/dist/models/list-number-range-response-class.js +0 -15
- package/dist/models/list-personal-accounts-response-class.d.ts +0 -31
- package/dist/models/list-personal-accounts-response-class.js +0 -15
- package/dist/models/number-range-class.d.ts +0 -84
- package/dist/models/number-range-class.js +0 -15
- package/dist/models/personal-account-class.d.ts +0 -105
- package/dist/models/personal-account-class.js +0 -24
- package/models/booking-entry-class.ts +0 -132
- package/models/create-booking-entry-request-dto.ts +0 -67
- package/models/create-booking-entry-response-class.ts +0 -31
- package/models/create-financial-account-request-dto.ts +0 -84
- package/models/create-financial-account-response-class.ts +0 -31
- package/models/create-number-range-request-dto.ts +0 -62
- package/models/create-number-range-response-class.ts +0 -31
- package/models/create-personal-account-request-dto.ts +0 -69
- package/models/create-personal-account-response-class.ts +0 -31
- package/models/financial-account-class.ts +0 -120
- package/models/financial-transaction-class.ts +0 -120
- package/models/financial-transaction-data-dto.ts +0 -81
- package/models/get-booking-entry-response-class.ts +0 -31
- package/models/get-financial-account-response-class.ts +0 -31
- package/models/get-financial-transaction-response-class.ts +0 -31
- package/models/get-number-range-response-class.ts +0 -31
- package/models/get-personal-account-response-class.ts +0 -31
- package/models/list-booking-entries-response-class.ts +0 -37
- package/models/list-financial-accounts-response-class.ts +0 -37
- package/models/list-financial-transactions-response-class.ts +0 -37
- package/models/list-number-range-response-class.ts +0 -37
- package/models/list-personal-accounts-response-class.ts +0 -37
- package/models/number-range-class.ts +0 -90
- package/models/personal-account-class.ts +0 -114
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* EMIL
|
|
5
|
-
* The EMIL
|
|
4
|
+
* EMIL GdvService
|
|
5
|
+
* The EMIL GdvService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -21,35 +21,34 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import {
|
|
24
|
+
import { GetZipCodeResponseClass } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import {
|
|
26
|
+
import { ListZipCodesResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
-
import {
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { ListBookingEntriesResponseClass } from '../models';
|
|
28
|
+
import { StoreZipCodesResponseClass } from '../models';
|
|
31
29
|
// URLSearchParams not necessarily used
|
|
32
30
|
// @ts-ignore
|
|
33
31
|
import { URL, URLSearchParams } from 'url';
|
|
34
32
|
const FormData = require('form-data');
|
|
35
33
|
/**
|
|
36
|
-
*
|
|
34
|
+
* ZipCodesApi - axios parameter creator
|
|
37
35
|
* @export
|
|
38
36
|
*/
|
|
39
|
-
export const
|
|
37
|
+
export const ZipCodesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
38
|
return {
|
|
41
39
|
/**
|
|
42
|
-
*
|
|
43
|
-
* @summary
|
|
44
|
-
* @param {
|
|
45
|
-
* @param {string} [authorization] Bearer Token
|
|
40
|
+
* Retrieves the details of the zip code that was previously created. Supply the unique zip code code that was returned when you created it and Emil Api will return the corresponding zip code information. **Required Permissions** \"gdv-management.operations.view\"
|
|
41
|
+
* @summary Retrieve the zip code
|
|
42
|
+
* @param {string} code Unique identifier for the object.
|
|
43
|
+
* @param {string} [authorization] Bearer Token
|
|
46
44
|
* @param {*} [options] Override http request option.
|
|
47
45
|
* @throws {RequiredError}
|
|
48
46
|
*/
|
|
49
|
-
|
|
50
|
-
// verify required parameter '
|
|
51
|
-
assertParamExists('
|
|
52
|
-
const localVarPath = `/
|
|
47
|
+
getZipCode: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
48
|
+
// verify required parameter 'code' is not null or undefined
|
|
49
|
+
assertParamExists('getZipCode', 'code', code)
|
|
50
|
+
const localVarPath = `/gdvservice/v1/zipcodes/{code}`
|
|
51
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
53
52
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54
53
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
55
54
|
let baseOptions;
|
|
@@ -59,7 +58,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
59
58
|
baseAccessToken = configuration.accessToken;
|
|
60
59
|
}
|
|
61
60
|
|
|
62
|
-
const localVarRequestOptions = { method: '
|
|
61
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
63
62
|
const localVarHeaderParameter = {} as any;
|
|
64
63
|
const localVarQueryParameter = {} as any;
|
|
65
64
|
|
|
@@ -73,12 +72,9 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
73
72
|
|
|
74
73
|
|
|
75
74
|
|
|
76
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
77
|
-
|
|
78
75
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
79
76
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
80
77
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
81
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createBookingEntryRequestDto, localVarRequestOptions, configuration)
|
|
82
78
|
|
|
83
79
|
return {
|
|
84
80
|
url: toPathString(localVarUrlObj),
|
|
@@ -86,21 +82,21 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
86
82
|
};
|
|
87
83
|
},
|
|
88
84
|
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary
|
|
91
|
-
* @param {string}
|
|
92
|
-
* @param {
|
|
93
|
-
* @param {string} [
|
|
85
|
+
* Returns a list of zip codes you have previously created. The zip codes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
|
|
86
|
+
* @summary List zip codes
|
|
87
|
+
* @param {string} [authorization] Bearer Token
|
|
88
|
+
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
89
|
+
* @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.
|
|
90
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
91
|
+
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
92
|
+
* @param {string} [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.
|
|
93
|
+
* @param {string} [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.
|
|
94
|
+
* @param {string} [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.
|
|
94
95
|
* @param {*} [options] Override http request option.
|
|
95
96
|
* @throws {RequiredError}
|
|
96
97
|
*/
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
assertParamExists('getBookingEntry', 'code', code)
|
|
100
|
-
// verify required parameter 'expand' is not null or undefined
|
|
101
|
-
assertParamExists('getBookingEntry', 'expand', expand)
|
|
102
|
-
const localVarPath = `/accountingservice/v1/booking-entries/{code}`
|
|
103
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
98
|
+
listZipCodes: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
99
|
+
const localVarPath = `/gdvservice/v1/zipcodes`;
|
|
104
100
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
105
101
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
106
102
|
let baseOptions;
|
|
@@ -118,10 +114,34 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
118
114
|
// http bearer authentication required
|
|
119
115
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
120
116
|
|
|
117
|
+
if (pageSize !== undefined) {
|
|
118
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
if (pageToken !== undefined) {
|
|
122
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
if (filter !== undefined) {
|
|
126
|
+
localVarQueryParameter['filter'] = filter;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
if (search !== undefined) {
|
|
130
|
+
localVarQueryParameter['search'] = search;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
if (order !== undefined) {
|
|
134
|
+
localVarQueryParameter['order'] = order;
|
|
135
|
+
}
|
|
136
|
+
|
|
121
137
|
if (expand !== undefined) {
|
|
122
138
|
localVarQueryParameter['expand'] = expand;
|
|
123
139
|
}
|
|
124
140
|
|
|
141
|
+
if (filters !== undefined) {
|
|
142
|
+
localVarQueryParameter['filters'] = filters;
|
|
143
|
+
}
|
|
144
|
+
|
|
125
145
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
126
146
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
127
147
|
}
|
|
@@ -138,21 +158,14 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
138
158
|
};
|
|
139
159
|
},
|
|
140
160
|
/**
|
|
141
|
-
*
|
|
142
|
-
* @summary
|
|
143
|
-
* @param {string} [authorization] Bearer Token
|
|
144
|
-
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
145
|
-
* @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.
|
|
146
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
147
|
-
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
148
|
-
* @param {string} [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.
|
|
149
|
-
* @param {string} [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.
|
|
150
|
-
* @param {string} [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.
|
|
161
|
+
* Store zip codes from file. **Required Permissions** none
|
|
162
|
+
* @summary Create the zip codes
|
|
163
|
+
* @param {string} [authorization] Bearer Token
|
|
151
164
|
* @param {*} [options] Override http request option.
|
|
152
165
|
* @throws {RequiredError}
|
|
153
166
|
*/
|
|
154
|
-
|
|
155
|
-
const localVarPath = `/
|
|
167
|
+
storeZipCodes: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
168
|
+
const localVarPath = `/gdvservice/v1/zipcodes`;
|
|
156
169
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
157
170
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
158
171
|
let baseOptions;
|
|
@@ -162,7 +175,7 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
162
175
|
baseAccessToken = configuration.accessToken;
|
|
163
176
|
}
|
|
164
177
|
|
|
165
|
-
const localVarRequestOptions = { method: '
|
|
178
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
166
179
|
const localVarHeaderParameter = {} as any;
|
|
167
180
|
const localVarQueryParameter = {} as any;
|
|
168
181
|
|
|
@@ -170,34 +183,6 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
170
183
|
// http bearer authentication required
|
|
171
184
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
172
185
|
|
|
173
|
-
if (pageSize !== undefined) {
|
|
174
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if (pageToken !== undefined) {
|
|
178
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
if (filter !== undefined) {
|
|
182
|
-
localVarQueryParameter['filter'] = filter;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
if (search !== undefined) {
|
|
186
|
-
localVarQueryParameter['search'] = search;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
if (order !== undefined) {
|
|
190
|
-
localVarQueryParameter['order'] = order;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
if (expand !== undefined) {
|
|
194
|
-
localVarQueryParameter['expand'] = expand;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
if (filters !== undefined) {
|
|
198
|
-
localVarQueryParameter['filters'] = filters;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
186
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
202
187
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
203
188
|
}
|
|
@@ -217,41 +202,28 @@ export const BookingEntriesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
217
202
|
};
|
|
218
203
|
|
|
219
204
|
/**
|
|
220
|
-
*
|
|
205
|
+
* ZipCodesApi - functional programming interface
|
|
221
206
|
* @export
|
|
222
207
|
*/
|
|
223
|
-
export const
|
|
224
|
-
const localVarAxiosParamCreator =
|
|
208
|
+
export const ZipCodesApiFp = function(configuration?: Configuration) {
|
|
209
|
+
const localVarAxiosParamCreator = ZipCodesApiAxiosParamCreator(configuration)
|
|
225
210
|
return {
|
|
226
211
|
/**
|
|
227
|
-
*
|
|
228
|
-
* @summary
|
|
229
|
-
* @param {
|
|
230
|
-
* @param {string} [authorization] Bearer Token
|
|
212
|
+
* Retrieves the details of the zip code that was previously created. Supply the unique zip code code that was returned when you created it and Emil Api will return the corresponding zip code information. **Required Permissions** \"gdv-management.operations.view\"
|
|
213
|
+
* @summary Retrieve the zip code
|
|
214
|
+
* @param {string} code Unique identifier for the object.
|
|
215
|
+
* @param {string} [authorization] Bearer Token
|
|
231
216
|
* @param {*} [options] Override http request option.
|
|
232
217
|
* @throws {RequiredError}
|
|
233
218
|
*/
|
|
234
|
-
async
|
|
235
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
219
|
+
async getZipCode(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetZipCodeResponseClass>> {
|
|
220
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getZipCode(code, authorization, options);
|
|
236
221
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
237
222
|
},
|
|
238
223
|
/**
|
|
239
|
-
*
|
|
240
|
-
* @summary
|
|
241
|
-
* @param {string}
|
|
242
|
-
* @param {string} expand
|
|
243
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
244
|
-
* @param {*} [options] Override http request option.
|
|
245
|
-
* @throws {RequiredError}
|
|
246
|
-
*/
|
|
247
|
-
async getBookingEntry(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBookingEntryResponseClass>> {
|
|
248
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getBookingEntry(code, expand, authorization, options);
|
|
249
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
250
|
-
},
|
|
251
|
-
/**
|
|
252
|
-
* This endpoint gets booking entries. **Required Permissions** \"accounting-management.accounts.view\"
|
|
253
|
-
* @summary List booking entries
|
|
254
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
224
|
+
* Returns a list of zip codes you have previously created. The zip codes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
|
|
225
|
+
* @summary List zip codes
|
|
226
|
+
* @param {string} [authorization] Bearer Token
|
|
255
227
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
256
228
|
* @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.
|
|
257
229
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -262,47 +234,46 @@ export const BookingEntriesApiFp = function(configuration?: Configuration) {
|
|
|
262
234
|
* @param {*} [options] Override http request option.
|
|
263
235
|
* @throws {RequiredError}
|
|
264
236
|
*/
|
|
265
|
-
async
|
|
266
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
237
|
+
async listZipCodes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListZipCodesResponseClass>> {
|
|
238
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listZipCodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
239
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
240
|
+
},
|
|
241
|
+
/**
|
|
242
|
+
* Store zip codes from file. **Required Permissions** none
|
|
243
|
+
* @summary Create the zip codes
|
|
244
|
+
* @param {string} [authorization] Bearer Token
|
|
245
|
+
* @param {*} [options] Override http request option.
|
|
246
|
+
* @throws {RequiredError}
|
|
247
|
+
*/
|
|
248
|
+
async storeZipCodes(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreZipCodesResponseClass>> {
|
|
249
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.storeZipCodes(authorization, options);
|
|
267
250
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
268
251
|
},
|
|
269
252
|
}
|
|
270
253
|
};
|
|
271
254
|
|
|
272
255
|
/**
|
|
273
|
-
*
|
|
256
|
+
* ZipCodesApi - factory interface
|
|
274
257
|
* @export
|
|
275
258
|
*/
|
|
276
|
-
export const
|
|
277
|
-
const localVarFp =
|
|
259
|
+
export const ZipCodesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
260
|
+
const localVarFp = ZipCodesApiFp(configuration)
|
|
278
261
|
return {
|
|
279
262
|
/**
|
|
280
|
-
*
|
|
281
|
-
* @summary
|
|
282
|
-
* @param {
|
|
283
|
-
* @param {string} [authorization] Bearer Token
|
|
284
|
-
* @param {*} [options] Override http request option.
|
|
285
|
-
* @throws {RequiredError}
|
|
286
|
-
*/
|
|
287
|
-
createBookingEntry(createBookingEntryRequestDto: CreateBookingEntryRequestDto, authorization?: string, options?: any): AxiosPromise<CreateBookingEntryResponseClass> {
|
|
288
|
-
return localVarFp.createBookingEntry(createBookingEntryRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
289
|
-
},
|
|
290
|
-
/**
|
|
291
|
-
* This endpoint gets a booking entry. **Required Permissions** \"accounting-management.accounts.view\"
|
|
292
|
-
* @summary Retrieve the booking entry
|
|
293
|
-
* @param {string} code
|
|
294
|
-
* @param {string} expand
|
|
295
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
263
|
+
* Retrieves the details of the zip code that was previously created. Supply the unique zip code code that was returned when you created it and Emil Api will return the corresponding zip code information. **Required Permissions** \"gdv-management.operations.view\"
|
|
264
|
+
* @summary Retrieve the zip code
|
|
265
|
+
* @param {string} code Unique identifier for the object.
|
|
266
|
+
* @param {string} [authorization] Bearer Token
|
|
296
267
|
* @param {*} [options] Override http request option.
|
|
297
268
|
* @throws {RequiredError}
|
|
298
269
|
*/
|
|
299
|
-
|
|
300
|
-
return localVarFp.
|
|
270
|
+
getZipCode(code: string, authorization?: string, options?: any): AxiosPromise<GetZipCodeResponseClass> {
|
|
271
|
+
return localVarFp.getZipCode(code, authorization, options).then((request) => request(axios, basePath));
|
|
301
272
|
},
|
|
302
273
|
/**
|
|
303
|
-
*
|
|
304
|
-
* @summary List
|
|
305
|
-
* @param {string} [authorization] Bearer Token
|
|
274
|
+
* Returns a list of zip codes you have previously created. The zip codes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
|
|
275
|
+
* @summary List zip codes
|
|
276
|
+
* @param {string} [authorization] Bearer Token
|
|
306
277
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
307
278
|
* @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.
|
|
308
279
|
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
@@ -313,164 +284,160 @@ export const BookingEntriesApiFactory = function (configuration?: Configuration,
|
|
|
313
284
|
* @param {*} [options] Override http request option.
|
|
314
285
|
* @throws {RequiredError}
|
|
315
286
|
*/
|
|
316
|
-
|
|
317
|
-
return localVarFp.
|
|
287
|
+
listZipCodes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListZipCodesResponseClass> {
|
|
288
|
+
return localVarFp.listZipCodes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* Store zip codes from file. **Required Permissions** none
|
|
292
|
+
* @summary Create the zip codes
|
|
293
|
+
* @param {string} [authorization] Bearer Token
|
|
294
|
+
* @param {*} [options] Override http request option.
|
|
295
|
+
* @throws {RequiredError}
|
|
296
|
+
*/
|
|
297
|
+
storeZipCodes(authorization?: string, options?: any): AxiosPromise<StoreZipCodesResponseClass> {
|
|
298
|
+
return localVarFp.storeZipCodes(authorization, options).then((request) => request(axios, basePath));
|
|
318
299
|
},
|
|
319
300
|
};
|
|
320
301
|
};
|
|
321
302
|
|
|
322
303
|
/**
|
|
323
|
-
* Request parameters for
|
|
324
|
-
* @export
|
|
325
|
-
* @interface BookingEntriesApiCreateBookingEntryRequest
|
|
326
|
-
*/
|
|
327
|
-
export interface BookingEntriesApiCreateBookingEntryRequest {
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
* @type {CreateBookingEntryRequestDto}
|
|
331
|
-
* @memberof BookingEntriesApiCreateBookingEntry
|
|
332
|
-
*/
|
|
333
|
-
readonly createBookingEntryRequestDto: CreateBookingEntryRequestDto
|
|
334
|
-
|
|
335
|
-
/**
|
|
336
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
|
-
* @type {string}
|
|
338
|
-
* @memberof BookingEntriesApiCreateBookingEntry
|
|
339
|
-
*/
|
|
340
|
-
readonly authorization?: string
|
|
341
|
-
}
|
|
342
|
-
|
|
343
|
-
/**
|
|
344
|
-
* Request parameters for getBookingEntry operation in BookingEntriesApi.
|
|
304
|
+
* Request parameters for getZipCode operation in ZipCodesApi.
|
|
345
305
|
* @export
|
|
346
|
-
* @interface
|
|
306
|
+
* @interface ZipCodesApiGetZipCodeRequest
|
|
347
307
|
*/
|
|
348
|
-
export interface
|
|
308
|
+
export interface ZipCodesApiGetZipCodeRequest {
|
|
349
309
|
/**
|
|
350
|
-
*
|
|
310
|
+
* Unique identifier for the object.
|
|
351
311
|
* @type {string}
|
|
352
|
-
* @memberof
|
|
312
|
+
* @memberof ZipCodesApiGetZipCode
|
|
353
313
|
*/
|
|
354
314
|
readonly code: string
|
|
355
315
|
|
|
356
316
|
/**
|
|
357
|
-
*
|
|
358
|
-
* @type {string}
|
|
359
|
-
* @memberof BookingEntriesApiGetBookingEntry
|
|
360
|
-
*/
|
|
361
|
-
readonly expand: string
|
|
362
|
-
|
|
363
|
-
/**
|
|
364
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
317
|
+
* Bearer Token
|
|
365
318
|
* @type {string}
|
|
366
|
-
* @memberof
|
|
319
|
+
* @memberof ZipCodesApiGetZipCode
|
|
367
320
|
*/
|
|
368
321
|
readonly authorization?: string
|
|
369
322
|
}
|
|
370
323
|
|
|
371
324
|
/**
|
|
372
|
-
* Request parameters for
|
|
325
|
+
* Request parameters for listZipCodes operation in ZipCodesApi.
|
|
373
326
|
* @export
|
|
374
|
-
* @interface
|
|
327
|
+
* @interface ZipCodesApiListZipCodesRequest
|
|
375
328
|
*/
|
|
376
|
-
export interface
|
|
329
|
+
export interface ZipCodesApiListZipCodesRequest {
|
|
377
330
|
/**
|
|
378
|
-
* Bearer Token
|
|
331
|
+
* Bearer Token
|
|
379
332
|
* @type {string}
|
|
380
|
-
* @memberof
|
|
333
|
+
* @memberof ZipCodesApiListZipCodes
|
|
381
334
|
*/
|
|
382
335
|
readonly authorization?: string
|
|
383
336
|
|
|
384
337
|
/**
|
|
385
338
|
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
386
339
|
* @type {number}
|
|
387
|
-
* @memberof
|
|
340
|
+
* @memberof ZipCodesApiListZipCodes
|
|
388
341
|
*/
|
|
389
342
|
readonly pageSize?: number
|
|
390
343
|
|
|
391
344
|
/**
|
|
392
345
|
* 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.
|
|
393
346
|
* @type {string}
|
|
394
|
-
* @memberof
|
|
347
|
+
* @memberof ZipCodesApiListZipCodes
|
|
395
348
|
*/
|
|
396
349
|
readonly pageToken?: string
|
|
397
350
|
|
|
398
351
|
/**
|
|
399
352
|
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
400
353
|
* @type {string}
|
|
401
|
-
* @memberof
|
|
354
|
+
* @memberof ZipCodesApiListZipCodes
|
|
402
355
|
*/
|
|
403
356
|
readonly filter?: string
|
|
404
357
|
|
|
405
358
|
/**
|
|
406
359
|
* To search the list by any field, pass search=xxx to fetch the result.
|
|
407
360
|
* @type {string}
|
|
408
|
-
* @memberof
|
|
361
|
+
* @memberof ZipCodesApiListZipCodes
|
|
409
362
|
*/
|
|
410
363
|
readonly search?: string
|
|
411
364
|
|
|
412
365
|
/**
|
|
413
366
|
* 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.
|
|
414
367
|
* @type {string}
|
|
415
|
-
* @memberof
|
|
368
|
+
* @memberof ZipCodesApiListZipCodes
|
|
416
369
|
*/
|
|
417
370
|
readonly order?: string
|
|
418
371
|
|
|
419
372
|
/**
|
|
420
373
|
* 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.
|
|
421
374
|
* @type {string}
|
|
422
|
-
* @memberof
|
|
375
|
+
* @memberof ZipCodesApiListZipCodes
|
|
423
376
|
*/
|
|
424
377
|
readonly expand?: string
|
|
425
378
|
|
|
426
379
|
/**
|
|
427
380
|
* 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.
|
|
428
381
|
* @type {string}
|
|
429
|
-
* @memberof
|
|
382
|
+
* @memberof ZipCodesApiListZipCodes
|
|
430
383
|
*/
|
|
431
384
|
readonly filters?: string
|
|
432
385
|
}
|
|
433
386
|
|
|
434
387
|
/**
|
|
435
|
-
*
|
|
388
|
+
* Request parameters for storeZipCodes operation in ZipCodesApi.
|
|
389
|
+
* @export
|
|
390
|
+
* @interface ZipCodesApiStoreZipCodesRequest
|
|
391
|
+
*/
|
|
392
|
+
export interface ZipCodesApiStoreZipCodesRequest {
|
|
393
|
+
/**
|
|
394
|
+
* Bearer Token
|
|
395
|
+
* @type {string}
|
|
396
|
+
* @memberof ZipCodesApiStoreZipCodes
|
|
397
|
+
*/
|
|
398
|
+
readonly authorization?: string
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* ZipCodesApi - object-oriented interface
|
|
436
403
|
* @export
|
|
437
|
-
* @class
|
|
404
|
+
* @class ZipCodesApi
|
|
438
405
|
* @extends {BaseAPI}
|
|
439
406
|
*/
|
|
440
|
-
export class
|
|
407
|
+
export class ZipCodesApi extends BaseAPI {
|
|
441
408
|
/**
|
|
442
|
-
*
|
|
443
|
-
* @summary
|
|
444
|
-
* @param {
|
|
409
|
+
* Retrieves the details of the zip code that was previously created. Supply the unique zip code code that was returned when you created it and Emil Api will return the corresponding zip code information. **Required Permissions** \"gdv-management.operations.view\"
|
|
410
|
+
* @summary Retrieve the zip code
|
|
411
|
+
* @param {ZipCodesApiGetZipCodeRequest} requestParameters Request parameters.
|
|
445
412
|
* @param {*} [options] Override http request option.
|
|
446
413
|
* @throws {RequiredError}
|
|
447
|
-
* @memberof
|
|
414
|
+
* @memberof ZipCodesApi
|
|
448
415
|
*/
|
|
449
|
-
public
|
|
450
|
-
return
|
|
416
|
+
public getZipCode(requestParameters: ZipCodesApiGetZipCodeRequest, options?: AxiosRequestConfig) {
|
|
417
|
+
return ZipCodesApiFp(this.configuration).getZipCode(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
451
418
|
}
|
|
452
419
|
|
|
453
420
|
/**
|
|
454
|
-
*
|
|
455
|
-
* @summary
|
|
456
|
-
* @param {
|
|
421
|
+
* Returns a list of zip codes you have previously created. The zip codes are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
|
|
422
|
+
* @summary List zip codes
|
|
423
|
+
* @param {ZipCodesApiListZipCodesRequest} requestParameters Request parameters.
|
|
457
424
|
* @param {*} [options] Override http request option.
|
|
458
425
|
* @throws {RequiredError}
|
|
459
|
-
* @memberof
|
|
426
|
+
* @memberof ZipCodesApi
|
|
460
427
|
*/
|
|
461
|
-
public
|
|
462
|
-
return
|
|
428
|
+
public listZipCodes(requestParameters: ZipCodesApiListZipCodesRequest = {}, options?: AxiosRequestConfig) {
|
|
429
|
+
return ZipCodesApiFp(this.configuration).listZipCodes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
463
430
|
}
|
|
464
431
|
|
|
465
432
|
/**
|
|
466
|
-
*
|
|
467
|
-
* @summary
|
|
468
|
-
* @param {
|
|
433
|
+
* Store zip codes from file. **Required Permissions** none
|
|
434
|
+
* @summary Create the zip codes
|
|
435
|
+
* @param {ZipCodesApiStoreZipCodesRequest} requestParameters Request parameters.
|
|
469
436
|
* @param {*} [options] Override http request option.
|
|
470
437
|
* @throws {RequiredError}
|
|
471
|
-
* @memberof
|
|
438
|
+
* @memberof ZipCodesApi
|
|
472
439
|
*/
|
|
473
|
-
public
|
|
474
|
-
return
|
|
440
|
+
public storeZipCodes(requestParameters: ZipCodesApiStoreZipCodesRequest = {}, options?: AxiosRequestConfig) {
|
|
441
|
+
return ZipCodesApiFp(this.configuration).storeZipCodes(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
475
442
|
}
|
|
476
443
|
}
|
package/api.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
3
|
/**
|
|
4
|
-
* EMIL
|
|
5
|
-
* The EMIL
|
|
4
|
+
* EMIL GdvService
|
|
5
|
+
* The EMIL GdvService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
8
|
* Contact: kontakt@emil.de
|
|
@@ -24,18 +24,20 @@ import FormData from 'form-data'
|
|
|
24
24
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
|
-
import { BookingEntriesApi } from './api';
|
|
28
|
-
import { FinancialAccountsApi } from './api';
|
|
29
|
-
import { FinancialTransactionsApi } from './api';
|
|
30
27
|
import { HealthApi } from './api';
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
28
|
+
import { MailboxApi } from './api';
|
|
29
|
+
import { MessagesApi } from './api';
|
|
30
|
+
import { UsersApi } from './api';
|
|
31
|
+
import { VbasApi } from './api';
|
|
32
|
+
import { VbusApi } from './api';
|
|
33
|
+
import { ZipCodesApi } from './api';
|
|
33
34
|
|
|
34
35
|
|
|
35
|
-
export * from './api/booking-entries-api';
|
|
36
|
-
export * from './api/financial-accounts-api';
|
|
37
|
-
export * from './api/financial-transactions-api';
|
|
38
36
|
export * from './api/health-api';
|
|
39
|
-
export * from './api/
|
|
40
|
-
export * from './api/
|
|
37
|
+
export * from './api/mailbox-api';
|
|
38
|
+
export * from './api/messages-api';
|
|
39
|
+
export * from './api/users-api';
|
|
40
|
+
export * from './api/vbas-api';
|
|
41
|
+
export * from './api/vbus-api';
|
|
42
|
+
export * from './api/zip-codes-api';
|
|
41
43
|
|
package/base.ts
CHANGED