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