@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
@@ -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
@@ -86,30 +86,30 @@ var common_1 = require("../common");
86
86
  // @ts-ignore
87
87
  var base_1 = require("../base");
88
88
  /**
89
- * VbusApi - axios parameter creator
89
+ * PersonalAccountsApi - axios parameter creator
90
90
  * @export
91
91
  */
92
- var VbusApiAxiosParamCreator = function (configuration) {
92
+ var PersonalAccountsApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- * 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\"
97
- * @summary Create the vbu
98
- * @param {CreateVbuRequestDto} createVbuRequestDto
99
- * @param {string} [authorization] Bearer Token
96
+ * 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\"
97
+ * @summary Create the Personal Account
98
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
99
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- createVbu: function (createVbuRequestDto, authorization, options) {
103
+ createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
104
104
  if (options === void 0) { options = {}; }
105
105
  return __awaiter(_this, void 0, void 0, function () {
106
106
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- // verify required parameter 'createVbuRequestDto' is not null or undefined
111
- (0, common_1.assertParamExists)('createVbu', 'createVbuRequestDto', createVbuRequestDto);
112
- localVarPath = "/gdvservice/v1/vbus/create-vbu";
110
+ // verify required parameter 'createPersonalAccountRequestDto' is not null or undefined
111
+ (0, common_1.assertParamExists)('createPersonalAccount', 'createPersonalAccountRequestDto', createPersonalAccountRequestDto);
112
+ localVarPath = "/accountingservice/v1/personal-accounts";
113
113
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
114
  if (configuration) {
115
115
  baseOptions = configuration.baseOptions;
@@ -132,7 +132,7 @@ var VbusApiAxiosParamCreator = function (configuration) {
132
132
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
133
133
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
134
134
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
135
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuRequestDto, localVarRequestOptions, configuration);
135
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPersonalAccountRequestDto, localVarRequestOptions, configuration);
136
136
  return [2 /*return*/, {
137
137
  url: (0, common_1.toPathString)(localVarUrlObj),
138
138
  options: localVarRequestOptions,
@@ -142,29 +142,30 @@ var VbusApiAxiosParamCreator = function (configuration) {
142
142
  });
143
143
  },
144
144
  /**
145
- * 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\"
146
- * @summary Create the vbu
147
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
148
- * @param {string} [authorization] Bearer Token
145
+ * 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\"
146
+ * @summary Delete the Personal Account
147
+ * @param {string} code Unique identifier for the object.
148
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
149
149
  * @param {*} [options] Override http request option.
150
150
  * @throws {RequiredError}
151
151
  */
152
- createVbuv: function (createVbuvRequestDto, authorization, options) {
152
+ deletePersonalAccount: function (code, authorization, options) {
153
153
  if (options === void 0) { options = {}; }
154
154
  return __awaiter(_this, void 0, void 0, function () {
155
155
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
156
156
  return __generator(this, function (_a) {
157
157
  switch (_a.label) {
158
158
  case 0:
159
- // verify required parameter 'createVbuvRequestDto' is not null or undefined
160
- (0, common_1.assertParamExists)('createVbuv', 'createVbuvRequestDto', createVbuvRequestDto);
161
- localVarPath = "/gdvservice/v1/vbus/create-vbuv";
159
+ // verify required parameter 'code' is not null or undefined
160
+ (0, common_1.assertParamExists)('deletePersonalAccount', 'code', code);
161
+ localVarPath = "/accountingservice/v1/personal-accounts/{code}"
162
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
162
163
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
163
164
  if (configuration) {
164
165
  baseOptions = configuration.baseOptions;
165
166
  baseAccessToken = configuration.accessToken;
166
167
  }
167
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
168
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
168
169
  localVarHeaderParameter = {};
169
170
  localVarQueryParameter = {};
170
171
  // authentication bearer required
@@ -177,11 +178,9 @@ var VbusApiAxiosParamCreator = function (configuration) {
177
178
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
178
179
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
179
180
  }
180
- localVarHeaderParameter['Content-Type'] = 'application/json';
181
181
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
182
182
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
183
183
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
184
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVbuvRequestDto, localVarRequestOptions, configuration);
185
184
  return [2 /*return*/, {
186
185
  url: (0, common_1.toPathString)(localVarUrlObj),
187
186
  options: localVarRequestOptions,
@@ -191,15 +190,15 @@ var VbusApiAxiosParamCreator = function (configuration) {
191
190
  });
192
191
  },
193
192
  /**
194
- * 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\"
195
- * @summary Retrieve the vbu
193
+ * 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\"
194
+ * @summary Retrieve the Personal Account
196
195
  * @param {string} code Unique identifier for the object.
197
- * @param {string} [authorization] Bearer Token
198
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
196
+ * @param {string} expand
197
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
199
198
  * @param {*} [options] Override http request option.
200
199
  * @throws {RequiredError}
201
200
  */
202
- getVbu: function (code, authorization, expand, options) {
201
+ getPersonalAccount: function (code, expand, authorization, options) {
203
202
  if (options === void 0) { options = {}; }
204
203
  return __awaiter(_this, void 0, void 0, function () {
205
204
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -207,8 +206,10 @@ var VbusApiAxiosParamCreator = function (configuration) {
207
206
  switch (_a.label) {
208
207
  case 0:
209
208
  // verify required parameter 'code' is not null or undefined
210
- (0, common_1.assertParamExists)('getVbu', 'code', code);
211
- localVarPath = "/gdvservice/v1/vbus/{code}"
209
+ (0, common_1.assertParamExists)('getPersonalAccount', 'code', code);
210
+ // verify required parameter 'expand' is not null or undefined
211
+ (0, common_1.assertParamExists)('getPersonalAccount', 'expand', expand);
212
+ localVarPath = "/accountingservice/v1/personal-accounts/{code}"
212
213
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
213
214
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
214
215
  if (configuration) {
@@ -243,27 +244,27 @@ var VbusApiAxiosParamCreator = function (configuration) {
243
244
  });
244
245
  },
245
246
  /**
246
- * 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\"
247
- * @summary List vbus
248
- * @param {string} [authorization] Bearer Token
247
+ * 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\"
248
+ * @summary List Personal Accounts
249
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
249
250
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
250
251
  * @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.
251
- * @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.
252
+ * @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>
252
253
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
253
- * @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>
254
- * @param {string} [expand] No expanding supported
255
- * @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.
254
+ * @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>
255
+ * @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/>
256
+ * @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>
256
257
  * @param {*} [options] Override http request option.
257
258
  * @throws {RequiredError}
258
259
  */
259
- listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
260
+ listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
260
261
  if (options === void 0) { options = {}; }
261
262
  return __awaiter(_this, void 0, void 0, function () {
262
263
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
263
264
  return __generator(this, function (_a) {
264
265
  switch (_a.label) {
265
266
  case 0:
266
- localVarPath = "/gdvservice/v1/vbus";
267
+ localVarPath = "/accountingservice/v1/personal-accounts";
267
268
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
268
269
  if (configuration) {
269
270
  baseOptions = configuration.baseOptions;
@@ -314,83 +315,30 @@ var VbusApiAxiosParamCreator = function (configuration) {
314
315
  });
315
316
  });
316
317
  },
317
- /**
318
- * 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\"
319
- * @summary Update the vbu
320
- * @param {string} code Unique identifier for the object.
321
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
322
- * @param {string} [authorization] Bearer Token
323
- * @param {*} [options] Override http request option.
324
- * @throws {RequiredError}
325
- */
326
- updateVbu: function (code, updateVbuRequestDto, authorization, options) {
327
- if (options === void 0) { options = {}; }
328
- return __awaiter(_this, void 0, void 0, function () {
329
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
330
- return __generator(this, function (_a) {
331
- switch (_a.label) {
332
- case 0:
333
- // verify required parameter 'code' is not null or undefined
334
- (0, common_1.assertParamExists)('updateVbu', 'code', code);
335
- // verify required parameter 'updateVbuRequestDto' is not null or undefined
336
- (0, common_1.assertParamExists)('updateVbu', 'updateVbuRequestDto', updateVbuRequestDto);
337
- localVarPath = "/gdvservice/v1/vbus/{code}"
338
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
339
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
340
- if (configuration) {
341
- baseOptions = configuration.baseOptions;
342
- baseAccessToken = configuration.accessToken;
343
- }
344
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
345
- localVarHeaderParameter = {};
346
- localVarQueryParameter = {};
347
- // authentication bearer required
348
- // http bearer authentication required
349
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
350
- case 1:
351
- // authentication bearer required
352
- // http bearer authentication required
353
- _a.sent();
354
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
355
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
356
- }
357
- localVarHeaderParameter['Content-Type'] = 'application/json';
358
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
359
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
360
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
361
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVbuRequestDto, localVarRequestOptions, configuration);
362
- return [2 /*return*/, {
363
- url: (0, common_1.toPathString)(localVarUrlObj),
364
- options: localVarRequestOptions,
365
- }];
366
- }
367
- });
368
- });
369
- },
370
318
  };
371
319
  };
372
- exports.VbusApiAxiosParamCreator = VbusApiAxiosParamCreator;
320
+ exports.PersonalAccountsApiAxiosParamCreator = PersonalAccountsApiAxiosParamCreator;
373
321
  /**
374
- * VbusApi - functional programming interface
322
+ * PersonalAccountsApi - functional programming interface
375
323
  * @export
376
324
  */
377
- var VbusApiFp = function (configuration) {
378
- var localVarAxiosParamCreator = (0, exports.VbusApiAxiosParamCreator)(configuration);
325
+ var PersonalAccountsApiFp = function (configuration) {
326
+ var localVarAxiosParamCreator = (0, exports.PersonalAccountsApiAxiosParamCreator)(configuration);
379
327
  return {
380
328
  /**
381
- * 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\"
382
- * @summary Create the vbu
383
- * @param {CreateVbuRequestDto} createVbuRequestDto
384
- * @param {string} [authorization] Bearer Token
329
+ * 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\"
330
+ * @summary Create the Personal Account
331
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
332
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
385
333
  * @param {*} [options] Override http request option.
386
334
  * @throws {RequiredError}
387
335
  */
388
- createVbu: function (createVbuRequestDto, authorization, options) {
336
+ createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
389
337
  return __awaiter(this, void 0, void 0, function () {
390
338
  var localVarAxiosArgs;
391
339
  return __generator(this, function (_a) {
392
340
  switch (_a.label) {
393
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVbu(createVbuRequestDto, authorization, options)];
341
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPersonalAccount(createPersonalAccountRequestDto, authorization, options)];
394
342
  case 1:
395
343
  localVarAxiosArgs = _a.sent();
396
344
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -399,19 +347,19 @@ var VbusApiFp = function (configuration) {
399
347
  });
400
348
  },
401
349
  /**
402
- * 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\"
403
- * @summary Create the vbu
404
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
405
- * @param {string} [authorization] Bearer Token
350
+ * 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\"
351
+ * @summary Delete the Personal Account
352
+ * @param {string} code Unique identifier for the object.
353
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
406
354
  * @param {*} [options] Override http request option.
407
355
  * @throws {RequiredError}
408
356
  */
409
- createVbuv: function (createVbuvRequestDto, authorization, options) {
357
+ deletePersonalAccount: function (code, authorization, options) {
410
358
  return __awaiter(this, void 0, void 0, function () {
411
359
  var localVarAxiosArgs;
412
360
  return __generator(this, function (_a) {
413
361
  switch (_a.label) {
414
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVbuv(createVbuvRequestDto, authorization, options)];
362
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deletePersonalAccount(code, authorization, options)];
415
363
  case 1:
416
364
  localVarAxiosArgs = _a.sent();
417
365
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -420,20 +368,20 @@ var VbusApiFp = function (configuration) {
420
368
  });
421
369
  },
422
370
  /**
423
- * 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\"
424
- * @summary Retrieve the vbu
371
+ * 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\"
372
+ * @summary Retrieve the Personal Account
425
373
  * @param {string} code Unique identifier for the object.
426
- * @param {string} [authorization] Bearer Token
427
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
374
+ * @param {string} expand
375
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
428
376
  * @param {*} [options] Override http request option.
429
377
  * @throws {RequiredError}
430
378
  */
431
- getVbu: function (code, authorization, expand, options) {
379
+ getPersonalAccount: function (code, expand, authorization, options) {
432
380
  return __awaiter(this, void 0, void 0, function () {
433
381
  var localVarAxiosArgs;
434
382
  return __generator(this, function (_a) {
435
383
  switch (_a.label) {
436
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVbu(code, authorization, expand, options)];
384
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getPersonalAccount(code, expand, authorization, options)];
437
385
  case 1:
438
386
  localVarAxiosArgs = _a.sent();
439
387
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -442,47 +390,25 @@ var VbusApiFp = function (configuration) {
442
390
  });
443
391
  },
444
392
  /**
445
- * 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\"
446
- * @summary List vbus
447
- * @param {string} [authorization] Bearer Token
393
+ * 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\"
394
+ * @summary List Personal Accounts
395
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
448
396
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
449
397
  * @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.
450
- * @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.
398
+ * @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>
451
399
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
452
- * @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>
453
- * @param {string} [expand] No expanding supported
454
- * @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.
455
- * @param {*} [options] Override http request option.
456
- * @throws {RequiredError}
457
- */
458
- listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
459
- return __awaiter(this, void 0, void 0, function () {
460
- var localVarAxiosArgs;
461
- return __generator(this, function (_a) {
462
- switch (_a.label) {
463
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
464
- case 1:
465
- localVarAxiosArgs = _a.sent();
466
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
467
- }
468
- });
469
- });
470
- },
471
- /**
472
- * 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\"
473
- * @summary Update the vbu
474
- * @param {string} code Unique identifier for the object.
475
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
476
- * @param {string} [authorization] Bearer Token
400
+ * @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>
401
+ * @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/>
402
+ * @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>
477
403
  * @param {*} [options] Override http request option.
478
404
  * @throws {RequiredError}
479
405
  */
480
- updateVbu: function (code, updateVbuRequestDto, authorization, options) {
406
+ listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
481
407
  return __awaiter(this, void 0, void 0, function () {
482
408
  var localVarAxiosArgs;
483
409
  return __generator(this, function (_a) {
484
410
  switch (_a.label) {
485
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateVbu(code, updateVbuRequestDto, authorization, options)];
411
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
486
412
  case 1:
487
413
  localVarAxiosArgs = _a.sent();
488
414
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -492,152 +418,128 @@ var VbusApiFp = function (configuration) {
492
418
  },
493
419
  };
494
420
  };
495
- exports.VbusApiFp = VbusApiFp;
421
+ exports.PersonalAccountsApiFp = PersonalAccountsApiFp;
496
422
  /**
497
- * VbusApi - factory interface
423
+ * PersonalAccountsApi - factory interface
498
424
  * @export
499
425
  */
500
- var VbusApiFactory = function (configuration, basePath, axios) {
501
- var localVarFp = (0, exports.VbusApiFp)(configuration);
426
+ var PersonalAccountsApiFactory = function (configuration, basePath, axios) {
427
+ var localVarFp = (0, exports.PersonalAccountsApiFp)(configuration);
502
428
  return {
503
429
  /**
504
- * 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\"
505
- * @summary Create the vbu
506
- * @param {CreateVbuRequestDto} createVbuRequestDto
507
- * @param {string} [authorization] Bearer Token
430
+ * 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\"
431
+ * @summary Create the Personal Account
432
+ * @param {CreatePersonalAccountRequestDto} createPersonalAccountRequestDto
433
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
508
434
  * @param {*} [options] Override http request option.
509
435
  * @throws {RequiredError}
510
436
  */
511
- createVbu: function (createVbuRequestDto, authorization, options) {
512
- return localVarFp.createVbu(createVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
437
+ createPersonalAccount: function (createPersonalAccountRequestDto, authorization, options) {
438
+ return localVarFp.createPersonalAccount(createPersonalAccountRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
513
439
  },
514
440
  /**
515
- * 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\"
516
- * @summary Create the vbu
517
- * @param {CreateVbuvRequestDto} createVbuvRequestDto
518
- * @param {string} [authorization] Bearer Token
441
+ * 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\"
442
+ * @summary Delete the Personal Account
443
+ * @param {string} code Unique identifier for the object.
444
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
519
445
  * @param {*} [options] Override http request option.
520
446
  * @throws {RequiredError}
521
447
  */
522
- createVbuv: function (createVbuvRequestDto, authorization, options) {
523
- return localVarFp.createVbuv(createVbuvRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
448
+ deletePersonalAccount: function (code, authorization, options) {
449
+ return localVarFp.deletePersonalAccount(code, authorization, options).then(function (request) { return request(axios, basePath); });
524
450
  },
525
451
  /**
526
- * 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\"
527
- * @summary Retrieve the vbu
452
+ * 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\"
453
+ * @summary Retrieve the Personal Account
528
454
  * @param {string} code Unique identifier for the object.
529
- * @param {string} [authorization] Bearer Token
530
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
455
+ * @param {string} expand
456
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
531
457
  * @param {*} [options] Override http request option.
532
458
  * @throws {RequiredError}
533
459
  */
534
- getVbu: function (code, authorization, expand, options) {
535
- return localVarFp.getVbu(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
460
+ getPersonalAccount: function (code, expand, authorization, options) {
461
+ return localVarFp.getPersonalAccount(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
536
462
  },
537
463
  /**
538
- * 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\"
539
- * @summary List vbus
540
- * @param {string} [authorization] Bearer Token
464
+ * 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\"
465
+ * @summary List Personal Accounts
466
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
541
467
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
542
468
  * @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.
543
- * @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.
469
+ * @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>
544
470
  * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
545
- * @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>
546
- * @param {string} [expand] No expanding supported
547
- * @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.
471
+ * @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>
472
+ * @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/>
473
+ * @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>
548
474
  * @param {*} [options] Override http request option.
549
475
  * @throws {RequiredError}
550
476
  */
551
- listVbus: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
552
- return localVarFp.listVbus(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
553
- },
554
- /**
555
- * 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\"
556
- * @summary Update the vbu
557
- * @param {string} code Unique identifier for the object.
558
- * @param {UpdateVbuRequestDto} updateVbuRequestDto
559
- * @param {string} [authorization] Bearer Token
560
- * @param {*} [options] Override http request option.
561
- * @throws {RequiredError}
562
- */
563
- updateVbu: function (code, updateVbuRequestDto, authorization, options) {
564
- return localVarFp.updateVbu(code, updateVbuRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
477
+ listPersonalAccounts: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
478
+ return localVarFp.listPersonalAccounts(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
565
479
  },
566
480
  };
567
481
  };
568
- exports.VbusApiFactory = VbusApiFactory;
482
+ exports.PersonalAccountsApiFactory = PersonalAccountsApiFactory;
569
483
  /**
570
- * VbusApi - object-oriented interface
484
+ * PersonalAccountsApi - object-oriented interface
571
485
  * @export
572
- * @class VbusApi
486
+ * @class PersonalAccountsApi
573
487
  * @extends {BaseAPI}
574
488
  */
575
- var VbusApi = /** @class */ (function (_super) {
576
- __extends(VbusApi, _super);
577
- function VbusApi() {
489
+ var PersonalAccountsApi = /** @class */ (function (_super) {
490
+ __extends(PersonalAccountsApi, _super);
491
+ function PersonalAccountsApi() {
578
492
  return _super !== null && _super.apply(this, arguments) || this;
579
493
  }
580
494
  /**
581
- * 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\"
582
- * @summary Create the vbu
583
- * @param {VbusApiCreateVbuRequest} requestParameters Request parameters.
495
+ * 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\"
496
+ * @summary Create the Personal Account
497
+ * @param {PersonalAccountsApiCreatePersonalAccountRequest} requestParameters Request parameters.
584
498
  * @param {*} [options] Override http request option.
585
499
  * @throws {RequiredError}
586
- * @memberof VbusApi
500
+ * @memberof PersonalAccountsApi
587
501
  */
588
- VbusApi.prototype.createVbu = function (requestParameters, options) {
502
+ PersonalAccountsApi.prototype.createPersonalAccount = function (requestParameters, options) {
589
503
  var _this = this;
590
- return (0, exports.VbusApiFp)(this.configuration).createVbu(requestParameters.createVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
504
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).createPersonalAccount(requestParameters.createPersonalAccountRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
591
505
  };
592
506
  /**
593
- * 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\"
594
- * @summary Create the vbu
595
- * @param {VbusApiCreateVbuvRequest} requestParameters Request parameters.
507
+ * 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\"
508
+ * @summary Delete the Personal Account
509
+ * @param {PersonalAccountsApiDeletePersonalAccountRequest} requestParameters Request parameters.
596
510
  * @param {*} [options] Override http request option.
597
511
  * @throws {RequiredError}
598
- * @memberof VbusApi
512
+ * @memberof PersonalAccountsApi
599
513
  */
600
- VbusApi.prototype.createVbuv = function (requestParameters, options) {
514
+ PersonalAccountsApi.prototype.deletePersonalAccount = function (requestParameters, options) {
601
515
  var _this = this;
602
- return (0, exports.VbusApiFp)(this.configuration).createVbuv(requestParameters.createVbuvRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
516
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).deletePersonalAccount(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
603
517
  };
604
518
  /**
605
- * 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\"
606
- * @summary Retrieve the vbu
607
- * @param {VbusApiGetVbuRequest} requestParameters Request parameters.
519
+ * 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\"
520
+ * @summary Retrieve the Personal Account
521
+ * @param {PersonalAccountsApiGetPersonalAccountRequest} requestParameters Request parameters.
608
522
  * @param {*} [options] Override http request option.
609
523
  * @throws {RequiredError}
610
- * @memberof VbusApi
524
+ * @memberof PersonalAccountsApi
611
525
  */
612
- VbusApi.prototype.getVbu = function (requestParameters, options) {
526
+ PersonalAccountsApi.prototype.getPersonalAccount = function (requestParameters, options) {
613
527
  var _this = this;
614
- return (0, exports.VbusApiFp)(this.configuration).getVbu(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
528
+ return (0, exports.PersonalAccountsApiFp)(this.configuration).getPersonalAccount(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
615
529
  };
616
530
  /**
617
- * 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\"
618
- * @summary List vbus
619
- * @param {VbusApiListVbusRequest} requestParameters Request parameters.
531
+ * 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\"
532
+ * @summary List Personal Accounts
533
+ * @param {PersonalAccountsApiListPersonalAccountsRequest} requestParameters Request parameters.
620
534
  * @param {*} [options] Override http request option.
621
535
  * @throws {RequiredError}
622
- * @memberof VbusApi
536
+ * @memberof PersonalAccountsApi
623
537
  */
624
- VbusApi.prototype.listVbus = function (requestParameters, options) {
538
+ PersonalAccountsApi.prototype.listPersonalAccounts = function (requestParameters, options) {
625
539
  var _this = this;
626
540
  if (requestParameters === void 0) { requestParameters = {}; }
627
- 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); });
628
- };
629
- /**
630
- * 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\"
631
- * @summary Update the vbu
632
- * @param {VbusApiUpdateVbuRequest} requestParameters Request parameters.
633
- * @param {*} [options] Override http request option.
634
- * @throws {RequiredError}
635
- * @memberof VbusApi
636
- */
637
- VbusApi.prototype.updateVbu = function (requestParameters, options) {
638
- var _this = this;
639
- return (0, exports.VbusApiFp)(this.configuration).updateVbu(requestParameters.code, requestParameters.updateVbuRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
541
+ 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); });
640
542
  };
641
- return VbusApi;
543
+ return PersonalAccountsApi;
642
544
  }(base_1.BaseAPI));
643
- exports.VbusApi = VbusApi;
545
+ exports.PersonalAccountsApi = PersonalAccountsApi;