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