@vbasoftware/vbapi-vbasoftware-typescript-axios 1.20250207.1 → 1.20250228.1

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 (35) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/accounting-api.ts +100 -0
  4. package/api/adv-accounting-api.ts +100 -0
  5. package/api/adv-billing-api.ts +604 -0
  6. package/api/adv-claim-api.ts +143 -4
  7. package/api/billing-api.ts +100 -0
  8. package/api/claim-pre-batches-api.ts +26 -8
  9. package/api/issue-duration-value-detail-api.ts +694 -0
  10. package/api/plan-coordination-api.ts +685 -0
  11. package/api/premium-invoices-api.ts +408 -0
  12. package/api/premium-payments-api.ts +96 -0
  13. package/api/user-account-api.ts +16 -8
  14. package/api/user-api.ts +32 -16
  15. package/api.ts +2 -0
  16. package/configuration.ts +1 -2
  17. package/models/auth-diag-codes.ts +6 -0
  18. package/models/billing-apply-payment-on-account-config.ts +48 -0
  19. package/models/claim-reprice-remove.ts +6 -0
  20. package/models/company-data.ts +12 -0
  21. package/models/generate-prem-invoice.ts +6 -0
  22. package/models/index.ts +8 -0
  23. package/models/issue-duration-value-detail-list-vbaresponse.ts +51 -0
  24. package/models/issue-duration-value-detail-vbaresponse.ts +51 -0
  25. package/models/issue-duration-value-detail.ts +804 -0
  26. package/models/mem-enrollment-plan.ts +6 -0
  27. package/models/plan-coordination-list-vbaresponse.ts +51 -0
  28. package/models/plan-coordination-vbaresponse.ts +51 -0
  29. package/models/plan-coordination.ts +114 -0
  30. package/models/prem-invoice-generate-inv-list.ts +6 -0
  31. package/models/report-series-step.ts +18 -0
  32. package/models/subscriber-writing-agent.ts +6 -0
  33. package/models/vbaprocess-parameter.ts +6 -0
  34. package/models/vbaupdate-claim-funded-status.ts +36 -0
  35. package/package.json +1 -1
@@ -131,6 +131,114 @@ export const PremiumInvoicesApiAxiosParamCreator = function (configuration?: Con
131
131
 
132
132
 
133
133
 
134
+ if (vbasoftwareDatabase != null) {
135
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
136
+ }
137
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
139
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
140
+
141
+ return {
142
+ url: toPathString(localVarUrlObj),
143
+ options: localVarRequestOptions,
144
+ };
145
+ },
146
+ /**
147
+ * This will finalize the selected Invoice.
148
+ * @summary Finalize Invoice
149
+ * @param {string} vbasoftwareDatabase Target database
150
+ * @param {number} invoiceKey Invoice Key
151
+ * @param {*} [options] Override http request option.
152
+ * @throws {RequiredError}
153
+ */
154
+ finalizeInvoice: async (vbasoftwareDatabase: string, invoiceKey: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
155
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
156
+ assertParamExists('finalizeInvoice', 'vbasoftwareDatabase', vbasoftwareDatabase)
157
+ // verify required parameter 'invoiceKey' is not null or undefined
158
+ assertParamExists('finalizeInvoice', 'invoiceKey', invoiceKey)
159
+ const localVarPath = `/invoice-finalize/{invoiceKey}`
160
+ .replace(`{${"invoiceKey"}}`, encodeURIComponent(String(invoiceKey)));
161
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
162
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
163
+ let baseOptions;
164
+ if (configuration) {
165
+ baseOptions = configuration.baseOptions;
166
+ }
167
+
168
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
169
+ const localVarHeaderParameter = {} as any;
170
+ const localVarQueryParameter = {} as any;
171
+
172
+ // authentication apiKeyAuth required
173
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
174
+
175
+ // authentication bearerAuth required
176
+ // http bearer authentication required
177
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
178
+
179
+
180
+
181
+ if (vbasoftwareDatabase != null) {
182
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
183
+ }
184
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
185
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
186
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
187
+
188
+ return {
189
+ url: toPathString(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
193
+ /**
194
+ * This process will delete an invoice and remove attached records, update or delete adjustments based on selected options.
195
+ * @summary Delete an Invoice with additional options
196
+ * @param {string} vbasoftwareDatabase Target database
197
+ * @param {number} invoiceKey Invoice Key
198
+ * @param {boolean} deleteAdditionalInvoices Delete Additional Invoices
199
+ * @param {boolean} keepManualAdjustments Keep Manual Adjustments
200
+ * @param {*} [options] Override http request option.
201
+ * @throws {RequiredError}
202
+ */
203
+ fullDeleteInvoice: async (vbasoftwareDatabase: string, invoiceKey: number, deleteAdditionalInvoices: boolean, keepManualAdjustments: boolean, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
204
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
205
+ assertParamExists('fullDeleteInvoice', 'vbasoftwareDatabase', vbasoftwareDatabase)
206
+ // verify required parameter 'invoiceKey' is not null or undefined
207
+ assertParamExists('fullDeleteInvoice', 'invoiceKey', invoiceKey)
208
+ // verify required parameter 'deleteAdditionalInvoices' is not null or undefined
209
+ assertParamExists('fullDeleteInvoice', 'deleteAdditionalInvoices', deleteAdditionalInvoices)
210
+ // verify required parameter 'keepManualAdjustments' is not null or undefined
211
+ assertParamExists('fullDeleteInvoice', 'keepManualAdjustments', keepManualAdjustments)
212
+ const localVarPath = `/invoice-full-delete/{invoiceKey}`
213
+ .replace(`{${"invoiceKey"}}`, encodeURIComponent(String(invoiceKey)));
214
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
215
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
216
+ let baseOptions;
217
+ if (configuration) {
218
+ baseOptions = configuration.baseOptions;
219
+ }
220
+
221
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
222
+ const localVarHeaderParameter = {} as any;
223
+ const localVarQueryParameter = {} as any;
224
+
225
+ // authentication apiKeyAuth required
226
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
227
+
228
+ // authentication bearerAuth required
229
+ // http bearer authentication required
230
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
231
+
232
+ if (deleteAdditionalInvoices !== undefined) {
233
+ localVarQueryParameter['deleteAdditionalInvoices'] = deleteAdditionalInvoices;
234
+ }
235
+
236
+ if (keepManualAdjustments !== undefined) {
237
+ localVarQueryParameter['keepManualAdjustments'] = keepManualAdjustments;
238
+ }
239
+
240
+
241
+
134
242
  if (vbasoftwareDatabase != null) {
135
243
  localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
136
244
  }
@@ -275,6 +383,55 @@ export const PremiumInvoicesApiAxiosParamCreator = function (configuration?: Con
275
383
 
276
384
 
277
385
 
386
+ localVarHeaderParameter['Content-Type'] = 'application/json';
387
+
388
+ if (vbasoftwareDatabase != null) {
389
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
390
+ }
391
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
392
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
393
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
394
+ localVarRequestOptions.data = serializeDataIfNeeded(generatePremInvoice, localVarRequestOptions, configuration)
395
+
396
+ return {
397
+ url: toPathString(localVarUrlObj),
398
+ options: localVarRequestOptions,
399
+ };
400
+ },
401
+ /**
402
+ * Creates a new Premium Billing Invoice for the selected GroupDivisionCaptive.
403
+ * @summary Generate GroupDivisionCaptive Invoice
404
+ * @param {string} vbasoftwareDatabase Target database
405
+ * @param {GeneratePremInvoice} generatePremInvoice
406
+ * @param {*} [options] Override http request option.
407
+ * @throws {RequiredError}
408
+ */
409
+ generatePremInvoiceGroupDivisionCaptive: async (vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
410
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
411
+ assertParamExists('generatePremInvoiceGroupDivisionCaptive', 'vbasoftwareDatabase', vbasoftwareDatabase)
412
+ // verify required parameter 'generatePremInvoice' is not null or undefined
413
+ assertParamExists('generatePremInvoiceGroupDivisionCaptive', 'generatePremInvoice', generatePremInvoice)
414
+ const localVarPath = `/generate-group-division-captive-invoice`;
415
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
416
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
417
+ let baseOptions;
418
+ if (configuration) {
419
+ baseOptions = configuration.baseOptions;
420
+ }
421
+
422
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
423
+ const localVarHeaderParameter = {} as any;
424
+ const localVarQueryParameter = {} as any;
425
+
426
+ // authentication apiKeyAuth required
427
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
428
+
429
+ // authentication bearerAuth required
430
+ // http bearer authentication required
431
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
432
+
433
+
434
+
278
435
  localVarHeaderParameter['Content-Type'] = 'application/json';
279
436
 
280
437
  if (vbasoftwareDatabase != null) {
@@ -1182,6 +1339,53 @@ export const PremiumInvoicesApiAxiosParamCreator = function (configuration?: Con
1182
1339
 
1183
1340
 
1184
1341
 
1342
+ if (vbasoftwareDatabase != null) {
1343
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
1344
+ }
1345
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1347
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1348
+
1349
+ return {
1350
+ url: toPathString(localVarUrlObj),
1351
+ options: localVarRequestOptions,
1352
+ };
1353
+ },
1354
+ /**
1355
+ * This will delete the invoice, remove attached adjustments, payments, etc. Then Regenerate the Invoice using the same Invoice Key.
1356
+ * @summary Regenerate Invoice
1357
+ * @param {string} vbasoftwareDatabase Target database
1358
+ * @param {number} invoiceKey Invoice Key
1359
+ * @param {*} [options] Override http request option.
1360
+ * @throws {RequiredError}
1361
+ */
1362
+ regenerateInvoice: async (vbasoftwareDatabase: string, invoiceKey: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
1363
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
1364
+ assertParamExists('regenerateInvoice', 'vbasoftwareDatabase', vbasoftwareDatabase)
1365
+ // verify required parameter 'invoiceKey' is not null or undefined
1366
+ assertParamExists('regenerateInvoice', 'invoiceKey', invoiceKey)
1367
+ const localVarPath = `/invoice-regenerate/{invoiceKey}`
1368
+ .replace(`{${"invoiceKey"}}`, encodeURIComponent(String(invoiceKey)));
1369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1370
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1371
+ let baseOptions;
1372
+ if (configuration) {
1373
+ baseOptions = configuration.baseOptions;
1374
+ }
1375
+
1376
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1377
+ const localVarHeaderParameter = {} as any;
1378
+ const localVarQueryParameter = {} as any;
1379
+
1380
+ // authentication apiKeyAuth required
1381
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
1382
+
1383
+ // authentication bearerAuth required
1384
+ // http bearer authentication required
1385
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
1386
+
1387
+
1388
+
1185
1389
  if (vbasoftwareDatabase != null) {
1186
1390
  localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
1187
1391
  }
@@ -1381,6 +1585,36 @@ export const PremiumInvoicesApiFp = function(configuration?: Configuration) {
1381
1585
  const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.deletePremInvoice']?.[localVarOperationServerIndex]?.url;
1382
1586
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1383
1587
  },
1588
+ /**
1589
+ * This will finalize the selected Invoice.
1590
+ * @summary Finalize Invoice
1591
+ * @param {string} vbasoftwareDatabase Target database
1592
+ * @param {number} invoiceKey Invoice Key
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ async finalizeInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1597
+ const localVarAxiosArgs = await localVarAxiosParamCreator.finalizeInvoice(vbasoftwareDatabase, invoiceKey, options);
1598
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1599
+ const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.finalizeInvoice']?.[localVarOperationServerIndex]?.url;
1600
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1601
+ },
1602
+ /**
1603
+ * This process will delete an invoice and remove attached records, update or delete adjustments based on selected options.
1604
+ * @summary Delete an Invoice with additional options
1605
+ * @param {string} vbasoftwareDatabase Target database
1606
+ * @param {number} invoiceKey Invoice Key
1607
+ * @param {boolean} deleteAdditionalInvoices Delete Additional Invoices
1608
+ * @param {boolean} keepManualAdjustments Keep Manual Adjustments
1609
+ * @param {*} [options] Override http request option.
1610
+ * @throws {RequiredError}
1611
+ */
1612
+ async fullDeleteInvoice(vbasoftwareDatabase: string, invoiceKey: number, deleteAdditionalInvoices: boolean, keepManualAdjustments: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1613
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fullDeleteInvoice(vbasoftwareDatabase, invoiceKey, deleteAdditionalInvoices, keepManualAdjustments, options);
1614
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1615
+ const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.fullDeleteInvoice']?.[localVarOperationServerIndex]?.url;
1616
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1617
+ },
1384
1618
  /**
1385
1619
  * Creates a new Premium Billing Invoice for the selected Group/Division.
1386
1620
  * @summary Generate Division Invoice
@@ -1423,6 +1657,20 @@ export const PremiumInvoicesApiFp = function(configuration?: Configuration) {
1423
1657
  const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.generatePremInvoiceGroupDivision']?.[localVarOperationServerIndex]?.url;
1424
1658
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1425
1659
  },
1660
+ /**
1661
+ * Creates a new Premium Billing Invoice for the selected GroupDivisionCaptive.
1662
+ * @summary Generate GroupDivisionCaptive Invoice
1663
+ * @param {string} vbasoftwareDatabase Target database
1664
+ * @param {GeneratePremInvoice} generatePremInvoice
1665
+ * @param {*} [options] Override http request option.
1666
+ * @throws {RequiredError}
1667
+ */
1668
+ async generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PremInvoiceVBAResponse>> {
1669
+ const localVarAxiosArgs = await localVarAxiosParamCreator.generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase, generatePremInvoice, options);
1670
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1671
+ const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.generatePremInvoiceGroupDivisionCaptive']?.[localVarOperationServerIndex]?.url;
1672
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1673
+ },
1426
1674
  /**
1427
1675
  * Creates a new Self-Admin Invoice for the selected Group/Division.
1428
1676
  * @summary Generate Self-Admin Division Invoice
@@ -1682,6 +1930,20 @@ export const PremiumInvoicesApiFp = function(configuration?: Configuration) {
1682
1930
  const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.premInvoiceAutoApplySelfAdmin']?.[localVarOperationServerIndex]?.url;
1683
1931
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1684
1932
  },
1933
+ /**
1934
+ * This will delete the invoice, remove attached adjustments, payments, etc. Then Regenerate the Invoice using the same Invoice Key.
1935
+ * @summary Regenerate Invoice
1936
+ * @param {string} vbasoftwareDatabase Target database
1937
+ * @param {number} invoiceKey Invoice Key
1938
+ * @param {*} [options] Override http request option.
1939
+ * @throws {RequiredError}
1940
+ */
1941
+ async regenerateInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
1942
+ const localVarAxiosArgs = await localVarAxiosParamCreator.regenerateInvoice(vbasoftwareDatabase, invoiceKey, options);
1943
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1944
+ const localVarOperationServerBasePath = operationServerMap['PremiumInvoicesApi.regenerateInvoice']?.[localVarOperationServerIndex]?.url;
1945
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1946
+ },
1685
1947
  /**
1686
1948
  * Reset a Self-Admin Invoice removing received amounts, adjustments applied, etc.
1687
1949
  * @summary Reset Self-Admin Invoice
@@ -1757,6 +2019,30 @@ export const PremiumInvoicesApiFactory = function (configuration?: Configuration
1757
2019
  deletePremInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1758
2020
  return localVarFp.deletePremInvoice(vbasoftwareDatabase, invoiceKey, options).then((request) => request(axios, basePath));
1759
2021
  },
2022
+ /**
2023
+ * This will finalize the selected Invoice.
2024
+ * @summary Finalize Invoice
2025
+ * @param {string} vbasoftwareDatabase Target database
2026
+ * @param {number} invoiceKey Invoice Key
2027
+ * @param {*} [options] Override http request option.
2028
+ * @throws {RequiredError}
2029
+ */
2030
+ finalizeInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2031
+ return localVarFp.finalizeInvoice(vbasoftwareDatabase, invoiceKey, options).then((request) => request(axios, basePath));
2032
+ },
2033
+ /**
2034
+ * This process will delete an invoice and remove attached records, update or delete adjustments based on selected options.
2035
+ * @summary Delete an Invoice with additional options
2036
+ * @param {string} vbasoftwareDatabase Target database
2037
+ * @param {number} invoiceKey Invoice Key
2038
+ * @param {boolean} deleteAdditionalInvoices Delete Additional Invoices
2039
+ * @param {boolean} keepManualAdjustments Keep Manual Adjustments
2040
+ * @param {*} [options] Override http request option.
2041
+ * @throws {RequiredError}
2042
+ */
2043
+ fullDeleteInvoice(vbasoftwareDatabase: string, invoiceKey: number, deleteAdditionalInvoices: boolean, keepManualAdjustments: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2044
+ return localVarFp.fullDeleteInvoice(vbasoftwareDatabase, invoiceKey, deleteAdditionalInvoices, keepManualAdjustments, options).then((request) => request(axios, basePath));
2045
+ },
1760
2046
  /**
1761
2047
  * Creates a new Premium Billing Invoice for the selected Group/Division.
1762
2048
  * @summary Generate Division Invoice
@@ -1790,6 +2076,17 @@ export const PremiumInvoicesApiFactory = function (configuration?: Configuration
1790
2076
  generatePremInvoiceGroupDivision(vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1791
2077
  return localVarFp.generatePremInvoiceGroupDivision(vbasoftwareDatabase, generatePremInvoice, options).then((request) => request(axios, basePath));
1792
2078
  },
2079
+ /**
2080
+ * Creates a new Premium Billing Invoice for the selected GroupDivisionCaptive.
2081
+ * @summary Generate GroupDivisionCaptive Invoice
2082
+ * @param {string} vbasoftwareDatabase Target database
2083
+ * @param {GeneratePremInvoice} generatePremInvoice
2084
+ * @param {*} [options] Override http request option.
2085
+ * @throws {RequiredError}
2086
+ */
2087
+ generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options?: RawAxiosRequestConfig): AxiosPromise<PremInvoiceVBAResponse> {
2088
+ return localVarFp.generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase, generatePremInvoice, options).then((request) => request(axios, basePath));
2089
+ },
1793
2090
  /**
1794
2091
  * Creates a new Self-Admin Invoice for the selected Group/Division.
1795
2092
  * @summary Generate Self-Admin Division Invoice
@@ -1995,6 +2292,17 @@ export const PremiumInvoicesApiFactory = function (configuration?: Configuration
1995
2292
  premInvoiceAutoApplySelfAdmin(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
1996
2293
  return localVarFp.premInvoiceAutoApplySelfAdmin(vbasoftwareDatabase, invoiceKey, options).then((request) => request(axios, basePath));
1997
2294
  },
2295
+ /**
2296
+ * This will delete the invoice, remove attached adjustments, payments, etc. Then Regenerate the Invoice using the same Invoice Key.
2297
+ * @summary Regenerate Invoice
2298
+ * @param {string} vbasoftwareDatabase Target database
2299
+ * @param {number} invoiceKey Invoice Key
2300
+ * @param {*} [options] Override http request option.
2301
+ * @throws {RequiredError}
2302
+ */
2303
+ regenerateInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
2304
+ return localVarFp.regenerateInvoice(vbasoftwareDatabase, invoiceKey, options).then((request) => request(axios, basePath));
2305
+ },
1998
2306
  /**
1999
2307
  * Reset a Self-Admin Invoice removing received amounts, adjustments applied, etc.
2000
2308
  * @summary Reset Self-Admin Invoice
@@ -2060,6 +2368,30 @@ export interface PremiumInvoicesApiInterface {
2060
2368
  */
2061
2369
  deletePremInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2062
2370
 
2371
+ /**
2372
+ * This will finalize the selected Invoice.
2373
+ * @summary Finalize Invoice
2374
+ * @param {string} vbasoftwareDatabase Target database
2375
+ * @param {number} invoiceKey Invoice Key
2376
+ * @param {*} [options] Override http request option.
2377
+ * @throws {RequiredError}
2378
+ * @memberof PremiumInvoicesApiInterface
2379
+ */
2380
+ finalizeInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2381
+
2382
+ /**
2383
+ * This process will delete an invoice and remove attached records, update or delete adjustments based on selected options.
2384
+ * @summary Delete an Invoice with additional options
2385
+ * @param {string} vbasoftwareDatabase Target database
2386
+ * @param {number} invoiceKey Invoice Key
2387
+ * @param {boolean} deleteAdditionalInvoices Delete Additional Invoices
2388
+ * @param {boolean} keepManualAdjustments Keep Manual Adjustments
2389
+ * @param {*} [options] Override http request option.
2390
+ * @throws {RequiredError}
2391
+ * @memberof PremiumInvoicesApiInterface
2392
+ */
2393
+ fullDeleteInvoice(vbasoftwareDatabase: string, invoiceKey: number, deleteAdditionalInvoices: boolean, keepManualAdjustments: boolean, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2394
+
2063
2395
  /**
2064
2396
  * Creates a new Premium Billing Invoice for the selected Group/Division.
2065
2397
  * @summary Generate Division Invoice
@@ -2093,6 +2425,17 @@ export interface PremiumInvoicesApiInterface {
2093
2425
  */
2094
2426
  generatePremInvoiceGroupDivision(vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2095
2427
 
2428
+ /**
2429
+ * Creates a new Premium Billing Invoice for the selected GroupDivisionCaptive.
2430
+ * @summary Generate GroupDivisionCaptive Invoice
2431
+ * @param {string} vbasoftwareDatabase Target database
2432
+ * @param {GeneratePremInvoice} generatePremInvoice
2433
+ * @param {*} [options] Override http request option.
2434
+ * @throws {RequiredError}
2435
+ * @memberof PremiumInvoicesApiInterface
2436
+ */
2437
+ generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options?: RawAxiosRequestConfig): AxiosPromise<PremInvoiceVBAResponse>;
2438
+
2096
2439
  /**
2097
2440
  * Creates a new Self-Admin Invoice for the selected Group/Division.
2098
2441
  * @summary Generate Self-Admin Division Invoice
@@ -2298,6 +2641,17 @@ export interface PremiumInvoicesApiInterface {
2298
2641
  */
2299
2642
  premInvoiceAutoApplySelfAdmin(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2300
2643
 
2644
+ /**
2645
+ * This will delete the invoice, remove attached adjustments, payments, etc. Then Regenerate the Invoice using the same Invoice Key.
2646
+ * @summary Regenerate Invoice
2647
+ * @param {string} vbasoftwareDatabase Target database
2648
+ * @param {number} invoiceKey Invoice Key
2649
+ * @param {*} [options] Override http request option.
2650
+ * @throws {RequiredError}
2651
+ * @memberof PremiumInvoicesApiInterface
2652
+ */
2653
+ regenerateInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
2654
+
2301
2655
  /**
2302
2656
  * Reset a Self-Admin Invoice removing received amounts, adjustments applied, etc.
2303
2657
  * @summary Reset Self-Admin Invoice
@@ -2367,6 +2721,34 @@ export class PremiumInvoicesApi extends BaseAPI implements PremiumInvoicesApiInt
2367
2721
  return PremiumInvoicesApiFp(this.configuration).deletePremInvoice(vbasoftwareDatabase, invoiceKey, options).then((request) => request(this.axios, this.basePath));
2368
2722
  }
2369
2723
 
2724
+ /**
2725
+ * This will finalize the selected Invoice.
2726
+ * @summary Finalize Invoice
2727
+ * @param {string} vbasoftwareDatabase Target database
2728
+ * @param {number} invoiceKey Invoice Key
2729
+ * @param {*} [options] Override http request option.
2730
+ * @throws {RequiredError}
2731
+ * @memberof PremiumInvoicesApi
2732
+ */
2733
+ public finalizeInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig) {
2734
+ return PremiumInvoicesApiFp(this.configuration).finalizeInvoice(vbasoftwareDatabase, invoiceKey, options).then((request) => request(this.axios, this.basePath));
2735
+ }
2736
+
2737
+ /**
2738
+ * This process will delete an invoice and remove attached records, update or delete adjustments based on selected options.
2739
+ * @summary Delete an Invoice with additional options
2740
+ * @param {string} vbasoftwareDatabase Target database
2741
+ * @param {number} invoiceKey Invoice Key
2742
+ * @param {boolean} deleteAdditionalInvoices Delete Additional Invoices
2743
+ * @param {boolean} keepManualAdjustments Keep Manual Adjustments
2744
+ * @param {*} [options] Override http request option.
2745
+ * @throws {RequiredError}
2746
+ * @memberof PremiumInvoicesApi
2747
+ */
2748
+ public fullDeleteInvoice(vbasoftwareDatabase: string, invoiceKey: number, deleteAdditionalInvoices: boolean, keepManualAdjustments: boolean, options?: RawAxiosRequestConfig) {
2749
+ return PremiumInvoicesApiFp(this.configuration).fullDeleteInvoice(vbasoftwareDatabase, invoiceKey, deleteAdditionalInvoices, keepManualAdjustments, options).then((request) => request(this.axios, this.basePath));
2750
+ }
2751
+
2370
2752
  /**
2371
2753
  * Creates a new Premium Billing Invoice for the selected Group/Division.
2372
2754
  * @summary Generate Division Invoice
@@ -2406,6 +2788,19 @@ export class PremiumInvoicesApi extends BaseAPI implements PremiumInvoicesApiInt
2406
2788
  return PremiumInvoicesApiFp(this.configuration).generatePremInvoiceGroupDivision(vbasoftwareDatabase, generatePremInvoice, options).then((request) => request(this.axios, this.basePath));
2407
2789
  }
2408
2790
 
2791
+ /**
2792
+ * Creates a new Premium Billing Invoice for the selected GroupDivisionCaptive.
2793
+ * @summary Generate GroupDivisionCaptive Invoice
2794
+ * @param {string} vbasoftwareDatabase Target database
2795
+ * @param {GeneratePremInvoice} generatePremInvoice
2796
+ * @param {*} [options] Override http request option.
2797
+ * @throws {RequiredError}
2798
+ * @memberof PremiumInvoicesApi
2799
+ */
2800
+ public generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase: string, generatePremInvoice: GeneratePremInvoice, options?: RawAxiosRequestConfig) {
2801
+ return PremiumInvoicesApiFp(this.configuration).generatePremInvoiceGroupDivisionCaptive(vbasoftwareDatabase, generatePremInvoice, options).then((request) => request(this.axios, this.basePath));
2802
+ }
2803
+
2409
2804
  /**
2410
2805
  * Creates a new Self-Admin Invoice for the selected Group/Division.
2411
2806
  * @summary Generate Self-Admin Division Invoice
@@ -2647,6 +3042,19 @@ export class PremiumInvoicesApi extends BaseAPI implements PremiumInvoicesApiInt
2647
3042
  return PremiumInvoicesApiFp(this.configuration).premInvoiceAutoApplySelfAdmin(vbasoftwareDatabase, invoiceKey, options).then((request) => request(this.axios, this.basePath));
2648
3043
  }
2649
3044
 
3045
+ /**
3046
+ * This will delete the invoice, remove attached adjustments, payments, etc. Then Regenerate the Invoice using the same Invoice Key.
3047
+ * @summary Regenerate Invoice
3048
+ * @param {string} vbasoftwareDatabase Target database
3049
+ * @param {number} invoiceKey Invoice Key
3050
+ * @param {*} [options] Override http request option.
3051
+ * @throws {RequiredError}
3052
+ * @memberof PremiumInvoicesApi
3053
+ */
3054
+ public regenerateInvoice(vbasoftwareDatabase: string, invoiceKey: number, options?: RawAxiosRequestConfig) {
3055
+ return PremiumInvoicesApiFp(this.configuration).regenerateInvoice(vbasoftwareDatabase, invoiceKey, options).then((request) => request(this.axios, this.basePath));
3056
+ }
3057
+
2650
3058
  /**
2651
3059
  * Reset a Self-Admin Invoice removing received amounts, adjustments applied, etc.
2652
3060
  * @summary Reset Self-Admin Invoice
@@ -425,6 +425,53 @@ export const PremiumPaymentsApiAxiosParamCreator = function (configuration?: Con
425
425
  options: localVarRequestOptions,
426
426
  };
427
427
  },
428
+ /**
429
+ * Based on the supplied PremPayment_Key, remove this payment from any invoice it is attached, and then recalc the received on each affected invoice.
430
+ * @summary Undo an Applied Premium Payment
431
+ * @param {string} vbasoftwareDatabase Target database
432
+ * @param {number} premPaymentKey PremPayment Key
433
+ * @param {*} [options] Override http request option.
434
+ * @throws {RequiredError}
435
+ */
436
+ undoPremiumPayment: async (vbasoftwareDatabase: string, premPaymentKey: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
437
+ // verify required parameter 'vbasoftwareDatabase' is not null or undefined
438
+ assertParamExists('undoPremiumPayment', 'vbasoftwareDatabase', vbasoftwareDatabase)
439
+ // verify required parameter 'premPaymentKey' is not null or undefined
440
+ assertParamExists('undoPremiumPayment', 'premPaymentKey', premPaymentKey)
441
+ const localVarPath = `/undo-premium-payment/{premPaymentKey}`
442
+ .replace(`{${"premPaymentKey"}}`, encodeURIComponent(String(premPaymentKey)));
443
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
444
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
445
+ let baseOptions;
446
+ if (configuration) {
447
+ baseOptions = configuration.baseOptions;
448
+ }
449
+
450
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
451
+ const localVarHeaderParameter = {} as any;
452
+ const localVarQueryParameter = {} as any;
453
+
454
+ // authentication apiKeyAuth required
455
+ await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration)
456
+
457
+ // authentication bearerAuth required
458
+ // http bearer authentication required
459
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
460
+
461
+
462
+
463
+ if (vbasoftwareDatabase != null) {
464
+ localVarHeaderParameter['vbasoftware-database'] = String(vbasoftwareDatabase);
465
+ }
466
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
467
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
468
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
469
+
470
+ return {
471
+ url: toPathString(localVarUrlObj),
472
+ options: localVarRequestOptions,
473
+ };
474
+ },
428
475
  /**
429
476
  * Create or Update multiple PremPayment at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
430
477
  * @summary Create or Update Batch PremPayment
@@ -642,6 +689,20 @@ export const PremiumPaymentsApiFp = function(configuration?: Configuration) {
642
689
  const localVarOperationServerBasePath = operationServerMap['PremiumPaymentsApi.processPaymentFile']?.[localVarOperationServerIndex]?.url;
643
690
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
644
691
  },
692
+ /**
693
+ * Based on the supplied PremPayment_Key, remove this payment from any invoice it is attached, and then recalc the received on each affected invoice.
694
+ * @summary Undo an Applied Premium Payment
695
+ * @param {string} vbasoftwareDatabase Target database
696
+ * @param {number} premPaymentKey PremPayment Key
697
+ * @param {*} [options] Override http request option.
698
+ * @throws {RequiredError}
699
+ */
700
+ async undoPremiumPayment(vbasoftwareDatabase: string, premPaymentKey: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.undoPremiumPayment(vbasoftwareDatabase, premPaymentKey, options);
702
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
703
+ const localVarOperationServerBasePath = operationServerMap['PremiumPaymentsApi.undoPremiumPayment']?.[localVarOperationServerIndex]?.url;
704
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
705
+ },
645
706
  /**
646
707
  * Create or Update multiple PremPayment at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
647
708
  * @summary Create or Update Batch PremPayment
@@ -765,6 +826,17 @@ export const PremiumPaymentsApiFactory = function (configuration?: Configuration
765
826
  processPaymentFile(vbasoftwareDatabase: string, vBAProcessPaymentFile: VBAProcessPaymentFile, options?: RawAxiosRequestConfig): AxiosPromise<VBAProcessPaymentFileResponseVBAResponse> {
766
827
  return localVarFp.processPaymentFile(vbasoftwareDatabase, vBAProcessPaymentFile, options).then((request) => request(axios, basePath));
767
828
  },
829
+ /**
830
+ * Based on the supplied PremPayment_Key, remove this payment from any invoice it is attached, and then recalc the received on each affected invoice.
831
+ * @summary Undo an Applied Premium Payment
832
+ * @param {string} vbasoftwareDatabase Target database
833
+ * @param {number} premPaymentKey PremPayment Key
834
+ * @param {*} [options] Override http request option.
835
+ * @throws {RequiredError}
836
+ */
837
+ undoPremiumPayment(vbasoftwareDatabase: string, premPaymentKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
838
+ return localVarFp.undoPremiumPayment(vbasoftwareDatabase, premPaymentKey, options).then((request) => request(axios, basePath));
839
+ },
768
840
  /**
769
841
  * Create or Update multiple PremPayment at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
770
842
  * @summary Create or Update Batch PremPayment
@@ -881,6 +953,17 @@ export interface PremiumPaymentsApiInterface {
881
953
  */
882
954
  processPaymentFile(vbasoftwareDatabase: string, vBAProcessPaymentFile: VBAProcessPaymentFile, options?: RawAxiosRequestConfig): AxiosPromise<VBAProcessPaymentFileResponseVBAResponse>;
883
955
 
956
+ /**
957
+ * Based on the supplied PremPayment_Key, remove this payment from any invoice it is attached, and then recalc the received on each affected invoice.
958
+ * @summary Undo an Applied Premium Payment
959
+ * @param {string} vbasoftwareDatabase Target database
960
+ * @param {number} premPaymentKey PremPayment Key
961
+ * @param {*} [options] Override http request option.
962
+ * @throws {RequiredError}
963
+ * @memberof PremiumPaymentsApiInterface
964
+ */
965
+ undoPremiumPayment(vbasoftwareDatabase: string, premPaymentKey: number, options?: RawAxiosRequestConfig): AxiosPromise<void>;
966
+
884
967
  /**
885
968
  * Create or Update multiple PremPayment at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
886
969
  * @summary Create or Update Batch PremPayment
@@ -1011,6 +1094,19 @@ export class PremiumPaymentsApi extends BaseAPI implements PremiumPaymentsApiInt
1011
1094
  return PremiumPaymentsApiFp(this.configuration).processPaymentFile(vbasoftwareDatabase, vBAProcessPaymentFile, options).then((request) => request(this.axios, this.basePath));
1012
1095
  }
1013
1096
 
1097
+ /**
1098
+ * Based on the supplied PremPayment_Key, remove this payment from any invoice it is attached, and then recalc the received on each affected invoice.
1099
+ * @summary Undo an Applied Premium Payment
1100
+ * @param {string} vbasoftwareDatabase Target database
1101
+ * @param {number} premPaymentKey PremPayment Key
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ * @memberof PremiumPaymentsApi
1105
+ */
1106
+ public undoPremiumPayment(vbasoftwareDatabase: string, premPaymentKey: number, options?: RawAxiosRequestConfig) {
1107
+ return PremiumPaymentsApiFp(this.configuration).undoPremiumPayment(vbasoftwareDatabase, premPaymentKey, options).then((request) => request(this.axios, this.basePath));
1108
+ }
1109
+
1014
1110
  /**
1015
1111
  * Create or Update multiple PremPayment at once. If the entity exists, it will be updated. If the entity does not exist, it will be created.
1016
1112
  * @summary Create or Update Batch PremPayment