@emilgroup/accounting-sdk-node 1.1.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (223) hide show
  1. package/.openapi-generator/FILES +52 -15
  2. package/README.md +2 -2
  3. package/api/health-api.ts +7 -7
  4. package/api/mailbox-api.ts +255 -0
  5. package/api/messages-api.ts +1100 -0
  6. package/api/users-api.ts +496 -0
  7. package/api/vbas-api.ts +592 -0
  8. package/api/vbus-api.ts +701 -0
  9. package/api/zip-codes-api.ts +443 -0
  10. package/api.ts +14 -6
  11. package/base.ts +2 -2
  12. package/common.ts +4 -4
  13. package/configuration.ts +2 -2
  14. package/dist/api/health-api.d.ts +6 -6
  15. package/dist/api/health-api.js +7 -7
  16. package/dist/api/mailbox-api.d.ts +142 -0
  17. package/dist/api/mailbox-api.js +315 -0
  18. package/dist/api/messages-api.d.ts +632 -0
  19. package/dist/api/messages-api.js +916 -0
  20. package/dist/api/users-api.d.ts +275 -0
  21. package/dist/api/users-api.js +512 -0
  22. package/dist/api/vbas-api.d.ts +337 -0
  23. package/dist/api/{financial-accounts-api.js → vbas-api.js} +161 -156
  24. package/dist/api/vbus-api.d.ts +395 -0
  25. package/dist/api/vbus-api.js +647 -0
  26. package/dist/api/zip-codes-api.d.ts +253 -0
  27. package/dist/api/{booking-processes-api.js → zip-codes-api.js} +166 -80
  28. package/dist/api.d.ts +8 -4
  29. package/dist/api.js +8 -4
  30. package/dist/base.d.ts +2 -2
  31. package/dist/base.js +2 -2
  32. package/dist/common.d.ts +4 -4
  33. package/dist/common.js +2 -2
  34. package/dist/configuration.d.ts +2 -2
  35. package/dist/configuration.js +2 -2
  36. package/dist/index.d.ts +2 -2
  37. package/dist/index.js +2 -2
  38. package/dist/models/address-class.d.ts +48 -0
  39. package/dist/models/{get-financial-account-response-class.js → address-class.js} +2 -2
  40. package/dist/models/create-mailbox-request-dto.d.ts +36 -0
  41. package/dist/models/{create-booking-process-response-class.js → create-mailbox-request-dto.js} +2 -2
  42. package/dist/models/create-user-request-dto.d.ts +76 -0
  43. package/dist/models/{financial-account-class.js → create-user-request-dto.js} +10 -9
  44. package/dist/models/create-user-response-class.d.ts +25 -0
  45. package/dist/models/{financial-transaction-class.js → create-user-response-class.js} +2 -2
  46. package/dist/models/create-vba-request-dto.d.ts +41 -0
  47. package/dist/models/create-vba-request-dto.js +20 -0
  48. package/dist/models/create-vba-response-class.d.ts +24 -0
  49. package/dist/models/{create-financial-account-response-class.js → create-vba-response-class.js} +2 -2
  50. package/dist/models/create-vbu-request-dto.d.ts +41 -0
  51. package/dist/models/create-vbu-request-dto.js +20 -0
  52. package/dist/models/create-vbu-response-class.d.ts +24 -0
  53. package/dist/models/create-vbu-response-class.js +15 -0
  54. package/dist/models/create-vbuv-request-dto.d.ts +41 -0
  55. package/dist/models/create-vbuv-request-dto.js +20 -0
  56. package/dist/models/create-vbuv-response-class.d.ts +24 -0
  57. package/dist/models/create-vbuv-response-class.js +15 -0
  58. package/dist/models/get-request-message-response-class.d.ts +25 -0
  59. package/dist/models/get-request-message-response-class.js +15 -0
  60. package/dist/models/get-response-message-response-class.d.ts +25 -0
  61. package/dist/models/get-response-message-response-class.js +15 -0
  62. package/dist/models/get-user-response-class.d.ts +25 -0
  63. package/dist/models/get-user-response-class.js +15 -0
  64. package/dist/models/get-vba-response-class.d.ts +25 -0
  65. package/dist/models/get-vba-response-class.js +15 -0
  66. package/dist/models/get-vbu-response-class.d.ts +25 -0
  67. package/dist/models/get-vbu-response-class.js +15 -0
  68. package/dist/models/get-zip-code-response-class.d.ts +25 -0
  69. package/dist/models/get-zip-code-response-class.js +15 -0
  70. package/dist/models/index.d.ts +46 -13
  71. package/dist/models/index.js +46 -13
  72. package/dist/models/inline-response200.d.ts +2 -2
  73. package/dist/models/inline-response200.js +2 -2
  74. package/dist/models/inline-response503.d.ts +2 -2
  75. package/dist/models/inline-response503.js +2 -2
  76. package/dist/models/list-all-messages-response-class.d.ts +31 -0
  77. package/dist/models/list-all-messages-response-class.js +15 -0
  78. package/dist/models/list-requests-messages-response-class.d.ts +31 -0
  79. package/dist/models/list-requests-messages-response-class.js +15 -0
  80. package/dist/models/list-responses-messages-response-class.d.ts +31 -0
  81. package/dist/models/list-responses-messages-response-class.js +15 -0
  82. package/dist/models/list-users-response-class.d.ts +31 -0
  83. package/dist/models/list-users-response-class.js +15 -0
  84. package/dist/models/list-vbas-response-class.d.ts +31 -0
  85. package/dist/models/list-vbas-response-class.js +15 -0
  86. package/dist/models/list-vbus-response-class.d.ts +31 -0
  87. package/dist/models/list-vbus-response-class.js +15 -0
  88. package/dist/models/list-zip-codes-response-class.d.ts +31 -0
  89. package/dist/models/list-zip-codes-response-class.js +15 -0
  90. package/dist/models/message-class.d.ts +84 -0
  91. package/dist/models/message-class.js +15 -0
  92. package/dist/models/request-details-class.d.ts +48 -0
  93. package/dist/models/request-details-class.js +15 -0
  94. package/dist/models/request-message-class.d.ts +121 -0
  95. package/dist/models/request-message-class.js +15 -0
  96. package/dist/models/response-details-class.d.ts +42 -0
  97. package/dist/models/response-details-class.js +15 -0
  98. package/dist/models/response-message-class.d.ts +133 -0
  99. package/dist/models/response-message-class.js +15 -0
  100. package/dist/models/store-zip-codes-request-dto.d.ts +25 -0
  101. package/dist/models/store-zip-codes-request-dto.js +15 -0
  102. package/dist/models/store-zip-codes-response-class.d.ts +25 -0
  103. package/dist/models/store-zip-codes-response-class.js +15 -0
  104. package/dist/models/update-request-message-request-dto.d.ts +36 -0
  105. package/dist/models/update-request-message-request-dto.js +15 -0
  106. package/dist/models/update-request-message-response-class.d.ts +25 -0
  107. package/dist/models/update-request-message-response-class.js +15 -0
  108. package/dist/models/update-response-message-request-dto.d.ts +36 -0
  109. package/dist/models/update-response-message-request-dto.js +15 -0
  110. package/dist/models/update-response-message-response-class.d.ts +25 -0
  111. package/dist/models/update-response-message-response-class.js +15 -0
  112. package/dist/models/update-user-request-dto.d.ts +82 -0
  113. package/dist/models/{financial-transaction-data-dto.js → update-user-request-dto.js} +10 -6
  114. package/dist/models/update-user-response-class.d.ts +25 -0
  115. package/dist/models/update-user-response-class.js +15 -0
  116. package/dist/models/update-vba-request-dto.d.ts +30 -0
  117. package/dist/models/update-vba-request-dto.js +15 -0
  118. package/dist/models/update-vbu-request-dto.d.ts +30 -0
  119. package/dist/models/update-vbu-request-dto.js +15 -0
  120. package/dist/models/update-vbu-response-class.d.ts +25 -0
  121. package/dist/models/update-vbu-response-class.js +15 -0
  122. package/dist/models/user-class.d.ts +107 -0
  123. package/dist/models/user-class.js +20 -0
  124. package/dist/models/vba-class.d.ts +116 -0
  125. package/dist/models/vba-class.js +15 -0
  126. package/dist/models/vba-response-class.d.ts +48 -0
  127. package/dist/models/vba-response-class.js +15 -0
  128. package/dist/models/vbu-class.d.ts +115 -0
  129. package/dist/models/vbu-class.js +15 -0
  130. package/dist/models/vbu-response-class.d.ts +48 -0
  131. package/dist/models/vbu-response-class.js +15 -0
  132. package/dist/models/xlsx-zip-code-dto.d.ts +30 -0
  133. package/dist/models/xlsx-zip-code-dto.js +15 -0
  134. package/dist/models/zip-code-class.d.ts +60 -0
  135. package/dist/models/zip-code-class.js +15 -0
  136. package/index.ts +2 -2
  137. package/models/address-class.ts +54 -0
  138. package/models/create-mailbox-request-dto.ts +42 -0
  139. package/models/create-user-request-dto.ts +86 -0
  140. package/models/create-user-response-class.ts +31 -0
  141. package/models/create-vba-request-dto.ts +50 -0
  142. package/models/create-vba-response-class.ts +30 -0
  143. package/models/create-vbu-request-dto.ts +50 -0
  144. package/models/create-vbu-response-class.ts +30 -0
  145. package/models/create-vbuv-request-dto.ts +50 -0
  146. package/models/create-vbuv-response-class.ts +30 -0
  147. package/models/get-request-message-response-class.ts +31 -0
  148. package/models/get-response-message-response-class.ts +31 -0
  149. package/models/get-user-response-class.ts +31 -0
  150. package/models/get-vba-response-class.ts +31 -0
  151. package/models/get-vbu-response-class.ts +31 -0
  152. package/models/get-zip-code-response-class.ts +31 -0
  153. package/models/index.ts +46 -13
  154. package/models/inline-response200.ts +2 -2
  155. package/models/inline-response503.ts +2 -2
  156. package/models/list-all-messages-response-class.ts +37 -0
  157. package/models/list-requests-messages-response-class.ts +37 -0
  158. package/models/list-responses-messages-response-class.ts +37 -0
  159. package/models/list-users-response-class.ts +37 -0
  160. package/models/list-vbas-response-class.ts +37 -0
  161. package/models/list-vbus-response-class.ts +37 -0
  162. package/models/list-zip-codes-response-class.ts +37 -0
  163. package/models/message-class.ts +90 -0
  164. package/models/request-details-class.ts +54 -0
  165. package/models/request-message-class.ts +127 -0
  166. package/models/response-details-class.ts +48 -0
  167. package/models/response-message-class.ts +139 -0
  168. package/models/store-zip-codes-request-dto.ts +31 -0
  169. package/models/store-zip-codes-response-class.ts +31 -0
  170. package/models/update-request-message-request-dto.ts +42 -0
  171. package/models/update-request-message-response-class.ts +31 -0
  172. package/models/update-response-message-request-dto.ts +42 -0
  173. package/models/update-response-message-response-class.ts +31 -0
  174. package/models/update-user-request-dto.ts +92 -0
  175. package/models/update-user-response-class.ts +31 -0
  176. package/models/update-vba-request-dto.ts +36 -0
  177. package/models/update-vbu-request-dto.ts +36 -0
  178. package/models/update-vbu-response-class.ts +31 -0
  179. package/models/user-class.ts +116 -0
  180. package/models/vba-class.ts +122 -0
  181. package/models/vba-response-class.ts +54 -0
  182. package/models/vbu-class.ts +121 -0
  183. package/models/vbu-response-class.ts +54 -0
  184. package/models/xlsx-zip-code-dto.ts +36 -0
  185. package/models/zip-code-class.ts +66 -0
  186. package/package.json +1 -1
  187. package/api/booking-processes-api.ts +0 -357
  188. package/api/financial-accounts-api.ts +0 -577
  189. package/dist/api/booking-processes-api.d.ts +0 -207
  190. package/dist/api/financial-accounts-api.d.ts +0 -327
  191. package/dist/models/booking-entry-class.d.ts +0 -123
  192. package/dist/models/booking-entry-class.js +0 -34
  193. package/dist/models/booking-process-class.d.ts +0 -94
  194. package/dist/models/booking-process-class.js +0 -29
  195. package/dist/models/create-booking-entry-request-dto.d.ts +0 -99
  196. package/dist/models/create-booking-entry-request-dto.js +0 -34
  197. package/dist/models/create-booking-process-request-dto.d.ts +0 -64
  198. package/dist/models/create-booking-process-request-dto.js +0 -29
  199. package/dist/models/create-booking-process-response-class.d.ts +0 -25
  200. package/dist/models/create-financial-account-request-dto.d.ts +0 -62
  201. package/dist/models/create-financial-account-request-dto.js +0 -23
  202. package/dist/models/create-financial-account-response-class.d.ts +0 -25
  203. package/dist/models/financial-account-class.d.ts +0 -98
  204. package/dist/models/financial-transaction-class.d.ts +0 -108
  205. package/dist/models/financial-transaction-data-dto.d.ts +0 -71
  206. package/dist/models/get-financial-account-response-class.d.ts +0 -25
  207. package/dist/models/list-booking-process-response-class.d.ts +0 -31
  208. package/dist/models/list-booking-process-response-class.js +0 -15
  209. package/dist/models/list-financial-accounts-response-class.d.ts +0 -31
  210. package/dist/models/list-financial-accounts-response-class.js +0 -15
  211. package/models/booking-entry-class.ts +0 -133
  212. package/models/booking-process-class.ts +0 -104
  213. package/models/create-booking-entry-request-dto.ts +0 -109
  214. package/models/create-booking-process-request-dto.ts +0 -74
  215. package/models/create-booking-process-response-class.ts +0 -31
  216. package/models/create-financial-account-request-dto.ts +0 -71
  217. package/models/create-financial-account-response-class.ts +0 -31
  218. package/models/financial-account-class.ts +0 -107
  219. package/models/financial-transaction-class.ts +0 -114
  220. package/models/financial-transaction-data-dto.ts +0 -80
  221. package/models/get-financial-account-response-class.ts +0 -31
  222. package/models/list-booking-process-response-class.ts +0 -37
  223. package/models/list-financial-accounts-response-class.ts +0 -37
@@ -0,0 +1,592 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL GdvService
5
+ * The EMIL GdvService 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 { CreateVbaRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { CreateVbaResponseClass } from '../models';
27
+ // @ts-ignore
28
+ import { GetVbaResponseClass } from '../models';
29
+ // @ts-ignore
30
+ import { ListVbasResponseClass } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateVbaRequestDto } from '../models';
33
+ // URLSearchParams not necessarily used
34
+ // @ts-ignore
35
+ import { URL, URLSearchParams } from 'url';
36
+ const FormData = require('form-data');
37
+ /**
38
+ * VbasApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const VbasApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
45
+ * @summary Create the vba
46
+ * @param {CreateVbaRequestDto} createVbaRequestDto
47
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ createVba: async (createVbaRequestDto: CreateVbaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ // verify required parameter 'createVbaRequestDto' is not null or undefined
53
+ assertParamExists('createVba', 'createVbaRequestDto', createVbaRequestDto)
54
+ const localVarPath = `/gdvservice/v1/vbas`;
55
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
56
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57
+ let baseOptions;
58
+ let baseAccessToken;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ baseAccessToken = configuration.accessToken;
62
+ }
63
+
64
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
65
+ const localVarHeaderParameter = {} as any;
66
+ const localVarQueryParameter = {} as any;
67
+
68
+ // authentication bearer required
69
+ // http bearer authentication required
70
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
71
+
72
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
73
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
74
+ }
75
+
76
+
77
+
78
+ localVarHeaderParameter['Content-Type'] = 'application/json';
79
+
80
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
81
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
82
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
83
+ localVarRequestOptions.data = serializeDataIfNeeded(createVbaRequestDto, localVarRequestOptions, configuration)
84
+
85
+ return {
86
+ url: toPathString(localVarUrlObj),
87
+ options: localVarRequestOptions,
88
+ };
89
+ },
90
+ /**
91
+ * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
92
+ * @summary Retrieve the vba
93
+ * @param {string} code Unique identifier for the object.
94
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
95
+ * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ getVba: async (code: string, authorization?: string, expand?: 'responses', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
100
+ // verify required parameter 'code' is not null or undefined
101
+ assertParamExists('getVba', 'code', code)
102
+ const localVarPath = `/gdvservice/v1/vbas/{code}`
103
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
106
+ let baseOptions;
107
+ let baseAccessToken;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ baseAccessToken = configuration.accessToken;
111
+ }
112
+
113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
114
+ const localVarHeaderParameter = {} as any;
115
+ const localVarQueryParameter = {} as any;
116
+
117
+ // authentication bearer required
118
+ // http bearer authentication required
119
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
120
+
121
+ if (expand !== undefined) {
122
+ localVarQueryParameter['expand'] = expand;
123
+ }
124
+
125
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
126
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
127
+ }
128
+
129
+
130
+
131
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
132
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
134
+
135
+ return {
136
+ url: toPathString(localVarUrlObj),
137
+ options: localVarRequestOptions,
138
+ };
139
+ },
140
+ /**
141
+ * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
142
+ * @summary List vbas
143
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
144
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
145
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
146
+ * @param {any} [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: id, code, leadNumber, policyNumber, policyCode, customerName&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
147
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
148
+ * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt&lt;/i&gt;
149
+ * @param {any} [expand] No expanding supported
150
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ listVbas: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
155
+ const localVarPath = `/gdvservice/v1/vbas`;
156
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
157
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
158
+ let baseOptions;
159
+ let baseAccessToken;
160
+ if (configuration) {
161
+ baseOptions = configuration.baseOptions;
162
+ baseAccessToken = configuration.accessToken;
163
+ }
164
+
165
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
166
+ const localVarHeaderParameter = {} as any;
167
+ const localVarQueryParameter = {} as any;
168
+
169
+ // authentication bearer required
170
+ // http bearer authentication required
171
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
172
+
173
+ if (pageSize !== undefined) {
174
+ localVarQueryParameter['pageSize'] = pageSize;
175
+ }
176
+
177
+ if (pageToken !== undefined) {
178
+ localVarQueryParameter['pageToken'] = pageToken;
179
+ }
180
+
181
+ if (filter !== undefined) {
182
+ localVarQueryParameter['filter'] = filter;
183
+ }
184
+
185
+ if (search !== undefined) {
186
+ localVarQueryParameter['search'] = search;
187
+ }
188
+
189
+ if (order !== undefined) {
190
+ localVarQueryParameter['order'] = order;
191
+ }
192
+
193
+ if (expand !== undefined) {
194
+ localVarQueryParameter['expand'] = expand;
195
+ }
196
+
197
+ if (filters !== undefined) {
198
+ localVarQueryParameter['filters'] = filters;
199
+ }
200
+
201
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
202
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
203
+ }
204
+
205
+
206
+
207
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
208
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
209
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
210
+
211
+ return {
212
+ url: toPathString(localVarUrlObj),
213
+ options: localVarRequestOptions,
214
+ };
215
+ },
216
+ /**
217
+ * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
218
+ * @summary Update the vba
219
+ * @param {string} code Unique identifier for the object.
220
+ * @param {UpdateVbaRequestDto} updateVbaRequestDto
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
+ updateVba: async (code: string, updateVbaRequestDto: UpdateVbaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
226
+ // verify required parameter 'code' is not null or undefined
227
+ assertParamExists('updateVba', 'code', code)
228
+ // verify required parameter 'updateVbaRequestDto' is not null or undefined
229
+ assertParamExists('updateVba', 'updateVbaRequestDto', updateVbaRequestDto)
230
+ const localVarPath = `/gdvservice/v1/vbas/{code}`
231
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
232
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
233
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
234
+ let baseOptions;
235
+ let baseAccessToken;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ baseAccessToken = configuration.accessToken;
239
+ }
240
+
241
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
242
+ const localVarHeaderParameter = {} as any;
243
+ const localVarQueryParameter = {} as any;
244
+
245
+ // authentication bearer required
246
+ // http bearer authentication required
247
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
248
+
249
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
250
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
251
+ }
252
+
253
+
254
+
255
+ localVarHeaderParameter['Content-Type'] = 'application/json';
256
+
257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
260
+ localVarRequestOptions.data = serializeDataIfNeeded(updateVbaRequestDto, localVarRequestOptions, configuration)
261
+
262
+ return {
263
+ url: toPathString(localVarUrlObj),
264
+ options: localVarRequestOptions,
265
+ };
266
+ },
267
+ }
268
+ };
269
+
270
+ /**
271
+ * VbasApi - functional programming interface
272
+ * @export
273
+ */
274
+ export const VbasApiFp = function(configuration?: Configuration) {
275
+ const localVarAxiosParamCreator = VbasApiAxiosParamCreator(configuration)
276
+ return {
277
+ /**
278
+ * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
279
+ * @summary Create the vba
280
+ * @param {CreateVbaRequestDto} createVbaRequestDto
281
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
282
+ * @param {*} [options] Override http request option.
283
+ * @throws {RequiredError}
284
+ */
285
+ async createVba(createVbaRequestDto: CreateVbaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateVbaResponseClass>> {
286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createVba(createVbaRequestDto, authorization, options);
287
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
288
+ },
289
+ /**
290
+ * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
291
+ * @summary Retrieve the vba
292
+ * @param {string} code Unique identifier for the object.
293
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
294
+ * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ async getVba(code: string, authorization?: string, expand?: 'responses', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVbaResponseClass>> {
299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVba(code, authorization, expand, options);
300
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
301
+ },
302
+ /**
303
+ * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
304
+ * @summary List vbas
305
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
306
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
307
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
308
+ * @param {any} [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: id, code, leadNumber, policyNumber, policyCode, customerName&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
309
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
310
+ * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt&lt;/i&gt;
311
+ * @param {any} [expand] No expanding supported
312
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
313
+ * @param {*} [options] Override http request option.
314
+ * @throws {RequiredError}
315
+ */
316
+ async listVbas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListVbasResponseClass>> {
317
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
318
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
319
+ },
320
+ /**
321
+ * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
322
+ * @summary Update the vba
323
+ * @param {string} code Unique identifier for the object.
324
+ * @param {UpdateVbaRequestDto} updateVbaRequestDto
325
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
326
+ * @param {*} [options] Override http request option.
327
+ * @throws {RequiredError}
328
+ */
329
+ async updateVba(code: string, updateVbaRequestDto: UpdateVbaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateVbaRequestDto>> {
330
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateVba(code, updateVbaRequestDto, authorization, options);
331
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
332
+ },
333
+ }
334
+ };
335
+
336
+ /**
337
+ * VbasApi - factory interface
338
+ * @export
339
+ */
340
+ export const VbasApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
341
+ const localVarFp = VbasApiFp(configuration)
342
+ return {
343
+ /**
344
+ * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
345
+ * @summary Create the vba
346
+ * @param {CreateVbaRequestDto} createVbaRequestDto
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
+ createVba(createVbaRequestDto: CreateVbaRequestDto, authorization?: string, options?: any): AxiosPromise<CreateVbaResponseClass> {
352
+ return localVarFp.createVba(createVbaRequestDto, authorization, options).then((request) => request(axios, basePath));
353
+ },
354
+ /**
355
+ * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
356
+ * @summary Retrieve the vba
357
+ * @param {string} code Unique identifier for the object.
358
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
359
+ * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ getVba(code: string, authorization?: string, expand?: 'responses', options?: any): AxiosPromise<GetVbaResponseClass> {
364
+ return localVarFp.getVba(code, authorization, expand, options).then((request) => request(axios, basePath));
365
+ },
366
+ /**
367
+ * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
368
+ * @summary List vbas
369
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
370
+ * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
371
+ * @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
372
+ * @param {any} [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: id, code, leadNumber, policyNumber, policyCode, customerName&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
373
+ * @param {any} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
374
+ * @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt&lt;/i&gt;
375
+ * @param {any} [expand] No expanding supported
376
+ * @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ */
380
+ listVbas(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListVbasResponseClass> {
381
+ return localVarFp.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
382
+ },
383
+ /**
384
+ * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
385
+ * @summary Update the vba
386
+ * @param {string} code Unique identifier for the object.
387
+ * @param {UpdateVbaRequestDto} updateVbaRequestDto
388
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ updateVba(code: string, updateVbaRequestDto: UpdateVbaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateVbaRequestDto> {
393
+ return localVarFp.updateVba(code, updateVbaRequestDto, authorization, options).then((request) => request(axios, basePath));
394
+ },
395
+ };
396
+ };
397
+
398
+ /**
399
+ * Request parameters for createVba operation in VbasApi.
400
+ * @export
401
+ * @interface VbasApiCreateVbaRequest
402
+ */
403
+ export interface VbasApiCreateVbaRequest {
404
+ /**
405
+ *
406
+ * @type {CreateVbaRequestDto}
407
+ * @memberof VbasApiCreateVba
408
+ */
409
+ readonly createVbaRequestDto: CreateVbaRequestDto
410
+
411
+ /**
412
+ * Bearer Token: provided by the login endpoint under the name accessToken.
413
+ * @type {string}
414
+ * @memberof VbasApiCreateVba
415
+ */
416
+ readonly authorization?: string
417
+ }
418
+
419
+ /**
420
+ * Request parameters for getVba operation in VbasApi.
421
+ * @export
422
+ * @interface VbasApiGetVbaRequest
423
+ */
424
+ export interface VbasApiGetVbaRequest {
425
+ /**
426
+ * Unique identifier for the object.
427
+ * @type {string}
428
+ * @memberof VbasApiGetVba
429
+ */
430
+ readonly code: string
431
+
432
+ /**
433
+ * Bearer Token: provided by the login endpoint under the name accessToken.
434
+ * @type {string}
435
+ * @memberof VbasApiGetVba
436
+ */
437
+ readonly authorization?: string
438
+
439
+ /**
440
+ * You can expand policy in this endpoint. By default, versions will be an empty array.
441
+ * @type {'responses'}
442
+ * @memberof VbasApiGetVba
443
+ */
444
+ readonly expand?: 'responses'
445
+ }
446
+
447
+ /**
448
+ * Request parameters for listVbas operation in VbasApi.
449
+ * @export
450
+ * @interface VbasApiListVbasRequest
451
+ */
452
+ export interface VbasApiListVbasRequest {
453
+ /**
454
+ * Bearer Token: provided by the login endpoint under the name accessToken.
455
+ * @type {string}
456
+ * @memberof VbasApiListVbas
457
+ */
458
+ readonly authorization?: string
459
+
460
+ /**
461
+ * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
462
+ * @type {any}
463
+ * @memberof VbasApiListVbas
464
+ */
465
+ readonly pageSize?: any
466
+
467
+ /**
468
+ * A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
469
+ * @type {any}
470
+ * @memberof VbasApiListVbas
471
+ */
472
+ readonly pageToken?: any
473
+
474
+ /**
475
+ * 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: id, code, leadNumber, policyNumber, policyCode, customerName&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
476
+ * @type {any}
477
+ * @memberof VbasApiListVbas
478
+ */
479
+ readonly filter?: any
480
+
481
+ /**
482
+ * To search the list by any field, pass search&#x3D;xxx to fetch the result.
483
+ * @type {any}
484
+ * @memberof VbasApiListVbas
485
+ */
486
+ readonly search?: any
487
+
488
+ /**
489
+ * Order allowing you to specify the desired order of entities retrieved from the server.&lt;br/&gt; &lt;br/&gt; &lt;i&gt;Allowed values: id, code, expiryDate, createdAt, updatedAt&lt;/i&gt;
490
+ * @type {any}
491
+ * @memberof VbasApiListVbas
492
+ */
493
+ readonly order?: any
494
+
495
+ /**
496
+ * No expanding supported
497
+ * @type {any}
498
+ * @memberof VbasApiListVbas
499
+ */
500
+ readonly expand?: any
501
+
502
+ /**
503
+ * 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.
504
+ * @type {any}
505
+ * @memberof VbasApiListVbas
506
+ */
507
+ readonly filters?: any
508
+ }
509
+
510
+ /**
511
+ * Request parameters for updateVba operation in VbasApi.
512
+ * @export
513
+ * @interface VbasApiUpdateVbaRequest
514
+ */
515
+ export interface VbasApiUpdateVbaRequest {
516
+ /**
517
+ * Unique identifier for the object.
518
+ * @type {string}
519
+ * @memberof VbasApiUpdateVba
520
+ */
521
+ readonly code: string
522
+
523
+ /**
524
+ *
525
+ * @type {UpdateVbaRequestDto}
526
+ * @memberof VbasApiUpdateVba
527
+ */
528
+ readonly updateVbaRequestDto: UpdateVbaRequestDto
529
+
530
+ /**
531
+ * Bearer Token: provided by the login endpoint under the name accessToken.
532
+ * @type {string}
533
+ * @memberof VbasApiUpdateVba
534
+ */
535
+ readonly authorization?: string
536
+ }
537
+
538
+ /**
539
+ * VbasApi - object-oriented interface
540
+ * @export
541
+ * @class VbasApi
542
+ * @extends {BaseAPI}
543
+ */
544
+ export class VbasApi extends BaseAPI {
545
+ /**
546
+ * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready.
547
+ * @summary Create the vba
548
+ * @param {VbasApiCreateVbaRequest} requestParameters Request parameters.
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ * @memberof VbasApi
552
+ */
553
+ public createVba(requestParameters: VbasApiCreateVbaRequest, options?: AxiosRequestConfig) {
554
+ return VbasApiFp(this.configuration).createVba(requestParameters.createVbaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
555
+ }
556
+
557
+ /**
558
+ * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information.
559
+ * @summary Retrieve the vba
560
+ * @param {VbasApiGetVbaRequest} requestParameters Request parameters.
561
+ * @param {*} [options] Override http request option.
562
+ * @throws {RequiredError}
563
+ * @memberof VbasApi
564
+ */
565
+ public getVba(requestParameters: VbasApiGetVbaRequest, options?: AxiosRequestConfig) {
566
+ return VbasApiFp(this.configuration).getVba(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
567
+ }
568
+
569
+ /**
570
+ * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
571
+ * @summary List vbas
572
+ * @param {VbasApiListVbasRequest} requestParameters Request parameters.
573
+ * @param {*} [options] Override http request option.
574
+ * @throws {RequiredError}
575
+ * @memberof VbasApi
576
+ */
577
+ public listVbas(requestParameters: VbasApiListVbasRequest = {}, options?: AxiosRequestConfig) {
578
+ return VbasApiFp(this.configuration).listVbas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
579
+ }
580
+
581
+ /**
582
+ * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
583
+ * @summary Update the vba
584
+ * @param {VbasApiUpdateVbaRequest} requestParameters Request parameters.
585
+ * @param {*} [options] Override http request option.
586
+ * @throws {RequiredError}
587
+ * @memberof VbasApi
588
+ */
589
+ public updateVba(requestParameters: VbasApiUpdateVbaRequest, options?: AxiosRequestConfig) {
590
+ return VbasApiFp(this.configuration).updateVba(requestParameters.code, requestParameters.updateVbaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
591
+ }
592
+ }