@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,573 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreatePersonalAccountRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreatePersonalAccountResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetPersonalAccountResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListPersonalAccountsResponseClass } from '../models';
31
+ /**
32
+ * PersonalAccountsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const PersonalAccountsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
39
+ * @summary Create the Personal Account
40
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
41
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ createPersonalAccount: async (createPersonalAccountRequestDto: CreatePersonalAccountRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'createPersonalAccountRequestDto' is not null or undefined
47
+ assertParamExists('createPersonalAccount', 'createPersonalAccountRequestDto', createPersonalAccountRequestDto)
48
+ const localVarPath = `/accountingservice/v1/personal-accounts`;
49
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
51
+ let baseOptions;
52
+ let baseAccessToken;
53
+ if (configuration) {
54
+ baseOptions = configuration.baseOptions;
55
+ baseAccessToken = configuration.accessToken;
56
+ }
57
+
58
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
59
+ const localVarHeaderParameter = {} as any;
60
+ const localVarQueryParameter = {} as any;
61
+
62
+ // authentication bearer required
63
+ // http bearer authentication required
64
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
65
+
66
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
67
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
68
+ }
69
+
70
+
71
+
72
+ localVarHeaderParameter['Content-Type'] = 'application/json';
73
+
74
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
75
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
76
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
77
+ localVarRequestOptions.data = serializeDataIfNeeded(createPersonalAccountRequestDto, localVarRequestOptions, configuration)
78
+
79
+ return {
80
+ url: toPathString(localVarUrlObj),
81
+ options: localVarRequestOptions,
82
+ };
83
+ },
84
+ /**
85
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
86
+ * @summary Delete the Personal Account
87
+ * @param {string} code Unique identifier for the object.
88
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ deletePersonalAccount: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'code' is not null or undefined
94
+ assertParamExists('deletePersonalAccount', 'code', code)
95
+ const localVarPath = `/accountingservice/v1/personal-accounts/{code}`
96
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
97
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ let baseAccessToken;
101
+ if (configuration) {
102
+ baseOptions = configuration.baseOptions;
103
+ baseAccessToken = configuration.accessToken;
104
+ }
105
+
106
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
107
+ const localVarHeaderParameter = {} as any;
108
+ const localVarQueryParameter = {} as any;
109
+
110
+ // authentication bearer required
111
+ // http bearer authentication required
112
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
+
114
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
115
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
116
+ }
117
+
118
+
119
+
120
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
121
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
122
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
123
+
124
+ return {
125
+ url: toPathString(localVarUrlObj),
126
+ options: localVarRequestOptions,
127
+ };
128
+ },
129
+ /**
130
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
131
+ * @summary Retrieve the Personal Account
132
+ * @param {string} code Unique identifier for the object.
133
+ * @param {string} expand
134
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
135
+ * @param {*} [options] Override http request option.
136
+ * @throws {RequiredError}
137
+ */
138
+ getPersonalAccount: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
139
+ // verify required parameter 'code' is not null or undefined
140
+ assertParamExists('getPersonalAccount', 'code', code)
141
+ // verify required parameter 'expand' is not null or undefined
142
+ assertParamExists('getPersonalAccount', 'expand', expand)
143
+ const localVarPath = `/accountingservice/v1/personal-accounts/{code}`
144
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
145
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
146
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
147
+ let baseOptions;
148
+ let baseAccessToken;
149
+ if (configuration) {
150
+ baseOptions = configuration.baseOptions;
151
+ baseAccessToken = configuration.accessToken;
152
+ }
153
+
154
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
155
+ const localVarHeaderParameter = {} as any;
156
+ const localVarQueryParameter = {} as any;
157
+
158
+ // authentication bearer required
159
+ // http bearer authentication required
160
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
161
+
162
+ if (expand !== undefined) {
163
+ localVarQueryParameter['expand'] = expand;
164
+ }
165
+
166
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
167
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
168
+ }
169
+
170
+
171
+
172
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
173
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
174
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
175
+
176
+ return {
177
+ url: toPathString(localVarUrlObj),
178
+ options: localVarRequestOptions,
179
+ };
180
+ },
181
+ /**
182
+ * Returns a list of Personal Accounts you have previously created. The Personal 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\"
183
+ * @summary List Personal Accounts
184
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
185
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
186
+ * @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.
187
+ * @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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
188
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
189
+ * @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, personalAccountNumber&lt;/i&gt;
190
+ * @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;
191
+ * @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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
192
+ * @param {*} [options] Override http request option.
193
+ * @throws {RequiredError}
194
+ */
195
+ listPersonalAccounts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
196
+ const localVarPath = `/accountingservice/v1/personal-accounts`;
197
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
198
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
199
+ let baseOptions;
200
+ let baseAccessToken;
201
+ if (configuration) {
202
+ baseOptions = configuration.baseOptions;
203
+ baseAccessToken = configuration.accessToken;
204
+ }
205
+
206
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
207
+ const localVarHeaderParameter = {} as any;
208
+ const localVarQueryParameter = {} as any;
209
+
210
+ // authentication bearer required
211
+ // http bearer authentication required
212
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
213
+
214
+ if (pageSize !== undefined) {
215
+ localVarQueryParameter['pageSize'] = pageSize;
216
+ }
217
+
218
+ if (pageToken !== undefined) {
219
+ localVarQueryParameter['pageToken'] = pageToken;
220
+ }
221
+
222
+ if (filter !== undefined) {
223
+ localVarQueryParameter['filter'] = filter;
224
+ }
225
+
226
+ if (search !== undefined) {
227
+ localVarQueryParameter['search'] = search;
228
+ }
229
+
230
+ if (order !== undefined) {
231
+ localVarQueryParameter['order'] = order;
232
+ }
233
+
234
+ if (expand !== undefined) {
235
+ localVarQueryParameter['expand'] = expand;
236
+ }
237
+
238
+ if (filters !== undefined) {
239
+ localVarQueryParameter['filters'] = filters;
240
+ }
241
+
242
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
243
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
244
+ }
245
+
246
+
247
+
248
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
249
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
250
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
251
+
252
+ return {
253
+ url: toPathString(localVarUrlObj),
254
+ options: localVarRequestOptions,
255
+ };
256
+ },
257
+ }
258
+ };
259
+
260
+ /**
261
+ * PersonalAccountsApi - functional programming interface
262
+ * @export
263
+ */
264
+ export const PersonalAccountsApiFp = function(configuration?: Configuration) {
265
+ const localVarAxiosParamCreator = PersonalAccountsApiAxiosParamCreator(configuration)
266
+ return {
267
+ /**
268
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
269
+ * @summary Create the Personal Account
270
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
271
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ */
275
+ async createPersonalAccount(createPersonalAccountRequestDto: CreatePersonalAccountRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePersonalAccountResponseClass>> {
276
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createPersonalAccount(createPersonalAccountRequestDto, authorization, options);
277
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
278
+ },
279
+ /**
280
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
281
+ * @summary Delete the Personal Account
282
+ * @param {string} code Unique identifier for the object.
283
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @param {*} [options] Override http request option.
285
+ * @throws {RequiredError}
286
+ */
287
+ async deletePersonalAccount(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
288
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deletePersonalAccount(code, authorization, options);
289
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
290
+ },
291
+ /**
292
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
293
+ * @summary Retrieve the Personal Account
294
+ * @param {string} code Unique identifier for the object.
295
+ * @param {string} expand
296
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
297
+ * @param {*} [options] Override http request option.
298
+ * @throws {RequiredError}
299
+ */
300
+ async getPersonalAccount(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPersonalAccountResponseClass>> {
301
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPersonalAccount(code, expand, authorization, options);
302
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
303
+ },
304
+ /**
305
+ * Returns a list of Personal Accounts you have previously created. The Personal 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\"
306
+ * @summary List Personal Accounts
307
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
308
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
309
+ * @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.
310
+ * @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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
311
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
312
+ * @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, personalAccountNumber&lt;/i&gt;
313
+ * @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;
314
+ * @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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ async listPersonalAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPersonalAccountsResponseClass>> {
319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
320
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
321
+ },
322
+ }
323
+ };
324
+
325
+ /**
326
+ * PersonalAccountsApi - factory interface
327
+ * @export
328
+ */
329
+ export const PersonalAccountsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
330
+ const localVarFp = PersonalAccountsApiFp(configuration)
331
+ return {
332
+ /**
333
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
334
+ * @summary Create the Personal Account
335
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ createPersonalAccount(createPersonalAccountRequestDto: CreatePersonalAccountRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePersonalAccountResponseClass> {
341
+ return localVarFp.createPersonalAccount(createPersonalAccountRequestDto, authorization, options).then((request) => request(axios, basePath));
342
+ },
343
+ /**
344
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
345
+ * @summary Delete the Personal Account
346
+ * @param {string} code Unique identifier for the object.
347
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ deletePersonalAccount(code: string, authorization?: string, options?: any): AxiosPromise<void> {
352
+ return localVarFp.deletePersonalAccount(code, authorization, options).then((request) => request(axios, basePath));
353
+ },
354
+ /**
355
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
356
+ * @summary Retrieve the Personal Account
357
+ * @param {string} code Unique identifier for the object.
358
+ * @param {string} expand
359
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ getPersonalAccount(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetPersonalAccountResponseClass> {
364
+ return localVarFp.getPersonalAccount(code, expand, authorization, options).then((request) => request(axios, basePath));
365
+ },
366
+ /**
367
+ * Returns a list of Personal Accounts you have previously created. The Personal 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\"
368
+ * @summary List Personal Accounts
369
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
370
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
371
+ * @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.
372
+ * @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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
373
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
374
+ * @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, personalAccountNumber&lt;/i&gt;
375
+ * @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;
376
+ * @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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ */
380
+ listPersonalAccounts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPersonalAccountsResponseClass> {
381
+ return localVarFp.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
382
+ },
383
+ };
384
+ };
385
+
386
+ /**
387
+ * Request parameters for createPersonalAccount operation in PersonalAccountsApi.
388
+ * @export
389
+ * @interface PersonalAccountsApiCreatePersonalAccountRequest
390
+ */
391
+ export interface PersonalAccountsApiCreatePersonalAccountRequest {
392
+ /**
393
+ *
394
+ * @type {CreatePersonalAccountRequestDto}
395
+ * @memberof PersonalAccountsApiCreatePersonalAccount
396
+ */
397
+ readonly createPersonalAccountRequestDto: CreatePersonalAccountRequestDto
398
+
399
+ /**
400
+ * Bearer Token: provided by the login endpoint under the name accessToken.
401
+ * @type {string}
402
+ * @memberof PersonalAccountsApiCreatePersonalAccount
403
+ */
404
+ readonly authorization?: string
405
+ }
406
+
407
+ /**
408
+ * Request parameters for deletePersonalAccount operation in PersonalAccountsApi.
409
+ * @export
410
+ * @interface PersonalAccountsApiDeletePersonalAccountRequest
411
+ */
412
+ export interface PersonalAccountsApiDeletePersonalAccountRequest {
413
+ /**
414
+ * Unique identifier for the object.
415
+ * @type {string}
416
+ * @memberof PersonalAccountsApiDeletePersonalAccount
417
+ */
418
+ readonly code: string
419
+
420
+ /**
421
+ * Bearer Token: provided by the login endpoint under the name accessToken.
422
+ * @type {string}
423
+ * @memberof PersonalAccountsApiDeletePersonalAccount
424
+ */
425
+ readonly authorization?: string
426
+ }
427
+
428
+ /**
429
+ * Request parameters for getPersonalAccount operation in PersonalAccountsApi.
430
+ * @export
431
+ * @interface PersonalAccountsApiGetPersonalAccountRequest
432
+ */
433
+ export interface PersonalAccountsApiGetPersonalAccountRequest {
434
+ /**
435
+ * Unique identifier for the object.
436
+ * @type {string}
437
+ * @memberof PersonalAccountsApiGetPersonalAccount
438
+ */
439
+ readonly code: string
440
+
441
+ /**
442
+ *
443
+ * @type {string}
444
+ * @memberof PersonalAccountsApiGetPersonalAccount
445
+ */
446
+ readonly expand: string
447
+
448
+ /**
449
+ * Bearer Token: provided by the login endpoint under the name accessToken.
450
+ * @type {string}
451
+ * @memberof PersonalAccountsApiGetPersonalAccount
452
+ */
453
+ readonly authorization?: string
454
+ }
455
+
456
+ /**
457
+ * Request parameters for listPersonalAccounts operation in PersonalAccountsApi.
458
+ * @export
459
+ * @interface PersonalAccountsApiListPersonalAccountsRequest
460
+ */
461
+ export interface PersonalAccountsApiListPersonalAccountsRequest {
462
+ /**
463
+ * Bearer Token: provided by the login endpoint under the name accessToken.
464
+ * @type {string}
465
+ * @memberof PersonalAccountsApiListPersonalAccounts
466
+ */
467
+ readonly authorization?: string
468
+
469
+ /**
470
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
471
+ * @type {number}
472
+ * @memberof PersonalAccountsApiListPersonalAccounts
473
+ */
474
+ readonly pageSize?: number
475
+
476
+ /**
477
+ * 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.
478
+ * @type {string}
479
+ * @memberof PersonalAccountsApiListPersonalAccounts
480
+ */
481
+ readonly pageToken?: string
482
+
483
+ /**
484
+ * 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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
485
+ * @type {string}
486
+ * @memberof PersonalAccountsApiListPersonalAccounts
487
+ */
488
+ readonly filter?: string
489
+
490
+ /**
491
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
492
+ * @type {string}
493
+ * @memberof PersonalAccountsApiListPersonalAccounts
494
+ */
495
+ readonly search?: string
496
+
497
+ /**
498
+ * 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, personalAccountNumber&lt;/i&gt;
499
+ * @type {string}
500
+ * @memberof PersonalAccountsApiListPersonalAccounts
501
+ */
502
+ readonly order?: string
503
+
504
+ /**
505
+ * 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;
506
+ * @type {string}
507
+ * @memberof PersonalAccountsApiListPersonalAccounts
508
+ */
509
+ readonly expand?: string
510
+
511
+ /**
512
+ * 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, personalAccountNumber, createdAt, partnerNumber, type&lt;/i&gt;
513
+ * @type {string}
514
+ * @memberof PersonalAccountsApiListPersonalAccounts
515
+ */
516
+ readonly filters?: string
517
+ }
518
+
519
+ /**
520
+ * PersonalAccountsApi - object-oriented interface
521
+ * @export
522
+ * @class PersonalAccountsApi
523
+ * @extends {BaseAPI}
524
+ */
525
+ export class PersonalAccountsApi extends BaseAPI {
526
+ /**
527
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
528
+ * @summary Create the Personal Account
529
+ * @param {PersonalAccountsApiCreatePersonalAccountRequest} requestParameters Request parameters.
530
+ * @param {*} [options] Override http request option.
531
+ * @throws {RequiredError}
532
+ * @memberof PersonalAccountsApi
533
+ */
534
+ public createPersonalAccount(requestParameters: PersonalAccountsApiCreatePersonalAccountRequest, options?: AxiosRequestConfig) {
535
+ return PersonalAccountsApiFp(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
536
+ }
537
+
538
+ /**
539
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
540
+ * @summary Delete the Personal Account
541
+ * @param {PersonalAccountsApiDeletePersonalAccountRequest} requestParameters Request parameters.
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ * @memberof PersonalAccountsApi
545
+ */
546
+ public deletePersonalAccount(requestParameters: PersonalAccountsApiDeletePersonalAccountRequest, options?: AxiosRequestConfig) {
547
+ return PersonalAccountsApiFp(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
548
+ }
549
+
550
+ /**
551
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
552
+ * @summary Retrieve the Personal Account
553
+ * @param {PersonalAccountsApiGetPersonalAccountRequest} requestParameters Request parameters.
554
+ * @param {*} [options] Override http request option.
555
+ * @throws {RequiredError}
556
+ * @memberof PersonalAccountsApi
557
+ */
558
+ public getPersonalAccount(requestParameters: PersonalAccountsApiGetPersonalAccountRequest, options?: AxiosRequestConfig) {
559
+ return PersonalAccountsApiFp(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
560
+ }
561
+
562
+ /**
563
+ * Returns a list of Personal Accounts you have previously created. The Personal 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\"
564
+ * @summary List Personal Accounts
565
+ * @param {PersonalAccountsApiListPersonalAccountsRequest} requestParameters Request parameters.
566
+ * @param {*} [options] Override http request option.
567
+ * @throws {RequiredError}
568
+ * @memberof PersonalAccountsApi
569
+ */
570
+ public listPersonalAccounts(requestParameters: PersonalAccountsApiListPersonalAccountsRequest = {}, options?: AxiosRequestConfig) {
571
+ return PersonalAccountsApiFp(this.configuration).listPersonalAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
572
+ }
573
+ }
package/api.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * EMIL GdvService
5
- * The EMIL GdvService API description
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -20,20 +20,18 @@ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResp
20
20
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
23
+ import { BookingEntriesApi } from './api';
24
+ import { FinancialAccountsApi } from './api';
25
+ import { FinancialTransactionsApi } from './api';
23
26
  import { HealthApi } from './api';
24
- import { MailboxApi } from './api';
25
- import { MessagesApi } from './api';
26
- import { UsersApi } from './api';
27
- import { VbasApi } from './api';
28
- import { VbusApi } from './api';
29
- import { ZipCodesApi } from './api';
27
+ import { NumberRangesApi } from './api';
28
+ import { PersonalAccountsApi } from './api';
30
29
 
31
30
 
31
+ export * from './api/booking-entries-api';
32
+ export * from './api/financial-accounts-api';
33
+ export * from './api/financial-transactions-api';
32
34
  export * from './api/health-api';
33
- export * from './api/mailbox-api';
34
- export * from './api/messages-api';
35
- export * from './api/users-api';
36
- export * from './api/vbas-api';
37
- export * from './api/vbus-api';
38
- export * from './api/zip-codes-api';
35
+ export * from './api/number-ranges-api';
36
+ export * from './api/personal-accounts-api';
39
37
 
package/base.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * EMIL GdvService
5
- * The EMIL GdvService API description
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
package/common.ts CHANGED
@@ -1,8 +1,8 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  /**
4
- * EMIL GdvService
5
- * The EMIL GdvService API description
4
+ * EMIL AccountingService
5
+ * The EMIL AccountingService API description
6
6
  *
7
7
  * The version of the OpenAPI document: 1.0
8
8
  * Contact: kontakt@emil.de
@@ -139,8 +139,8 @@ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxi
139
139
  /* tslint:disable */
140
140
  /* eslint-disable */
141
141
  /**
142
- * EMIL GdvService
143
- * The EMIL GdvService API description
142
+ * EMIL AccountingService
143
+ * The EMIL AccountingService API description
144
144
  *
145
145
  * The version of the OpenAPI document: 1.0
146
146
  * Contact: kontakt@emil.de