@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
package/api/vbus-api.ts DELETED
@@ -1,697 +0,0 @@
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 { CreateVbuRequestDto } from '../models';
25
- // @ts-ignore
26
- import { CreateVbuResponseClass } from '../models';
27
- // @ts-ignore
28
- import { CreateVbuvRequestDto } from '../models';
29
- // @ts-ignore
30
- import { CreateVbuvResponseClass } from '../models';
31
- // @ts-ignore
32
- import { GetVbuResponseClass } from '../models';
33
- // @ts-ignore
34
- import { ListVbusResponseClass } from '../models';
35
- // @ts-ignore
36
- import { UpdateVbuRequestDto } from '../models';
37
- // @ts-ignore
38
- import { UpdateVbuResponseClass } from '../models';
39
- /**
40
- * VbusApi - axios parameter creator
41
- * @export
42
- */
43
- export const VbusApiAxiosParamCreator = function (configuration?: Configuration) {
44
- return {
45
- /**
46
- * This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
47
- * @summary Create the vbu
48
- * @param {CreateVbuRequestDto} createVbuRequestDto
49
- * @param {string} [authorization] Bearer Token
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- createVbu: async (createVbuRequestDto: CreateVbuRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
54
- // verify required parameter 'createVbuRequestDto' is not null or undefined
55
- assertParamExists('createVbu', 'createVbuRequestDto', createVbuRequestDto)
56
- const localVarPath = `/gdvservice/v1/vbus/create-vbu`;
57
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
58
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
59
- let baseOptions;
60
- let baseAccessToken;
61
- if (configuration) {
62
- baseOptions = configuration.baseOptions;
63
- baseAccessToken = configuration.accessToken;
64
- }
65
-
66
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
67
- const localVarHeaderParameter = {} as any;
68
- const localVarQueryParameter = {} as any;
69
-
70
- // authentication bearer required
71
- // http bearer authentication required
72
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
73
-
74
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
75
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
76
- }
77
-
78
-
79
-
80
- localVarHeaderParameter['Content-Type'] = 'application/json';
81
-
82
- setSearchParams(localVarUrlObj, localVarQueryParameter);
83
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
84
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
85
- localVarRequestOptions.data = serializeDataIfNeeded(createVbuRequestDto, localVarRequestOptions, configuration)
86
-
87
- return {
88
- url: toPathString(localVarUrlObj),
89
- options: localVarRequestOptions,
90
- };
91
- },
92
- /**
93
- * This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
94
- * @summary Create the vbu
95
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
96
- * @param {string} [authorization] Bearer Token
97
- * @param {*} [options] Override http request option.
98
- * @throws {RequiredError}
99
- */
100
- createVbuv: async (createVbuvRequestDto: CreateVbuvRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
- // verify required parameter 'createVbuvRequestDto' is not null or undefined
102
- assertParamExists('createVbuv', 'createVbuvRequestDto', createVbuvRequestDto)
103
- const localVarPath = `/gdvservice/v1/vbus/create-vbuv`;
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: 'POST', ...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 (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
122
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
123
- }
124
-
125
-
126
-
127
- localVarHeaderParameter['Content-Type'] = 'application/json';
128
-
129
- setSearchParams(localVarUrlObj, localVarQueryParameter);
130
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
131
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
132
- localVarRequestOptions.data = serializeDataIfNeeded(createVbuvRequestDto, localVarRequestOptions, configuration)
133
-
134
- return {
135
- url: toPathString(localVarUrlObj),
136
- options: localVarRequestOptions,
137
- };
138
- },
139
- /**
140
- * Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information. **Required Permissions** \"gdv-management.operations.view\"
141
- * @summary Retrieve the vbu
142
- * @param {string} code Unique identifier for the object.
143
- * @param {string} [authorization] Bearer Token
144
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
145
- * @param {*} [options] Override http request option.
146
- * @throws {RequiredError}
147
- */
148
- getVbu: async (code: string, authorization?: string, expand?: 'responses', options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
149
- // verify required parameter 'code' is not null or undefined
150
- assertParamExists('getVbu', 'code', code)
151
- const localVarPath = `/gdvservice/v1/vbus/{code}`
152
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
153
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
154
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
155
- let baseOptions;
156
- let baseAccessToken;
157
- if (configuration) {
158
- baseOptions = configuration.baseOptions;
159
- baseAccessToken = configuration.accessToken;
160
- }
161
-
162
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
163
- const localVarHeaderParameter = {} as any;
164
- const localVarQueryParameter = {} as any;
165
-
166
- // authentication bearer required
167
- // http bearer authentication required
168
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
169
-
170
- if (expand !== undefined) {
171
- localVarQueryParameter['expand'] = expand;
172
- }
173
-
174
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
175
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
176
- }
177
-
178
-
179
-
180
- setSearchParams(localVarUrlObj, localVarQueryParameter);
181
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
-
184
- return {
185
- url: toPathString(localVarUrlObj),
186
- options: localVarRequestOptions,
187
- };
188
- },
189
- /**
190
- * Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
191
- * @summary List vbus
192
- * @param {string} [authorization] Bearer Token
193
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
194
- * @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.
195
- * @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: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName, status, transmissionStart, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
196
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
197
- * @param {string} [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, transmissionStart, createdAt, updatedAt, status&lt;/i&gt;
198
- * @param {string} [expand] No expanding supported
199
- * @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.
200
- * @param {*} [options] Override http request option.
201
- * @throws {RequiredError}
202
- */
203
- listVbus: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
204
- const localVarPath = `/gdvservice/v1/vbus`;
205
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
- let baseOptions;
208
- let baseAccessToken;
209
- if (configuration) {
210
- baseOptions = configuration.baseOptions;
211
- baseAccessToken = configuration.accessToken;
212
- }
213
-
214
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
215
- const localVarHeaderParameter = {} as any;
216
- const localVarQueryParameter = {} as any;
217
-
218
- // authentication bearer required
219
- // http bearer authentication required
220
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
-
222
- if (pageSize !== undefined) {
223
- localVarQueryParameter['pageSize'] = pageSize;
224
- }
225
-
226
- if (pageToken !== undefined) {
227
- localVarQueryParameter['pageToken'] = pageToken;
228
- }
229
-
230
- if (filter !== undefined) {
231
- localVarQueryParameter['filter'] = filter;
232
- }
233
-
234
- if (search !== undefined) {
235
- localVarQueryParameter['search'] = search;
236
- }
237
-
238
- if (order !== undefined) {
239
- localVarQueryParameter['order'] = order;
240
- }
241
-
242
- if (expand !== undefined) {
243
- localVarQueryParameter['expand'] = expand;
244
- }
245
-
246
- if (filters !== undefined) {
247
- localVarQueryParameter['filters'] = filters;
248
- }
249
-
250
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
251
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
252
- }
253
-
254
-
255
-
256
- setSearchParams(localVarUrlObj, localVarQueryParameter);
257
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
258
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
259
-
260
- return {
261
- url: toPathString(localVarUrlObj),
262
- options: localVarRequestOptions,
263
- };
264
- },
265
- /**
266
- * Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
267
- * @summary Update the vbu
268
- * @param {string} code Unique identifier for the object.
269
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
270
- * @param {string} [authorization] Bearer Token
271
- * @param {*} [options] Override http request option.
272
- * @throws {RequiredError}
273
- */
274
- updateVbu: async (code: string, updateVbuRequestDto: UpdateVbuRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
275
- // verify required parameter 'code' is not null or undefined
276
- assertParamExists('updateVbu', 'code', code)
277
- // verify required parameter 'updateVbuRequestDto' is not null or undefined
278
- assertParamExists('updateVbu', 'updateVbuRequestDto', updateVbuRequestDto)
279
- const localVarPath = `/gdvservice/v1/vbus/{code}`
280
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
281
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
282
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
283
- let baseOptions;
284
- let baseAccessToken;
285
- if (configuration) {
286
- baseOptions = configuration.baseOptions;
287
- baseAccessToken = configuration.accessToken;
288
- }
289
-
290
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
291
- const localVarHeaderParameter = {} as any;
292
- const localVarQueryParameter = {} as any;
293
-
294
- // authentication bearer required
295
- // http bearer authentication required
296
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
297
-
298
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
299
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
300
- }
301
-
302
-
303
-
304
- localVarHeaderParameter['Content-Type'] = 'application/json';
305
-
306
- setSearchParams(localVarUrlObj, localVarQueryParameter);
307
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
308
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
309
- localVarRequestOptions.data = serializeDataIfNeeded(updateVbuRequestDto, localVarRequestOptions, configuration)
310
-
311
- return {
312
- url: toPathString(localVarUrlObj),
313
- options: localVarRequestOptions,
314
- };
315
- },
316
- }
317
- };
318
-
319
- /**
320
- * VbusApi - functional programming interface
321
- * @export
322
- */
323
- export const VbusApiFp = function(configuration?: Configuration) {
324
- const localVarAxiosParamCreator = VbusApiAxiosParamCreator(configuration)
325
- return {
326
- /**
327
- * This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
328
- * @summary Create the vbu
329
- * @param {CreateVbuRequestDto} createVbuRequestDto
330
- * @param {string} [authorization] Bearer Token
331
- * @param {*} [options] Override http request option.
332
- * @throws {RequiredError}
333
- */
334
- async createVbu(createVbuRequestDto: CreateVbuRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateVbuResponseClass>> {
335
- const localVarAxiosArgs = await localVarAxiosParamCreator.createVbu(createVbuRequestDto, authorization, options);
336
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
- },
338
- /**
339
- * This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
340
- * @summary Create the vbu
341
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
342
- * @param {string} [authorization] Bearer Token
343
- * @param {*} [options] Override http request option.
344
- * @throws {RequiredError}
345
- */
346
- async createVbuv(createVbuvRequestDto: CreateVbuvRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateVbuvResponseClass>> {
347
- const localVarAxiosArgs = await localVarAxiosParamCreator.createVbuv(createVbuvRequestDto, authorization, options);
348
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
349
- },
350
- /**
351
- * Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information. **Required Permissions** \"gdv-management.operations.view\"
352
- * @summary Retrieve the vbu
353
- * @param {string} code Unique identifier for the object.
354
- * @param {string} [authorization] Bearer Token
355
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
356
- * @param {*} [options] Override http request option.
357
- * @throws {RequiredError}
358
- */
359
- async getVbu(code: string, authorization?: string, expand?: 'responses', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetVbuResponseClass>> {
360
- const localVarAxiosArgs = await localVarAxiosParamCreator.getVbu(code, authorization, expand, options);
361
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
362
- },
363
- /**
364
- * Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
365
- * @summary List vbus
366
- * @param {string} [authorization] Bearer Token
367
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
368
- * @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.
369
- * @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: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName, status, transmissionStart, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
370
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
371
- * @param {string} [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, transmissionStart, createdAt, updatedAt, status&lt;/i&gt;
372
- * @param {string} [expand] No expanding supported
373
- * @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.
374
- * @param {*} [options] Override http request option.
375
- * @throws {RequiredError}
376
- */
377
- async listVbus(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListVbusResponseClass>> {
378
- const localVarAxiosArgs = await localVarAxiosParamCreator.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
379
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
380
- },
381
- /**
382
- * Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
383
- * @summary Update the vbu
384
- * @param {string} code Unique identifier for the object.
385
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
386
- * @param {string} [authorization] Bearer Token
387
- * @param {*} [options] Override http request option.
388
- * @throws {RequiredError}
389
- */
390
- async updateVbu(code: string, updateVbuRequestDto: UpdateVbuRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateVbuResponseClass>> {
391
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateVbu(code, updateVbuRequestDto, authorization, options);
392
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
393
- },
394
- }
395
- };
396
-
397
- /**
398
- * VbusApi - factory interface
399
- * @export
400
- */
401
- export const VbusApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
402
- const localVarFp = VbusApiFp(configuration)
403
- return {
404
- /**
405
- * This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
406
- * @summary Create the vbu
407
- * @param {CreateVbuRequestDto} createVbuRequestDto
408
- * @param {string} [authorization] Bearer Token
409
- * @param {*} [options] Override http request option.
410
- * @throws {RequiredError}
411
- */
412
- createVbu(createVbuRequestDto: CreateVbuRequestDto, authorization?: string, options?: any): AxiosPromise<CreateVbuResponseClass> {
413
- return localVarFp.createVbu(createVbuRequestDto, authorization, options).then((request) => request(axios, basePath));
414
- },
415
- /**
416
- * This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
417
- * @summary Create the vbu
418
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
419
- * @param {string} [authorization] Bearer Token
420
- * @param {*} [options] Override http request option.
421
- * @throws {RequiredError}
422
- */
423
- createVbuv(createVbuvRequestDto: CreateVbuvRequestDto, authorization?: string, options?: any): AxiosPromise<CreateVbuvResponseClass> {
424
- return localVarFp.createVbuv(createVbuvRequestDto, authorization, options).then((request) => request(axios, basePath));
425
- },
426
- /**
427
- * Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information. **Required Permissions** \"gdv-management.operations.view\"
428
- * @summary Retrieve the vbu
429
- * @param {string} code Unique identifier for the object.
430
- * @param {string} [authorization] Bearer Token
431
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
432
- * @param {*} [options] Override http request option.
433
- * @throws {RequiredError}
434
- */
435
- getVbu(code: string, authorization?: string, expand?: 'responses', options?: any): AxiosPromise<GetVbuResponseClass> {
436
- return localVarFp.getVbu(code, authorization, expand, options).then((request) => request(axios, basePath));
437
- },
438
- /**
439
- * Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
440
- * @summary List vbus
441
- * @param {string} [authorization] Bearer Token
442
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
443
- * @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.
444
- * @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: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName, status, transmissionStart, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
445
- * @param {string} [search] To search the list by any field, pass search&#x3D;xxx to fetch the result.
446
- * @param {string} [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, transmissionStart, createdAt, updatedAt, status&lt;/i&gt;
447
- * @param {string} [expand] No expanding supported
448
- * @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.
449
- * @param {*} [options] Override http request option.
450
- * @throws {RequiredError}
451
- */
452
- listVbus(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListVbusResponseClass> {
453
- return localVarFp.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
454
- },
455
- /**
456
- * Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
457
- * @summary Update the vbu
458
- * @param {string} code Unique identifier for the object.
459
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
460
- * @param {string} [authorization] Bearer Token
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- */
464
- updateVbu(code: string, updateVbuRequestDto: UpdateVbuRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateVbuResponseClass> {
465
- return localVarFp.updateVbu(code, updateVbuRequestDto, authorization, options).then((request) => request(axios, basePath));
466
- },
467
- };
468
- };
469
-
470
- /**
471
- * Request parameters for createVbu operation in VbusApi.
472
- * @export
473
- * @interface VbusApiCreateVbuRequest
474
- */
475
- export interface VbusApiCreateVbuRequest {
476
- /**
477
- *
478
- * @type {CreateVbuRequestDto}
479
- * @memberof VbusApiCreateVbu
480
- */
481
- readonly createVbuRequestDto: CreateVbuRequestDto
482
-
483
- /**
484
- * Bearer Token
485
- * @type {string}
486
- * @memberof VbusApiCreateVbu
487
- */
488
- readonly authorization?: string
489
- }
490
-
491
- /**
492
- * Request parameters for createVbuv operation in VbusApi.
493
- * @export
494
- * @interface VbusApiCreateVbuvRequest
495
- */
496
- export interface VbusApiCreateVbuvRequest {
497
- /**
498
- *
499
- * @type {CreateVbuvRequestDto}
500
- * @memberof VbusApiCreateVbuv
501
- */
502
- readonly createVbuvRequestDto: CreateVbuvRequestDto
503
-
504
- /**
505
- * Bearer Token
506
- * @type {string}
507
- * @memberof VbusApiCreateVbuv
508
- */
509
- readonly authorization?: string
510
- }
511
-
512
- /**
513
- * Request parameters for getVbu operation in VbusApi.
514
- * @export
515
- * @interface VbusApiGetVbuRequest
516
- */
517
- export interface VbusApiGetVbuRequest {
518
- /**
519
- * Unique identifier for the object.
520
- * @type {string}
521
- * @memberof VbusApiGetVbu
522
- */
523
- readonly code: string
524
-
525
- /**
526
- * Bearer Token
527
- * @type {string}
528
- * @memberof VbusApiGetVbu
529
- */
530
- readonly authorization?: string
531
-
532
- /**
533
- * You can expand policy in this endpoint. By default, versions will be an empty array.
534
- * @type {'responses'}
535
- * @memberof VbusApiGetVbu
536
- */
537
- readonly expand?: 'responses'
538
- }
539
-
540
- /**
541
- * Request parameters for listVbus operation in VbusApi.
542
- * @export
543
- * @interface VbusApiListVbusRequest
544
- */
545
- export interface VbusApiListVbusRequest {
546
- /**
547
- * Bearer Token
548
- * @type {string}
549
- * @memberof VbusApiListVbus
550
- */
551
- readonly authorization?: string
552
-
553
- /**
554
- * A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
555
- * @type {number}
556
- * @memberof VbusApiListVbus
557
- */
558
- readonly pageSize?: number
559
-
560
- /**
561
- * 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.
562
- * @type {string}
563
- * @memberof VbusApiListVbus
564
- */
565
- readonly pageToken?: string
566
-
567
- /**
568
- * 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, leadCode, policyCode, customerName, status, transmissionStart, createdAt&lt;/i&gt; &lt;br/&gt; &lt;i&gt;policyCode&lt;/i&gt; is required, other filters are optional.
569
- * @type {string}
570
- * @memberof VbusApiListVbus
571
- */
572
- readonly filter?: string
573
-
574
- /**
575
- * To search the list by any field, pass search&#x3D;xxx to fetch the result.
576
- * @type {string}
577
- * @memberof VbusApiListVbus
578
- */
579
- readonly search?: string
580
-
581
- /**
582
- * 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, transmissionStart, createdAt, updatedAt, status&lt;/i&gt;
583
- * @type {string}
584
- * @memberof VbusApiListVbus
585
- */
586
- readonly order?: string
587
-
588
- /**
589
- * No expanding supported
590
- * @type {string}
591
- * @memberof VbusApiListVbus
592
- */
593
- readonly expand?: string
594
-
595
- /**
596
- * 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.
597
- * @type {string}
598
- * @memberof VbusApiListVbus
599
- */
600
- readonly filters?: string
601
- }
602
-
603
- /**
604
- * Request parameters for updateVbu operation in VbusApi.
605
- * @export
606
- * @interface VbusApiUpdateVbuRequest
607
- */
608
- export interface VbusApiUpdateVbuRequest {
609
- /**
610
- * Unique identifier for the object.
611
- * @type {string}
612
- * @memberof VbusApiUpdateVbu
613
- */
614
- readonly code: string
615
-
616
- /**
617
- *
618
- * @type {UpdateVbuRequestDto}
619
- * @memberof VbusApiUpdateVbu
620
- */
621
- readonly updateVbuRequestDto: UpdateVbuRequestDto
622
-
623
- /**
624
- * Bearer Token
625
- * @type {string}
626
- * @memberof VbusApiUpdateVbu
627
- */
628
- readonly authorization?: string
629
- }
630
-
631
- /**
632
- * VbusApi - object-oriented interface
633
- * @export
634
- * @class VbusApi
635
- * @extends {BaseAPI}
636
- */
637
- export class VbusApi extends BaseAPI {
638
- /**
639
- * This endpoint will create a vbu message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
640
- * @summary Create the vbu
641
- * @param {VbusApiCreateVbuRequest} requestParameters Request parameters.
642
- * @param {*} [options] Override http request option.
643
- * @throws {RequiredError}
644
- * @memberof VbusApi
645
- */
646
- public createVbu(requestParameters: VbusApiCreateVbuRequest, options?: AxiosRequestConfig) {
647
- return VbusApiFp(this.configuration).createVbu(requestParameters.createVbuRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
648
- }
649
-
650
- /**
651
- * This endpoint will create a vbuv message. The call is asynchronous and will return a code to retrieve the vbu when it is ready. **Required Permissions** \"gdv-management.operations.create\"
652
- * @summary Create the vbu
653
- * @param {VbusApiCreateVbuvRequest} requestParameters Request parameters.
654
- * @param {*} [options] Override http request option.
655
- * @throws {RequiredError}
656
- * @memberof VbusApi
657
- */
658
- public createVbuv(requestParameters: VbusApiCreateVbuvRequest, options?: AxiosRequestConfig) {
659
- return VbusApiFp(this.configuration).createVbuv(requestParameters.createVbuvRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
660
- }
661
-
662
- /**
663
- * Retrieves the details of the vbu that was previously created. Supply the unique vbu code that was returned when you created it and Emil Api will return the corresponding vbu information. **Required Permissions** \"gdv-management.operations.view\"
664
- * @summary Retrieve the vbu
665
- * @param {VbusApiGetVbuRequest} requestParameters Request parameters.
666
- * @param {*} [options] Override http request option.
667
- * @throws {RequiredError}
668
- * @memberof VbusApi
669
- */
670
- public getVbu(requestParameters: VbusApiGetVbuRequest, options?: AxiosRequestConfig) {
671
- return VbusApiFp(this.configuration).getVbu(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
672
- }
673
-
674
- /**
675
- * Returns a list of vbus you have previously created. The vbus are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
676
- * @summary List vbus
677
- * @param {VbusApiListVbusRequest} requestParameters Request parameters.
678
- * @param {*} [options] Override http request option.
679
- * @throws {RequiredError}
680
- * @memberof VbusApi
681
- */
682
- public listVbus(requestParameters: VbusApiListVbusRequest = {}, options?: AxiosRequestConfig) {
683
- return VbusApiFp(this.configuration).listVbus(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
684
- }
685
-
686
- /**
687
- * Updates the specified vbu by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
688
- * @summary Update the vbu
689
- * @param {VbusApiUpdateVbuRequest} requestParameters Request parameters.
690
- * @param {*} [options] Override http request option.
691
- * @throws {RequiredError}
692
- * @memberof VbusApi
693
- */
694
- public updateVbu(requestParameters: VbusApiUpdateVbuRequest, options?: AxiosRequestConfig) {
695
- return VbusApiFp(this.configuration).updateVbu(requestParameters.code, requestParameters.updateVbuRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
696
- }
697
- }