@emilgroup/accounting-sdk 1.19.0 → 1.20.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 (260) 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 +573 -0
  5. package/api/financial-transactions-api.ts +365 -0
  6. package/api/health-api.ts +7 -7
  7. package/api/number-ranges-api.ts +573 -0
  8. package/api/personal-accounts-api.ts +573 -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/financial-accounts-api.js +545 -0
  17. package/dist/api/financial-transactions-api.d.ts +215 -0
  18. package/dist/api/financial-transactions-api.js +360 -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 -251
  119. package/api/messages-api.ts +0 -1096
  120. package/api/users-api.ts +0 -492
  121. package/api/vbas-api.ts +0 -588
  122. package/api/vbus-api.ts +0 -697
  123. package/dist/api/mailbox-api.d.ts +0 -142
  124. package/dist/api/mailbox-api.js +0 -311
  125. package/dist/api/messages-api.d.ts +0 -632
  126. package/dist/api/messages-api.js +0 -912
  127. package/dist/api/users-api.d.ts +0 -275
  128. package/dist/api/users-api.js +0 -508
  129. package/dist/api/vbas-api.d.ts +0 -337
  130. package/dist/api/vbus-api.d.ts +0 -395
  131. package/dist/models/address-class.d.ts +0 -48
  132. package/dist/models/create-mailbox-request-dto.d.ts +0 -36
  133. package/dist/models/create-user-request-dto.d.ts +0 -76
  134. package/dist/models/create-user-response-class.d.ts +0 -25
  135. package/dist/models/create-vba-request-dto.d.ts +0 -41
  136. package/dist/models/create-vba-response-class.d.ts +0 -24
  137. package/dist/models/create-vbu-request-dto.d.ts +0 -41
  138. package/dist/models/create-vbu-response-class.d.ts +0 -24
  139. package/dist/models/create-vbu-response-class.js +0 -15
  140. package/dist/models/create-vbuv-request-dto.d.ts +0 -41
  141. package/dist/models/create-vbuv-response-class.d.ts +0 -24
  142. package/dist/models/create-vbuv-response-class.js +0 -15
  143. package/dist/models/get-request-message-response-class.d.ts +0 -25
  144. package/dist/models/get-request-message-response-class.js +0 -15
  145. package/dist/models/get-response-message-response-class.d.ts +0 -25
  146. package/dist/models/get-response-message-response-class.js +0 -15
  147. package/dist/models/get-user-response-class.d.ts +0 -25
  148. package/dist/models/get-user-response-class.js +0 -15
  149. package/dist/models/get-vba-response-class.d.ts +0 -25
  150. package/dist/models/get-vba-response-class.js +0 -15
  151. package/dist/models/get-vbu-response-class.d.ts +0 -25
  152. package/dist/models/get-vbu-response-class.js +0 -15
  153. package/dist/models/get-zip-code-response-class.d.ts +0 -25
  154. package/dist/models/get-zip-code-response-class.js +0 -15
  155. package/dist/models/list-all-messages-response-class.d.ts +0 -31
  156. package/dist/models/list-all-messages-response-class.js +0 -15
  157. package/dist/models/list-requests-messages-response-class.d.ts +0 -31
  158. package/dist/models/list-requests-messages-response-class.js +0 -15
  159. package/dist/models/list-responses-messages-response-class.d.ts +0 -31
  160. package/dist/models/list-responses-messages-response-class.js +0 -15
  161. package/dist/models/list-users-response-class.d.ts +0 -31
  162. package/dist/models/list-users-response-class.js +0 -15
  163. package/dist/models/list-vbas-response-class.d.ts +0 -31
  164. package/dist/models/list-vbas-response-class.js +0 -15
  165. package/dist/models/list-vbus-response-class.d.ts +0 -31
  166. package/dist/models/list-vbus-response-class.js +0 -15
  167. package/dist/models/list-zip-codes-response-class.d.ts +0 -31
  168. package/dist/models/list-zip-codes-response-class.js +0 -15
  169. package/dist/models/message-class.d.ts +0 -90
  170. package/dist/models/message-class.js +0 -15
  171. package/dist/models/request-details-class.d.ts +0 -48
  172. package/dist/models/request-details-class.js +0 -15
  173. package/dist/models/request-message-class.d.ts +0 -127
  174. package/dist/models/request-message-class.js +0 -15
  175. package/dist/models/response-details-class.d.ts +0 -42
  176. package/dist/models/response-details-class.js +0 -15
  177. package/dist/models/response-message-class.d.ts +0 -139
  178. package/dist/models/response-message-class.js +0 -15
  179. package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
  180. package/dist/models/store-zip-codes-request-dto.js +0 -15
  181. package/dist/models/store-zip-codes-response-class.d.ts +0 -25
  182. package/dist/models/store-zip-codes-response-class.js +0 -15
  183. package/dist/models/update-request-message-request-dto.d.ts +0 -36
  184. package/dist/models/update-request-message-request-dto.js +0 -15
  185. package/dist/models/update-request-message-response-class.d.ts +0 -25
  186. package/dist/models/update-request-message-response-class.js +0 -15
  187. package/dist/models/update-response-message-request-dto.d.ts +0 -36
  188. package/dist/models/update-response-message-request-dto.js +0 -15
  189. package/dist/models/update-response-message-response-class.d.ts +0 -25
  190. package/dist/models/update-response-message-response-class.js +0 -15
  191. package/dist/models/update-user-request-dto.d.ts +0 -82
  192. package/dist/models/update-user-request-dto.js +0 -24
  193. package/dist/models/update-user-response-class.d.ts +0 -25
  194. package/dist/models/update-user-response-class.js +0 -15
  195. package/dist/models/update-vba-request-dto.d.ts +0 -30
  196. package/dist/models/update-vba-request-dto.js +0 -15
  197. package/dist/models/update-vbu-request-dto.d.ts +0 -30
  198. package/dist/models/update-vbu-request-dto.js +0 -15
  199. package/dist/models/update-vbu-response-class.d.ts +0 -25
  200. package/dist/models/update-vbu-response-class.js +0 -15
  201. package/dist/models/user-class.d.ts +0 -107
  202. package/dist/models/user-class.js +0 -20
  203. package/dist/models/vba-class.d.ts +0 -116
  204. package/dist/models/vba-class.js +0 -15
  205. package/dist/models/vba-response-class.d.ts +0 -48
  206. package/dist/models/vba-response-class.js +0 -15
  207. package/dist/models/vbu-class.d.ts +0 -115
  208. package/dist/models/vbu-class.js +0 -15
  209. package/dist/models/vbu-response-class.d.ts +0 -48
  210. package/dist/models/vbu-response-class.js +0 -15
  211. package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
  212. package/dist/models/xlsx-zip-code-dto.js +0 -15
  213. package/dist/models/zip-code-class.d.ts +0 -60
  214. package/dist/models/zip-code-class.js +0 -15
  215. package/models/address-class.ts +0 -54
  216. package/models/create-mailbox-request-dto.ts +0 -42
  217. package/models/create-user-request-dto.ts +0 -86
  218. package/models/create-user-response-class.ts +0 -31
  219. package/models/create-vba-request-dto.ts +0 -50
  220. package/models/create-vba-response-class.ts +0 -30
  221. package/models/create-vbu-request-dto.ts +0 -50
  222. package/models/create-vbu-response-class.ts +0 -30
  223. package/models/create-vbuv-request-dto.ts +0 -50
  224. package/models/create-vbuv-response-class.ts +0 -30
  225. package/models/get-request-message-response-class.ts +0 -31
  226. package/models/get-response-message-response-class.ts +0 -31
  227. package/models/get-user-response-class.ts +0 -31
  228. package/models/get-vba-response-class.ts +0 -31
  229. package/models/get-vbu-response-class.ts +0 -31
  230. package/models/get-zip-code-response-class.ts +0 -31
  231. package/models/list-all-messages-response-class.ts +0 -37
  232. package/models/list-requests-messages-response-class.ts +0 -37
  233. package/models/list-responses-messages-response-class.ts +0 -37
  234. package/models/list-users-response-class.ts +0 -37
  235. package/models/list-vbas-response-class.ts +0 -37
  236. package/models/list-vbus-response-class.ts +0 -37
  237. package/models/list-zip-codes-response-class.ts +0 -37
  238. package/models/message-class.ts +0 -96
  239. package/models/request-details-class.ts +0 -54
  240. package/models/request-message-class.ts +0 -133
  241. package/models/response-details-class.ts +0 -48
  242. package/models/response-message-class.ts +0 -145
  243. package/models/store-zip-codes-request-dto.ts +0 -31
  244. package/models/store-zip-codes-response-class.ts +0 -31
  245. package/models/update-request-message-request-dto.ts +0 -42
  246. package/models/update-request-message-response-class.ts +0 -31
  247. package/models/update-response-message-request-dto.ts +0 -42
  248. package/models/update-response-message-response-class.ts +0 -31
  249. package/models/update-user-request-dto.ts +0 -92
  250. package/models/update-user-response-class.ts +0 -31
  251. package/models/update-vba-request-dto.ts +0 -36
  252. package/models/update-vbu-request-dto.ts +0 -36
  253. package/models/update-vbu-response-class.ts +0 -31
  254. package/models/user-class.ts +0 -116
  255. package/models/vba-class.ts +0 -122
  256. package/models/vba-response-class.ts +0 -54
  257. package/models/vbu-class.ts +0 -121
  258. package/models/vbu-response-class.ts +0 -54
  259. package/models/xlsx-zip-code-dto.ts +0 -36
  260. package/models/zip-code-class.ts +0 -66
@@ -0,0 +1,545 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.FinancialAccountsApi = exports.FinancialAccountsApiFactory = exports.FinancialAccountsApiFp = exports.FinancialAccountsApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * FinancialAccountsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var FinancialAccountsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
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. **Required Permissions** \"accounting-management.accounts.create\"
97
+ * @summary Create the Financial Account
98
+ * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
104
+ if (options === void 0) { options = {}; }
105
+ return __awaiter(_this, void 0, void 0, function () {
106
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
+ return __generator(this, function (_a) {
108
+ switch (_a.label) {
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";
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ baseAccessToken = configuration.accessToken;
117
+ }
118
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
119
+ localVarHeaderParameter = {};
120
+ localVarQueryParameter = {};
121
+ // authentication bearer required
122
+ // http bearer authentication required
123
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
124
+ case 1:
125
+ // authentication bearer required
126
+ // http bearer authentication required
127
+ _a.sent();
128
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
129
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
130
+ }
131
+ localVarHeaderParameter['Content-Type'] = 'application/json';
132
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createFinancialAccountRequestDto, localVarRequestOptions, configuration);
136
+ return [2 /*return*/, {
137
+ url: (0, common_1.toPathString)(localVarUrlObj),
138
+ options: localVarRequestOptions,
139
+ }];
140
+ }
141
+ });
142
+ });
143
+ },
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. **Required Permissions** \"accounting-management.accounts.delete\"
146
+ * @summary Delete the Financial Account
147
+ * @param {string} code Unique identifier for the object.
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
+ * @param {*} [options] Override http request option.
150
+ * @throws {RequiredError}
151
+ */
152
+ deleteFinancialAccount: function (code, authorization, options) {
153
+ if (options === void 0) { options = {}; }
154
+ return __awaiter(_this, void 0, void 0, function () {
155
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
+ return __generator(this, function (_a) {
157
+ switch (_a.label) {
158
+ case 0:
159
+ // verify required parameter 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('deleteFinancialAccount', 'code', code);
161
+ localVarPath = "/accountingservice/v1/financial-accounts/{code}"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ baseAccessToken = configuration.accessToken;
167
+ }
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
169
+ localVarHeaderParameter = {};
170
+ localVarQueryParameter = {};
171
+ // authentication bearer required
172
+ // http bearer authentication required
173
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ case 1:
175
+ // authentication bearer required
176
+ // http bearer authentication required
177
+ _a.sent();
178
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
179
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
180
+ }
181
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
+ return [2 /*return*/, {
185
+ url: (0, common_1.toPathString)(localVarUrlObj),
186
+ options: localVarRequestOptions,
187
+ }];
188
+ }
189
+ });
190
+ });
191
+ },
192
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
194
+ * @summary Retrieve the Financial Account
195
+ * @param {string} code Unique identifier for the object.
196
+ * @param {string} expand
197
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
198
+ * @param {*} [options] Override http request option.
199
+ * @throws {RequiredError}
200
+ */
201
+ getFinancialAccount: function (code, expand, authorization, options) {
202
+ if (options === void 0) { options = {}; }
203
+ return __awaiter(_this, void 0, void 0, function () {
204
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
205
+ return __generator(this, function (_a) {
206
+ switch (_a.label) {
207
+ 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)));
214
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
215
+ if (configuration) {
216
+ baseOptions = configuration.baseOptions;
217
+ baseAccessToken = configuration.accessToken;
218
+ }
219
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
220
+ localVarHeaderParameter = {};
221
+ localVarQueryParameter = {};
222
+ // authentication bearer required
223
+ // http bearer authentication required
224
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
225
+ case 1:
226
+ // authentication bearer required
227
+ // http bearer authentication required
228
+ _a.sent();
229
+ if (expand !== undefined) {
230
+ localVarQueryParameter['expand'] = expand;
231
+ }
232
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
233
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
234
+ }
235
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
236
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
237
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
238
+ return [2 /*return*/, {
239
+ url: (0, common_1.toPathString)(localVarUrlObj),
240
+ options: localVarRequestOptions,
241
+ }];
242
+ }
243
+ });
244
+ });
245
+ },
246
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
248
+ * @summary List Financial Accounts
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
250
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
251
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
253
+ * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
255
+ * @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.&lt;br/&gt; &lt;br/&gt;
256
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
257
+ * @param {*} [options] Override http request option.
258
+ * @throws {RequiredError}
259
+ */
260
+ listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
261
+ if (options === void 0) { options = {}; }
262
+ return __awaiter(_this, void 0, void 0, function () {
263
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
264
+ return __generator(this, function (_a) {
265
+ switch (_a.label) {
266
+ case 0:
267
+ localVarPath = "/accountingservice/v1/financial-accounts";
268
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ baseAccessToken = configuration.accessToken;
272
+ }
273
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
274
+ localVarHeaderParameter = {};
275
+ localVarQueryParameter = {};
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
279
+ case 1:
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ _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
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
305
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
306
+ }
307
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
308
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
309
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
310
+ return [2 /*return*/, {
311
+ url: (0, common_1.toPathString)(localVarUrlObj),
312
+ options: localVarRequestOptions,
313
+ }];
314
+ }
315
+ });
316
+ });
317
+ },
318
+ };
319
+ };
320
+ exports.FinancialAccountsApiAxiosParamCreator = FinancialAccountsApiAxiosParamCreator;
321
+ /**
322
+ * FinancialAccountsApi - functional programming interface
323
+ * @export
324
+ */
325
+ var FinancialAccountsApiFp = function (configuration) {
326
+ var localVarAxiosParamCreator = (0, exports.FinancialAccountsApiAxiosParamCreator)(configuration);
327
+ return {
328
+ /**
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. **Required Permissions** \"accounting-management.accounts.create\"
330
+ * @summary Create the Financial Account
331
+ * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
332
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
333
+ * @param {*} [options] Override http request option.
334
+ * @throws {RequiredError}
335
+ */
336
+ createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
337
+ return __awaiter(this, void 0, void 0, function () {
338
+ var localVarAxiosArgs;
339
+ return __generator(this, function (_a) {
340
+ switch (_a.label) {
341
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createFinancialAccount(createFinancialAccountRequestDto, authorization, options)];
342
+ case 1:
343
+ localVarAxiosArgs = _a.sent();
344
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
345
+ }
346
+ });
347
+ });
348
+ },
349
+ /**
350
+ * 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\"
351
+ * @summary Delete the Financial Account
352
+ * @param {string} code Unique identifier for the object.
353
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
354
+ * @param {*} [options] Override http request option.
355
+ * @throws {RequiredError}
356
+ */
357
+ deleteFinancialAccount: function (code, authorization, options) {
358
+ return __awaiter(this, void 0, void 0, function () {
359
+ var localVarAxiosArgs;
360
+ return __generator(this, function (_a) {
361
+ switch (_a.label) {
362
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteFinancialAccount(code, authorization, options)];
363
+ case 1:
364
+ localVarAxiosArgs = _a.sent();
365
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
366
+ }
367
+ });
368
+ });
369
+ },
370
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
372
+ * @summary Retrieve the Financial Account
373
+ * @param {string} code Unique identifier for the object.
374
+ * @param {string} expand
375
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ getFinancialAccount: function (code, expand, authorization, options) {
380
+ return __awaiter(this, void 0, void 0, function () {
381
+ var localVarAxiosArgs;
382
+ return __generator(this, function (_a) {
383
+ switch (_a.label) {
384
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getFinancialAccount(code, expand, authorization, options)];
385
+ case 1:
386
+ localVarAxiosArgs = _a.sent();
387
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
388
+ }
389
+ });
390
+ });
391
+ },
392
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
394
+ * @summary List Financial Accounts
395
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
396
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
397
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
399
+ * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
401
+ * @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.&lt;br/&gt; &lt;br/&gt;
402
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
403
+ * @param {*} [options] Override http request option.
404
+ * @throws {RequiredError}
405
+ */
406
+ listFinancialAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
407
+ return __awaiter(this, void 0, void 0, function () {
408
+ var localVarAxiosArgs;
409
+ return __generator(this, function (_a) {
410
+ switch (_a.label) {
411
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listFinancialAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
412
+ case 1:
413
+ localVarAxiosArgs = _a.sent();
414
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
415
+ }
416
+ });
417
+ });
418
+ },
419
+ };
420
+ };
421
+ exports.FinancialAccountsApiFp = FinancialAccountsApiFp;
422
+ /**
423
+ * FinancialAccountsApi - factory interface
424
+ * @export
425
+ */
426
+ var FinancialAccountsApiFactory = function (configuration, basePath, axios) {
427
+ var localVarFp = (0, exports.FinancialAccountsApiFp)(configuration);
428
+ return {
429
+ /**
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. **Required Permissions** \"accounting-management.accounts.create\"
431
+ * @summary Create the Financial Account
432
+ * @param {CreateFinancialAccountRequestDto} createFinancialAccountRequestDto
433
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ createFinancialAccount: function (createFinancialAccountRequestDto, authorization, options) {
438
+ return localVarFp.createFinancialAccount(createFinancialAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
439
+ },
440
+ /**
441
+ * 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\"
442
+ * @summary Delete the Financial Account
443
+ * @param {string} code Unique identifier for the object.
444
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ deleteFinancialAccount: function (code, authorization, options) {
449
+ return localVarFp.deleteFinancialAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
450
+ },
451
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
453
+ * @summary Retrieve the Financial Account
454
+ * @param {string} code Unique identifier for the object.
455
+ * @param {string} expand
456
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ getFinancialAccount: function (code, expand, authorization, options) {
461
+ return localVarFp.getFinancialAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
462
+ },
463
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
465
+ * @summary List Financial Accounts
466
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
467
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
468
+ * @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&#x3D;1, your subsequent call can include pageToken&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
470
+ * @param {string} [search] To search the list by any field, pass search&#x3D;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.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, createdAt, name, financialAccountNumber&lt;/i&gt;
472
+ * @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.&lt;br/&gt; &lt;br/&gt;
473
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: code, name, financialAccountNumber, createdAt, entityCode, type&lt;/i&gt;
474
+ * @param {*} [options] Override http request option.
475
+ * @throws {RequiredError}
476
+ */
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); });
479
+ },
480
+ };
481
+ };
482
+ exports.FinancialAccountsApiFactory = FinancialAccountsApiFactory;
483
+ /**
484
+ * FinancialAccountsApi - object-oriented interface
485
+ * @export
486
+ * @class FinancialAccountsApi
487
+ * @extends {BaseAPI}
488
+ */
489
+ var FinancialAccountsApi = /** @class */ (function (_super) {
490
+ __extends(FinancialAccountsApi, _super);
491
+ function FinancialAccountsApi() {
492
+ return _super !== null && _super.apply(this, arguments) || this;
493
+ }
494
+ /**
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. **Required Permissions** \"accounting-management.accounts.create\"
496
+ * @summary Create the Financial Account
497
+ * @param {FinancialAccountsApiCreateFinancialAccountRequest} requestParameters Request parameters.
498
+ * @param {*} [options] Override http request option.
499
+ * @throws {RequiredError}
500
+ * @memberof FinancialAccountsApi
501
+ */
502
+ FinancialAccountsApi.prototype.createFinancialAccount = function (requestParameters, options) {
503
+ 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); });
505
+ };
506
+ /**
507
+ * 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\"
508
+ * @summary Delete the Financial Account
509
+ * @param {FinancialAccountsApiDeleteFinancialAccountRequest} requestParameters Request parameters.
510
+ * @param {*} [options] Override http request option.
511
+ * @throws {RequiredError}
512
+ * @memberof FinancialAccountsApi
513
+ */
514
+ FinancialAccountsApi.prototype.deleteFinancialAccount = function (requestParameters, options) {
515
+ 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); });
517
+ };
518
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
520
+ * @summary Retrieve the Financial Account
521
+ * @param {FinancialAccountsApiGetFinancialAccountRequest} requestParameters Request parameters.
522
+ * @param {*} [options] Override http request option.
523
+ * @throws {RequiredError}
524
+ * @memberof FinancialAccountsApi
525
+ */
526
+ FinancialAccountsApi.prototype.getFinancialAccount = function (requestParameters, options) {
527
+ 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); });
529
+ };
530
+ /**
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. **Required Permissions** \"accounting-management.accounts.view\"
532
+ * @summary List Financial Accounts
533
+ * @param {FinancialAccountsApiListFinancialAccountsRequest} requestParameters Request parameters.
534
+ * @param {*} [options] Override http request option.
535
+ * @throws {RequiredError}
536
+ * @memberof FinancialAccountsApi
537
+ */
538
+ FinancialAccountsApi.prototype.listFinancialAccounts = function (requestParameters, options) {
539
+ 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); });
542
+ };
543
+ return FinancialAccountsApi;
544
+ }(base_1.BaseAPI));
545
+ exports.FinancialAccountsApi = FinancialAccountsApi;