@emilgroup/accounting-sdk-node 1.19.0 → 1.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (259) hide show
  1. package/.openapi-generator/FILES +29 -52
  2. package/README.md +2 -2
  3. package/api/{zip-codes-api.ts → booking-entries-api.ts} +195 -162
  4. package/api/financial-accounts-api.ts +577 -0
  5. package/api/financial-transactions-api.ts +369 -0
  6. package/api/health-api.ts +7 -7
  7. package/api/number-ranges-api.ts +577 -0
  8. package/api/personal-accounts-api.ts +577 -0
  9. package/api.ts +12 -14
  10. package/base.ts +2 -2
  11. package/common.ts +4 -4
  12. package/configuration.ts +2 -2
  13. package/dist/api/{zip-codes-api.d.ts → booking-entries-api.d.ts} +130 -111
  14. package/dist/api/{zip-codes-api.js → booking-entries-api.js} +144 -130
  15. package/dist/api/financial-accounts-api.d.ts +327 -0
  16. package/dist/api/{users-api.js → financial-accounts-api.js} +171 -134
  17. package/dist/api/financial-transactions-api.d.ts +215 -0
  18. package/dist/api/financial-transactions-api.js +364 -0
  19. package/dist/api/health-api.d.ts +6 -6
  20. package/dist/api/health-api.js +7 -7
  21. package/dist/api/number-ranges-api.d.ts +327 -0
  22. package/dist/api/{vbas-api.js → number-ranges-api.js} +156 -161
  23. package/dist/api/personal-accounts-api.d.ts +327 -0
  24. package/dist/api/{vbus-api.js → personal-accounts-api.js} +136 -234
  25. package/dist/api.d.ts +7 -8
  26. package/dist/api.js +7 -8
  27. package/dist/base.d.ts +2 -2
  28. package/dist/base.js +2 -2
  29. package/dist/common.d.ts +4 -4
  30. package/dist/common.js +2 -2
  31. package/dist/configuration.d.ts +2 -2
  32. package/dist/configuration.js +2 -2
  33. package/dist/index.d.ts +2 -2
  34. package/dist/index.js +2 -2
  35. package/dist/models/booking-entry-class.d.ts +123 -0
  36. package/dist/models/{create-vbuv-request-dto.js → booking-entry-class.js} +15 -6
  37. package/dist/models/create-booking-entry-request-dto.d.ts +61 -0
  38. package/dist/models/{address-class.js → create-booking-entry-request-dto.js} +2 -2
  39. package/dist/models/create-booking-entry-response-class.d.ts +25 -0
  40. package/dist/models/{create-user-response-class.js → create-booking-entry-response-class.js} +2 -2
  41. package/dist/models/create-financial-account-request-dto.d.ts +75 -0
  42. package/dist/models/create-financial-account-request-dto.js +24 -0
  43. package/dist/models/create-financial-account-response-class.d.ts +25 -0
  44. package/dist/models/{create-mailbox-request-dto.js → create-financial-account-response-class.js} +2 -2
  45. package/dist/models/create-number-range-request-dto.d.ts +53 -0
  46. package/dist/models/create-number-range-request-dto.js +26 -0
  47. package/dist/models/create-number-range-response-class.d.ts +25 -0
  48. package/dist/models/{create-vba-response-class.js → create-number-range-response-class.js} +2 -2
  49. package/dist/models/create-personal-account-request-dto.d.ts +60 -0
  50. package/dist/models/{create-vba-request-dto.js → create-personal-account-request-dto.js} +7 -6
  51. package/dist/models/create-personal-account-response-class.d.ts +25 -0
  52. package/dist/models/create-personal-account-response-class.js +15 -0
  53. package/dist/models/financial-account-class.d.ts +111 -0
  54. package/dist/models/{create-vbu-request-dto.js → financial-account-class.js} +10 -6
  55. package/dist/models/financial-transaction-class.d.ts +114 -0
  56. package/dist/models/financial-transaction-class.js +15 -0
  57. package/dist/models/financial-transaction-data-dto.d.ts +71 -0
  58. package/dist/models/financial-transaction-data-dto.js +25 -0
  59. package/dist/models/get-booking-entry-response-class.d.ts +25 -0
  60. package/dist/models/get-booking-entry-response-class.js +15 -0
  61. package/dist/models/get-financial-account-response-class.d.ts +25 -0
  62. package/dist/models/get-financial-account-response-class.js +15 -0
  63. package/dist/models/get-financial-transaction-response-class.d.ts +25 -0
  64. package/dist/models/get-financial-transaction-response-class.js +15 -0
  65. package/dist/models/get-number-range-response-class.d.ts +25 -0
  66. package/dist/models/get-number-range-response-class.js +15 -0
  67. package/dist/models/get-personal-account-response-class.d.ts +25 -0
  68. package/dist/models/get-personal-account-response-class.js +15 -0
  69. package/dist/models/index.d.ts +24 -46
  70. package/dist/models/index.js +24 -46
  71. package/dist/models/inline-response200.d.ts +2 -2
  72. package/dist/models/inline-response200.js +2 -2
  73. package/dist/models/inline-response503.d.ts +2 -2
  74. package/dist/models/inline-response503.js +2 -2
  75. package/dist/models/list-booking-entries-response-class.d.ts +31 -0
  76. package/dist/models/list-booking-entries-response-class.js +15 -0
  77. package/dist/models/list-financial-accounts-response-class.d.ts +31 -0
  78. package/dist/models/list-financial-accounts-response-class.js +15 -0
  79. package/dist/models/list-financial-transactions-response-class.d.ts +31 -0
  80. package/dist/models/list-financial-transactions-response-class.js +15 -0
  81. package/dist/models/list-number-range-response-class.d.ts +31 -0
  82. package/dist/models/list-number-range-response-class.js +15 -0
  83. package/dist/models/list-personal-accounts-response-class.d.ts +31 -0
  84. package/dist/models/list-personal-accounts-response-class.js +15 -0
  85. package/dist/models/number-range-class.d.ts +84 -0
  86. package/dist/models/number-range-class.js +15 -0
  87. package/dist/models/personal-account-class.d.ts +105 -0
  88. package/dist/models/{create-user-request-dto.js → personal-account-class.js} +10 -10
  89. package/index.ts +2 -2
  90. package/models/booking-entry-class.ts +132 -0
  91. package/models/create-booking-entry-request-dto.ts +67 -0
  92. package/models/create-booking-entry-response-class.ts +31 -0
  93. package/models/create-financial-account-request-dto.ts +84 -0
  94. package/models/create-financial-account-response-class.ts +31 -0
  95. package/models/create-number-range-request-dto.ts +62 -0
  96. package/models/create-number-range-response-class.ts +31 -0
  97. package/models/create-personal-account-request-dto.ts +69 -0
  98. package/models/create-personal-account-response-class.ts +31 -0
  99. package/models/financial-account-class.ts +120 -0
  100. package/models/financial-transaction-class.ts +120 -0
  101. package/models/financial-transaction-data-dto.ts +81 -0
  102. package/models/get-booking-entry-response-class.ts +31 -0
  103. package/models/get-financial-account-response-class.ts +31 -0
  104. package/models/get-financial-transaction-response-class.ts +31 -0
  105. package/models/get-number-range-response-class.ts +31 -0
  106. package/models/get-personal-account-response-class.ts +31 -0
  107. package/models/index.ts +24 -46
  108. package/models/inline-response200.ts +2 -2
  109. package/models/inline-response503.ts +2 -2
  110. package/models/list-booking-entries-response-class.ts +37 -0
  111. package/models/list-financial-accounts-response-class.ts +37 -0
  112. package/models/list-financial-transactions-response-class.ts +37 -0
  113. package/models/list-number-range-response-class.ts +37 -0
  114. package/models/list-personal-accounts-response-class.ts +37 -0
  115. package/models/number-range-class.ts +90 -0
  116. package/models/personal-account-class.ts +114 -0
  117. package/package.json +1 -1
  118. package/api/mailbox-api.ts +0 -255
  119. package/api/messages-api.ts +0 -1100
  120. package/api/users-api.ts +0 -496
  121. package/api/vbas-api.ts +0 -592
  122. package/api/vbus-api.ts +0 -701
  123. package/dist/api/mailbox-api.d.ts +0 -142
  124. package/dist/api/mailbox-api.js +0 -315
  125. package/dist/api/messages-api.d.ts +0 -632
  126. package/dist/api/messages-api.js +0 -916
  127. package/dist/api/users-api.d.ts +0 -275
  128. package/dist/api/vbas-api.d.ts +0 -337
  129. package/dist/api/vbus-api.d.ts +0 -395
  130. package/dist/models/address-class.d.ts +0 -48
  131. package/dist/models/create-mailbox-request-dto.d.ts +0 -36
  132. package/dist/models/create-user-request-dto.d.ts +0 -76
  133. package/dist/models/create-user-response-class.d.ts +0 -25
  134. package/dist/models/create-vba-request-dto.d.ts +0 -41
  135. package/dist/models/create-vba-response-class.d.ts +0 -24
  136. package/dist/models/create-vbu-request-dto.d.ts +0 -41
  137. package/dist/models/create-vbu-response-class.d.ts +0 -24
  138. package/dist/models/create-vbu-response-class.js +0 -15
  139. package/dist/models/create-vbuv-request-dto.d.ts +0 -41
  140. package/dist/models/create-vbuv-response-class.d.ts +0 -24
  141. package/dist/models/create-vbuv-response-class.js +0 -15
  142. package/dist/models/get-request-message-response-class.d.ts +0 -25
  143. package/dist/models/get-request-message-response-class.js +0 -15
  144. package/dist/models/get-response-message-response-class.d.ts +0 -25
  145. package/dist/models/get-response-message-response-class.js +0 -15
  146. package/dist/models/get-user-response-class.d.ts +0 -25
  147. package/dist/models/get-user-response-class.js +0 -15
  148. package/dist/models/get-vba-response-class.d.ts +0 -25
  149. package/dist/models/get-vba-response-class.js +0 -15
  150. package/dist/models/get-vbu-response-class.d.ts +0 -25
  151. package/dist/models/get-vbu-response-class.js +0 -15
  152. package/dist/models/get-zip-code-response-class.d.ts +0 -25
  153. package/dist/models/get-zip-code-response-class.js +0 -15
  154. package/dist/models/list-all-messages-response-class.d.ts +0 -31
  155. package/dist/models/list-all-messages-response-class.js +0 -15
  156. package/dist/models/list-requests-messages-response-class.d.ts +0 -31
  157. package/dist/models/list-requests-messages-response-class.js +0 -15
  158. package/dist/models/list-responses-messages-response-class.d.ts +0 -31
  159. package/dist/models/list-responses-messages-response-class.js +0 -15
  160. package/dist/models/list-users-response-class.d.ts +0 -31
  161. package/dist/models/list-users-response-class.js +0 -15
  162. package/dist/models/list-vbas-response-class.d.ts +0 -31
  163. package/dist/models/list-vbas-response-class.js +0 -15
  164. package/dist/models/list-vbus-response-class.d.ts +0 -31
  165. package/dist/models/list-vbus-response-class.js +0 -15
  166. package/dist/models/list-zip-codes-response-class.d.ts +0 -31
  167. package/dist/models/list-zip-codes-response-class.js +0 -15
  168. package/dist/models/message-class.d.ts +0 -90
  169. package/dist/models/message-class.js +0 -15
  170. package/dist/models/request-details-class.d.ts +0 -48
  171. package/dist/models/request-details-class.js +0 -15
  172. package/dist/models/request-message-class.d.ts +0 -127
  173. package/dist/models/request-message-class.js +0 -15
  174. package/dist/models/response-details-class.d.ts +0 -42
  175. package/dist/models/response-details-class.js +0 -15
  176. package/dist/models/response-message-class.d.ts +0 -139
  177. package/dist/models/response-message-class.js +0 -15
  178. package/dist/models/store-zip-codes-request-dto.d.ts +0 -25
  179. package/dist/models/store-zip-codes-request-dto.js +0 -15
  180. package/dist/models/store-zip-codes-response-class.d.ts +0 -25
  181. package/dist/models/store-zip-codes-response-class.js +0 -15
  182. package/dist/models/update-request-message-request-dto.d.ts +0 -36
  183. package/dist/models/update-request-message-request-dto.js +0 -15
  184. package/dist/models/update-request-message-response-class.d.ts +0 -25
  185. package/dist/models/update-request-message-response-class.js +0 -15
  186. package/dist/models/update-response-message-request-dto.d.ts +0 -36
  187. package/dist/models/update-response-message-request-dto.js +0 -15
  188. package/dist/models/update-response-message-response-class.d.ts +0 -25
  189. package/dist/models/update-response-message-response-class.js +0 -15
  190. package/dist/models/update-user-request-dto.d.ts +0 -82
  191. package/dist/models/update-user-request-dto.js +0 -24
  192. package/dist/models/update-user-response-class.d.ts +0 -25
  193. package/dist/models/update-user-response-class.js +0 -15
  194. package/dist/models/update-vba-request-dto.d.ts +0 -30
  195. package/dist/models/update-vba-request-dto.js +0 -15
  196. package/dist/models/update-vbu-request-dto.d.ts +0 -30
  197. package/dist/models/update-vbu-request-dto.js +0 -15
  198. package/dist/models/update-vbu-response-class.d.ts +0 -25
  199. package/dist/models/update-vbu-response-class.js +0 -15
  200. package/dist/models/user-class.d.ts +0 -107
  201. package/dist/models/user-class.js +0 -20
  202. package/dist/models/vba-class.d.ts +0 -116
  203. package/dist/models/vba-class.js +0 -15
  204. package/dist/models/vba-response-class.d.ts +0 -48
  205. package/dist/models/vba-response-class.js +0 -15
  206. package/dist/models/vbu-class.d.ts +0 -115
  207. package/dist/models/vbu-class.js +0 -15
  208. package/dist/models/vbu-response-class.d.ts +0 -48
  209. package/dist/models/vbu-response-class.js +0 -15
  210. package/dist/models/xlsx-zip-code-dto.d.ts +0 -30
  211. package/dist/models/xlsx-zip-code-dto.js +0 -15
  212. package/dist/models/zip-code-class.d.ts +0 -60
  213. package/dist/models/zip-code-class.js +0 -15
  214. package/models/address-class.ts +0 -54
  215. package/models/create-mailbox-request-dto.ts +0 -42
  216. package/models/create-user-request-dto.ts +0 -86
  217. package/models/create-user-response-class.ts +0 -31
  218. package/models/create-vba-request-dto.ts +0 -50
  219. package/models/create-vba-response-class.ts +0 -30
  220. package/models/create-vbu-request-dto.ts +0 -50
  221. package/models/create-vbu-response-class.ts +0 -30
  222. package/models/create-vbuv-request-dto.ts +0 -50
  223. package/models/create-vbuv-response-class.ts +0 -30
  224. package/models/get-request-message-response-class.ts +0 -31
  225. package/models/get-response-message-response-class.ts +0 -31
  226. package/models/get-user-response-class.ts +0 -31
  227. package/models/get-vba-response-class.ts +0 -31
  228. package/models/get-vbu-response-class.ts +0 -31
  229. package/models/get-zip-code-response-class.ts +0 -31
  230. package/models/list-all-messages-response-class.ts +0 -37
  231. package/models/list-requests-messages-response-class.ts +0 -37
  232. package/models/list-responses-messages-response-class.ts +0 -37
  233. package/models/list-users-response-class.ts +0 -37
  234. package/models/list-vbas-response-class.ts +0 -37
  235. package/models/list-vbus-response-class.ts +0 -37
  236. package/models/list-zip-codes-response-class.ts +0 -37
  237. package/models/message-class.ts +0 -96
  238. package/models/request-details-class.ts +0 -54
  239. package/models/request-message-class.ts +0 -133
  240. package/models/response-details-class.ts +0 -48
  241. package/models/response-message-class.ts +0 -145
  242. package/models/store-zip-codes-request-dto.ts +0 -31
  243. package/models/store-zip-codes-response-class.ts +0 -31
  244. package/models/update-request-message-request-dto.ts +0 -42
  245. package/models/update-request-message-response-class.ts +0 -31
  246. package/models/update-response-message-request-dto.ts +0 -42
  247. package/models/update-response-message-response-class.ts +0 -31
  248. package/models/update-user-request-dto.ts +0 -92
  249. package/models/update-user-response-class.ts +0 -31
  250. package/models/update-vba-request-dto.ts +0 -36
  251. package/models/update-vbu-request-dto.ts +0 -36
  252. package/models/update-vbu-response-class.ts +0 -31
  253. package/models/user-class.ts +0 -116
  254. package/models/vba-class.ts +0 -122
  255. package/models/vba-response-class.ts +0 -54
  256. package/models/vbu-class.ts +0 -121
  257. package/models/vbu-response-class.ts +0 -54
  258. package/models/xlsx-zip-code-dto.ts +0 -36
  259. package/models/zip-code-class.ts +0 -66
@@ -2,8 +2,8 @@
2
2
  /* tslint:disable */
3
3
  /* eslint-disable */
4
4
  /**
5
- * EMIL GdvService
6
- * The EMIL GdvService API description
5
+ * EMIL AccountingService
6
+ * The EMIL AccountingService API description
7
7
  *
8
8
  * The version of the OpenAPI document: 1.0
9
9
  * Contact: kontakt@emil.de
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.VbusApi = exports.VbusApiFactory = exports.VbusApiFp = exports.VbusApiAxiosParamCreator = void 0;
81
+ exports.PersonalAccountsApi = exports.PersonalAccountsApiFactory = exports.PersonalAccountsApiFp = exports.PersonalAccountsApiAxiosParamCreator = void 0;
82
82
  var axios_1 = __importDefault(require("axios"));
83
83
  // Some imports not used depending on template conditions
84
84
  // @ts-ignore
@@ -90,30 +90,30 @@ var base_1 = require("../base");
90
90
  var url_1 = require("url");
91
91
  var FormData = require('form-data');
92
92
  /**
93
- * VbusApi - axios parameter creator
93
+ * PersonalAccountsApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var VbusApiAxiosParamCreator = function (configuration) {
96
+ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * 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\"
101
- * @summary Create the vbu
102
- * @param {CreateVbuRequestDto} createVbuRequestDto
103
- * @param {string} [authorization] Bearer Token
100
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
101
+ * @summary Create the Personal Account
102
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
103
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
104
104
  * @param {*} [options] Override http request option.
105
105
  * @throws {RequiredError}
106
106
  */
107
- createVbu: function (createVbuRequestDto, authorization, options) {
107
+ createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
110
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
114
- // verify required parameter 'createVbuRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createVbu', 'createVbuRequestDto', createVbuRequestDto);
116
- localVarPath = "/gdvservice/v1/vbus/create-vbu";
114
+ // verify required parameter 'createPersonalAccountRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createPersonalAccount', 'createPersonalAccountRequestDto', createPersonalAccountRequestDto);
116
+ localVarPath = "/accountingservice/v1/personal-accounts";
117
117
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
118
118
  if (configuration) {
119
119
  baseOptions = configuration.baseOptions;
@@ -136,7 +136,7 @@ var VbusApiAxiosParamCreator = function (configuration) {
136
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
137
137
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
138
138
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
139
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuRequestDto, localVarRequestOptions, configuration);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPersonalAccountRequestDto, localVarRequestOptions, configuration);
140
140
  return [2 /*return*/, {
141
141
  url: (0, common_1.toPathString)(localVarUrlObj),
142
142
  options: localVarRequestOptions,
@@ -146,29 +146,30 @@ var VbusApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * 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\"
150
- * @summary Create the vbu
151
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
152
- * @param {string} [authorization] Bearer Token
149
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
150
+ * @summary Delete the Personal Account
151
+ * @param {string} code Unique identifier for the object.
152
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
153
  * @param {*} [options] Override http request option.
154
154
  * @throws {RequiredError}
155
155
  */
156
- createVbuv: function (createVbuvRequestDto, authorization, options) {
156
+ deletePersonalAccount: function (code, authorization, options) {
157
157
  if (options === void 0) { options = {}; }
158
158
  return __awaiter(_this, void 0, void 0, function () {
159
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
160
160
  return __generator(this, function (_a) {
161
161
  switch (_a.label) {
162
162
  case 0:
163
- // verify required parameter 'createVbuvRequestDto' is not null or undefined
164
- (0, common_1.assertParamExists)('createVbuv', 'createVbuvRequestDto', createVbuvRequestDto);
165
- localVarPath = "/gdvservice/v1/vbus/create-vbuv";
163
+ // verify required parameter 'code' is not null or undefined
164
+ (0, common_1.assertParamExists)('deletePersonalAccount', 'code', code);
165
+ localVarPath = "/accountingservice/v1/personal-accounts/{code}"
166
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
166
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
167
168
  if (configuration) {
168
169
  baseOptions = configuration.baseOptions;
169
170
  baseAccessToken = configuration.accessToken;
170
171
  }
171
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
172
173
  localVarHeaderParameter = {};
173
174
  localVarQueryParameter = {};
174
175
  // authentication bearer required
@@ -181,11 +182,9 @@ var VbusApiAxiosParamCreator = function (configuration) {
181
182
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
183
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
183
184
  }
184
- localVarHeaderParameter['Content-Type'] = 'application/json';
185
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
187
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
188
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuvRequestDto, localVarRequestOptions, configuration);
189
188
  return [2 /*return*/, {
190
189
  url: (0, common_1.toPathString)(localVarUrlObj),
191
190
  options: localVarRequestOptions,
@@ -195,15 +194,15 @@ var VbusApiAxiosParamCreator = function (configuration) {
195
194
  });
196
195
  },
197
196
  /**
198
- * 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\"
199
- * @summary Retrieve the vbu
197
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
198
+ * @summary Retrieve the Personal Account
200
199
  * @param {string} code Unique identifier for the object.
201
- * @param {string} [authorization] Bearer Token
202
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
200
+ * @param {string} expand
201
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
203
202
  * @param {*} [options] Override http request option.
204
203
  * @throws {RequiredError}
205
204
  */
206
- getVbu: function (code, authorization, expand, options) {
205
+ getPersonalAccount: function (code, expand, authorization, options) {
207
206
  if (options === void 0) { options = {}; }
208
207
  return __awaiter(_this, void 0, void 0, function () {
209
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -211,8 +210,10 @@ var VbusApiAxiosParamCreator = function (configuration) {
211
210
  switch (_a.label) {
212
211
  case 0:
213
212
  // verify required parameter 'code' is not null or undefined
214
- (0, common_1.assertParamExists)('getVbu', 'code', code);
215
- localVarPath = "/gdvservice/v1/vbus/{code}"
213
+ (0, common_1.assertParamExists)('getPersonalAccount', 'code', code);
214
+ // verify required parameter 'expand' is not null or undefined
215
+ (0, common_1.assertParamExists)('getPersonalAccount', 'expand', expand);
216
+ localVarPath = "/accountingservice/v1/personal-accounts/{code}"
216
217
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
217
218
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
218
219
  if (configuration) {
@@ -247,27 +248,27 @@ var VbusApiAxiosParamCreator = function (configuration) {
247
248
  });
248
249
  },
249
250
  /**
250
- * 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\"
251
- * @summary List vbus
252
- * @param {string} [authorization] Bearer Token
251
+ * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
252
+ * @summary List Personal Accounts
253
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
253
254
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
254
255
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
255
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName, status, transmissionStart, createdAt</i> <br/> <i>policyCode</i> is required, other filters are optional.
256
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
256
257
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
257
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, transmissionStart, createdAt, updatedAt, status</i>
258
- * @param {string} [expand] No expanding supported
259
- * @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.
258
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, personalAccountNumber</i>
259
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
260
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
260
261
  * @param {*} [options] Override http request option.
261
262
  * @throws {RequiredError}
262
263
  */
263
- listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
264
+ listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
264
265
  if (options === void 0) { options = {}; }
265
266
  return __awaiter(_this, void 0, void 0, function () {
266
267
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
268
  return __generator(this, function (_a) {
268
269
  switch (_a.label) {
269
270
  case 0:
270
- localVarPath = "/gdvservice/v1/vbus";
271
+ localVarPath = "/accountingservice/v1/personal-accounts";
271
272
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
272
273
  if (configuration) {
273
274
  baseOptions = configuration.baseOptions;
@@ -318,83 +319,30 @@ var VbusApiAxiosParamCreator = function (configuration) {
318
319
  });
319
320
  });
320
321
  },
321
- /**
322
- * 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\"
323
- * @summary Update the vbu
324
- * @param {string} code Unique identifier for the object.
325
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
326
- * @param {string} [authorization] Bearer Token
327
- * @param {*} [options] Override http request option.
328
- * @throws {RequiredError}
329
- */
330
- updateVbu: function (code, updateVbuRequestDto, authorization, options) {
331
- if (options === void 0) { options = {}; }
332
- return __awaiter(_this, void 0, void 0, function () {
333
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
334
- return __generator(this, function (_a) {
335
- switch (_a.label) {
336
- case 0:
337
- // verify required parameter 'code' is not null or undefined
338
- (0, common_1.assertParamExists)('updateVbu', 'code', code);
339
- // verify required parameter 'updateVbuRequestDto' is not null or undefined
340
- (0, common_1.assertParamExists)('updateVbu', 'updateVbuRequestDto', updateVbuRequestDto);
341
- localVarPath = "/gdvservice/v1/vbus/{code}"
342
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
343
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
344
- if (configuration) {
345
- baseOptions = configuration.baseOptions;
346
- baseAccessToken = configuration.accessToken;
347
- }
348
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
349
- localVarHeaderParameter = {};
350
- localVarQueryParameter = {};
351
- // authentication bearer required
352
- // http bearer authentication required
353
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
354
- case 1:
355
- // authentication bearer required
356
- // http bearer authentication required
357
- _a.sent();
358
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
359
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
360
- }
361
- localVarHeaderParameter['Content-Type'] = 'application/json';
362
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
363
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
364
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
365
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVbuRequestDto, localVarRequestOptions, configuration);
366
- return [2 /*return*/, {
367
- url: (0, common_1.toPathString)(localVarUrlObj),
368
- options: localVarRequestOptions,
369
- }];
370
- }
371
- });
372
- });
373
- },
374
322
  };
375
323
  };
376
- exports.VbusApiAxiosParamCreator = VbusApiAxiosParamCreator;
324
+ exports.PersonalAccountsApiAxiosParamCreator = PersonalAccountsApiAxiosParamCreator;
377
325
  /**
378
- * VbusApi - functional programming interface
326
+ * PersonalAccountsApi - functional programming interface
379
327
  * @export
380
328
  */
381
- var VbusApiFp = function (configuration) {
382
- var localVarAxiosParamCreator = (0, exports.VbusApiAxiosParamCreator)(configuration);
329
+ var PersonalAccountsApiFp = function (configuration) {
330
+ var localVarAxiosParamCreator = (0, exports.PersonalAccountsApiAxiosParamCreator)(configuration);
383
331
  return {
384
332
  /**
385
- * 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\"
386
- * @summary Create the vbu
387
- * @param {CreateVbuRequestDto} createVbuRequestDto
388
- * @param {string} [authorization] Bearer Token
333
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
334
+ * @summary Create the Personal Account
335
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
336
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
389
337
  * @param {*} [options] Override http request option.
390
338
  * @throws {RequiredError}
391
339
  */
392
- createVbu: function (createVbuRequestDto, authorization, options) {
340
+ createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
393
341
  return __awaiter(this, void 0, void 0, function () {
394
342
  var localVarAxiosArgs;
395
343
  return __generator(this, function (_a) {
396
344
  switch (_a.label) {
397
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVbu(createVbuRequestDto, authorization, options)];
345
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPersonalAccount(createPersonalAccountRequestDto, authorization, options)];
398
346
  case 1:
399
347
  localVarAxiosArgs = _a.sent();
400
348
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -403,19 +351,19 @@ var VbusApiFp = function (configuration) {
403
351
  });
404
352
  },
405
353
  /**
406
- * 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\"
407
- * @summary Create the vbu
408
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
409
- * @param {string} [authorization] Bearer Token
354
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
355
+ * @summary Delete the Personal Account
356
+ * @param {string} code Unique identifier for the object.
357
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
410
358
  * @param {*} [options] Override http request option.
411
359
  * @throws {RequiredError}
412
360
  */
413
- createVbuv: function (createVbuvRequestDto, authorization, options) {
361
+ deletePersonalAccount: function (code, authorization, options) {
414
362
  return __awaiter(this, void 0, void 0, function () {
415
363
  var localVarAxiosArgs;
416
364
  return __generator(this, function (_a) {
417
365
  switch (_a.label) {
418
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVbuv(createVbuvRequestDto, authorization, options)];
366
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePersonalAccount(code, authorization, options)];
419
367
  case 1:
420
368
  localVarAxiosArgs = _a.sent();
421
369
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -424,20 +372,20 @@ var VbusApiFp = function (configuration) {
424
372
  });
425
373
  },
426
374
  /**
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
375
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
376
+ * @summary Retrieve the Personal Account
429
377
  * @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.
378
+ * @param {string} expand
379
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
432
380
  * @param {*} [options] Override http request option.
433
381
  * @throws {RequiredError}
434
382
  */
435
- getVbu: function (code, authorization, expand, options) {
383
+ getPersonalAccount: function (code, expand, authorization, options) {
436
384
  return __awaiter(this, void 0, void 0, function () {
437
385
  var localVarAxiosArgs;
438
386
  return __generator(this, function (_a) {
439
387
  switch (_a.label) {
440
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVbu(code, authorization, expand, options)];
388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPersonalAccount(code, expand, authorization, options)];
441
389
  case 1:
442
390
  localVarAxiosArgs = _a.sent();
443
391
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -446,47 +394,25 @@ var VbusApiFp = function (configuration) {
446
394
  });
447
395
  },
448
396
  /**
449
- * 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\"
450
- * @summary List vbus
451
- * @param {string} [authorization] Bearer Token
397
+ * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
398
+ * @summary List Personal Accounts
399
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
452
400
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
453
401
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
454
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName, status, transmissionStart, createdAt</i> <br/> <i>policyCode</i> is required, other filters are optional.
402
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
455
403
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
456
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, transmissionStart, createdAt, updatedAt, status</i>
457
- * @param {string} [expand] No expanding supported
458
- * @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.
459
- * @param {*} [options] Override http request option.
460
- * @throws {RequiredError}
461
- */
462
- listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
463
- return __awaiter(this, void 0, void 0, function () {
464
- var localVarAxiosArgs;
465
- return __generator(this, function (_a) {
466
- switch (_a.label) {
467
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
468
- case 1:
469
- localVarAxiosArgs = _a.sent();
470
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
471
- }
472
- });
473
- });
474
- },
475
- /**
476
- * 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\"
477
- * @summary Update the vbu
478
- * @param {string} code Unique identifier for the object.
479
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
480
- * @param {string} [authorization] Bearer Token
404
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, personalAccountNumber</i>
405
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
406
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
481
407
  * @param {*} [options] Override http request option.
482
408
  * @throws {RequiredError}
483
409
  */
484
- updateVbu: function (code, updateVbuRequestDto, authorization, options) {
410
+ listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
485
411
  return __awaiter(this, void 0, void 0, function () {
486
412
  var localVarAxiosArgs;
487
413
  return __generator(this, function (_a) {
488
414
  switch (_a.label) {
489
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateVbu(code, updateVbuRequestDto, authorization, options)];
415
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
490
416
  case 1:
491
417
  localVarAxiosArgs = _a.sent();
492
418
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -496,152 +422,128 @@ var VbusApiFp = function (configuration) {
496
422
  },
497
423
  };
498
424
  };
499
- exports.VbusApiFp = VbusApiFp;
425
+ exports.PersonalAccountsApiFp = PersonalAccountsApiFp;
500
426
  /**
501
- * VbusApi - factory interface
427
+ * PersonalAccountsApi - factory interface
502
428
  * @export
503
429
  */
504
- var VbusApiFactory = function (configuration, basePath, axios) {
505
- var localVarFp = (0, exports.VbusApiFp)(configuration);
430
+ var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
431
+ var localVarFp = (0, exports.PersonalAccountsApiFp)(configuration);
506
432
  return {
507
433
  /**
508
- * 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\"
509
- * @summary Create the vbu
510
- * @param {CreateVbuRequestDto} createVbuRequestDto
511
- * @param {string} [authorization] Bearer Token
434
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
435
+ * @summary Create the Personal Account
436
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
437
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
512
438
  * @param {*} [options] Override http request option.
513
439
  * @throws {RequiredError}
514
440
  */
515
- createVbu: function (createVbuRequestDto, authorization, options) {
516
- return localVarFp.createVbu(createVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
441
+ createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
442
+ return localVarFp.createPersonalAccount(createPersonalAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
517
443
  },
518
444
  /**
519
- * 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\"
520
- * @summary Create the vbu
521
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
522
- * @param {string} [authorization] Bearer Token
445
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
446
+ * @summary Delete the Personal Account
447
+ * @param {string} code Unique identifier for the object.
448
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
523
449
  * @param {*} [options] Override http request option.
524
450
  * @throws {RequiredError}
525
451
  */
526
- createVbuv: function (createVbuvRequestDto, authorization, options) {
527
- return localVarFp.createVbuv(createVbuvRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
452
+ deletePersonalAccount: function (code, authorization, options) {
453
+ return localVarFp.deletePersonalAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
528
454
  },
529
455
  /**
530
- * 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\"
531
- * @summary Retrieve the vbu
456
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
457
+ * @summary Retrieve the Personal Account
532
458
  * @param {string} code Unique identifier for the object.
533
- * @param {string} [authorization] Bearer Token
534
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
459
+ * @param {string} expand
460
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
535
461
  * @param {*} [options] Override http request option.
536
462
  * @throws {RequiredError}
537
463
  */
538
- getVbu: function (code, authorization, expand, options) {
539
- return localVarFp.getVbu(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
464
+ getPersonalAccount: function (code, expand, authorization, options) {
465
+ return localVarFp.getPersonalAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
540
466
  },
541
467
  /**
542
- * 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\"
543
- * @summary List vbus
544
- * @param {string} [authorization] Bearer Token
468
+ * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
469
+ * @summary List Personal Accounts
470
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
545
471
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
546
472
  * @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=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
547
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadNumber, policyNumber, leadCode, policyCode, customerName, status, transmissionStart, createdAt</i> <br/> <i>policyCode</i> is required, other filters are optional.
473
+ * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
548
474
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
549
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, transmissionStart, createdAt, updatedAt, status</i>
550
- * @param {string} [expand] No expanding supported
551
- * @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.
475
+ * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, name, personalAccountNumber</i>
476
+ * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
477
+ * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, name, financialAccountNumber, personalAccountNumber, createdAt, partnerNumber, type</i>
552
478
  * @param {*} [options] Override http request option.
553
479
  * @throws {RequiredError}
554
480
  */
555
- listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
556
- return localVarFp.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
557
- },
558
- /**
559
- * 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\"
560
- * @summary Update the vbu
561
- * @param {string} code Unique identifier for the object.
562
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
563
- * @param {string} [authorization] Bearer Token
564
- * @param {*} [options] Override http request option.
565
- * @throws {RequiredError}
566
- */
567
- updateVbu: function (code, updateVbuRequestDto, authorization, options) {
568
- return localVarFp.updateVbu(code, updateVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
481
+ listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
482
+ return localVarFp.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
569
483
  },
570
484
  };
571
485
  };
572
- exports.VbusApiFactory = VbusApiFactory;
486
+ exports.PersonalAccountsApiFactory = PersonalAccountsApiFactory;
573
487
  /**
574
- * VbusApi - object-oriented interface
488
+ * PersonalAccountsApi - object-oriented interface
575
489
  * @export
576
- * @class VbusApi
490
+ * @class PersonalAccountsApi
577
491
  * @extends {BaseAPI}
578
492
  */
579
- var VbusApi = /** @class */ (function (_super) {
580
- __extends(VbusApi, _super);
581
- function VbusApi() {
493
+ var PersonalAccountsApi = /** @class */ (function (_super) {
494
+ __extends(PersonalAccountsApi, _super);
495
+ function PersonalAccountsApi() {
582
496
  return _super !== null && _super.apply(this, arguments) || this;
583
497
  }
584
498
  /**
585
- * 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\"
586
- * @summary Create the vbu
587
- * @param {VbusApiCreateVbuRequest} requestParameters Request parameters.
499
+ * This will create an personal account in the database. The personal account will be created with the provided name, type, and account number. personal account should be created with a financial account number. **Required Permissions** \"accounting-management.accounts.create\"
500
+ * @summary Create the Personal Account
501
+ * @param {PersonalAccountsApiCreatePersonalAccountRequest} requestParameters Request parameters.
588
502
  * @param {*} [options] Override http request option.
589
503
  * @throws {RequiredError}
590
- * @memberof VbusApi
504
+ * @memberof PersonalAccountsApi
591
505
  */
592
- VbusApi.prototype.createVbu = function (requestParameters, options) {
506
+ PersonalAccountsApi.prototype.createPersonalAccount = function (requestParameters, options) {
593
507
  var _this = this;
594
- return (0, exports.VbusApiFp)(this.configuration).createVbu(requestParameters.createVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
508
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
595
509
  };
596
510
  /**
597
- * 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\"
598
- * @summary Create the vbu
599
- * @param {VbusApiCreateVbuvRequest} requestParameters Request parameters.
511
+ * Permanently deletes the Personal Account. Supply the unique code that was returned when you created the Personal Account and this will delete it. **Required Permissions** \"accounting-management.accounts.delete\"
512
+ * @summary Delete the Personal Account
513
+ * @param {PersonalAccountsApiDeletePersonalAccountRequest} requestParameters Request parameters.
600
514
  * @param {*} [options] Override http request option.
601
515
  * @throws {RequiredError}
602
- * @memberof VbusApi
516
+ * @memberof PersonalAccountsApi
603
517
  */
604
- VbusApi.prototype.createVbuv = function (requestParameters, options) {
518
+ PersonalAccountsApi.prototype.deletePersonalAccount = function (requestParameters, options) {
605
519
  var _this = this;
606
- return (0, exports.VbusApiFp)(this.configuration).createVbuv(requestParameters.createVbuvRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
520
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
607
521
  };
608
522
  /**
609
- * 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\"
610
- * @summary Retrieve the vbu
611
- * @param {VbusApiGetVbuRequest} requestParameters Request parameters.
523
+ * Retrieves the details of the Personal Account that was previously created. Supply the unique Personal Account code that was returned when you created it and Emil Api will return the corresponding Personal Account information. **Required Permissions** \"accounting-management.accounts.view\"
524
+ * @summary Retrieve the Personal Account
525
+ * @param {PersonalAccountsApiGetPersonalAccountRequest} requestParameters Request parameters.
612
526
  * @param {*} [options] Override http request option.
613
527
  * @throws {RequiredError}
614
- * @memberof VbusApi
528
+ * @memberof PersonalAccountsApi
615
529
  */
616
- VbusApi.prototype.getVbu = function (requestParameters, options) {
530
+ PersonalAccountsApi.prototype.getPersonalAccount = function (requestParameters, options) {
617
531
  var _this = this;
618
- return (0, exports.VbusApiFp)(this.configuration).getVbu(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
532
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
619
533
  };
620
534
  /**
621
- * 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\"
622
- * @summary List vbus
623
- * @param {VbusApiListVbusRequest} requestParameters Request parameters.
535
+ * Returns a list of Personal Accounts you have previously created. The Personal Accounts are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"accounting-management.accounts.view\"
536
+ * @summary List Personal Accounts
537
+ * @param {PersonalAccountsApiListPersonalAccountsRequest} requestParameters Request parameters.
624
538
  * @param {*} [options] Override http request option.
625
539
  * @throws {RequiredError}
626
- * @memberof VbusApi
540
+ * @memberof PersonalAccountsApi
627
541
  */
628
- VbusApi.prototype.listVbus = function (requestParameters, options) {
542
+ PersonalAccountsApi.prototype.listPersonalAccounts = function (requestParameters, options) {
629
543
  var _this = this;
630
544
  if (requestParameters === void 0) { requestParameters = {}; }
631
- return (0, exports.VbusApiFp)(this.configuration).listVbus(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
- };
633
- /**
634
- * 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\"
635
- * @summary Update the vbu
636
- * @param {VbusApiUpdateVbuRequest} requestParameters Request parameters.
637
- * @param {*} [options] Override http request option.
638
- * @throws {RequiredError}
639
- * @memberof VbusApi
640
- */
641
- VbusApi.prototype.updateVbu = function (requestParameters, options) {
642
- var _this = this;
643
- return (0, exports.VbusApiFp)(this.configuration).updateVbu(requestParameters.code, requestParameters.updateVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
545
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).listPersonalAccounts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
644
546
  };
645
- return VbusApi;
547
+ return PersonalAccountsApi;
646
548
  }(base_1.BaseAPI));
647
- exports.VbusApi = VbusApi;
549
+ exports.PersonalAccountsApi = PersonalAccountsApi;