@emilgroup/accounting-sdk-node 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 (259) hide show
  1. package/.openapi-generator/FILES +29 -52
  2. package/README.md +2 -2
  3. package/api/{zip-codes-api.ts → booking-entries-api.ts} +195 -162
  4. package/api/financial-accounts-api.ts +577 -0
  5. package/api/financial-transactions-api.ts +369 -0
  6. package/api/health-api.ts +7 -7
  7. package/api/number-ranges-api.ts +577 -0
  8. package/api/personal-accounts-api.ts +577 -0
  9. package/api.ts +12 -14
  10. package/base.ts +2 -2
  11. package/common.ts +4 -4
  12. package/configuration.ts +2 -2
  13. package/dist/api/{zip-codes-api.d.ts → booking-entries-api.d.ts} +130 -111
  14. package/dist/api/{zip-codes-api.js → booking-entries-api.js} +144 -130
  15. package/dist/api/financial-accounts-api.d.ts +327 -0
  16. package/dist/api/{users-api.js → financial-accounts-api.js} +171 -134
  17. package/dist/api/financial-transactions-api.d.ts +215 -0
  18. package/dist/api/financial-transactions-api.js +364 -0
  19. package/dist/api/health-api.d.ts +6 -6
  20. package/dist/api/health-api.js +7 -7
  21. package/dist/api/number-ranges-api.d.ts +327 -0
  22. package/dist/api/{vbas-api.js → number-ranges-api.js} +156 -161
  23. package/dist/api/personal-accounts-api.d.ts +327 -0
  24. package/dist/api/{vbus-api.js → personal-accounts-api.js} +136 -234
  25. package/dist/api.d.ts +7 -8
  26. package/dist/api.js +7 -8
  27. package/dist/base.d.ts +2 -2
  28. package/dist/base.js +2 -2
  29. package/dist/common.d.ts +4 -4
  30. package/dist/common.js +2 -2
  31. package/dist/configuration.d.ts +2 -2
  32. package/dist/configuration.js +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/models/booking-entry-class.d.ts +123 -0
  36. package/dist/models/{create-vbuv-request-dto.js → booking-entry-class.js} +15 -6
  37. package/dist/models/create-booking-entry-request-dto.d.ts +61 -0
  38. package/dist/models/{address-class.js → create-booking-entry-request-dto.js} +2 -2
  39. package/dist/models/create-booking-entry-response-class.d.ts +25 -0
  40. package/dist/models/{create-user-response-class.js → create-booking-entry-response-class.js} +2 -2
  41. package/dist/models/create-financial-account-request-dto.d.ts +75 -0
  42. package/dist/models/create-financial-account-request-dto.js +24 -0
  43. package/dist/models/create-financial-account-response-class.d.ts +25 -0
  44. package/dist/models/{create-mailbox-request-dto.js → create-financial-account-response-class.js} +2 -2
  45. package/dist/models/create-number-range-request-dto.d.ts +53 -0
  46. package/dist/models/create-number-range-request-dto.js +26 -0
  47. package/dist/models/create-number-range-response-class.d.ts +25 -0
  48. package/dist/models/{create-vba-response-class.js → create-number-range-response-class.js} +2 -2
  49. package/dist/models/create-personal-account-request-dto.d.ts +60 -0
  50. package/dist/models/{create-vba-request-dto.js → create-personal-account-request-dto.js} +7 -6
  51. package/dist/models/create-personal-account-response-class.d.ts +25 -0
  52. package/dist/models/create-personal-account-response-class.js +15 -0
  53. package/dist/models/financial-account-class.d.ts +111 -0
  54. package/dist/models/{create-vbu-request-dto.js → financial-account-class.js} +10 -6
  55. package/dist/models/financial-transaction-class.d.ts +114 -0
  56. package/dist/models/financial-transaction-class.js +15 -0
  57. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  58. package/dist/models/financial-transaction-data-dto.js +25 -0
  59. package/dist/models/get-booking-entry-response-class.d.ts +25 -0
  60. package/dist/models/get-booking-entry-response-class.js +15 -0
  61. package/dist/models/get-financial-account-response-class.d.ts +25 -0
  62. package/dist/models/get-financial-account-response-class.js +15 -0
  63. package/dist/models/get-financial-transaction-response-class.d.ts +25 -0
  64. package/dist/models/get-financial-transaction-response-class.js +15 -0
  65. package/dist/models/get-number-range-response-class.d.ts +25 -0
  66. package/dist/models/get-number-range-response-class.js +15 -0
  67. package/dist/models/get-personal-account-response-class.d.ts +25 -0
  68. package/dist/models/get-personal-account-response-class.js +15 -0
  69. package/dist/models/index.d.ts +24 -46
  70. package/dist/models/index.js +24 -46
  71. package/dist/models/inline-response200.d.ts +2 -2
  72. package/dist/models/inline-response200.js +2 -2
  73. package/dist/models/inline-response503.d.ts +2 -2
  74. package/dist/models/inline-response503.js +2 -2
  75. package/dist/models/list-booking-entries-response-class.d.ts +31 -0
  76. package/dist/models/list-booking-entries-response-class.js +15 -0
  77. package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
  78. package/dist/models/list-financial-accounts-response-class.js +15 -0
  79. package/dist/models/list-financial-transactions-response-class.d.ts +31 -0
  80. package/dist/models/list-financial-transactions-response-class.js +15 -0
  81. package/dist/models/list-number-range-response-class.d.ts +31 -0
  82. package/dist/models/list-number-range-response-class.js +15 -0
  83. package/dist/models/list-personal-accounts-response-class.d.ts +31 -0
  84. package/dist/models/list-personal-accounts-response-class.js +15 -0
  85. package/dist/models/number-range-class.d.ts +84 -0
  86. package/dist/models/number-range-class.js +15 -0
  87. package/dist/models/personal-account-class.d.ts +105 -0
  88. package/dist/models/{create-user-request-dto.js → personal-account-class.js} +10 -10
  89. package/index.ts +2 -2
  90. package/models/booking-entry-class.ts +132 -0
  91. package/models/create-booking-entry-request-dto.ts +67 -0
  92. package/models/create-booking-entry-response-class.ts +31 -0
  93. package/models/create-financial-account-request-dto.ts +84 -0
  94. package/models/create-financial-account-response-class.ts +31 -0
  95. package/models/create-number-range-request-dto.ts +62 -0
  96. package/models/create-number-range-response-class.ts +31 -0
  97. package/models/create-personal-account-request-dto.ts +69 -0
  98. package/models/create-personal-account-response-class.ts +31 -0
  99. package/models/financial-account-class.ts +120 -0
  100. package/models/financial-transaction-class.ts +120 -0
  101. package/models/financial-transaction-data-dto.ts +81 -0
  102. package/models/get-booking-entry-response-class.ts +31 -0
  103. package/models/get-financial-account-response-class.ts +31 -0
  104. package/models/get-financial-transaction-response-class.ts +31 -0
  105. package/models/get-number-range-response-class.ts +31 -0
  106. package/models/get-personal-account-response-class.ts +31 -0
  107. package/models/index.ts +24 -46
  108. package/models/inline-response200.ts +2 -2
  109. package/models/inline-response503.ts +2 -2
  110. package/models/list-booking-entries-response-class.ts +37 -0
  111. package/models/list-financial-accounts-response-class.ts +37 -0
  112. package/models/list-financial-transactions-response-class.ts +37 -0
  113. package/models/list-number-range-response-class.ts +37 -0
  114. package/models/list-personal-accounts-response-class.ts +37 -0
  115. package/models/number-range-class.ts +90 -0
  116. package/models/personal-account-class.ts +114 -0
  117. package/package.json +1 -1
  118. package/api/mailbox-api.ts +0 -255
  119. package/api/messages-api.ts +0 -1100
  120. package/api/users-api.ts +0 -496
  121. package/api/vbas-api.ts +0 -592
  122. package/api/vbus-api.ts +0 -701
  123. package/dist/api/mailbox-api.d.ts +0 -142
  124. package/dist/api/mailbox-api.js +0 -315
  125. package/dist/api/messages-api.d.ts +0 -632
  126. package/dist/api/messages-api.js +0 -916
  127. package/dist/api/users-api.d.ts +0 -275
  128. package/dist/api/vbas-api.d.ts +0 -337
  129. package/dist/api/vbus-api.d.ts +0 -395
  130. package/dist/models/address-class.d.ts +0 -48
  131. package/dist/models/create-mailbox-request-dto.d.ts +0 -36
  132. package/dist/models/create-user-request-dto.d.ts +0 -76
  133. package/dist/models/create-user-response-class.d.ts +0 -25
  134. package/dist/models/create-vba-request-dto.d.ts +0 -41
  135. package/dist/models/create-vba-response-class.d.ts +0 -24
  136. package/dist/models/create-vbu-request-dto.d.ts +0 -41
  137. package/dist/models/create-vbu-response-class.d.ts +0 -24
  138. package/dist/models/create-vbu-response-class.js +0 -15
  139. package/dist/models/create-vbuv-request-dto.d.ts +0 -41
  140. package/dist/models/create-vbuv-response-class.d.ts +0 -24
  141. package/dist/models/create-vbuv-response-class.js +0 -15
  142. package/dist/models/get-request-message-response-class.d.ts +0 -25
  143. package/dist/models/get-request-message-response-class.js +0 -15
  144. package/dist/models/get-response-message-response-class.d.ts +0 -25
  145. package/dist/models/get-response-message-response-class.js +0 -15
  146. package/dist/models/get-user-response-class.d.ts +0 -25
  147. package/dist/models/get-user-response-class.js +0 -15
  148. package/dist/models/get-vba-response-class.d.ts +0 -25
  149. package/dist/models/get-vba-response-class.js +0 -15
  150. package/dist/models/get-vbu-response-class.d.ts +0 -25
  151. package/dist/models/get-vbu-response-class.js +0 -15
  152. package/dist/models/get-zip-code-response-class.d.ts +0 -25
  153. package/dist/models/get-zip-code-response-class.js +0 -15
  154. package/dist/models/list-all-messages-response-class.d.ts +0 -31
  155. package/dist/models/list-all-messages-response-class.js +0 -15
  156. package/dist/models/list-requests-messages-response-class.d.ts +0 -31
  157. package/dist/models/list-requests-messages-response-class.js +0 -15
  158. package/dist/models/list-responses-messages-response-class.d.ts +0 -31
  159. package/dist/models/list-responses-messages-response-class.js +0 -15
  160. package/dist/models/list-users-response-class.d.ts +0 -31
  161. package/dist/models/list-users-response-class.js +0 -15
  162. package/dist/models/list-vbas-response-class.d.ts +0 -31
  163. package/dist/models/list-vbas-response-class.js +0 -15
  164. package/dist/models/list-vbus-response-class.d.ts +0 -31
  165. package/dist/models/list-vbus-response-class.js +0 -15
  166. package/dist/models/list-zip-codes-response-class.d.ts +0 -31
  167. package/dist/models/list-zip-codes-response-class.js +0 -15
  168. package/dist/models/message-class.d.ts +0 -90
  169. package/dist/models/message-class.js +0 -15
  170. package/dist/models/request-details-class.d.ts +0 -48
  171. package/dist/models/request-details-class.js +0 -15
  172. package/dist/models/request-message-class.d.ts +0 -127
  173. package/dist/models/request-message-class.js +0 -15
  174. package/dist/models/response-details-class.d.ts +0 -42
  175. package/dist/models/response-details-class.js +0 -15
  176. package/dist/models/response-message-class.d.ts +0 -139
  177. package/dist/models/response-message-class.js +0 -15
  178. package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
  179. package/dist/models/store-zip-codes-request-dto.js +0 -15
  180. package/dist/models/store-zip-codes-response-class.d.ts +0 -25
  181. package/dist/models/store-zip-codes-response-class.js +0 -15
  182. package/dist/models/update-request-message-request-dto.d.ts +0 -36
  183. package/dist/models/update-request-message-request-dto.js +0 -15
  184. package/dist/models/update-request-message-response-class.d.ts +0 -25
  185. package/dist/models/update-request-message-response-class.js +0 -15
  186. package/dist/models/update-response-message-request-dto.d.ts +0 -36
  187. package/dist/models/update-response-message-request-dto.js +0 -15
  188. package/dist/models/update-response-message-response-class.d.ts +0 -25
  189. package/dist/models/update-response-message-response-class.js +0 -15
  190. package/dist/models/update-user-request-dto.d.ts +0 -82
  191. package/dist/models/update-user-request-dto.js +0 -24
  192. package/dist/models/update-user-response-class.d.ts +0 -25
  193. package/dist/models/update-user-response-class.js +0 -15
  194. package/dist/models/update-vba-request-dto.d.ts +0 -30
  195. package/dist/models/update-vba-request-dto.js +0 -15
  196. package/dist/models/update-vbu-request-dto.d.ts +0 -30
  197. package/dist/models/update-vbu-request-dto.js +0 -15
  198. package/dist/models/update-vbu-response-class.d.ts +0 -25
  199. package/dist/models/update-vbu-response-class.js +0 -15
  200. package/dist/models/user-class.d.ts +0 -107
  201. package/dist/models/user-class.js +0 -20
  202. package/dist/models/vba-class.d.ts +0 -116
  203. package/dist/models/vba-class.js +0 -15
  204. package/dist/models/vba-response-class.d.ts +0 -48
  205. package/dist/models/vba-response-class.js +0 -15
  206. package/dist/models/vbu-class.d.ts +0 -115
  207. package/dist/models/vbu-class.js +0 -15
  208. package/dist/models/vbu-response-class.d.ts +0 -48
  209. package/dist/models/vbu-response-class.js +0 -15
  210. package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
  211. package/dist/models/xlsx-zip-code-dto.js +0 -15
  212. package/dist/models/zip-code-class.d.ts +0 -60
  213. package/dist/models/zip-code-class.js +0 -15
  214. package/models/address-class.ts +0 -54
  215. package/models/create-mailbox-request-dto.ts +0 -42
  216. package/models/create-user-request-dto.ts +0 -86
  217. package/models/create-user-response-class.ts +0 -31
  218. package/models/create-vba-request-dto.ts +0 -50
  219. package/models/create-vba-response-class.ts +0 -30
  220. package/models/create-vbu-request-dto.ts +0 -50
  221. package/models/create-vbu-response-class.ts +0 -30
  222. package/models/create-vbuv-request-dto.ts +0 -50
  223. package/models/create-vbuv-response-class.ts +0 -30
  224. package/models/get-request-message-response-class.ts +0 -31
  225. package/models/get-response-message-response-class.ts +0 -31
  226. package/models/get-user-response-class.ts +0 -31
  227. package/models/get-vba-response-class.ts +0 -31
  228. package/models/get-vbu-response-class.ts +0 -31
  229. package/models/get-zip-code-response-class.ts +0 -31
  230. package/models/list-all-messages-response-class.ts +0 -37
  231. package/models/list-requests-messages-response-class.ts +0 -37
  232. package/models/list-responses-messages-response-class.ts +0 -37
  233. package/models/list-users-response-class.ts +0 -37
  234. package/models/list-vbas-response-class.ts +0 -37
  235. package/models/list-vbus-response-class.ts +0 -37
  236. package/models/list-zip-codes-response-class.ts +0 -37
  237. package/models/message-class.ts +0 -96
  238. package/models/request-details-class.ts +0 -54
  239. package/models/request-message-class.ts +0 -133
  240. package/models/response-details-class.ts +0 -48
  241. package/models/response-message-class.ts +0 -145
  242. package/models/store-zip-codes-request-dto.ts +0 -31
  243. package/models/store-zip-codes-response-class.ts +0 -31
  244. package/models/update-request-message-request-dto.ts +0 -42
  245. package/models/update-request-message-response-class.ts +0 -31
  246. package/models/update-response-message-request-dto.ts +0 -42
  247. package/models/update-response-message-response-class.ts +0 -31
  248. package/models/update-user-request-dto.ts +0 -92
  249. package/models/update-user-response-class.ts +0 -31
  250. package/models/update-vba-request-dto.ts +0 -36
  251. package/models/update-vbu-request-dto.ts +0 -36
  252. package/models/update-vbu-response-class.ts +0 -31
  253. package/models/user-class.ts +0 -116
  254. package/models/vba-class.ts +0 -122
  255. package/models/vba-response-class.ts +0 -54
  256. package/models/vbu-class.ts +0 -121
  257. package/models/vbu-response-class.ts +0 -54
  258. package/models/xlsx-zip-code-dto.ts +0 -36
  259. package/models/zip-code-class.ts +0 -66
@@ -0,0 +1,369 @@
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 { GetFinancialTransactionResponseClass } from '../models';
25
+ // @ts-ignore
26
+ import { ListFinancialTransactionsResponseClass } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * FinancialTransactionsApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const FinancialTransactionsApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * This endpoint gets a financial transaction. **Required Permissions** \"accounting-management.accounts.view\"
39
+ * @summary Retrieve the financial transaction
40
+ * @param {string} code
41
+ * @param {string} expand
42
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
43
+ * @param {*} [options] Override http request option.
44
+ * @throws {RequiredError}
45
+ */
46
+ getFinancialTransaction: async (code: string, expand: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
47
+ // verify required parameter 'code' is not null or undefined
48
+ assertParamExists('getFinancialTransaction', 'code', code)
49
+ // verify required parameter 'expand' is not null or undefined
50
+ assertParamExists('getFinancialTransaction', 'expand', expand)
51
+ const localVarPath = `/accountingservice/v1/financial-transactions/{code}`
52
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
53
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
55
+ let baseOptions;
56
+ let baseAccessToken;
57
+ if (configuration) {
58
+ baseOptions = configuration.baseOptions;
59
+ baseAccessToken = configuration.accessToken;
60
+ }
61
+
62
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
63
+ const localVarHeaderParameter = {} as any;
64
+ const localVarQueryParameter = {} as any;
65
+
66
+ // authentication bearer required
67
+ // http bearer authentication required
68
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
69
+
70
+ if (expand !== undefined) {
71
+ localVarQueryParameter['expand'] = expand;
72
+ }
73
+
74
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
+ }
77
+
78
+
79
+
80
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
81
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
83
+
84
+ return {
85
+ url: toPathString(localVarUrlObj),
86
+ options: localVarRequestOptions,
87
+ };
88
+ },
89
+ /**
90
+ * This endpoint list financial transactions. **Required Permissions** \"accounting-management.accounts.view\"
91
+ * @summary List financial transactions
92
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
93
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
94
+ * @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.
95
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
96
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
97
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
98
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
99
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ listFinancialTransactions: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
104
+ const localVarPath = `/accountingservice/v1/financial-transactions`;
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ let baseAccessToken;
109
+ if (configuration) {
110
+ baseOptions = configuration.baseOptions;
111
+ baseAccessToken = configuration.accessToken;
112
+ }
113
+
114
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
115
+ const localVarHeaderParameter = {} as any;
116
+ const localVarQueryParameter = {} as any;
117
+
118
+ // authentication bearer required
119
+ // http bearer authentication required
120
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
121
+
122
+ if (pageSize !== undefined) {
123
+ localVarQueryParameter['pageSize'] = pageSize;
124
+ }
125
+
126
+ if (pageToken !== undefined) {
127
+ localVarQueryParameter['pageToken'] = pageToken;
128
+ }
129
+
130
+ if (filter !== undefined) {
131
+ localVarQueryParameter['filter'] = filter;
132
+ }
133
+
134
+ if (search !== undefined) {
135
+ localVarQueryParameter['search'] = search;
136
+ }
137
+
138
+ if (order !== undefined) {
139
+ localVarQueryParameter['order'] = order;
140
+ }
141
+
142
+ if (expand !== undefined) {
143
+ localVarQueryParameter['expand'] = expand;
144
+ }
145
+
146
+ if (filters !== undefined) {
147
+ localVarQueryParameter['filters'] = filters;
148
+ }
149
+
150
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
151
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
152
+ }
153
+
154
+
155
+
156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
159
+
160
+ return {
161
+ url: toPathString(localVarUrlObj),
162
+ options: localVarRequestOptions,
163
+ };
164
+ },
165
+ }
166
+ };
167
+
168
+ /**
169
+ * FinancialTransactionsApi - functional programming interface
170
+ * @export
171
+ */
172
+ export const FinancialTransactionsApiFp = function(configuration?: Configuration) {
173
+ const localVarAxiosParamCreator = FinancialTransactionsApiAxiosParamCreator(configuration)
174
+ return {
175
+ /**
176
+ * This endpoint gets a financial transaction. **Required Permissions** \"accounting-management.accounts.view\"
177
+ * @summary Retrieve the financial transaction
178
+ * @param {string} code
179
+ * @param {string} expand
180
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
181
+ * @param {*} [options] Override http request option.
182
+ * @throws {RequiredError}
183
+ */
184
+ async getFinancialTransaction(code: string, expand: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetFinancialTransactionResponseClass>> {
185
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFinancialTransaction(code, expand, authorization, options);
186
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
187
+ },
188
+ /**
189
+ * This endpoint list financial transactions. **Required Permissions** \"accounting-management.accounts.view\"
190
+ * @summary List financial transactions
191
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
192
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
193
+ * @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.
194
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
195
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
196
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
197
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
198
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ async listFinancialTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialTransactionsResponseClass>> {
203
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listFinancialTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
204
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
205
+ },
206
+ }
207
+ };
208
+
209
+ /**
210
+ * FinancialTransactionsApi - factory interface
211
+ * @export
212
+ */
213
+ export const FinancialTransactionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
214
+ const localVarFp = FinancialTransactionsApiFp(configuration)
215
+ return {
216
+ /**
217
+ * This endpoint gets a financial transaction. **Required Permissions** \"accounting-management.accounts.view\"
218
+ * @summary Retrieve the financial transaction
219
+ * @param {string} code
220
+ * @param {string} expand
221
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
222
+ * @param {*} [options] Override http request option.
223
+ * @throws {RequiredError}
224
+ */
225
+ getFinancialTransaction(code: string, expand: string, authorization?: string, options?: any): AxiosPromise<GetFinancialTransactionResponseClass> {
226
+ return localVarFp.getFinancialTransaction(code, expand, authorization, options).then((request) => request(axios, basePath));
227
+ },
228
+ /**
229
+ * This endpoint list financial transactions. **Required Permissions** \"accounting-management.accounts.view\"
230
+ * @summary List financial transactions
231
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
232
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
233
+ * @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.
234
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
235
+ * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
236
+ * @param {string} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
237
+ * @param {string} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
238
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ listFinancialTransactions(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListFinancialTransactionsResponseClass> {
243
+ return localVarFp.listFinancialTransactions(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
244
+ },
245
+ };
246
+ };
247
+
248
+ /**
249
+ * Request parameters for getFinancialTransaction operation in FinancialTransactionsApi.
250
+ * @export
251
+ * @interface FinancialTransactionsApiGetFinancialTransactionRequest
252
+ */
253
+ export interface FinancialTransactionsApiGetFinancialTransactionRequest {
254
+ /**
255
+ *
256
+ * @type {string}
257
+ * @memberof FinancialTransactionsApiGetFinancialTransaction
258
+ */
259
+ readonly code: string
260
+
261
+ /**
262
+ *
263
+ * @type {string}
264
+ * @memberof FinancialTransactionsApiGetFinancialTransaction
265
+ */
266
+ readonly expand: string
267
+
268
+ /**
269
+ * Bearer Token: provided by the login endpoint under the name accessToken.
270
+ * @type {string}
271
+ * @memberof FinancialTransactionsApiGetFinancialTransaction
272
+ */
273
+ readonly authorization?: string
274
+ }
275
+
276
+ /**
277
+ * Request parameters for listFinancialTransactions operation in FinancialTransactionsApi.
278
+ * @export
279
+ * @interface FinancialTransactionsApiListFinancialTransactionsRequest
280
+ */
281
+ export interface FinancialTransactionsApiListFinancialTransactionsRequest {
282
+ /**
283
+ * Bearer Token: provided by the login endpoint under the name accessToken.
284
+ * @type {string}
285
+ * @memberof FinancialTransactionsApiListFinancialTransactions
286
+ */
287
+ readonly authorization?: string
288
+
289
+ /**
290
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
291
+ * @type {number}
292
+ * @memberof FinancialTransactionsApiListFinancialTransactions
293
+ */
294
+ readonly pageSize?: number
295
+
296
+ /**
297
+ * 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.
298
+ * @type {string}
299
+ * @memberof FinancialTransactionsApiListFinancialTransactions
300
+ */
301
+ readonly pageToken?: string
302
+
303
+ /**
304
+ * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
305
+ * @type {string}
306
+ * @memberof FinancialTransactionsApiListFinancialTransactions
307
+ */
308
+ readonly filter?: string
309
+
310
+ /**
311
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
312
+ * @type {string}
313
+ * @memberof FinancialTransactionsApiListFinancialTransactions
314
+ */
315
+ readonly search?: string
316
+
317
+ /**
318
+ * The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
319
+ * @type {string}
320
+ * @memberof FinancialTransactionsApiListFinancialTransactions
321
+ */
322
+ readonly order?: string
323
+
324
+ /**
325
+ * Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
326
+ * @type {string}
327
+ * @memberof FinancialTransactionsApiListFinancialTransactions
328
+ */
329
+ readonly expand?: string
330
+
331
+ /**
332
+ * Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
333
+ * @type {string}
334
+ * @memberof FinancialTransactionsApiListFinancialTransactions
335
+ */
336
+ readonly filters?: string
337
+ }
338
+
339
+ /**
340
+ * FinancialTransactionsApi - object-oriented interface
341
+ * @export
342
+ * @class FinancialTransactionsApi
343
+ * @extends {BaseAPI}
344
+ */
345
+ export class FinancialTransactionsApi extends BaseAPI {
346
+ /**
347
+ * This endpoint gets a financial transaction. **Required Permissions** \"accounting-management.accounts.view\"
348
+ * @summary Retrieve the financial transaction
349
+ * @param {FinancialTransactionsApiGetFinancialTransactionRequest} requestParameters Request parameters.
350
+ * @param {*} [options] Override http request option.
351
+ * @throws {RequiredError}
352
+ * @memberof FinancialTransactionsApi
353
+ */
354
+ public getFinancialTransaction(requestParameters: FinancialTransactionsApiGetFinancialTransactionRequest, options?: AxiosRequestConfig) {
355
+ return FinancialTransactionsApiFp(this.configuration).getFinancialTransaction(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
356
+ }
357
+
358
+ /**
359
+ * This endpoint list financial transactions. **Required Permissions** \"accounting-management.accounts.view\"
360
+ * @summary List financial transactions
361
+ * @param {FinancialTransactionsApiListFinancialTransactionsRequest} requestParameters Request parameters.
362
+ * @param {*} [options] Override http request option.
363
+ * @throws {RequiredError}
364
+ * @memberof FinancialTransactionsApi
365
+ */
366
+ public listFinancialTransactions(requestParameters: FinancialTransactionsApiListFinancialTransactionsRequest = {}, options?: AxiosRequestConfig) {
367
+ return FinancialTransactionsApiFp(this.configuration).listFinancialTransactions(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
368
+ }
369
+ }
package/api/health-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
@@ -35,13 +35,13 @@ const FormData = require('form-data');
35
35
  export const HealthApiAxiosParamCreator = function (configuration?: Configuration) {
36
36
  return {
37
37
  /**
38
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
38
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
39
39
  * @summary Health Check
40
40
  * @param {*} [options] Override http request option.
41
41
  * @throws {RequiredError}
42
42
  */
43
43
  check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
44
- const localVarPath = `/gdvservice/health`;
44
+ const localVarPath = `/accountingservice/health`;
45
45
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
46
46
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
47
47
  let baseOptions;
@@ -77,7 +77,7 @@ export const HealthApiFp = function(configuration?: Configuration) {
77
77
  const localVarAxiosParamCreator = HealthApiAxiosParamCreator(configuration)
78
78
  return {
79
79
  /**
80
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
80
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
81
81
  * @summary Health Check
82
82
  * @param {*} [options] Override http request option.
83
83
  * @throws {RequiredError}
@@ -97,7 +97,7 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
97
97
  const localVarFp = HealthApiFp(configuration)
98
98
  return {
99
99
  /**
100
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
100
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
101
101
  * @summary Health Check
102
102
  * @param {*} [options] Override http request option.
103
103
  * @throws {RequiredError}
@@ -116,7 +116,7 @@ export const HealthApiFactory = function (configuration?: Configuration, basePat
116
116
  */
117
117
  export class HealthApi extends BaseAPI {
118
118
  /**
119
- * Returns the health status of the GdvService service. This endpoint is used to monitor the operational status of the GdvService service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
119
+ * Returns the health status of the accounting service. This endpoint is used to monitor the operational status of the accounting service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
120
120
  * @summary Health Check
121
121
  * @param {*} [options] Override http request option.
122
122
  * @throws {RequiredError}