@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.
Files changed (223) hide show
  1. package/.openapi-generator/FILES +52 -15
  2. package/README.md +2 -2
  3. package/api/health-api.ts +7 -7
  4. package/api/mailbox-api.ts +255 -0
  5. package/api/messages-api.ts +1100 -0
  6. package/api/users-api.ts +496 -0
  7. package/api/vbas-api.ts +592 -0
  8. package/api/vbus-api.ts +701 -0
  9. package/api/zip-codes-api.ts +443 -0
  10. package/api.ts +14 -6
  11. package/base.ts +2 -2
  12. package/common.ts +4 -4
  13. package/configuration.ts +2 -2
  14. package/dist/api/health-api.d.ts +6 -6
  15. package/dist/api/health-api.js +7 -7
  16. package/dist/api/mailbox-api.d.ts +142 -0
  17. package/dist/api/mailbox-api.js +315 -0
  18. package/dist/api/messages-api.d.ts +632 -0
  19. package/dist/api/messages-api.js +916 -0
  20. package/dist/api/users-api.d.ts +275 -0
  21. package/dist/api/users-api.js +512 -0
  22. package/dist/api/vbas-api.d.ts +337 -0
  23. package/dist/api/{financial-accounts-api.js → vbas-api.js} +161 -156
  24. package/dist/api/vbus-api.d.ts +395 -0
  25. package/dist/api/vbus-api.js +647 -0
  26. package/dist/api/zip-codes-api.d.ts +253 -0
  27. package/dist/api/{booking-processes-api.js → zip-codes-api.js} +166 -80
  28. package/dist/api.d.ts +8 -4
  29. package/dist/api.js +8 -4
  30. package/dist/base.d.ts +2 -2
  31. package/dist/base.js +2 -2
  32. package/dist/common.d.ts +4 -4
  33. package/dist/common.js +2 -2
  34. package/dist/configuration.d.ts +2 -2
  35. package/dist/configuration.js +2 -2
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +2 -2
  38. package/dist/models/address-class.d.ts +48 -0
  39. package/dist/models/{get-financial-account-response-class.js → address-class.js} +2 -2
  40. package/dist/models/create-mailbox-request-dto.d.ts +36 -0
  41. package/dist/models/{create-booking-process-response-class.js → create-mailbox-request-dto.js} +2 -2
  42. package/dist/models/create-user-request-dto.d.ts +76 -0
  43. package/dist/models/{financial-account-class.js → create-user-request-dto.js} +10 -9
  44. package/dist/models/create-user-response-class.d.ts +25 -0
  45. package/dist/models/{financial-transaction-class.js → create-user-response-class.js} +2 -2
  46. package/dist/models/create-vba-request-dto.d.ts +41 -0
  47. package/dist/models/create-vba-request-dto.js +20 -0
  48. package/dist/models/create-vba-response-class.d.ts +24 -0
  49. package/dist/models/{create-financial-account-response-class.js → create-vba-response-class.js} +2 -2
  50. package/dist/models/create-vbu-request-dto.d.ts +41 -0
  51. package/dist/models/create-vbu-request-dto.js +20 -0
  52. package/dist/models/create-vbu-response-class.d.ts +24 -0
  53. package/dist/models/create-vbu-response-class.js +15 -0
  54. package/dist/models/create-vbuv-request-dto.d.ts +41 -0
  55. package/dist/models/create-vbuv-request-dto.js +20 -0
  56. package/dist/models/create-vbuv-response-class.d.ts +24 -0
  57. package/dist/models/create-vbuv-response-class.js +15 -0
  58. package/dist/models/get-request-message-response-class.d.ts +25 -0
  59. package/dist/models/get-request-message-response-class.js +15 -0
  60. package/dist/models/get-response-message-response-class.d.ts +25 -0
  61. package/dist/models/get-response-message-response-class.js +15 -0
  62. package/dist/models/get-user-response-class.d.ts +25 -0
  63. package/dist/models/get-user-response-class.js +15 -0
  64. package/dist/models/get-vba-response-class.d.ts +25 -0
  65. package/dist/models/get-vba-response-class.js +15 -0
  66. package/dist/models/get-vbu-response-class.d.ts +25 -0
  67. package/dist/models/get-vbu-response-class.js +15 -0
  68. package/dist/models/get-zip-code-response-class.d.ts +25 -0
  69. package/dist/models/get-zip-code-response-class.js +15 -0
  70. package/dist/models/index.d.ts +46 -13
  71. package/dist/models/index.js +46 -13
  72. package/dist/models/inline-response200.d.ts +2 -2
  73. package/dist/models/inline-response200.js +2 -2
  74. package/dist/models/inline-response503.d.ts +2 -2
  75. package/dist/models/inline-response503.js +2 -2
  76. package/dist/models/list-all-messages-response-class.d.ts +31 -0
  77. package/dist/models/list-all-messages-response-class.js +15 -0
  78. package/dist/models/list-requests-messages-response-class.d.ts +31 -0
  79. package/dist/models/list-requests-messages-response-class.js +15 -0
  80. package/dist/models/list-responses-messages-response-class.d.ts +31 -0
  81. package/dist/models/list-responses-messages-response-class.js +15 -0
  82. package/dist/models/list-users-response-class.d.ts +31 -0
  83. package/dist/models/list-users-response-class.js +15 -0
  84. package/dist/models/list-vbas-response-class.d.ts +31 -0
  85. package/dist/models/list-vbas-response-class.js +15 -0
  86. package/dist/models/list-vbus-response-class.d.ts +31 -0
  87. package/dist/models/list-vbus-response-class.js +15 -0
  88. package/dist/models/list-zip-codes-response-class.d.ts +31 -0
  89. package/dist/models/list-zip-codes-response-class.js +15 -0
  90. package/dist/models/message-class.d.ts +84 -0
  91. package/dist/models/message-class.js +15 -0
  92. package/dist/models/request-details-class.d.ts +48 -0
  93. package/dist/models/request-details-class.js +15 -0
  94. package/dist/models/request-message-class.d.ts +121 -0
  95. package/dist/models/request-message-class.js +15 -0
  96. package/dist/models/response-details-class.d.ts +42 -0
  97. package/dist/models/response-details-class.js +15 -0
  98. package/dist/models/response-message-class.d.ts +133 -0
  99. package/dist/models/response-message-class.js +15 -0
  100. package/dist/models/store-zip-codes-request-dto.d.ts +25 -0
  101. package/dist/models/store-zip-codes-request-dto.js +15 -0
  102. package/dist/models/store-zip-codes-response-class.d.ts +25 -0
  103. package/dist/models/store-zip-codes-response-class.js +15 -0
  104. package/dist/models/update-request-message-request-dto.d.ts +36 -0
  105. package/dist/models/update-request-message-request-dto.js +15 -0
  106. package/dist/models/update-request-message-response-class.d.ts +25 -0
  107. package/dist/models/update-request-message-response-class.js +15 -0
  108. package/dist/models/update-response-message-request-dto.d.ts +36 -0
  109. package/dist/models/update-response-message-request-dto.js +15 -0
  110. package/dist/models/update-response-message-response-class.d.ts +25 -0
  111. package/dist/models/update-response-message-response-class.js +15 -0
  112. package/dist/models/update-user-request-dto.d.ts +82 -0
  113. package/dist/models/{financial-transaction-data-dto.js → update-user-request-dto.js} +10 -6
  114. package/dist/models/update-user-response-class.d.ts +25 -0
  115. package/dist/models/update-user-response-class.js +15 -0
  116. package/dist/models/update-vba-request-dto.d.ts +30 -0
  117. package/dist/models/update-vba-request-dto.js +15 -0
  118. package/dist/models/update-vbu-request-dto.d.ts +30 -0
  119. package/dist/models/update-vbu-request-dto.js +15 -0
  120. package/dist/models/update-vbu-response-class.d.ts +25 -0
  121. package/dist/models/update-vbu-response-class.js +15 -0
  122. package/dist/models/user-class.d.ts +107 -0
  123. package/dist/models/user-class.js +20 -0
  124. package/dist/models/vba-class.d.ts +116 -0
  125. package/dist/models/vba-class.js +15 -0
  126. package/dist/models/vba-response-class.d.ts +48 -0
  127. package/dist/models/vba-response-class.js +15 -0
  128. package/dist/models/vbu-class.d.ts +115 -0
  129. package/dist/models/vbu-class.js +15 -0
  130. package/dist/models/vbu-response-class.d.ts +48 -0
  131. package/dist/models/vbu-response-class.js +15 -0
  132. package/dist/models/xlsx-zip-code-dto.d.ts +30 -0
  133. package/dist/models/xlsx-zip-code-dto.js +15 -0
  134. package/dist/models/zip-code-class.d.ts +60 -0
  135. package/dist/models/zip-code-class.js +15 -0
  136. package/index.ts +2 -2
  137. package/models/address-class.ts +54 -0
  138. package/models/create-mailbox-request-dto.ts +42 -0
  139. package/models/create-user-request-dto.ts +86 -0
  140. package/models/create-user-response-class.ts +31 -0
  141. package/models/create-vba-request-dto.ts +50 -0
  142. package/models/create-vba-response-class.ts +30 -0
  143. package/models/create-vbu-request-dto.ts +50 -0
  144. package/models/create-vbu-response-class.ts +30 -0
  145. package/models/create-vbuv-request-dto.ts +50 -0
  146. package/models/create-vbuv-response-class.ts +30 -0
  147. package/models/get-request-message-response-class.ts +31 -0
  148. package/models/get-response-message-response-class.ts +31 -0
  149. package/models/get-user-response-class.ts +31 -0
  150. package/models/get-vba-response-class.ts +31 -0
  151. package/models/get-vbu-response-class.ts +31 -0
  152. package/models/get-zip-code-response-class.ts +31 -0
  153. package/models/index.ts +46 -13
  154. package/models/inline-response200.ts +2 -2
  155. package/models/inline-response503.ts +2 -2
  156. package/models/list-all-messages-response-class.ts +37 -0
  157. package/models/list-requests-messages-response-class.ts +37 -0
  158. package/models/list-responses-messages-response-class.ts +37 -0
  159. package/models/list-users-response-class.ts +37 -0
  160. package/models/list-vbas-response-class.ts +37 -0
  161. package/models/list-vbus-response-class.ts +37 -0
  162. package/models/list-zip-codes-response-class.ts +37 -0
  163. package/models/message-class.ts +90 -0
  164. package/models/request-details-class.ts +54 -0
  165. package/models/request-message-class.ts +127 -0
  166. package/models/response-details-class.ts +48 -0
  167. package/models/response-message-class.ts +139 -0
  168. package/models/store-zip-codes-request-dto.ts +31 -0
  169. package/models/store-zip-codes-response-class.ts +31 -0
  170. package/models/update-request-message-request-dto.ts +42 -0
  171. package/models/update-request-message-response-class.ts +31 -0
  172. package/models/update-response-message-request-dto.ts +42 -0
  173. package/models/update-response-message-response-class.ts +31 -0
  174. package/models/update-user-request-dto.ts +92 -0
  175. package/models/update-user-response-class.ts +31 -0
  176. package/models/update-vba-request-dto.ts +36 -0
  177. package/models/update-vbu-request-dto.ts +36 -0
  178. package/models/update-vbu-response-class.ts +31 -0
  179. package/models/user-class.ts +116 -0
  180. package/models/vba-class.ts +122 -0
  181. package/models/vba-response-class.ts +54 -0
  182. package/models/vbu-class.ts +121 -0
  183. package/models/vbu-response-class.ts +54 -0
  184. package/models/xlsx-zip-code-dto.ts +36 -0
  185. package/models/zip-code-class.ts +66 -0
  186. package/package.json +1 -1
  187. package/api/booking-processes-api.ts +0 -357
  188. package/api/financial-accounts-api.ts +0 -577
  189. package/dist/api/booking-processes-api.d.ts +0 -207
  190. package/dist/api/financial-accounts-api.d.ts +0 -327
  191. package/dist/models/booking-entry-class.d.ts +0 -123
  192. package/dist/models/booking-entry-class.js +0 -34
  193. package/dist/models/booking-process-class.d.ts +0 -94
  194. package/dist/models/booking-process-class.js +0 -29
  195. package/dist/models/create-booking-entry-request-dto.d.ts +0 -99
  196. package/dist/models/create-booking-entry-request-dto.js +0 -34
  197. package/dist/models/create-booking-process-request-dto.d.ts +0 -64
  198. package/dist/models/create-booking-process-request-dto.js +0 -29
  199. package/dist/models/create-booking-process-response-class.d.ts +0 -25
  200. package/dist/models/create-financial-account-request-dto.d.ts +0 -62
  201. package/dist/models/create-financial-account-request-dto.js +0 -23
  202. package/dist/models/create-financial-account-response-class.d.ts +0 -25
  203. package/dist/models/financial-account-class.d.ts +0 -98
  204. package/dist/models/financial-transaction-class.d.ts +0 -108
  205. package/dist/models/financial-transaction-data-dto.d.ts +0 -71
  206. package/dist/models/get-financial-account-response-class.d.ts +0 -25
  207. package/dist/models/list-booking-process-response-class.d.ts +0 -31
  208. package/dist/models/list-booking-process-response-class.js +0 -15
  209. package/dist/models/list-financial-accounts-response-class.d.ts +0 -31
  210. package/dist/models/list-financial-accounts-response-class.js +0 -15
  211. package/models/booking-entry-class.ts +0 -133
  212. package/models/booking-process-class.ts +0 -104
  213. package/models/create-booking-entry-request-dto.ts +0 -109
  214. package/models/create-booking-process-request-dto.ts +0 -74
  215. package/models/create-booking-process-response-class.ts +0 -31
  216. package/models/create-financial-account-request-dto.ts +0 -71
  217. package/models/create-financial-account-response-class.ts +0 -31
  218. package/models/financial-account-class.ts +0 -107
  219. package/models/financial-transaction-class.ts +0 -114
  220. package/models/financial-transaction-data-dto.ts +0 -80
  221. package/models/get-financial-account-response-class.ts +0 -31
  222. package/models/list-booking-process-response-class.ts +0 -37
  223. 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 AccountingService
6
- * The EMIL AccountingService API description
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.FinancialAccountsApi = exports.FinancialAccountsApiFactory = exports.FinancialAccountsApiFp = exports.FinancialAccountsApiAxiosParamCreator = void 0;
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
- * FinancialAccountsApi - axios parameter creator
93
+ * VbasApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var FinancialAccountsApiAxiosParamCreator = function (configuration) {
96
+ var VbasApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
101
- * @summary Create the Financial Account
102
- * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
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 'createFinancialAccountRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
116
- localVarPath = "/accountingservice/v1/financial-accounts";
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)(createFinancialAccountRequestDto, localVarRequestOptions, configuration);
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
150
- * @summary Delete the Financial Account
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
- deleteFinancialAccount: function (code, authorization, options) {
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)('deleteFinancialAccount', 'code', code);
165
- localVarPath = "/accountingservice/v1/financial-accounts/{code}"
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: 'DELETE' }, baseOptions), options);
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
- * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
198
- * @summary Retrieve the Financial Account
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
- getFinancialAccount: function (code, expand, authorization, options) {
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
- // verify required parameter 'code' is not null or undefined
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
- * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
252
- * @summary List Financial Accounts
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
- listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
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
- localVarPath = "/accountingservice/v1/financial-accounts";
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: 'GET' }, baseOptions), options);
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.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
327
+ exports.VbasApiAxiosParamCreator = VbasApiAxiosParamCreator;
325
328
  /**
326
- * FinancialAccountsApi - functional programming interface
329
+ * VbasApi - functional programming interface
327
330
  * @export
328
331
  */
329
- var FinancialAccountsApiFp = function (configuration) {
330
- var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
332
+ var VbasApiFp = function (configuration) {
333
+ var localVarAxiosParamCreator = (0, exports.VbasApiAxiosParamCreator)(configuration);
331
334
  return {
332
335
  /**
333
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
334
- * @summary Create the Financial Account
335
- * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
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.createFinancialAccount(createFinancialAccountRequestDto, authorization, options)];
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
355
- * @summary Delete the Financial Account
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
- deleteFinancialAccount: function (code, authorization, options) {
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.deleteFinancialAccount(code, authorization, options)];
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
- * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
376
- * @summary Retrieve the Financial Account
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
- getFinancialAccount: function (code, expand, authorization, options) {
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.getFinancialAccount(code, expand, authorization, options)];
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
- * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
398
- * @summary List Financial Accounts
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
- listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
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.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
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.FinancialAccountsApiFp = FinancialAccountsApiFp;
429
+ exports.VbasApiFp = VbasApiFp;
426
430
  /**
427
- * FinancialAccountsApi - factory interface
431
+ * VbasApi - factory interface
428
432
  * @export
429
433
  */
430
- var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
431
- var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
434
+ var VbasApiFactory = function (configuration, basePath, axios) {
435
+ var localVarFp = (0, exports.VbasApiFp)(configuration);
432
436
  return {
433
437
  /**
434
- * This will create an financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
435
- * @summary Create the Financial Account
436
- * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
442
- return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
446
- * @summary Delete the Financial Account
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
- deleteFinancialAccount: function (code, authorization, options) {
453
- return localVarFp.deleteFinancialAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
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
- * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
457
- * @summary Retrieve the Financial Account
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
- getFinancialAccount: function (code, expand, authorization, options) {
465
- return localVarFp.getFinancialAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
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
- * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
469
- * @summary List Financial Accounts
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
- listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
482
- return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
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.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
491
+ exports.VbasApiFactory = VbasApiFactory;
487
492
  /**
488
- * FinancialAccountsApi - object-oriented interface
493
+ * VbasApi - object-oriented interface
489
494
  * @export
490
- * @class FinancialAccountsApi
495
+ * @class VbasApi
491
496
  * @extends {BaseAPI}
492
497
  */
493
- var FinancialAccountsApi = /** @class */ (function (_super) {
494
- __extends(FinancialAccountsApi, _super);
495
- function FinancialAccountsApi() {
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 financial account in the database. The financial account will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account.
500
- * @summary Create the Financial Account
501
- * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
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 FinancialAccountsApi
509
+ * @memberof VbasApi
505
510
  */
506
- FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
511
+ VbasApi.prototype.createVba = function (requestParameters, options) {
507
512
  var _this = this;
508
- return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
512
- * @summary Delete the Financial Account
513
- * @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
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 FinancialAccountsApi
521
+ * @memberof VbasApi
517
522
  */
518
- FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
523
+ VbasApi.prototype.getVba = function (requestParameters, options) {
519
524
  var _this = this;
520
- return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
- * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information.
524
- * @summary Retrieve the Financial Account
525
- * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
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 FinancialAccountsApi
533
+ * @memberof VbasApi
529
534
  */
530
- FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
535
+ VbasApi.prototype.listVbas = function (requestParameters, options) {
531
536
  var _this = this;
532
- return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
- * Returns a list of Financial Accounts you have previously created. The Financial Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
536
- * @summary List Financial Accounts
537
- * @param {FinancialAccountsApiListFinancialAccountsRequest} requestParameters Request parameters.
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 FinancialAccountsApi
546
+ * @memberof VbasApi
541
547
  */
542
- FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
548
+ VbasApi.prototype.updateVba = function (requestParameters, options) {
543
549
  var _this = this;
544
- if (requestParameters === void 0) { requestParameters = {}; }
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 FinancialAccountsApi;
552
+ return VbasApi;
548
553
  }(base_1.BaseAPI));
549
- exports.FinancialAccountsApi = FinancialAccountsApi;
554
+ exports.VbasApi = VbasApi;