@emilgroup/accounting-sdk-node 1.1.0 → 1.2.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 -15
- 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/zip-codes-api.ts +443 -0
- package/api.ts +14 -6
- 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/users-api.js +512 -0
- package/dist/api/vbas-api.d.ts +337 -0
- package/dist/api/{financial-accounts-api.js → vbas-api.js} +161 -156
- package/dist/api/vbus-api.d.ts +395 -0
- package/dist/api/vbus-api.js +647 -0
- package/dist/api/zip-codes-api.d.ts +253 -0
- package/dist/api/{booking-processes-api.js → zip-codes-api.js} +166 -80
- package/dist/api.d.ts +8 -4
- package/dist/api.js +8 -4
- 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/{get-financial-account-response-class.js → address-class.js} +2 -2
- package/dist/models/create-mailbox-request-dto.d.ts +36 -0
- package/dist/models/{create-booking-process-response-class.js → create-mailbox-request-dto.js} +2 -2
- package/dist/models/create-user-request-dto.d.ts +76 -0
- package/dist/models/{financial-account-class.js → create-user-request-dto.js} +10 -9
- package/dist/models/create-user-response-class.d.ts +25 -0
- package/dist/models/{financial-transaction-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-financial-account-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 -13
- package/dist/models/index.js +46 -13
- 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 +84 -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 +121 -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 +133 -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/{financial-transaction-data-dto.js → update-user-request-dto.js} +10 -6
- 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 -13
- 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 +90 -0
- package/models/request-details-class.ts +54 -0
- package/models/request-message-class.ts +127 -0
- package/models/response-details-class.ts +48 -0
- package/models/response-message-class.ts +139 -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/booking-processes-api.ts +0 -357
- package/api/financial-accounts-api.ts +0 -577
- package/dist/api/booking-processes-api.d.ts +0 -207
- package/dist/api/financial-accounts-api.d.ts +0 -327
- package/dist/models/booking-entry-class.d.ts +0 -123
- package/dist/models/booking-entry-class.js +0 -34
- package/dist/models/booking-process-class.d.ts +0 -94
- package/dist/models/booking-process-class.js +0 -29
- package/dist/models/create-booking-entry-request-dto.d.ts +0 -99
- package/dist/models/create-booking-entry-request-dto.js +0 -34
- package/dist/models/create-booking-process-request-dto.d.ts +0 -64
- package/dist/models/create-booking-process-request-dto.js +0 -29
- package/dist/models/create-booking-process-response-class.d.ts +0 -25
- package/dist/models/create-financial-account-request-dto.d.ts +0 -62
- package/dist/models/create-financial-account-request-dto.js +0 -23
- package/dist/models/create-financial-account-response-class.d.ts +0 -25
- package/dist/models/financial-account-class.d.ts +0 -98
- package/dist/models/financial-transaction-class.d.ts +0 -108
- package/dist/models/financial-transaction-data-dto.d.ts +0 -71
- package/dist/models/get-financial-account-response-class.d.ts +0 -25
- package/dist/models/list-booking-process-response-class.d.ts +0 -31
- package/dist/models/list-booking-process-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/models/booking-entry-class.ts +0 -133
- package/models/booking-process-class.ts +0 -104
- package/models/create-booking-entry-request-dto.ts +0 -109
- package/models/create-booking-process-request-dto.ts +0 -74
- package/models/create-booking-process-response-class.ts +0 -31
- package/models/create-financial-account-request-dto.ts +0 -71
- package/models/create-financial-account-response-class.ts +0 -31
- package/models/financial-account-class.ts +0 -107
- package/models/financial-transaction-class.ts +0 -114
- package/models/financial-transaction-data-dto.ts +0 -80
- package/models/get-financial-account-response-class.ts +0 -31
- package/models/list-booking-process-response-class.ts +0 -37
- package/models/list-financial-accounts-response-class.ts +0 -37
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
* EMIL
|
|
6
|
-
* The EMIL
|
|
5
|
+
* EMIL GdvService
|
|
6
|
+
* The EMIL GdvService 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.VbasApi = exports.VbasApiFactory = exports.VbasApiFp = exports.VbasApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,30 +90,30 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* VbasApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var VbasApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
* This will create an
|
|
101
|
-
* @summary Create the
|
|
102
|
-
* @param {
|
|
100
|
+
* This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
|
|
101
|
+
* @summary Create the vba
|
|
102
|
+
* @param {CreateVbaRequestDto} createVbaRequestDto
|
|
103
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
|
+
createVba: function (createVbaRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
110
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
111
|
return __generator(this, function (_a) {
|
|
112
112
|
switch (_a.label) {
|
|
113
113
|
case 0:
|
|
114
|
-
// verify required parameter '
|
|
115
|
-
(0, common_1.assertParamExists)('
|
|
116
|
-
localVarPath = "/
|
|
114
|
+
// verify required parameter 'createVbaRequestDto' is not null or undefined
|
|
115
|
+
(0, common_1.assertParamExists)('createVba', 'createVbaRequestDto', createVbaRequestDto);
|
|
116
|
+
localVarPath = "/gdvservice/v1/vbas";
|
|
117
117
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
118
|
if (configuration) {
|
|
119
119
|
baseOptions = configuration.baseOptions;
|
|
@@ -136,7 +136,7 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
136
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
137
137
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
138
138
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
139
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
139
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbaRequestDto, localVarRequestOptions, configuration);
|
|
140
140
|
return [2 /*return*/, {
|
|
141
141
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
142
142
|
options: localVarRequestOptions,
|
|
@@ -146,14 +146,15 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @summary
|
|
149
|
+
* Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
|
|
150
|
+
* @summary Retrieve the vba
|
|
151
151
|
* @param {string} code Unique identifier for the object.
|
|
152
152
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
153
|
+
* @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
153
154
|
* @param {*} [options] Override http request option.
|
|
154
155
|
* @throws {RequiredError}
|
|
155
156
|
*/
|
|
156
|
-
|
|
157
|
+
getVba: function (code, authorization, expand, options) {
|
|
157
158
|
if (options === void 0) { options = {}; }
|
|
158
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -161,15 +162,15 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
161
162
|
switch (_a.label) {
|
|
162
163
|
case 0:
|
|
163
164
|
// verify required parameter 'code' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('
|
|
165
|
-
localVarPath = "/
|
|
165
|
+
(0, common_1.assertParamExists)('getVba', 'code', code);
|
|
166
|
+
localVarPath = "/gdvservice/v1/vbas/{code}"
|
|
166
167
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
168
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
169
|
if (configuration) {
|
|
169
170
|
baseOptions = configuration.baseOptions;
|
|
170
171
|
baseAccessToken = configuration.accessToken;
|
|
171
172
|
}
|
|
172
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
173
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
173
174
|
localVarHeaderParameter = {};
|
|
174
175
|
localVarQueryParameter = {};
|
|
175
176
|
// authentication bearer required
|
|
@@ -179,6 +180,9 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
179
180
|
// authentication bearer required
|
|
180
181
|
// http bearer authentication required
|
|
181
182
|
_a.sent();
|
|
183
|
+
if (expand !== undefined) {
|
|
184
|
+
localVarQueryParameter['expand'] = expand;
|
|
185
|
+
}
|
|
182
186
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
187
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
188
|
}
|
|
@@ -194,27 +198,27 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
194
198
|
});
|
|
195
199
|
},
|
|
196
200
|
/**
|
|
197
|
-
*
|
|
198
|
-
* @summary
|
|
199
|
-
* @param {string} code Unique identifier for the object.
|
|
200
|
-
* @param {string} expand
|
|
201
|
+
* Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
202
|
+
* @summary List vbas
|
|
201
203
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
204
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
205
|
+
* @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.
|
|
206
|
+
* @param {any} [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: id, code, leadNumber, policyNumber, policyCode, customerName</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
207
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
208
|
+
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, expiryDate, createdAt, updatedAt</i>
|
|
209
|
+
* @param {any} [expand] No expanding supported
|
|
210
|
+
* @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.
|
|
202
211
|
* @param {*} [options] Override http request option.
|
|
203
212
|
* @throws {RequiredError}
|
|
204
213
|
*/
|
|
205
|
-
|
|
214
|
+
listVbas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
206
215
|
if (options === void 0) { options = {}; }
|
|
207
216
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
217
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
218
|
return __generator(this, function (_a) {
|
|
210
219
|
switch (_a.label) {
|
|
211
220
|
case 0:
|
|
212
|
-
|
|
213
|
-
(0, common_1.assertParamExists)('getFinancialAccount', 'code', code);
|
|
214
|
-
// verify required parameter 'expand' is not null or undefined
|
|
215
|
-
(0, common_1.assertParamExists)('getFinancialAccount', 'expand', expand);
|
|
216
|
-
localVarPath = "/accountingservice/v1/financial-accounts/{code}"
|
|
217
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
221
|
+
localVarPath = "/gdvservice/v1/vbas";
|
|
218
222
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
219
223
|
if (configuration) {
|
|
220
224
|
baseOptions = configuration.baseOptions;
|
|
@@ -230,9 +234,27 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
230
234
|
// authentication bearer required
|
|
231
235
|
// http bearer authentication required
|
|
232
236
|
_a.sent();
|
|
237
|
+
if (pageSize !== undefined) {
|
|
238
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
239
|
+
}
|
|
240
|
+
if (pageToken !== undefined) {
|
|
241
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
242
|
+
}
|
|
243
|
+
if (filter !== undefined) {
|
|
244
|
+
localVarQueryParameter['filter'] = filter;
|
|
245
|
+
}
|
|
246
|
+
if (search !== undefined) {
|
|
247
|
+
localVarQueryParameter['search'] = search;
|
|
248
|
+
}
|
|
249
|
+
if (order !== undefined) {
|
|
250
|
+
localVarQueryParameter['order'] = order;
|
|
251
|
+
}
|
|
233
252
|
if (expand !== undefined) {
|
|
234
253
|
localVarQueryParameter['expand'] = expand;
|
|
235
254
|
}
|
|
255
|
+
if (filters !== undefined) {
|
|
256
|
+
localVarQueryParameter['filters'] = filters;
|
|
257
|
+
}
|
|
236
258
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
259
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
238
260
|
}
|
|
@@ -248,33 +270,33 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
248
270
|
});
|
|
249
271
|
},
|
|
250
272
|
/**
|
|
251
|
-
*
|
|
252
|
-
* @summary
|
|
273
|
+
* Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
274
|
+
* @summary Update the vba
|
|
275
|
+
* @param {string} code Unique identifier for the object.
|
|
276
|
+
* @param {UpdateVbaRequestDto} updateVbaRequestDto
|
|
253
277
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
254
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
255
|
-
* @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.
|
|
256
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
257
|
-
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
258
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
259
|
-
* @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.
|
|
260
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
261
278
|
* @param {*} [options] Override http request option.
|
|
262
279
|
* @throws {RequiredError}
|
|
263
280
|
*/
|
|
264
|
-
|
|
281
|
+
updateVba: function (code, updateVbaRequestDto, authorization, options) {
|
|
265
282
|
if (options === void 0) { options = {}; }
|
|
266
283
|
return __awaiter(_this, void 0, void 0, function () {
|
|
267
284
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
268
285
|
return __generator(this, function (_a) {
|
|
269
286
|
switch (_a.label) {
|
|
270
287
|
case 0:
|
|
271
|
-
|
|
288
|
+
// verify required parameter 'code' is not null or undefined
|
|
289
|
+
(0, common_1.assertParamExists)('updateVba', 'code', code);
|
|
290
|
+
// verify required parameter 'updateVbaRequestDto' is not null or undefined
|
|
291
|
+
(0, common_1.assertParamExists)('updateVba', 'updateVbaRequestDto', updateVbaRequestDto);
|
|
292
|
+
localVarPath = "/gdvservice/v1/vbas/{code}"
|
|
293
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
272
294
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
273
295
|
if (configuration) {
|
|
274
296
|
baseOptions = configuration.baseOptions;
|
|
275
297
|
baseAccessToken = configuration.accessToken;
|
|
276
298
|
}
|
|
277
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
299
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
278
300
|
localVarHeaderParameter = {};
|
|
279
301
|
localVarQueryParameter = {};
|
|
280
302
|
// authentication bearer required
|
|
@@ -284,33 +306,14 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
284
306
|
// authentication bearer required
|
|
285
307
|
// http bearer authentication required
|
|
286
308
|
_a.sent();
|
|
287
|
-
if (pageSize !== undefined) {
|
|
288
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
289
|
-
}
|
|
290
|
-
if (pageToken !== undefined) {
|
|
291
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
292
|
-
}
|
|
293
|
-
if (filter !== undefined) {
|
|
294
|
-
localVarQueryParameter['filter'] = filter;
|
|
295
|
-
}
|
|
296
|
-
if (search !== undefined) {
|
|
297
|
-
localVarQueryParameter['search'] = search;
|
|
298
|
-
}
|
|
299
|
-
if (order !== undefined) {
|
|
300
|
-
localVarQueryParameter['order'] = order;
|
|
301
|
-
}
|
|
302
|
-
if (expand !== undefined) {
|
|
303
|
-
localVarQueryParameter['expand'] = expand;
|
|
304
|
-
}
|
|
305
|
-
if (filters !== undefined) {
|
|
306
|
-
localVarQueryParameter['filters'] = filters;
|
|
307
|
-
}
|
|
308
309
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
309
310
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
310
311
|
}
|
|
312
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
311
313
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
312
314
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
313
315
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
316
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVbaRequestDto, localVarRequestOptions, configuration);
|
|
314
317
|
return [2 /*return*/, {
|
|
315
318
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
316
319
|
options: localVarRequestOptions,
|
|
@@ -321,28 +324,28 @@ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
|
|
|
321
324
|
},
|
|
322
325
|
};
|
|
323
326
|
};
|
|
324
|
-
exports.
|
|
327
|
+
exports.VbasApiAxiosParamCreator = VbasApiAxiosParamCreator;
|
|
325
328
|
/**
|
|
326
|
-
*
|
|
329
|
+
* VbasApi - functional programming interface
|
|
327
330
|
* @export
|
|
328
331
|
*/
|
|
329
|
-
var
|
|
330
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
332
|
+
var VbasApiFp = function (configuration) {
|
|
333
|
+
var localVarAxiosParamCreator = (0, exports.VbasApiAxiosParamCreator)(configuration);
|
|
331
334
|
return {
|
|
332
335
|
/**
|
|
333
|
-
* This will create an
|
|
334
|
-
* @summary Create the
|
|
335
|
-
* @param {
|
|
336
|
+
* This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
|
|
337
|
+
* @summary Create the vba
|
|
338
|
+
* @param {CreateVbaRequestDto} createVbaRequestDto
|
|
336
339
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
337
340
|
* @param {*} [options] Override http request option.
|
|
338
341
|
* @throws {RequiredError}
|
|
339
342
|
*/
|
|
340
|
-
|
|
343
|
+
createVba: function (createVbaRequestDto, authorization, options) {
|
|
341
344
|
return __awaiter(this, void 0, void 0, function () {
|
|
342
345
|
var localVarAxiosArgs;
|
|
343
346
|
return __generator(this, function (_a) {
|
|
344
347
|
switch (_a.label) {
|
|
345
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
348
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVba(createVbaRequestDto, authorization, options)];
|
|
346
349
|
case 1:
|
|
347
350
|
localVarAxiosArgs = _a.sent();
|
|
348
351
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -351,19 +354,20 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
351
354
|
});
|
|
352
355
|
},
|
|
353
356
|
/**
|
|
354
|
-
*
|
|
355
|
-
* @summary
|
|
357
|
+
* Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
|
|
358
|
+
* @summary Retrieve the vba
|
|
356
359
|
* @param {string} code Unique identifier for the object.
|
|
357
360
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
|
+
* @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
358
362
|
* @param {*} [options] Override http request option.
|
|
359
363
|
* @throws {RequiredError}
|
|
360
364
|
*/
|
|
361
|
-
|
|
365
|
+
getVba: function (code, authorization, expand, options) {
|
|
362
366
|
return __awaiter(this, void 0, void 0, function () {
|
|
363
367
|
var localVarAxiosArgs;
|
|
364
368
|
return __generator(this, function (_a) {
|
|
365
369
|
switch (_a.label) {
|
|
366
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
370
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVba(code, authorization, expand, options)];
|
|
367
371
|
case 1:
|
|
368
372
|
localVarAxiosArgs = _a.sent();
|
|
369
373
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -372,20 +376,25 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
372
376
|
});
|
|
373
377
|
},
|
|
374
378
|
/**
|
|
375
|
-
*
|
|
376
|
-
* @summary
|
|
377
|
-
* @param {string} code Unique identifier for the object.
|
|
378
|
-
* @param {string} expand
|
|
379
|
+
* Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
380
|
+
* @summary List vbas
|
|
379
381
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
382
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
383
|
+
* @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.
|
|
384
|
+
* @param {any} [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: id, code, leadNumber, policyNumber, policyCode, customerName</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
385
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
386
|
+
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, expiryDate, createdAt, updatedAt</i>
|
|
387
|
+
* @param {any} [expand] No expanding supported
|
|
388
|
+
* @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.
|
|
380
389
|
* @param {*} [options] Override http request option.
|
|
381
390
|
* @throws {RequiredError}
|
|
382
391
|
*/
|
|
383
|
-
|
|
392
|
+
listVbas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
384
393
|
return __awaiter(this, void 0, void 0, function () {
|
|
385
394
|
var localVarAxiosArgs;
|
|
386
395
|
return __generator(this, function (_a) {
|
|
387
396
|
switch (_a.label) {
|
|
388
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
397
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
389
398
|
case 1:
|
|
390
399
|
localVarAxiosArgs = _a.sent();
|
|
391
400
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -394,25 +403,20 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
394
403
|
});
|
|
395
404
|
},
|
|
396
405
|
/**
|
|
397
|
-
*
|
|
398
|
-
* @summary
|
|
406
|
+
* Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
407
|
+
* @summary Update the vba
|
|
408
|
+
* @param {string} code Unique identifier for the object.
|
|
409
|
+
* @param {UpdateVbaRequestDto} updateVbaRequestDto
|
|
399
410
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
400
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
401
|
-
* @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.
|
|
402
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
403
|
-
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
404
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
405
|
-
* @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.
|
|
406
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
407
411
|
* @param {*} [options] Override http request option.
|
|
408
412
|
* @throws {RequiredError}
|
|
409
413
|
*/
|
|
410
|
-
|
|
414
|
+
updateVba: function (code, updateVbaRequestDto, authorization, options) {
|
|
411
415
|
return __awaiter(this, void 0, void 0, function () {
|
|
412
416
|
var localVarAxiosArgs;
|
|
413
417
|
return __generator(this, function (_a) {
|
|
414
418
|
switch (_a.label) {
|
|
415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
419
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateVba(code, updateVbaRequestDto, authorization, options)];
|
|
416
420
|
case 1:
|
|
417
421
|
localVarAxiosArgs = _a.sent();
|
|
418
422
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -422,128 +426,129 @@ var FinancialAccountsApiFp = function (configuration) {
|
|
|
422
426
|
},
|
|
423
427
|
};
|
|
424
428
|
};
|
|
425
|
-
exports.
|
|
429
|
+
exports.VbasApiFp = VbasApiFp;
|
|
426
430
|
/**
|
|
427
|
-
*
|
|
431
|
+
* VbasApi - factory interface
|
|
428
432
|
* @export
|
|
429
433
|
*/
|
|
430
|
-
var
|
|
431
|
-
var localVarFp = (0, exports.
|
|
434
|
+
var VbasApiFactory = function (configuration, basePath, axios) {
|
|
435
|
+
var localVarFp = (0, exports.VbasApiFp)(configuration);
|
|
432
436
|
return {
|
|
433
437
|
/**
|
|
434
|
-
* This will create an
|
|
435
|
-
* @summary Create the
|
|
436
|
-
* @param {
|
|
438
|
+
* This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
|
|
439
|
+
* @summary Create the vba
|
|
440
|
+
* @param {CreateVbaRequestDto} createVbaRequestDto
|
|
437
441
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
438
442
|
* @param {*} [options] Override http request option.
|
|
439
443
|
* @throws {RequiredError}
|
|
440
444
|
*/
|
|
441
|
-
|
|
442
|
-
return localVarFp.
|
|
445
|
+
createVba: function (createVbaRequestDto, authorization, options) {
|
|
446
|
+
return localVarFp.createVba(createVbaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
443
447
|
},
|
|
444
448
|
/**
|
|
445
|
-
*
|
|
446
|
-
* @summary
|
|
449
|
+
* Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
|
|
450
|
+
* @summary Retrieve the vba
|
|
447
451
|
* @param {string} code Unique identifier for the object.
|
|
448
452
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
453
|
+
* @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
449
454
|
* @param {*} [options] Override http request option.
|
|
450
455
|
* @throws {RequiredError}
|
|
451
456
|
*/
|
|
452
|
-
|
|
453
|
-
return localVarFp.
|
|
457
|
+
getVba: function (code, authorization, expand, options) {
|
|
458
|
+
return localVarFp.getVba(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
|
|
454
459
|
},
|
|
455
460
|
/**
|
|
456
|
-
*
|
|
457
|
-
* @summary
|
|
458
|
-
* @param {string} code Unique identifier for the object.
|
|
459
|
-
* @param {string} expand
|
|
461
|
+
* Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
462
|
+
* @summary List vbas
|
|
460
463
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
464
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
465
|
+
* @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.
|
|
466
|
+
* @param {any} [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: id, code, leadNumber, policyNumber, policyCode, customerName</i> <br/> <i>policyCode</i> is required, other filters are optional.
|
|
467
|
+
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
468
|
+
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, expiryDate, createdAt, updatedAt</i>
|
|
469
|
+
* @param {any} [expand] No expanding supported
|
|
470
|
+
* @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.
|
|
461
471
|
* @param {*} [options] Override http request option.
|
|
462
472
|
* @throws {RequiredError}
|
|
463
473
|
*/
|
|
464
|
-
|
|
465
|
-
return localVarFp.
|
|
474
|
+
listVbas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
475
|
+
return localVarFp.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
466
476
|
},
|
|
467
477
|
/**
|
|
468
|
-
*
|
|
469
|
-
* @summary
|
|
478
|
+
* Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
479
|
+
* @summary Update the vba
|
|
480
|
+
* @param {string} code Unique identifier for the object.
|
|
481
|
+
* @param {UpdateVbaRequestDto} updateVbaRequestDto
|
|
470
482
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
471
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
472
|
-
* @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.
|
|
473
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
474
|
-
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
475
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, financialAccountNumber</i>
|
|
476
|
-
* @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.
|
|
477
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type</i>
|
|
478
483
|
* @param {*} [options] Override http request option.
|
|
479
484
|
* @throws {RequiredError}
|
|
480
485
|
*/
|
|
481
|
-
|
|
482
|
-
return localVarFp.
|
|
486
|
+
updateVba: function (code, updateVbaRequestDto, authorization, options) {
|
|
487
|
+
return localVarFp.updateVba(code, updateVbaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
483
488
|
},
|
|
484
489
|
};
|
|
485
490
|
};
|
|
486
|
-
exports.
|
|
491
|
+
exports.VbasApiFactory = VbasApiFactory;
|
|
487
492
|
/**
|
|
488
|
-
*
|
|
493
|
+
* VbasApi - object-oriented interface
|
|
489
494
|
* @export
|
|
490
|
-
* @class
|
|
495
|
+
* @class VbasApi
|
|
491
496
|
* @extends {BaseAPI}
|
|
492
497
|
*/
|
|
493
|
-
var
|
|
494
|
-
__extends(
|
|
495
|
-
function
|
|
498
|
+
var VbasApi = /** @class */ (function (_super) {
|
|
499
|
+
__extends(VbasApi, _super);
|
|
500
|
+
function VbasApi() {
|
|
496
501
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
497
502
|
}
|
|
498
503
|
/**
|
|
499
|
-
* This will create an
|
|
500
|
-
* @summary Create the
|
|
501
|
-
* @param {
|
|
504
|
+
* This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
|
|
505
|
+
* @summary Create the vba
|
|
506
|
+
* @param {VbasApiCreateVbaRequest} requestParameters Request parameters.
|
|
502
507
|
* @param {*} [options] Override http request option.
|
|
503
508
|
* @throws {RequiredError}
|
|
504
|
-
* @memberof
|
|
509
|
+
* @memberof VbasApi
|
|
505
510
|
*/
|
|
506
|
-
|
|
511
|
+
VbasApi.prototype.createVba = function (requestParameters, options) {
|
|
507
512
|
var _this = this;
|
|
508
|
-
return (0, exports.
|
|
513
|
+
return (0, exports.VbasApiFp)(this.configuration).createVba(requestParameters.createVbaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
509
514
|
};
|
|
510
515
|
/**
|
|
511
|
-
*
|
|
512
|
-
* @summary
|
|
513
|
-
* @param {
|
|
516
|
+
* Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
|
|
517
|
+
* @summary Retrieve the vba
|
|
518
|
+
* @param {VbasApiGetVbaRequest} requestParameters Request parameters.
|
|
514
519
|
* @param {*} [options] Override http request option.
|
|
515
520
|
* @throws {RequiredError}
|
|
516
|
-
* @memberof
|
|
521
|
+
* @memberof VbasApi
|
|
517
522
|
*/
|
|
518
|
-
|
|
523
|
+
VbasApi.prototype.getVba = function (requestParameters, options) {
|
|
519
524
|
var _this = this;
|
|
520
|
-
return (0, exports.
|
|
525
|
+
return (0, exports.VbasApiFp)(this.configuration).getVba(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
521
526
|
};
|
|
522
527
|
/**
|
|
523
|
-
*
|
|
524
|
-
* @summary
|
|
525
|
-
* @param {
|
|
528
|
+
* Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
529
|
+
* @summary List vbas
|
|
530
|
+
* @param {VbasApiListVbasRequest} requestParameters Request parameters.
|
|
526
531
|
* @param {*} [options] Override http request option.
|
|
527
532
|
* @throws {RequiredError}
|
|
528
|
-
* @memberof
|
|
533
|
+
* @memberof VbasApi
|
|
529
534
|
*/
|
|
530
|
-
|
|
535
|
+
VbasApi.prototype.listVbas = function (requestParameters, options) {
|
|
531
536
|
var _this = this;
|
|
532
|
-
|
|
537
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
538
|
+
return (0, exports.VbasApiFp)(this.configuration).listVbas(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); });
|
|
533
539
|
};
|
|
534
540
|
/**
|
|
535
|
-
*
|
|
536
|
-
* @summary
|
|
537
|
-
* @param {
|
|
541
|
+
* Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
542
|
+
* @summary Update the vba
|
|
543
|
+
* @param {VbasApiUpdateVbaRequest} requestParameters Request parameters.
|
|
538
544
|
* @param {*} [options] Override http request option.
|
|
539
545
|
* @throws {RequiredError}
|
|
540
|
-
* @memberof
|
|
546
|
+
* @memberof VbasApi
|
|
541
547
|
*/
|
|
542
|
-
|
|
548
|
+
VbasApi.prototype.updateVba = function (requestParameters, options) {
|
|
543
549
|
var _this = this;
|
|
544
|
-
|
|
545
|
-
return (0, exports.FinancialAccountsApiFp)(this.configuration).listFinancialAccounts(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); });
|
|
550
|
+
return (0, exports.VbasApiFp)(this.configuration).updateVba(requestParameters.code, requestParameters.updateVbaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
546
551
|
};
|
|
547
|
-
return
|
|
552
|
+
return VbasApi;
|
|
548
553
|
}(base_1.BaseAPI));
|
|
549
|
-
exports.
|
|
554
|
+
exports.VbasApi = VbasApi;
|