@emilgroup/accounting-sdk-node 1.19.0 → 1.20.1-beta.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 (259) hide show
  1. package/.openapi-generator/FILES +29 -52
  2. package/README.md +2 -2
  3. package/api/{zip-codes-api.ts → booking-entries-api.ts} +195 -162
  4. package/api/financial-accounts-api.ts +577 -0
  5. package/api/financial-transactions-api.ts +369 -0
  6. package/api/health-api.ts +7 -7
  7. package/api/number-ranges-api.ts +577 -0
  8. package/api/personal-accounts-api.ts +577 -0
  9. package/api.ts +12 -14
  10. package/base.ts +2 -2
  11. package/common.ts +4 -4
  12. package/configuration.ts +2 -2
  13. package/dist/api/{zip-codes-api.d.ts → booking-entries-api.d.ts} +130 -111
  14. package/dist/api/{zip-codes-api.js → booking-entries-api.js} +144 -130
  15. package/dist/api/financial-accounts-api.d.ts +327 -0
  16. package/dist/api/{users-api.js → financial-accounts-api.js} +171 -134
  17. package/dist/api/financial-transactions-api.d.ts +215 -0
  18. package/dist/api/financial-transactions-api.js +364 -0
  19. package/dist/api/health-api.d.ts +6 -6
  20. package/dist/api/health-api.js +7 -7
  21. package/dist/api/number-ranges-api.d.ts +327 -0
  22. package/dist/api/{vbas-api.js → number-ranges-api.js} +156 -161
  23. package/dist/api/personal-accounts-api.d.ts +327 -0
  24. package/dist/api/{vbus-api.js → personal-accounts-api.js} +136 -234
  25. package/dist/api.d.ts +7 -8
  26. package/dist/api.js +7 -8
  27. package/dist/base.d.ts +2 -2
  28. package/dist/base.js +2 -2
  29. package/dist/common.d.ts +4 -4
  30. package/dist/common.js +2 -2
  31. package/dist/configuration.d.ts +2 -2
  32. package/dist/configuration.js +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/models/booking-entry-class.d.ts +123 -0
  36. package/dist/models/{create-vbuv-request-dto.js → booking-entry-class.js} +15 -6
  37. package/dist/models/create-booking-entry-request-dto.d.ts +61 -0
  38. package/dist/models/{address-class.js → create-booking-entry-request-dto.js} +2 -2
  39. package/dist/models/create-booking-entry-response-class.d.ts +25 -0
  40. package/dist/models/{create-user-response-class.js → create-booking-entry-response-class.js} +2 -2
  41. package/dist/models/create-financial-account-request-dto.d.ts +75 -0
  42. package/dist/models/create-financial-account-request-dto.js +24 -0
  43. package/dist/models/create-financial-account-response-class.d.ts +25 -0
  44. package/dist/models/{create-mailbox-request-dto.js → create-financial-account-response-class.js} +2 -2
  45. package/dist/models/create-number-range-request-dto.d.ts +53 -0
  46. package/dist/models/create-number-range-request-dto.js +26 -0
  47. package/dist/models/create-number-range-response-class.d.ts +25 -0
  48. package/dist/models/{create-vba-response-class.js → create-number-range-response-class.js} +2 -2
  49. package/dist/models/create-personal-account-request-dto.d.ts +60 -0
  50. package/dist/models/{create-vba-request-dto.js → create-personal-account-request-dto.js} +7 -6
  51. package/dist/models/create-personal-account-response-class.d.ts +25 -0
  52. package/dist/models/create-personal-account-response-class.js +15 -0
  53. package/dist/models/financial-account-class.d.ts +111 -0
  54. package/dist/models/{create-vbu-request-dto.js → financial-account-class.js} +10 -6
  55. package/dist/models/financial-transaction-class.d.ts +114 -0
  56. package/dist/models/financial-transaction-class.js +15 -0
  57. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  58. package/dist/models/financial-transaction-data-dto.js +25 -0
  59. package/dist/models/get-booking-entry-response-class.d.ts +25 -0
  60. package/dist/models/get-booking-entry-response-class.js +15 -0
  61. package/dist/models/get-financial-account-response-class.d.ts +25 -0
  62. package/dist/models/get-financial-account-response-class.js +15 -0
  63. package/dist/models/get-financial-transaction-response-class.d.ts +25 -0
  64. package/dist/models/get-financial-transaction-response-class.js +15 -0
  65. package/dist/models/get-number-range-response-class.d.ts +25 -0
  66. package/dist/models/get-number-range-response-class.js +15 -0
  67. package/dist/models/get-personal-account-response-class.d.ts +25 -0
  68. package/dist/models/get-personal-account-response-class.js +15 -0
  69. package/dist/models/index.d.ts +24 -46
  70. package/dist/models/index.js +24 -46
  71. package/dist/models/inline-response200.d.ts +2 -2
  72. package/dist/models/inline-response200.js +2 -2
  73. package/dist/models/inline-response503.d.ts +2 -2
  74. package/dist/models/inline-response503.js +2 -2
  75. package/dist/models/list-booking-entries-response-class.d.ts +31 -0
  76. package/dist/models/list-booking-entries-response-class.js +15 -0
  77. package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
  78. package/dist/models/list-financial-accounts-response-class.js +15 -0
  79. package/dist/models/list-financial-transactions-response-class.d.ts +31 -0
  80. package/dist/models/list-financial-transactions-response-class.js +15 -0
  81. package/dist/models/list-number-range-response-class.d.ts +31 -0
  82. package/dist/models/list-number-range-response-class.js +15 -0
  83. package/dist/models/list-personal-accounts-response-class.d.ts +31 -0
  84. package/dist/models/list-personal-accounts-response-class.js +15 -0
  85. package/dist/models/number-range-class.d.ts +84 -0
  86. package/dist/models/number-range-class.js +15 -0
  87. package/dist/models/personal-account-class.d.ts +105 -0
  88. package/dist/models/{create-user-request-dto.js → personal-account-class.js} +10 -10
  89. package/index.ts +2 -2
  90. package/models/booking-entry-class.ts +132 -0
  91. package/models/create-booking-entry-request-dto.ts +67 -0
  92. package/models/create-booking-entry-response-class.ts +31 -0
  93. package/models/create-financial-account-request-dto.ts +84 -0
  94. package/models/create-financial-account-response-class.ts +31 -0
  95. package/models/create-number-range-request-dto.ts +62 -0
  96. package/models/create-number-range-response-class.ts +31 -0
  97. package/models/create-personal-account-request-dto.ts +69 -0
  98. package/models/create-personal-account-response-class.ts +31 -0
  99. package/models/financial-account-class.ts +120 -0
  100. package/models/financial-transaction-class.ts +120 -0
  101. package/models/financial-transaction-data-dto.ts +81 -0
  102. package/models/get-booking-entry-response-class.ts +31 -0
  103. package/models/get-financial-account-response-class.ts +31 -0
  104. package/models/get-financial-transaction-response-class.ts +31 -0
  105. package/models/get-number-range-response-class.ts +31 -0
  106. package/models/get-personal-account-response-class.ts +31 -0
  107. package/models/index.ts +24 -46
  108. package/models/inline-response200.ts +2 -2
  109. package/models/inline-response503.ts +2 -2
  110. package/models/list-booking-entries-response-class.ts +37 -0
  111. package/models/list-financial-accounts-response-class.ts +37 -0
  112. package/models/list-financial-transactions-response-class.ts +37 -0
  113. package/models/list-number-range-response-class.ts +37 -0
  114. package/models/list-personal-accounts-response-class.ts +37 -0
  115. package/models/number-range-class.ts +90 -0
  116. package/models/personal-account-class.ts +114 -0
  117. package/package.json +1 -1
  118. package/api/mailbox-api.ts +0 -255
  119. package/api/messages-api.ts +0 -1100
  120. package/api/users-api.ts +0 -496
  121. package/api/vbas-api.ts +0 -592
  122. package/api/vbus-api.ts +0 -701
  123. package/dist/api/mailbox-api.d.ts +0 -142
  124. package/dist/api/mailbox-api.js +0 -315
  125. package/dist/api/messages-api.d.ts +0 -632
  126. package/dist/api/messages-api.js +0 -916
  127. package/dist/api/users-api.d.ts +0 -275
  128. package/dist/api/vbas-api.d.ts +0 -337
  129. package/dist/api/vbus-api.d.ts +0 -395
  130. package/dist/models/address-class.d.ts +0 -48
  131. package/dist/models/create-mailbox-request-dto.d.ts +0 -36
  132. package/dist/models/create-user-request-dto.d.ts +0 -76
  133. package/dist/models/create-user-response-class.d.ts +0 -25
  134. package/dist/models/create-vba-request-dto.d.ts +0 -41
  135. package/dist/models/create-vba-response-class.d.ts +0 -24
  136. package/dist/models/create-vbu-request-dto.d.ts +0 -41
  137. package/dist/models/create-vbu-response-class.d.ts +0 -24
  138. package/dist/models/create-vbu-response-class.js +0 -15
  139. package/dist/models/create-vbuv-request-dto.d.ts +0 -41
  140. package/dist/models/create-vbuv-response-class.d.ts +0 -24
  141. package/dist/models/create-vbuv-response-class.js +0 -15
  142. package/dist/models/get-request-message-response-class.d.ts +0 -25
  143. package/dist/models/get-request-message-response-class.js +0 -15
  144. package/dist/models/get-response-message-response-class.d.ts +0 -25
  145. package/dist/models/get-response-message-response-class.js +0 -15
  146. package/dist/models/get-user-response-class.d.ts +0 -25
  147. package/dist/models/get-user-response-class.js +0 -15
  148. package/dist/models/get-vba-response-class.d.ts +0 -25
  149. package/dist/models/get-vba-response-class.js +0 -15
  150. package/dist/models/get-vbu-response-class.d.ts +0 -25
  151. package/dist/models/get-vbu-response-class.js +0 -15
  152. package/dist/models/get-zip-code-response-class.d.ts +0 -25
  153. package/dist/models/get-zip-code-response-class.js +0 -15
  154. package/dist/models/list-all-messages-response-class.d.ts +0 -31
  155. package/dist/models/list-all-messages-response-class.js +0 -15
  156. package/dist/models/list-requests-messages-response-class.d.ts +0 -31
  157. package/dist/models/list-requests-messages-response-class.js +0 -15
  158. package/dist/models/list-responses-messages-response-class.d.ts +0 -31
  159. package/dist/models/list-responses-messages-response-class.js +0 -15
  160. package/dist/models/list-users-response-class.d.ts +0 -31
  161. package/dist/models/list-users-response-class.js +0 -15
  162. package/dist/models/list-vbas-response-class.d.ts +0 -31
  163. package/dist/models/list-vbas-response-class.js +0 -15
  164. package/dist/models/list-vbus-response-class.d.ts +0 -31
  165. package/dist/models/list-vbus-response-class.js +0 -15
  166. package/dist/models/list-zip-codes-response-class.d.ts +0 -31
  167. package/dist/models/list-zip-codes-response-class.js +0 -15
  168. package/dist/models/message-class.d.ts +0 -90
  169. package/dist/models/message-class.js +0 -15
  170. package/dist/models/request-details-class.d.ts +0 -48
  171. package/dist/models/request-details-class.js +0 -15
  172. package/dist/models/request-message-class.d.ts +0 -127
  173. package/dist/models/request-message-class.js +0 -15
  174. package/dist/models/response-details-class.d.ts +0 -42
  175. package/dist/models/response-details-class.js +0 -15
  176. package/dist/models/response-message-class.d.ts +0 -139
  177. package/dist/models/response-message-class.js +0 -15
  178. package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
  179. package/dist/models/store-zip-codes-request-dto.js +0 -15
  180. package/dist/models/store-zip-codes-response-class.d.ts +0 -25
  181. package/dist/models/store-zip-codes-response-class.js +0 -15
  182. package/dist/models/update-request-message-request-dto.d.ts +0 -36
  183. package/dist/models/update-request-message-request-dto.js +0 -15
  184. package/dist/models/update-request-message-response-class.d.ts +0 -25
  185. package/dist/models/update-request-message-response-class.js +0 -15
  186. package/dist/models/update-response-message-request-dto.d.ts +0 -36
  187. package/dist/models/update-response-message-request-dto.js +0 -15
  188. package/dist/models/update-response-message-response-class.d.ts +0 -25
  189. package/dist/models/update-response-message-response-class.js +0 -15
  190. package/dist/models/update-user-request-dto.d.ts +0 -82
  191. package/dist/models/update-user-request-dto.js +0 -24
  192. package/dist/models/update-user-response-class.d.ts +0 -25
  193. package/dist/models/update-user-response-class.js +0 -15
  194. package/dist/models/update-vba-request-dto.d.ts +0 -30
  195. package/dist/models/update-vba-request-dto.js +0 -15
  196. package/dist/models/update-vbu-request-dto.d.ts +0 -30
  197. package/dist/models/update-vbu-request-dto.js +0 -15
  198. package/dist/models/update-vbu-response-class.d.ts +0 -25
  199. package/dist/models/update-vbu-response-class.js +0 -15
  200. package/dist/models/user-class.d.ts +0 -107
  201. package/dist/models/user-class.js +0 -20
  202. package/dist/models/vba-class.d.ts +0 -116
  203. package/dist/models/vba-class.js +0 -15
  204. package/dist/models/vba-response-class.d.ts +0 -48
  205. package/dist/models/vba-response-class.js +0 -15
  206. package/dist/models/vbu-class.d.ts +0 -115
  207. package/dist/models/vbu-class.js +0 -15
  208. package/dist/models/vbu-response-class.d.ts +0 -48
  209. package/dist/models/vbu-response-class.js +0 -15
  210. package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
  211. package/dist/models/xlsx-zip-code-dto.js +0 -15
  212. package/dist/models/zip-code-class.d.ts +0 -60
  213. package/dist/models/zip-code-class.js +0 -15
  214. package/models/address-class.ts +0 -54
  215. package/models/create-mailbox-request-dto.ts +0 -42
  216. package/models/create-user-request-dto.ts +0 -86
  217. package/models/create-user-response-class.ts +0 -31
  218. package/models/create-vba-request-dto.ts +0 -50
  219. package/models/create-vba-response-class.ts +0 -30
  220. package/models/create-vbu-request-dto.ts +0 -50
  221. package/models/create-vbu-response-class.ts +0 -30
  222. package/models/create-vbuv-request-dto.ts +0 -50
  223. package/models/create-vbuv-response-class.ts +0 -30
  224. package/models/get-request-message-response-class.ts +0 -31
  225. package/models/get-response-message-response-class.ts +0 -31
  226. package/models/get-user-response-class.ts +0 -31
  227. package/models/get-vba-response-class.ts +0 -31
  228. package/models/get-vbu-response-class.ts +0 -31
  229. package/models/get-zip-code-response-class.ts +0 -31
  230. package/models/list-all-messages-response-class.ts +0 -37
  231. package/models/list-requests-messages-response-class.ts +0 -37
  232. package/models/list-responses-messages-response-class.ts +0 -37
  233. package/models/list-users-response-class.ts +0 -37
  234. package/models/list-vbas-response-class.ts +0 -37
  235. package/models/list-vbus-response-class.ts +0 -37
  236. package/models/list-zip-codes-response-class.ts +0 -37
  237. package/models/message-class.ts +0 -96
  238. package/models/request-details-class.ts +0 -54
  239. package/models/request-message-class.ts +0 -133
  240. package/models/response-details-class.ts +0 -48
  241. package/models/response-message-class.ts +0 -145
  242. package/models/store-zip-codes-request-dto.ts +0 -31
  243. package/models/store-zip-codes-response-class.ts +0 -31
  244. package/models/update-request-message-request-dto.ts +0 -42
  245. package/models/update-request-message-response-class.ts +0 -31
  246. package/models/update-response-message-request-dto.ts +0 -42
  247. package/models/update-response-message-response-class.ts +0 -31
  248. package/models/update-user-request-dto.ts +0 -92
  249. package/models/update-user-response-class.ts +0 -31
  250. package/models/update-vba-request-dto.ts +0 -36
  251. package/models/update-vbu-request-dto.ts +0 -36
  252. package/models/update-vbu-response-class.ts +0 -31
  253. package/models/user-class.ts +0 -116
  254. package/models/vba-class.ts +0 -122
  255. package/models/vba-response-class.ts +0 -54
  256. package/models/vbu-class.ts +0 -121
  257. package/models/vbu-response-class.ts +0 -54
  258. package/models/xlsx-zip-code-dto.ts +0 -36
  259. package/models/zip-code-class.ts +0 -66
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService 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.UsersApi = exports.UsersApiFactory = exports.UsersApiFp = exports.UsersApiAxiosParamCreator = void 0;
81
+ exports.FinancialAccountsApi = exports.FinancialAccountsApiFactory = exports.FinancialAccountsApiFp = exports.FinancialAccountsApiAxiosParamCreator = 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
- * UsersApi - axios parameter creator
93
+ * FinancialAccountsApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var UsersApiAxiosParamCreator = function (configuration) {
96
+ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * Create a gdv tenant user. **Required Permissions** \"gdv-management.operations.create\"
101
- * @summary Create the gdv tenant user
102
- * @param {CreateUserRequestDto} createUserRequestDto
103
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.create\"
101
+ * @summary Create the Financial Account
102
+ * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
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
- createUser: function (createUserRequestDto, authorization, options) {
107
+ createFinancialAccount: function (createFinancialAccountRequestDto, 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 'createUserRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createUser', 'createUserRequestDto', createUserRequestDto);
116
- localVarPath = "/gdvservice/v1/users";
114
+ // verify required parameter 'createFinancialAccountRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createFinancialAccount', 'createFinancialAccountRequestDto', createFinancialAccountRequestDto);
116
+ localVarPath = "/accountingservice/v1/financial-accounts";
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 UsersApiAxiosParamCreator = 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)(createUserRequestDto, localVarRequestOptions, configuration);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFinancialAccountRequestDto, localVarRequestOptions, configuration);
140
140
  return [2 /*return*/, {
141
141
  url: (0, common_1.toPathString)(localVarUrlObj),
142
142
  options: localVarRequestOptions,
@@ -146,15 +146,14 @@ var UsersApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * Retrieves the details of the gdv tenant user that was previously created. Supply the unique gdv tenant user code that was returned when you created it and Emil Api will return the corresponding gdv tenant user information. **Required Permissions** \"gdv-management.operations.view\"
150
- * @summary Retrieve the gdv tenant user
149
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
150
+ * @summary Delete the Financial Account
151
151
  * @param {string} code Unique identifier for the object.
152
- * @param {string} [authorization] Bearer Token
153
- * @param {string} [expand]
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
154
153
  * @param {*} [options] Override http request option.
155
154
  * @throws {RequiredError}
156
155
  */
157
- getUser: function (code, authorization, expand, options) {
156
+ deleteFinancialAccount: function (code, authorization, options) {
158
157
  if (options === void 0) { options = {}; }
159
158
  return __awaiter(_this, void 0, void 0, function () {
160
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -162,15 +161,15 @@ var UsersApiAxiosParamCreator = function (configuration) {
162
161
  switch (_a.label) {
163
162
  case 0:
164
163
  // verify required parameter 'code' is not null or undefined
165
- (0, common_1.assertParamExists)('getUser', 'code', code);
166
- localVarPath = "/gdvservice/v1/users/{code}"
164
+ (0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
165
+ localVarPath = "/accountingservice/v1/financial-accounts/{code}"
167
166
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
168
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
169
168
  if (configuration) {
170
169
  baseOptions = configuration.baseOptions;
171
170
  baseAccessToken = configuration.accessToken;
172
171
  }
173
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
174
173
  localVarHeaderParameter = {};
175
174
  localVarQueryParameter = {};
176
175
  // authentication bearer required
@@ -180,9 +179,6 @@ var UsersApiAxiosParamCreator = function (configuration) {
180
179
  // authentication bearer required
181
180
  // http bearer authentication required
182
181
  _a.sent();
183
- if (expand !== undefined) {
184
- localVarQueryParameter['expand'] = expand;
185
- }
186
182
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
183
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
184
  }
@@ -198,20 +194,27 @@ var UsersApiAxiosParamCreator = function (configuration) {
198
194
  });
199
195
  },
200
196
  /**
201
- * Returns a list of gdv tenant users you have previously created. The gdv tenant users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
202
- * @summary List gdv tenant users
203
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.view\"
198
+ * @summary Retrieve the Financial Account
199
+ * @param {string} code Unique identifier for the object.
200
+ * @param {string} expand
201
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
202
  * @param {*} [options] Override http request option.
205
203
  * @throws {RequiredError}
206
204
  */
207
- listUsers: function (authorization, options) {
205
+ getFinancialAccount: function (code, expand, authorization, options) {
208
206
  if (options === void 0) { options = {}; }
209
207
  return __awaiter(_this, void 0, void 0, function () {
210
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
211
209
  return __generator(this, function (_a) {
212
210
  switch (_a.label) {
213
211
  case 0:
214
- localVarPath = "/gdvservice/v1/users";
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)));
215
218
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
216
219
  if (configuration) {
217
220
  baseOptions = configuration.baseOptions;
@@ -227,6 +230,9 @@ var UsersApiAxiosParamCreator = function (configuration) {
227
230
  // authentication bearer required
228
231
  // http bearer authentication required
229
232
  _a.sent();
233
+ if (expand !== undefined) {
234
+ localVarQueryParameter['expand'] = expand;
235
+ }
230
236
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
237
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
232
238
  }
@@ -242,33 +248,33 @@ var UsersApiAxiosParamCreator = function (configuration) {
242
248
  });
243
249
  },
244
250
  /**
245
- * Updates the specified gdv tenant user by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
246
- * @summary Update the gdv tenant user
247
- * @param {string} code Unique identifier for the object.
248
- * @param {UpdateUserRequestDto} updateUserRequestDto
249
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.view\"
252
+ * @summary List Financial Accounts
253
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
255
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
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 {string} [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 {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
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>
250
261
  * @param {*} [options] Override http request option.
251
262
  * @throws {RequiredError}
252
263
  */
253
- updateUser: function (code, updateUserRequestDto, authorization, options) {
264
+ listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
254
265
  if (options === void 0) { options = {}; }
255
266
  return __awaiter(_this, void 0, void 0, function () {
256
267
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
257
268
  return __generator(this, function (_a) {
258
269
  switch (_a.label) {
259
270
  case 0:
260
- // verify required parameter 'code' is not null or undefined
261
- (0, common_1.assertParamExists)('updateUser', 'code', code);
262
- // verify required parameter 'updateUserRequestDto' is not null or undefined
263
- (0, common_1.assertParamExists)('updateUser', 'updateUserRequestDto', updateUserRequestDto);
264
- localVarPath = "/gdvservice/v1/users/{code}"
265
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
271
+ localVarPath = "/accountingservice/v1/financial-accounts";
266
272
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
267
273
  if (configuration) {
268
274
  baseOptions = configuration.baseOptions;
269
275
  baseAccessToken = configuration.accessToken;
270
276
  }
271
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
277
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
272
278
  localVarHeaderParameter = {};
273
279
  localVarQueryParameter = {};
274
280
  // authentication bearer required
@@ -278,14 +284,33 @@ var UsersApiAxiosParamCreator = function (configuration) {
278
284
  // authentication bearer required
279
285
  // http bearer authentication required
280
286
  _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
+ }
281
308
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
282
309
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
283
310
  }
284
- localVarHeaderParameter['Content-Type'] = 'application/json';
285
311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
286
312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
287
313
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
288
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateUserRequestDto, localVarRequestOptions, configuration);
289
314
  return [2 /*return*/, {
290
315
  url: (0, common_1.toPathString)(localVarUrlObj),
291
316
  options: localVarRequestOptions,
@@ -296,28 +321,28 @@ var UsersApiAxiosParamCreator = function (configuration) {
296
321
  },
297
322
  };
298
323
  };
299
- exports.UsersApiAxiosParamCreator = UsersApiAxiosParamCreator;
324
+ exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
300
325
  /**
301
- * UsersApi - functional programming interface
326
+ * FinancialAccountsApi - functional programming interface
302
327
  * @export
303
328
  */
304
- var UsersApiFp = function (configuration) {
305
- var localVarAxiosParamCreator = (0, exports.UsersApiAxiosParamCreator)(configuration);
329
+ var FinancialAccountsApiFp = function (configuration) {
330
+ var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
306
331
  return {
307
332
  /**
308
- * Create a gdv tenant user. **Required Permissions** \"gdv-management.operations.create\"
309
- * @summary Create the gdv tenant user
310
- * @param {CreateUserRequestDto} createUserRequestDto
311
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.create\"
334
+ * @summary Create the Financial Account
335
+ * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
312
337
  * @param {*} [options] Override http request option.
313
338
  * @throws {RequiredError}
314
339
  */
315
- createUser: function (createUserRequestDto, authorization, options) {
340
+ createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
316
341
  return __awaiter(this, void 0, void 0, function () {
317
342
  var localVarAxiosArgs;
318
343
  return __generator(this, function (_a) {
319
344
  switch (_a.label) {
320
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createUser(createUserRequestDto, authorization, options)];
345
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFinancialAccount(createFinancialAccountRequestDto, authorization, options)];
321
346
  case 1:
322
347
  localVarAxiosArgs = _a.sent();
323
348
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -326,20 +351,19 @@ var UsersApiFp = function (configuration) {
326
351
  });
327
352
  },
328
353
  /**
329
- * Retrieves the details of the gdv tenant user that was previously created. Supply the unique gdv tenant user code that was returned when you created it and Emil Api will return the corresponding gdv tenant user information. **Required Permissions** \"gdv-management.operations.view\"
330
- * @summary Retrieve the gdv tenant user
354
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
355
+ * @summary Delete the Financial Account
331
356
  * @param {string} code Unique identifier for the object.
332
- * @param {string} [authorization] Bearer Token
333
- * @param {string} [expand]
357
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
334
358
  * @param {*} [options] Override http request option.
335
359
  * @throws {RequiredError}
336
360
  */
337
- getUser: function (code, authorization, expand, options) {
361
+ deleteFinancialAccount: function (code, authorization, options) {
338
362
  return __awaiter(this, void 0, void 0, function () {
339
363
  var localVarAxiosArgs;
340
364
  return __generator(this, function (_a) {
341
365
  switch (_a.label) {
342
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getUser(code, authorization, expand, options)];
366
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteFinancialAccount(code, authorization, options)];
343
367
  case 1:
344
368
  localVarAxiosArgs = _a.sent();
345
369
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -348,18 +372,20 @@ var UsersApiFp = function (configuration) {
348
372
  });
349
373
  },
350
374
  /**
351
- * Returns a list of gdv tenant users you have previously created. The gdv tenant users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
352
- * @summary List gdv tenant users
353
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.view\"
376
+ * @summary Retrieve the Financial Account
377
+ * @param {string} code Unique identifier for the object.
378
+ * @param {string} expand
379
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
380
  * @param {*} [options] Override http request option.
355
381
  * @throws {RequiredError}
356
382
  */
357
- listUsers: function (authorization, options) {
383
+ getFinancialAccount: function (code, expand, authorization, options) {
358
384
  return __awaiter(this, void 0, void 0, function () {
359
385
  var localVarAxiosArgs;
360
386
  return __generator(this, function (_a) {
361
387
  switch (_a.label) {
362
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listUsers(authorization, options)];
388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFinancialAccount(code, expand, authorization, options)];
363
389
  case 1:
364
390
  localVarAxiosArgs = _a.sent();
365
391
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -368,20 +394,25 @@ var UsersApiFp = function (configuration) {
368
394
  });
369
395
  },
370
396
  /**
371
- * Updates the specified gdv tenant user by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
372
- * @summary Update the gdv tenant user
373
- * @param {string} code Unique identifier for the object.
374
- * @param {UpdateUserRequestDto} updateUserRequestDto
375
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.view\"
398
+ * @summary List Financial Accounts
399
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
400
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
401
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
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 {string} [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 {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
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>
376
407
  * @param {*} [options] Override http request option.
377
408
  * @throws {RequiredError}
378
409
  */
379
- updateUser: function (code, updateUserRequestDto, authorization, options) {
410
+ listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
380
411
  return __awaiter(this, void 0, void 0, function () {
381
412
  var localVarAxiosArgs;
382
413
  return __generator(this, function (_a) {
383
414
  switch (_a.label) {
384
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateUser(code, updateUserRequestDto, authorization, options)];
415
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
385
416
  case 1:
386
417
  localVarAxiosArgs = _a.sent();
387
418
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -391,122 +422,128 @@ var UsersApiFp = function (configuration) {
391
422
  },
392
423
  };
393
424
  };
394
- exports.UsersApiFp = UsersApiFp;
425
+ exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
395
426
  /**
396
- * UsersApi - factory interface
427
+ * FinancialAccountsApi - factory interface
397
428
  * @export
398
429
  */
399
- var UsersApiFactory = function (configuration, basePath, axios) {
400
- var localVarFp = (0, exports.UsersApiFp)(configuration);
430
+ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
431
+ var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
401
432
  return {
402
433
  /**
403
- * Create a gdv tenant user. **Required Permissions** \"gdv-management.operations.create\"
404
- * @summary Create the gdv tenant user
405
- * @param {CreateUserRequestDto} createUserRequestDto
406
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.create\"
435
+ * @summary Create the Financial Account
436
+ * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
407
438
  * @param {*} [options] Override http request option.
408
439
  * @throws {RequiredError}
409
440
  */
410
- createUser: function (createUserRequestDto, authorization, options) {
411
- return localVarFp.createUser(createUserRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
441
+ createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
442
+ return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
412
443
  },
413
444
  /**
414
- * Retrieves the details of the gdv tenant user that was previously created. Supply the unique gdv tenant user code that was returned when you created it and Emil Api will return the corresponding gdv tenant user information. **Required Permissions** \"gdv-management.operations.view\"
415
- * @summary Retrieve the gdv tenant user
445
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
446
+ * @summary Delete the Financial Account
416
447
  * @param {string} code Unique identifier for the object.
417
- * @param {string} [authorization] Bearer Token
418
- * @param {string} [expand]
448
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
419
449
  * @param {*} [options] Override http request option.
420
450
  * @throws {RequiredError}
421
451
  */
422
- getUser: function (code, authorization, expand, options) {
423
- return localVarFp.getUser(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
452
+ deleteFinancialAccount: function (code, authorization, options) {
453
+ return localVarFp.deleteFinancialAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
424
454
  },
425
455
  /**
426
- * Returns a list of gdv tenant users you have previously created. The gdv tenant users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
427
- * @summary List gdv tenant users
428
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.view\"
457
+ * @summary Retrieve the Financial Account
458
+ * @param {string} code Unique identifier for the object.
459
+ * @param {string} expand
460
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
429
461
  * @param {*} [options] Override http request option.
430
462
  * @throws {RequiredError}
431
463
  */
432
- listUsers: function (authorization, options) {
433
- return localVarFp.listUsers(authorization, options).then(function (request) { return request(axios, basePath); });
464
+ getFinancialAccount: function (code, expand, authorization, options) {
465
+ return localVarFp.getFinancialAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
434
466
  },
435
467
  /**
436
- * Updates the specified gdv tenant user by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
437
- * @summary Update the gdv tenant user
438
- * @param {string} code Unique identifier for the object.
439
- * @param {UpdateUserRequestDto} updateUserRequestDto
440
- * @param {string} [authorization] Bearer Token
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. **Required Permissions** \"accounting-management.accounts.view\"
469
+ * @summary List Financial Accounts
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
472
+ * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
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 {string} [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 {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
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>
441
478
  * @param {*} [options] Override http request option.
442
479
  * @throws {RequiredError}
443
480
  */
444
- updateUser: function (code, updateUserRequestDto, authorization, options) {
445
- return localVarFp.updateUser(code, updateUserRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
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); });
446
483
  },
447
484
  };
448
485
  };
449
- exports.UsersApiFactory = UsersApiFactory;
486
+ exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
450
487
  /**
451
- * UsersApi - object-oriented interface
488
+ * FinancialAccountsApi - object-oriented interface
452
489
  * @export
453
- * @class UsersApi
490
+ * @class FinancialAccountsApi
454
491
  * @extends {BaseAPI}
455
492
  */
456
- var UsersApi = /** @class */ (function (_super) {
457
- __extends(UsersApi, _super);
458
- function UsersApi() {
493
+ var FinancialAccountsApi = /** @class */ (function (_super) {
494
+ __extends(FinancialAccountsApi, _super);
495
+ function FinancialAccountsApi() {
459
496
  return _super !== null && _super.apply(this, arguments) || this;
460
497
  }
461
498
  /**
462
- * Create a gdv tenant user. **Required Permissions** \"gdv-management.operations.create\"
463
- * @summary Create the gdv tenant user
464
- * @param {UsersApiCreateUserRequest} requestParameters Request parameters.
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. **Required Permissions** \"accounting-management.accounts.create\"
500
+ * @summary Create the Financial Account
501
+ * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
465
502
  * @param {*} [options] Override http request option.
466
503
  * @throws {RequiredError}
467
- * @memberof UsersApi
504
+ * @memberof FinancialAccountsApi
468
505
  */
469
- UsersApi.prototype.createUser = function (requestParameters, options) {
506
+ FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
470
507
  var _this = this;
471
- return (0, exports.UsersApiFp)(this.configuration).createUser(requestParameters.createUserRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
508
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).createFinancialAccount(requestParameters.createFinancialAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
472
509
  };
473
510
  /**
474
- * Retrieves the details of the gdv tenant user that was previously created. Supply the unique gdv tenant user code that was returned when you created it and Emil Api will return the corresponding gdv tenant user information. **Required Permissions** \"gdv-management.operations.view\"
475
- * @summary Retrieve the gdv tenant user
476
- * @param {UsersApiGetUserRequest} requestParameters Request parameters.
511
+ * Permanently deletes the Financial Account. Supply the unique code that was returned when you created the Financial Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
512
+ * @summary Delete the Financial Account
513
+ * @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
477
514
  * @param {*} [options] Override http request option.
478
515
  * @throws {RequiredError}
479
- * @memberof UsersApi
516
+ * @memberof FinancialAccountsApi
480
517
  */
481
- UsersApi.prototype.getUser = function (requestParameters, options) {
518
+ FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
482
519
  var _this = this;
483
- return (0, exports.UsersApiFp)(this.configuration).getUser(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
520
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).deleteFinancialAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
484
521
  };
485
522
  /**
486
- * Returns a list of gdv tenant users you have previously created. The gdv tenant users are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
487
- * @summary List gdv tenant users
488
- * @param {UsersApiListUsersRequest} requestParameters Request parameters.
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. **Required Permissions** \"accounting-management.accounts.view\"
524
+ * @summary Retrieve the Financial Account
525
+ * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
489
526
  * @param {*} [options] Override http request option.
490
527
  * @throws {RequiredError}
491
- * @memberof UsersApi
528
+ * @memberof FinancialAccountsApi
492
529
  */
493
- UsersApi.prototype.listUsers = function (requestParameters, options) {
530
+ FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
494
531
  var _this = this;
495
- if (requestParameters === void 0) { requestParameters = {}; }
496
- return (0, exports.UsersApiFp)(this.configuration).listUsers(requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
532
+ return (0, exports.FinancialAccountsApiFp)(this.configuration).getFinancialAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
497
533
  };
498
534
  /**
499
- * Updates the specified gdv tenant user by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
500
- * @summary Update the gdv tenant user
501
- * @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
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. **Required Permissions** \"accounting-management.accounts.view\"
536
+ * @summary List Financial Accounts
537
+ * @param {FinancialAccountsApiListFinancialAccountsRequest} requestParameters Request parameters.
502
538
  * @param {*} [options] Override http request option.
503
539
  * @throws {RequiredError}
504
- * @memberof UsersApi
540
+ * @memberof FinancialAccountsApi
505
541
  */
506
- UsersApi.prototype.updateUser = function (requestParameters, options) {
542
+ FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
507
543
  var _this = this;
508
- return (0, exports.UsersApiFp)(this.configuration).updateUser(requestParameters.code, requestParameters.updateUserRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
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); });
509
546
  };
510
- return UsersApi;
547
+ return FinancialAccountsApi;
511
548
  }(base_1.BaseAPI));
512
- exports.UsersApi = UsersApi;
549
+ exports.FinancialAccountsApi = FinancialAccountsApi;