@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.
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 +251 -0
  5. package/api/messages-api.ts +1096 -0
  6. package/api/users-api.ts +492 -0
  7. package/api/vbas-api.ts +588 -0
  8. package/api/vbus-api.ts +697 -0
  9. package/api/zip-codes-api.ts +439 -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 +311 -0
  18. package/dist/api/messages-api.d.ts +632 -0
  19. package/dist/api/messages-api.js +912 -0
  20. package/dist/api/users-api.d.ts +275 -0
  21. package/dist/api/users-api.js +508 -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 +643 -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 -353
  188. package/api/financial-accounts-api.ts +0 -573
  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
@@ -86,30 +86,30 @@ var common_1 = require("../common");
86
86
  // @ts-ignore
87
87
  var base_1 = require("../base");
88
88
  /**
89
- * FinancialAccountsApi - axios parameter creator
89
+ * VbasApi - axios parameter creator
90
90
  * @export
91
91
  */
92
- var FinancialAccountsApiAxiosParamCreator = function (configuration) {
92
+ var VbasApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * 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.
97
- * @summary Create the Financial Account
98
- * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
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 'createFinancialAccountRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
112
- localVarPath = "/accountingservice/v1/financial-accounts";
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)(createFinancialAccountRequestDto, localVarRequestOptions, configuration);
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
146
- * @summary Delete the Financial Account
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
- deleteFinancialAccount: function (code, authorization, options) {
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)('deleteFinancialAccount', 'code', code);
161
- localVarPath = "/accountingservice/v1/financial-accounts/{code}"
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: 'DELETE' }, baseOptions), options);
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
- * 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.
194
- * @summary Retrieve the Financial Account
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
- getFinancialAccount: function (code, expand, authorization, options) {
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
- // verify required parameter 'code' is not null or undefined
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
- * 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.
248
- * @summary List Financial Accounts
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
- listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
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
- localVarPath = "/accountingservice/v1/financial-accounts";
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: 'GET' }, baseOptions), options);
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.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
323
+ exports.VbasApiAxiosParamCreator = VbasApiAxiosParamCreator;
321
324
  /**
322
- * FinancialAccountsApi - functional programming interface
325
+ * VbasApi - functional programming interface
323
326
  * @export
324
327
  */
325
- var FinancialAccountsApiFp = function (configuration) {
326
- var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
328
+ var VbasApiFp = function (configuration) {
329
+ var localVarAxiosParamCreator = (0, exports.VbasApiAxiosParamCreator)(configuration);
327
330
  return {
328
331
  /**
329
- * 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.
330
- * @summary Create the Financial Account
331
- * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
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.createFinancialAccount(createFinancialAccountRequestDto, authorization, options)];
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
351
- * @summary Delete the Financial Account
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
- deleteFinancialAccount: function (code, authorization, options) {
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.deleteFinancialAccount(code, authorization, options)];
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
- * 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.
372
- * @summary Retrieve the Financial Account
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
- getFinancialAccount: function (code, expand, authorization, options) {
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.getFinancialAccount(code, expand, authorization, options)];
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
- * 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.
394
- * @summary List Financial Accounts
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
- listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
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.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
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.FinancialAccountsApiFp = FinancialAccountsApiFp;
425
+ exports.VbasApiFp = VbasApiFp;
422
426
  /**
423
- * FinancialAccountsApi - factory interface
427
+ * VbasApi - factory interface
424
428
  * @export
425
429
  */
426
- var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
427
- var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
430
+ var VbasApiFactory = function (configuration, basePath, axios) {
431
+ var localVarFp = (0, exports.VbasApiFp)(configuration);
428
432
  return {
429
433
  /**
430
- * 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.
431
- * @summary Create the Financial Account
432
- * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
438
- return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
442
- * @summary Delete the Financial Account
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
- deleteFinancialAccount: function (code, authorization, options) {
449
- return localVarFp.deleteFinancialAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
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
- * 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.
453
- * @summary Retrieve the Financial Account
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
- getFinancialAccount: function (code, expand, authorization, options) {
461
- return localVarFp.getFinancialAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
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
- * 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.
465
- * @summary List Financial Accounts
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
- listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
478
- return localVarFp.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
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.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
487
+ exports.VbasApiFactory = VbasApiFactory;
483
488
  /**
484
- * FinancialAccountsApi - object-oriented interface
489
+ * VbasApi - object-oriented interface
485
490
  * @export
486
- * @class FinancialAccountsApi
491
+ * @class VbasApi
487
492
  * @extends {BaseAPI}
488
493
  */
489
- var FinancialAccountsApi = /** @class */ (function (_super) {
490
- __extends(FinancialAccountsApi, _super);
491
- function FinancialAccountsApi() {
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 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.
496
- * @summary Create the Financial Account
497
- * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
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 FinancialAccountsApi
505
+ * @memberof VbasApi
501
506
  */
502
- FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
507
+ VbasApi.prototype.createVba = function (requestParameters, options) {
503
508
  var _this = this;
504
- return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
- * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it.
508
- * @summary Delete the Financial Account
509
- * @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
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 FinancialAccountsApi
517
+ * @memberof VbasApi
513
518
  */
514
- FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
519
+ VbasApi.prototype.getVba = function (requestParameters, options) {
515
520
  var _this = this;
516
- return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
- * 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.
520
- * @summary Retrieve the Financial Account
521
- * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
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 FinancialAccountsApi
529
+ * @memberof VbasApi
525
530
  */
526
- FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
531
+ VbasApi.prototype.listVbas = function (requestParameters, options) {
527
532
  var _this = this;
528
- return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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
- * 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.
532
- * @summary List Financial Accounts
533
- * @param {FinancialAccountsApiListFinancialAccountsRequest} requestParameters Request parameters.
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 FinancialAccountsApi
542
+ * @memberof VbasApi
537
543
  */
538
- FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
544
+ VbasApi.prototype.updateVba = function (requestParameters, options) {
539
545
  var _this = this;
540
- if (requestParameters === void 0) { requestParameters = {}; }
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 FinancialAccountsApi;
548
+ return VbasApi;
544
549
  }(base_1.BaseAPI));
545
- exports.FinancialAccountsApi = FinancialAccountsApi;
550
+ exports.VbasApi = VbasApi;