@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.VbasApi = exports.VbasApiFactory = exports.VbasApiFp = exports.VbasApiAxiosParamCreator = void 0;
81
+ exports.NumberRangesApi = exports.NumberRangesApiFactory = exports.NumberRangesApiFp = exports.NumberRangesApiAxiosParamCreator = 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
- * VbasApi - axios parameter creator
93
+ * NumberRangesApi - axios parameter creator
94
94
  * @export
95
95
  */
96
- var VbasApiAxiosParamCreator = function (configuration) {
96
+ var NumberRangesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
101
- * @summary Create the vba
102
- * @param {CreateVbaRequestDto} createVbaRequestDto
100
+ * This will create an number range in the database. The number range will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
101
+ * @summary Create the Number Range
102
+ * @param {CreateNumberRangeRequestDto} createNumberRangeRequestDto
103
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
- createVba: function (createVbaRequestDto, authorization, options) {
107
+ createNumberRange: function (createNumberRangeRequestDto, 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 'createVbaRequestDto' is not null or undefined
115
- (0, common_1.assertParamExists)('createVba', 'createVbaRequestDto', createVbaRequestDto);
116
- localVarPath = "/gdvservice/v1/vbas";
114
+ // verify required parameter 'createNumberRangeRequestDto' is not null or undefined
115
+ (0, common_1.assertParamExists)('createNumberRange', 'createNumberRangeRequestDto', createNumberRangeRequestDto);
116
+ localVarPath = "/accountingservice/v1/number-ranges";
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 VbasApiAxiosParamCreator = 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)(createVbaRequestDto, localVarRequestOptions, configuration);
139
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createNumberRangeRequestDto, localVarRequestOptions, configuration);
140
140
  return [2 /*return*/, {
141
141
  url: (0, common_1.toPathString)(localVarUrlObj),
142
142
  options: localVarRequestOptions,
@@ -146,15 +146,14 @@ var VbasApiAxiosParamCreator = function (configuration) {
146
146
  });
147
147
  },
148
148
  /**
149
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
150
- * @summary Retrieve the vba
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
151
  * @param {string} code Unique identifier for the object.
152
152
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
154
153
  * @param {*} [options] Override http request option.
155
154
  * @throws {RequiredError}
156
155
  */
157
- getVba: function (code, authorization, expand, options) {
156
+ deleteNumberRange: function (code, authorization, options) {
158
157
  if (options === void 0) { options = {}; }
159
158
  return __awaiter(_this, void 0, void 0, function () {
160
159
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -162,15 +161,15 @@ var VbasApiAxiosParamCreator = function (configuration) {
162
161
  switch (_a.label) {
163
162
  case 0:
164
163
  // verify required parameter 'code' is not null or undefined
165
- (0, common_1.assertParamExists)('getVba', 'code', code);
166
- localVarPath = "/gdvservice/v1/vbas/{code}"
164
+ (0, common_1.assertParamExists)('deleteNumberRange', 'code', code);
165
+ localVarPath = "/accountingservice/v1/number-ranges/{code}"
167
166
  .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
168
167
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
169
168
  if (configuration) {
170
169
  baseOptions = configuration.baseOptions;
171
170
  baseAccessToken = configuration.accessToken;
172
171
  }
173
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
172
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
174
173
  localVarHeaderParameter = {};
175
174
  localVarQueryParameter = {};
176
175
  // authentication bearer required
@@ -180,9 +179,6 @@ var VbasApiAxiosParamCreator = function (configuration) {
180
179
  // authentication bearer required
181
180
  // http bearer authentication required
182
181
  _a.sent();
183
- if (expand !== undefined) {
184
- localVarQueryParameter['expand'] = expand;
185
- }
186
182
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
183
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
184
  }
@@ -198,27 +194,27 @@ var VbasApiAxiosParamCreator = function (configuration) {
198
194
  });
199
195
  },
200
196
  /**
201
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
202
- * @summary List vbas
197
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
198
+ * @summary Retrieve the Financial Account
199
+ * @param {string} code Unique identifier for the object.
200
+ * @param {string} expand
203
201
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
204
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
205
- * @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.
206
- * @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, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt</i> <br/> <i>policyCode</i> is required, other filters are optional.
207
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
208
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, expiryDate, createdAt, updatedAt, status</i>
209
- * @param {string} [expand] No expanding supported
210
- * @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.
211
202
  * @param {*} [options] Override http request option.
212
203
  * @throws {RequiredError}
213
204
  */
214
- listVbas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
205
+ getNumberRange: function (code, expand, authorization, options) {
215
206
  if (options === void 0) { options = {}; }
216
207
  return __awaiter(_this, void 0, void 0, function () {
217
208
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
218
209
  return __generator(this, function (_a) {
219
210
  switch (_a.label) {
220
211
  case 0:
221
- localVarPath = "/gdvservice/v1/vbas";
212
+ // verify required parameter 'code' is not null or undefined
213
+ (0, common_1.assertParamExists)('getNumberRange', 'code', code);
214
+ // verify required parameter 'expand' is not null or undefined
215
+ (0, common_1.assertParamExists)('getNumberRange', 'expand', expand);
216
+ localVarPath = "/accountingservice/v1/number-ranges/{code}"
217
+ .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
222
218
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
223
219
  if (configuration) {
224
220
  baseOptions = configuration.baseOptions;
@@ -234,27 +230,9 @@ var VbasApiAxiosParamCreator = function (configuration) {
234
230
  // authentication bearer required
235
231
  // http bearer authentication required
236
232
  _a.sent();
237
- if (pageSize !== undefined) {
238
- localVarQueryParameter['pageSize'] = pageSize;
239
- }
240
- if (pageToken !== undefined) {
241
- localVarQueryParameter['pageToken'] = pageToken;
242
- }
243
- if (filter !== undefined) {
244
- localVarQueryParameter['filter'] = filter;
245
- }
246
- if (search !== undefined) {
247
- localVarQueryParameter['search'] = search;
248
- }
249
- if (order !== undefined) {
250
- localVarQueryParameter['order'] = order;
251
- }
252
233
  if (expand !== undefined) {
253
234
  localVarQueryParameter['expand'] = expand;
254
235
  }
255
- if (filters !== undefined) {
256
- localVarQueryParameter['filters'] = filters;
257
- }
258
236
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
259
237
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
260
238
  }
@@ -270,33 +248,33 @@ var VbasApiAxiosParamCreator = function (configuration) {
270
248
  });
271
249
  },
272
250
  /**
273
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
274
- * @summary Update the vba
275
- * @param {string} code Unique identifier for the object.
276
- * @param {UpdateVbaRequestDto} updateVbaRequestDto
251
+ * Returns a list of Financial Accounts you have previously created. The Financial 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 Financial Accounts
277
253
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
254
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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.
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: slug, createdAt, accountType</i>
257
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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, slug, accountType</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: slug, createdAt, accountType</i>
278
261
  * @param {*} [options] Override http request option.
279
262
  * @throws {RequiredError}
280
263
  */
281
- updateVba: function (code, updateVbaRequestDto, authorization, options) {
264
+ listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
282
265
  if (options === void 0) { options = {}; }
283
266
  return __awaiter(_this, void 0, void 0, function () {
284
267
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
285
268
  return __generator(this, function (_a) {
286
269
  switch (_a.label) {
287
270
  case 0:
288
- // verify required parameter 'code' is not null or undefined
289
- (0, common_1.assertParamExists)('updateVba', 'code', code);
290
- // verify required parameter 'updateVbaRequestDto' is not null or undefined
291
- (0, common_1.assertParamExists)('updateVba', 'updateVbaRequestDto', updateVbaRequestDto);
292
- localVarPath = "/gdvservice/v1/vbas/{code}"
293
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
271
+ localVarPath = "/accountingservice/v1/number-ranges";
294
272
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
295
273
  if (configuration) {
296
274
  baseOptions = configuration.baseOptions;
297
275
  baseAccessToken = configuration.accessToken;
298
276
  }
299
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
277
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
300
278
  localVarHeaderParameter = {};
301
279
  localVarQueryParameter = {};
302
280
  // authentication bearer required
@@ -306,14 +284,33 @@ var VbasApiAxiosParamCreator = function (configuration) {
306
284
  // authentication bearer required
307
285
  // http bearer authentication required
308
286
  _a.sent();
287
+ if (pageSize !== undefined) {
288
+ localVarQueryParameter['pageSize'] = pageSize;
289
+ }
290
+ if (pageToken !== undefined) {
291
+ localVarQueryParameter['pageToken'] = pageToken;
292
+ }
293
+ if (filter !== undefined) {
294
+ localVarQueryParameter['filter'] = filter;
295
+ }
296
+ if (search !== undefined) {
297
+ localVarQueryParameter['search'] = search;
298
+ }
299
+ if (order !== undefined) {
300
+ localVarQueryParameter['order'] = order;
301
+ }
302
+ if (expand !== undefined) {
303
+ localVarQueryParameter['expand'] = expand;
304
+ }
305
+ if (filters !== undefined) {
306
+ localVarQueryParameter['filters'] = filters;
307
+ }
309
308
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
310
309
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
310
  }
312
- localVarHeaderParameter['Content-Type'] = 'application/json';
313
311
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
314
312
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
315
313
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
316
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateVbaRequestDto, localVarRequestOptions, configuration);
317
314
  return [2 /*return*/, {
318
315
  url: (0, common_1.toPathString)(localVarUrlObj),
319
316
  options: localVarRequestOptions,
@@ -324,28 +321,28 @@ var VbasApiAxiosParamCreator = function (configuration) {
324
321
  },
325
322
  };
326
323
  };
327
- exports.VbasApiAxiosParamCreator = VbasApiAxiosParamCreator;
324
+ exports.NumberRangesApiAxiosParamCreator = NumberRangesApiAxiosParamCreator;
328
325
  /**
329
- * VbasApi - functional programming interface
326
+ * NumberRangesApi - functional programming interface
330
327
  * @export
331
328
  */
332
- var VbasApiFp = function (configuration) {
333
- var localVarAxiosParamCreator = (0, exports.VbasApiAxiosParamCreator)(configuration);
329
+ var NumberRangesApiFp = function (configuration) {
330
+ var localVarAxiosParamCreator = (0, exports.NumberRangesApiAxiosParamCreator)(configuration);
334
331
  return {
335
332
  /**
336
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
337
- * @summary Create the vba
338
- * @param {CreateVbaRequestDto} createVbaRequestDto
333
+ * This will create an number range in the database. The number range will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
334
+ * @summary Create the Number Range
335
+ * @param {CreateNumberRangeRequestDto} createNumberRangeRequestDto
339
336
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
340
337
  * @param {*} [options] Override http request option.
341
338
  * @throws {RequiredError}
342
339
  */
343
- createVba: function (createVbaRequestDto, authorization, options) {
340
+ createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
344
341
  return __awaiter(this, void 0, void 0, function () {
345
342
  var localVarAxiosArgs;
346
343
  return __generator(this, function (_a) {
347
344
  switch (_a.label) {
348
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createVba(createVbaRequestDto, authorization, options)];
345
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createNumberRange(createNumberRangeRequestDto, authorization, options)];
349
346
  case 1:
350
347
  localVarAxiosArgs = _a.sent();
351
348
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -354,20 +351,19 @@ var VbasApiFp = function (configuration) {
354
351
  });
355
352
  },
356
353
  /**
357
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
358
- * @summary Retrieve the vba
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
359
356
  * @param {string} code Unique identifier for the object.
360
357
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
361
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
362
358
  * @param {*} [options] Override http request option.
363
359
  * @throws {RequiredError}
364
360
  */
365
- getVba: function (code, authorization, expand, options) {
361
+ deleteNumberRange: function (code, authorization, options) {
366
362
  return __awaiter(this, void 0, void 0, function () {
367
363
  var localVarAxiosArgs;
368
364
  return __generator(this, function (_a) {
369
365
  switch (_a.label) {
370
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getVba(code, authorization, expand, options)];
366
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.deleteNumberRange(code, authorization, options)];
371
367
  case 1:
372
368
  localVarAxiosArgs = _a.sent();
373
369
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -376,25 +372,20 @@ var VbasApiFp = function (configuration) {
376
372
  });
377
373
  },
378
374
  /**
379
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
380
- * @summary List vbas
375
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
376
+ * @summary Retrieve the Financial Account
377
+ * @param {string} code Unique identifier for the object.
378
+ * @param {string} expand
381
379
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
382
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
383
- * @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.
384
- * @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, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt</i> <br/> <i>policyCode</i> is required, other filters are optional.
385
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
386
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, expiryDate, createdAt, updatedAt, status</i>
387
- * @param {string} [expand] No expanding supported
388
- * @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.
389
380
  * @param {*} [options] Override http request option.
390
381
  * @throws {RequiredError}
391
382
  */
392
- listVbas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
383
+ getNumberRange: function (code, expand, authorization, options) {
393
384
  return __awaiter(this, void 0, void 0, function () {
394
385
  var localVarAxiosArgs;
395
386
  return __generator(this, function (_a) {
396
387
  switch (_a.label) {
397
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
388
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.getNumberRange(code, expand, authorization, options)];
398
389
  case 1:
399
390
  localVarAxiosArgs = _a.sent();
400
391
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -403,20 +394,25 @@ var VbasApiFp = function (configuration) {
403
394
  });
404
395
  },
405
396
  /**
406
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
407
- * @summary Update the vba
408
- * @param {string} code Unique identifier for the object.
409
- * @param {UpdateVbaRequestDto} updateVbaRequestDto
397
+ * Returns a list of Financial Accounts you have previously created. The Financial 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 Financial Accounts
410
399
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
400
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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.
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: slug, createdAt, accountType</i>
403
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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, slug, accountType</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: slug, createdAt, accountType</i>
411
407
  * @param {*} [options] Override http request option.
412
408
  * @throws {RequiredError}
413
409
  */
414
- updateVba: function (code, updateVbaRequestDto, authorization, options) {
410
+ listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
415
411
  return __awaiter(this, void 0, void 0, function () {
416
412
  var localVarAxiosArgs;
417
413
  return __generator(this, function (_a) {
418
414
  switch (_a.label) {
419
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateVba(code, updateVbaRequestDto, authorization, options)];
415
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listNumberRanges(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
420
416
  case 1:
421
417
  localVarAxiosArgs = _a.sent();
422
418
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -426,129 +422,128 @@ var VbasApiFp = function (configuration) {
426
422
  },
427
423
  };
428
424
  };
429
- exports.VbasApiFp = VbasApiFp;
425
+ exports.NumberRangesApiFp = NumberRangesApiFp;
430
426
  /**
431
- * VbasApi - factory interface
427
+ * NumberRangesApi - factory interface
432
428
  * @export
433
429
  */
434
- var VbasApiFactory = function (configuration, basePath, axios) {
435
- var localVarFp = (0, exports.VbasApiFp)(configuration);
430
+ var NumberRangesApiFactory = function (configuration, basePath, axios) {
431
+ var localVarFp = (0, exports.NumberRangesApiFp)(configuration);
436
432
  return {
437
433
  /**
438
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
439
- * @summary Create the vba
440
- * @param {CreateVbaRequestDto} createVbaRequestDto
434
+ * This will create an number range in the database. The number range will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
435
+ * @summary Create the Number Range
436
+ * @param {CreateNumberRangeRequestDto} createNumberRangeRequestDto
441
437
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
442
438
  * @param {*} [options] Override http request option.
443
439
  * @throws {RequiredError}
444
440
  */
445
- createVba: function (createVbaRequestDto, authorization, options) {
446
- return localVarFp.createVba(createVbaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
441
+ createNumberRange: function (createNumberRangeRequestDto, authorization, options) {
442
+ return localVarFp.createNumberRange(createNumberRangeRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
447
443
  },
448
444
  /**
449
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
450
- * @summary Retrieve the vba
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
451
447
  * @param {string} code Unique identifier for the object.
452
448
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
453
- * @param {'responses'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
454
449
  * @param {*} [options] Override http request option.
455
450
  * @throws {RequiredError}
456
451
  */
457
- getVba: function (code, authorization, expand, options) {
458
- return localVarFp.getVba(code, authorization, expand, options).then(function (request) { return request(axios, basePath); });
452
+ deleteNumberRange: function (code, authorization, options) {
453
+ return localVarFp.deleteNumberRange(code, authorization, options).then(function (request) { return request(axios, basePath); });
459
454
  },
460
455
  /**
461
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
462
- * @summary List vbas
456
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
457
+ * @summary Retrieve the Financial Account
458
+ * @param {string} code Unique identifier for the object.
459
+ * @param {string} expand
463
460
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
464
- * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
465
- * @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.
466
- * @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, vbNumber, policyNumber, policyCode, customerName, status, expiryDate, createdAt</i> <br/> <i>policyCode</i> is required, other filters are optional.
467
- * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
468
- * @param {string} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, code, expiryDate, createdAt, updatedAt, status</i>
469
- * @param {string} [expand] No expanding supported
470
- * @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
461
  * @param {*} [options] Override http request option.
472
462
  * @throws {RequiredError}
473
463
  */
474
- listVbas: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
475
- return localVarFp.listVbas(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
464
+ getNumberRange: function (code, expand, authorization, options) {
465
+ return localVarFp.getNumberRange(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
476
466
  },
477
467
  /**
478
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
479
- * @summary Update the vba
480
- * @param {string} code Unique identifier for the object.
481
- * @param {UpdateVbaRequestDto} updateVbaRequestDto
468
+ * Returns a list of Financial Accounts you have previously created. The Financial 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 Financial Accounts
482
470
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
471
+ * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
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.
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: slug, createdAt, accountType</i>
474
+ * @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
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, slug, accountType</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: slug, createdAt, accountType</i>
483
478
  * @param {*} [options] Override http request option.
484
479
  * @throws {RequiredError}
485
480
  */
486
- updateVba: function (code, updateVbaRequestDto, authorization, options) {
487
- return localVarFp.updateVba(code, updateVbaRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
481
+ listNumberRanges: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
482
+ return localVarFp.listNumberRanges(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
488
483
  },
489
484
  };
490
485
  };
491
- exports.VbasApiFactory = VbasApiFactory;
486
+ exports.NumberRangesApiFactory = NumberRangesApiFactory;
492
487
  /**
493
- * VbasApi - object-oriented interface
488
+ * NumberRangesApi - object-oriented interface
494
489
  * @export
495
- * @class VbasApi
490
+ * @class NumberRangesApi
496
491
  * @extends {BaseAPI}
497
492
  */
498
- var VbasApi = /** @class */ (function (_super) {
499
- __extends(VbasApi, _super);
500
- function VbasApi() {
493
+ var NumberRangesApi = /** @class */ (function (_super) {
494
+ __extends(NumberRangesApi, _super);
495
+ function NumberRangesApi() {
501
496
  return _super !== null && _super.apply(this, arguments) || this;
502
497
  }
503
498
  /**
504
- * This will create an asynchronous vba, the method will return a code to retrieve the vba when it is ready. **Required Permissions** \"gdv-management.operations.create\"
505
- * @summary Create the vba
506
- * @param {VbasApiCreateVbaRequest} requestParameters Request parameters.
499
+ * This will create an number range in the database. The number range will be created with the provided name, type, and account number. Optionally, you can provide a parent financial account ID to create a sub-account. **Required Permissions** \"accounting-management.accounts.create\"
500
+ * @summary Create the Number Range
501
+ * @param {NumberRangesApiCreateNumberRangeRequest} requestParameters Request parameters.
507
502
  * @param {*} [options] Override http request option.
508
503
  * @throws {RequiredError}
509
- * @memberof VbasApi
504
+ * @memberof NumberRangesApi
510
505
  */
511
- VbasApi.prototype.createVba = function (requestParameters, options) {
506
+ NumberRangesApi.prototype.createNumberRange = function (requestParameters, options) {
512
507
  var _this = this;
513
- return (0, exports.VbasApiFp)(this.configuration).createVba(requestParameters.createVbaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
508
+ return (0, exports.NumberRangesApiFp)(this.configuration).createNumberRange(requestParameters.createNumberRangeRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
514
509
  };
515
510
  /**
516
- * Retrieves the details of the vba that was previously created. Supply the unique vba code that was returned when you created it and Emil Api will return the corresponding vba information. **Required Permissions** \"gdv-management.operations.view\"
517
- * @summary Retrieve the vba
518
- * @param {VbasApiGetVbaRequest} 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 {NumberRangesApiDeleteNumberRangeRequest} requestParameters Request parameters.
519
514
  * @param {*} [options] Override http request option.
520
515
  * @throws {RequiredError}
521
- * @memberof VbasApi
516
+ * @memberof NumberRangesApi
522
517
  */
523
- VbasApi.prototype.getVba = function (requestParameters, options) {
518
+ NumberRangesApi.prototype.deleteNumberRange = function (requestParameters, options) {
524
519
  var _this = this;
525
- return (0, exports.VbasApiFp)(this.configuration).getVba(requestParameters.code, requestParameters.authorization, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
520
+ return (0, exports.NumberRangesApiFp)(this.configuration).deleteNumberRange(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
526
521
  };
527
522
  /**
528
- * Returns a list of vbas you have previously created. The vbas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"gdv-management.operations.view\"
529
- * @summary List vbas
530
- * @param {VbasApiListVbasRequest} requestParameters Request parameters.
523
+ * Retrieves the details of the Financial Account that was previously created. Supply the unique Financial Account code that was returned when you created it and Emil Api will return the corresponding Financial Account information. **Required Permissions** \"accounting-management.accounts.view\"
524
+ * @summary Retrieve the Financial Account
525
+ * @param {NumberRangesApiGetNumberRangeRequest} requestParameters Request parameters.
531
526
  * @param {*} [options] Override http request option.
532
527
  * @throws {RequiredError}
533
- * @memberof VbasApi
528
+ * @memberof NumberRangesApi
534
529
  */
535
- VbasApi.prototype.listVbas = function (requestParameters, options) {
530
+ NumberRangesApi.prototype.getNumberRange = function (requestParameters, options) {
536
531
  var _this = this;
537
- if (requestParameters === void 0) { requestParameters = {}; }
538
- return (0, exports.VbasApiFp)(this.configuration).listVbas(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); });
532
+ return (0, exports.NumberRangesApiFp)(this.configuration).getNumberRange(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
539
533
  };
540
534
  /**
541
- * Updates the specified vba by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"gdv-management.operations.update\"
542
- * @summary Update the vba
543
- * @param {VbasApiUpdateVbaRequest} requestParameters Request parameters.
535
+ * Returns a list of Financial Accounts you have previously created. The Financial 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 Financial Accounts
537
+ * @param {NumberRangesApiListNumberRangesRequest} requestParameters Request parameters.
544
538
  * @param {*} [options] Override http request option.
545
539
  * @throws {RequiredError}
546
- * @memberof VbasApi
540
+ * @memberof NumberRangesApi
547
541
  */
548
- VbasApi.prototype.updateVba = function (requestParameters, options) {
542
+ NumberRangesApi.prototype.listNumberRanges = function (requestParameters, options) {
549
543
  var _this = this;
550
- return (0, exports.VbasApiFp)(this.configuration).updateVba(requestParameters.code, requestParameters.updateVbaRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
544
+ if (requestParameters === void 0) { requestParameters = {}; }
545
+ return (0, exports.NumberRangesApiFp)(this.configuration).listNumberRanges(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); });
551
546
  };
552
- return VbasApi;
547
+ return NumberRangesApi;
553
548
  }(base_1.BaseAPI));
554
- exports.VbasApi = VbasApi;
549
+ exports.NumberRangesApi = NumberRangesApi;