@emilgroup/billing-v2-sdk 0.0.0-stage → 1.0.1-beta.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.
- package/.openapi-generator/FILES +93 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +50 -2
- package/api/bill-runs-api.ts +468 -0
- package/api/bills-api.ts +145 -0
- package/api/invoices-api.ts +1530 -0
- package/api/jobs-api.ts +756 -0
- package/api/policy-billings-api.ts +591 -0
- package/api.ts +35 -0
- package/base.ts +588 -0
- package/common.ts +199 -0
- package/configuration.ts +130 -0
- package/dist/api/bill-runs-api.d.ts +266 -0
- package/dist/api/bill-runs-api.js +466 -0
- package/dist/api/bills-api.d.ts +87 -0
- package/dist/api/bills-api.js +207 -0
- package/dist/api/invoices-api.d.ts +847 -0
- package/dist/api/invoices-api.js +1353 -0
- package/dist/api/jobs-api.d.ts +426 -0
- package/dist/api/jobs-api.js +708 -0
- package/dist/api/policy-billings-api.d.ts +332 -0
- package/dist/api/policy-billings-api.js +561 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +34 -0
- package/dist/base.d.ts +120 -0
- package/dist/base.js +604 -0
- package/dist/common.d.ts +91 -0
- package/dist/common.js +277 -0
- package/dist/configuration.d.ts +106 -0
- package/dist/configuration.js +54 -0
- package/dist/index.d.ts +15 -0
- package/dist/index.js +36 -0
- package/dist/models/any.d.ts +25 -0
- package/dist/models/any.js +15 -0
- package/dist/models/bill-item.d.ts +132 -0
- package/dist/models/bill-item.js +15 -0
- package/dist/models/bill-run.d.ts +145 -0
- package/dist/models/bill-run.js +15 -0
- package/dist/models/bill.d.ts +194 -0
- package/dist/models/bill.js +15 -0
- package/dist/models/cancel-job-response.d.ts +25 -0
- package/dist/models/cancel-job-response.js +15 -0
- package/dist/models/create-correction-invoices-request.d.ts +72 -0
- package/dist/models/create-correction-invoices-request.js +15 -0
- package/dist/models/create-correction-invoices-response.d.ts +31 -0
- package/dist/models/create-correction-invoices-response.js +15 -0
- package/dist/models/create-detail-export-job-request.d.ts +56 -0
- package/dist/models/create-detail-export-job-request.js +15 -0
- package/dist/models/create-detail-export-job-response.d.ts +25 -0
- package/dist/models/create-detail-export-job-response.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-request.d.ts +42 -0
- package/dist/models/create-estimated-invoice-for-interval-request.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response.js +15 -0
- package/dist/models/create-estimated-invoice-request.d.ts +36 -0
- package/dist/models/create-estimated-invoice-request.js +15 -0
- package/dist/models/create-estimated-invoice-response.d.ts +25 -0
- package/dist/models/create-estimated-invoice-response.js +15 -0
- package/dist/models/create-export-job-request.d.ts +68 -0
- package/dist/models/create-export-job-request.js +15 -0
- package/dist/models/create-export-job-response.d.ts +25 -0
- package/dist/models/create-export-job-response.js +15 -0
- package/dist/models/create-initial-invoice-request.d.ts +72 -0
- package/dist/models/create-initial-invoice-request.js +15 -0
- package/dist/models/create-initial-invoice-response.d.ts +25 -0
- package/dist/models/create-initial-invoice-response.js +15 -0
- package/dist/models/create-invoice-request.d.ts +67 -0
- package/dist/models/create-invoice-request.js +15 -0
- package/dist/models/create-invoice-response.d.ts +25 -0
- package/dist/models/create-invoice-response.js +15 -0
- package/dist/models/create-invoice-status-body.d.ts +24 -0
- package/dist/models/create-invoice-status-body.js +15 -0
- package/dist/models/create-invoice-status-response.d.ts +25 -0
- package/dist/models/create-invoice-status-response.js +15 -0
- package/dist/models/create-item-request.d.ts +36 -0
- package/dist/models/create-item-request.js +15 -0
- package/dist/models/create-policy-billing-request.d.ts +42 -0
- package/dist/models/create-policy-billing-request.js +15 -0
- package/dist/models/create-policy-billing-response.d.ts +25 -0
- package/dist/models/create-policy-billing-response.js +15 -0
- package/dist/models/create-recurring-invoice-request.d.ts +72 -0
- package/dist/models/create-recurring-invoice-request.js +15 -0
- package/dist/models/create-recurring-invoice-response.d.ts +31 -0
- package/dist/models/create-recurring-invoice-response.js +15 -0
- package/dist/models/create-termination-invoice-request.d.ts +60 -0
- package/dist/models/create-termination-invoice-request.js +15 -0
- package/dist/models/create-termination-invoice-response.d.ts +25 -0
- package/dist/models/create-termination-invoice-response.js +15 -0
- package/dist/models/create-withdraw-invoice-request.d.ts +48 -0
- package/dist/models/create-withdraw-invoice-request.js +15 -0
- package/dist/models/create-withdraw-invoice-response.d.ts +25 -0
- package/dist/models/create-withdraw-invoice-response.js +15 -0
- package/dist/models/estimate-history-entry.d.ts +36 -0
- package/dist/models/estimate-history-entry.js +15 -0
- package/dist/models/export-column.d.ts +36 -0
- package/dist/models/export-column.js +15 -0
- package/dist/models/filter-field.d.ts +110 -0
- package/dist/models/filter-field.js +15 -0
- package/dist/models/filter-value.d.ts +37 -0
- package/dist/models/filter-value.js +15 -0
- package/dist/models/get-bill-response.d.ts +25 -0
- package/dist/models/get-bill-response.js +15 -0
- package/dist/models/get-bill-run-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-bill-run-filter-catalog-response.js +15 -0
- package/dist/models/get-bill-run-response.d.ts +25 -0
- package/dist/models/get-bill-run-response.js +15 -0
- package/dist/models/get-invoice-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-invoice-filter-catalog-response.js +15 -0
- package/dist/models/get-invoice-response.d.ts +25 -0
- package/dist/models/get-invoice-response.js +15 -0
- package/dist/models/get-job-download-response.d.ts +25 -0
- package/dist/models/get-job-download-response.js +15 -0
- package/dist/models/get-job-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-job-filter-catalog-response.js +15 -0
- package/dist/models/get-job-response.d.ts +25 -0
- package/dist/models/get-job-response.js +15 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-date-filter-catalog-response.js +15 -0
- package/dist/models/get-policies-billing-filter-catalog-response.d.ts +31 -0
- package/dist/models/get-policies-billing-filter-catalog-response.js +15 -0
- package/dist/models/get-policy-billing-response.d.ts +25 -0
- package/dist/models/get-policy-billing-response.js +15 -0
- package/dist/models/highlight.d.ts +30 -0
- package/dist/models/highlight.js +15 -0
- package/dist/models/index.d.ts +75 -0
- package/dist/models/index.js +91 -0
- package/dist/models/invoice-item.d.ts +204 -0
- package/dist/models/invoice-item.js +15 -0
- package/dist/models/invoice-payment.d.ts +108 -0
- package/dist/models/invoice-payment.js +15 -0
- package/dist/models/invoice-payments.d.ts +25 -0
- package/dist/models/invoice-payments.js +15 -0
- package/dist/models/invoice-status.d.ts +54 -0
- package/dist/models/invoice-status.js +15 -0
- package/dist/models/invoice.d.ts +275 -0
- package/dist/models/invoice.js +15 -0
- package/dist/models/job-download.d.ts +36 -0
- package/dist/models/job-download.js +15 -0
- package/dist/models/job-error.d.ts +30 -0
- package/dist/models/job-error.js +15 -0
- package/dist/models/job-progress.d.ts +36 -0
- package/dist/models/job-progress.js +15 -0
- package/dist/models/job.d.ts +134 -0
- package/dist/models/job.js +15 -0
- package/dist/models/list-bill-runs-response.d.ts +37 -0
- package/dist/models/list-bill-runs-response.js +15 -0
- package/dist/models/list-invoices-response.d.ts +37 -0
- package/dist/models/list-invoices-response.js +15 -0
- package/dist/models/list-jobs-response.d.ts +37 -0
- package/dist/models/list-jobs-response.js +15 -0
- package/dist/models/list-policies-billing-dates-response.d.ts +37 -0
- package/dist/models/list-policies-billing-dates-response.js +15 -0
- package/dist/models/list-policies-billings-response.d.ts +37 -0
- package/dist/models/list-policies-billings-response.js +15 -0
- package/dist/models/list-request.d.ts +60 -0
- package/dist/models/list-request.js +15 -0
- package/dist/models/localized-text.d.ts +30 -0
- package/dist/models/localized-text.js +15 -0
- package/dist/models/match.d.ts +69 -0
- package/dist/models/match.js +15 -0
- package/dist/models/payment-term.d.ts +42 -0
- package/dist/models/payment-term.js +15 -0
- package/dist/models/policy-billing.d.ts +139 -0
- package/dist/models/policy-billing.js +15 -0
- package/dist/models/request-bill-run-request.d.ts +30 -0
- package/dist/models/request-bill-run-request.js +15 -0
- package/dist/models/request-bill-run-response.d.ts +25 -0
- package/dist/models/request-bill-run-response.js +15 -0
- package/dist/models/resolved-billing-config.d.ts +130 -0
- package/dist/models/resolved-billing-config.js +15 -0
- package/dist/models/revert-invoice-request.d.ts +24 -0
- package/dist/models/revert-invoice-request.js +15 -0
- package/dist/models/revert-invoice-response.d.ts +25 -0
- package/dist/models/revert-invoice-response.js +15 -0
- package/dist/models/slice.d.ts +30 -0
- package/dist/models/slice.js +15 -0
- package/dist/models/status.d.ts +37 -0
- package/dist/models/status.js +15 -0
- package/dist/models/tax.d.ts +30 -0
- package/dist/models/tax.js +15 -0
- package/dist/models/update-policy-billing-body.d.ts +24 -0
- package/dist/models/update-policy-billing-body.js +15 -0
- package/dist/models/update-policy-billing-response.d.ts +25 -0
- package/dist/models/update-policy-billing-response.js +15 -0
- package/git_push.sh +57 -0
- package/index.ts +19 -0
- package/models/any.ts +32 -0
- package/models/bill-item.ts +138 -0
- package/models/bill-run.ts +151 -0
- package/models/bill.ts +200 -0
- package/models/cancel-job-response.ts +31 -0
- package/models/create-correction-invoices-request.ts +78 -0
- package/models/create-correction-invoices-response.ts +37 -0
- package/models/create-detail-export-job-request.ts +60 -0
- package/models/create-detail-export-job-response.ts +31 -0
- package/models/create-estimated-invoice-for-interval-request.ts +48 -0
- package/models/create-estimated-invoice-for-interval-response.ts +31 -0
- package/models/create-estimated-invoice-request.ts +42 -0
- package/models/create-estimated-invoice-response.ts +31 -0
- package/models/create-export-job-request.ts +74 -0
- package/models/create-export-job-response.ts +31 -0
- package/models/create-initial-invoice-request.ts +78 -0
- package/models/create-initial-invoice-response.ts +31 -0
- package/models/create-invoice-request.ts +73 -0
- package/models/create-invoice-response.ts +31 -0
- package/models/create-invoice-status-body.ts +30 -0
- package/models/create-invoice-status-response.ts +31 -0
- package/models/create-item-request.ts +42 -0
- package/models/create-policy-billing-request.ts +48 -0
- package/models/create-policy-billing-response.ts +31 -0
- package/models/create-recurring-invoice-request.ts +78 -0
- package/models/create-recurring-invoice-response.ts +37 -0
- package/models/create-termination-invoice-request.ts +66 -0
- package/models/create-termination-invoice-response.ts +31 -0
- package/models/create-withdraw-invoice-request.ts +54 -0
- package/models/create-withdraw-invoice-response.ts +31 -0
- package/models/estimate-history-entry.ts +42 -0
- package/models/export-column.ts +42 -0
- package/models/filter-field.ts +116 -0
- package/models/filter-value.ts +43 -0
- package/models/get-bill-response.ts +31 -0
- package/models/get-bill-run-filter-catalog-response.ts +37 -0
- package/models/get-bill-run-response.ts +31 -0
- package/models/get-invoice-filter-catalog-response.ts +37 -0
- package/models/get-invoice-response.ts +31 -0
- package/models/get-job-download-response.ts +31 -0
- package/models/get-job-filter-catalog-response.ts +37 -0
- package/models/get-job-response.ts +31 -0
- package/models/get-policies-billing-date-filter-catalog-response.ts +37 -0
- package/models/get-policies-billing-filter-catalog-response.ts +37 -0
- package/models/get-policy-billing-response.ts +31 -0
- package/models/highlight.ts +36 -0
- package/models/index.ts +75 -0
- package/models/invoice-item.ts +210 -0
- package/models/invoice-payment.ts +114 -0
- package/models/invoice-payments.ts +31 -0
- package/models/invoice-status.ts +60 -0
- package/models/invoice.ts +281 -0
- package/models/job-download.ts +42 -0
- package/models/job-error.ts +36 -0
- package/models/job-progress.ts +42 -0
- package/models/job.ts +140 -0
- package/models/list-bill-runs-response.ts +43 -0
- package/models/list-invoices-response.ts +43 -0
- package/models/list-jobs-response.ts +43 -0
- package/models/list-policies-billing-dates-response.ts +43 -0
- package/models/list-policies-billings-response.ts +43 -0
- package/models/list-request.ts +66 -0
- package/models/localized-text.ts +36 -0
- package/models/match.ts +75 -0
- package/models/payment-term.ts +48 -0
- package/models/policy-billing.ts +145 -0
- package/models/request-bill-run-request.ts +36 -0
- package/models/request-bill-run-response.ts +31 -0
- package/models/resolved-billing-config.ts +134 -0
- package/models/revert-invoice-request.ts +30 -0
- package/models/revert-invoice-response.ts +31 -0
- package/models/slice.ts +36 -0
- package/models/status.ts +43 -0
- package/models/tax.ts +36 -0
- package/models/update-policy-billing-body.ts +30 -0
- package/models/update-policy-billing-response.ts +31 -0
- package/package.json +25 -4
- package/tsconfig.json +23 -0
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { CreatePolicyBillingRequest } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CreatePolicyBillingResponse } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetPoliciesBillingFilterCatalogResponse } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { GetPolicyBillingResponse } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ListPoliciesBillingsResponse } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { Status } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { UpdatePolicyBillingBody } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { UpdatePolicyBillingResponse } from '../models';
|
|
39
|
+
/**
|
|
40
|
+
* PolicyBillingsApi - axios parameter creator
|
|
41
|
+
* @export
|
|
42
|
+
*/
|
|
43
|
+
export const PolicyBillingsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
|
+
return {
|
|
45
|
+
/**
|
|
46
|
+
* The row is computed from the policy and its billing configuration. When the policy already has a row, it is returned unchanged. Only `policyCode` is read. `policyCode` may also name a group policy: it gets a row only when it is active and bills its members\' premiums together. A member billed through its group policy gets a row with status `via_master`.
|
|
47
|
+
* @summary Opens the billing schedule row of a policy.
|
|
48
|
+
* @param {CreatePolicyBillingRequest} body The request of `CreatePolicyBilling`.
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
billingServiceCreatePolicyBilling: async (body: CreatePolicyBillingRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'body' is not null or undefined
|
|
54
|
+
assertParamExists('billingServiceCreatePolicyBilling', 'body', body)
|
|
55
|
+
const localVarPath = `/billingservice/v2/policies-billings`;
|
|
56
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
58
|
+
let baseOptions;
|
|
59
|
+
let baseAccessToken;
|
|
60
|
+
if (configuration) {
|
|
61
|
+
baseOptions = configuration.baseOptions;
|
|
62
|
+
baseAccessToken = configuration.accessToken;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
66
|
+
const localVarHeaderParameter = {} as any;
|
|
67
|
+
const localVarQueryParameter = {} as any;
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
72
|
+
|
|
73
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
76
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
77
|
+
|
|
78
|
+
return {
|
|
79
|
+
url: toPathString(localVarUrlObj),
|
|
80
|
+
options: localVarRequestOptions,
|
|
81
|
+
};
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
billingServiceGetPoliciesBillingFilterCatalog: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
90
|
+
const localVarPath = `/billingservice/v2/policies-billings:filterCatalog`;
|
|
91
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
92
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
93
|
+
let baseOptions;
|
|
94
|
+
let baseAccessToken;
|
|
95
|
+
if (configuration) {
|
|
96
|
+
baseOptions = configuration.baseOptions;
|
|
97
|
+
baseAccessToken = configuration.accessToken;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
101
|
+
const localVarHeaderParameter = {} as any;
|
|
102
|
+
const localVarQueryParameter = {} as any;
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
107
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
108
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
url: toPathString(localVarUrlObj),
|
|
112
|
+
options: localVarRequestOptions,
|
|
113
|
+
};
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
117
|
+
* @summary Returns one billing schedule row.
|
|
118
|
+
* @param {string} code The code of the schedule row.
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
billingServiceGetPolicyBilling: async (code: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
123
|
+
// verify required parameter 'code' is not null or undefined
|
|
124
|
+
assertParamExists('billingServiceGetPolicyBilling', 'code', code)
|
|
125
|
+
const localVarPath = `/billingservice/v2/policies-billings/{code}`
|
|
126
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
127
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
128
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
129
|
+
let baseOptions;
|
|
130
|
+
let baseAccessToken;
|
|
131
|
+
if (configuration) {
|
|
132
|
+
baseOptions = configuration.baseOptions;
|
|
133
|
+
baseAccessToken = configuration.accessToken;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
137
|
+
const localVarHeaderParameter = {} as any;
|
|
138
|
+
const localVarQueryParameter = {} as any;
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
153
|
+
* @summary Lists the billing schedule rows.
|
|
154
|
+
* @param {number} [pageSize]
|
|
155
|
+
* @param {string} [pageToken]
|
|
156
|
+
* @param {string} [filter]
|
|
157
|
+
* @param {string} [search]
|
|
158
|
+
* @param {string} [order]
|
|
159
|
+
* @param {string} [expand]
|
|
160
|
+
* @param {string} [filters]
|
|
161
|
+
* @param {*} [options] Override http request option.
|
|
162
|
+
* @throws {RequiredError}
|
|
163
|
+
*/
|
|
164
|
+
billingServiceListPoliciesBillings: async (pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
165
|
+
const localVarPath = `/billingservice/v2/policies-billings`;
|
|
166
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
167
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
168
|
+
let baseOptions;
|
|
169
|
+
let baseAccessToken;
|
|
170
|
+
if (configuration) {
|
|
171
|
+
baseOptions = configuration.baseOptions;
|
|
172
|
+
baseAccessToken = configuration.accessToken;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
176
|
+
const localVarHeaderParameter = {} as any;
|
|
177
|
+
const localVarQueryParameter = {} as any;
|
|
178
|
+
|
|
179
|
+
if (pageSize !== undefined) {
|
|
180
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (pageToken !== undefined) {
|
|
184
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
if (filter !== undefined) {
|
|
188
|
+
localVarQueryParameter['filter'] = filter;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
if (search !== undefined) {
|
|
192
|
+
localVarQueryParameter['search'] = search;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (order !== undefined) {
|
|
196
|
+
localVarQueryParameter['order'] = order;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (expand !== undefined) {
|
|
200
|
+
localVarQueryParameter['expand'] = expand;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (filters !== undefined) {
|
|
204
|
+
localVarQueryParameter['filters'] = filters;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
210
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
211
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
212
|
+
|
|
213
|
+
return {
|
|
214
|
+
url: toPathString(localVarUrlObj),
|
|
215
|
+
options: localVarRequestOptions,
|
|
216
|
+
};
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
* The new `status` is `paused` or `pending`.
|
|
220
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
221
|
+
* @param {string} code The code of the schedule row.
|
|
222
|
+
* @param {string} ifMatch The billing row\'s `etag` as last read, sent back unchanged.
|
|
223
|
+
* @param {UpdatePolicyBillingBody} body
|
|
224
|
+
* @param {*} [options] Override http request option.
|
|
225
|
+
* @throws {RequiredError}
|
|
226
|
+
*/
|
|
227
|
+
billingServiceUpdatePolicyBilling: async (code: string, ifMatch: string, body: UpdatePolicyBillingBody, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
228
|
+
// verify required parameter 'code' is not null or undefined
|
|
229
|
+
assertParamExists('billingServiceUpdatePolicyBilling', 'code', code)
|
|
230
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
231
|
+
assertParamExists('billingServiceUpdatePolicyBilling', 'ifMatch', ifMatch)
|
|
232
|
+
// verify required parameter 'body' is not null or undefined
|
|
233
|
+
assertParamExists('billingServiceUpdatePolicyBilling', 'body', body)
|
|
234
|
+
const localVarPath = `/billingservice/v2/policies-billings/{code}`
|
|
235
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
236
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
237
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
238
|
+
let baseOptions;
|
|
239
|
+
let baseAccessToken;
|
|
240
|
+
if (configuration) {
|
|
241
|
+
baseOptions = configuration.baseOptions;
|
|
242
|
+
baseAccessToken = configuration.accessToken;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
246
|
+
const localVarHeaderParameter = {} as any;
|
|
247
|
+
const localVarQueryParameter = {} as any;
|
|
248
|
+
|
|
249
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
250
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
251
|
+
const ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
252
|
+
const ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
253
|
+
const ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
254
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
255
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
261
|
+
|
|
262
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
263
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
264
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
265
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
266
|
+
|
|
267
|
+
return {
|
|
268
|
+
url: toPathString(localVarUrlObj),
|
|
269
|
+
options: localVarRequestOptions,
|
|
270
|
+
};
|
|
271
|
+
},
|
|
272
|
+
}
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
/**
|
|
276
|
+
* PolicyBillingsApi - functional programming interface
|
|
277
|
+
* @export
|
|
278
|
+
*/
|
|
279
|
+
export const PolicyBillingsApiFp = function(configuration?: Configuration) {
|
|
280
|
+
const localVarAxiosParamCreator = PolicyBillingsApiAxiosParamCreator(configuration)
|
|
281
|
+
return {
|
|
282
|
+
/**
|
|
283
|
+
* The row is computed from the policy and its billing configuration. When the policy already has a row, it is returned unchanged. Only `policyCode` is read. `policyCode` may also name a group policy: it gets a row only when it is active and bills its members\' premiums together. A member billed through its group policy gets a row with status `via_master`.
|
|
284
|
+
* @summary Opens the billing schedule row of a policy.
|
|
285
|
+
* @param {CreatePolicyBillingRequest} body The request of `CreatePolicyBilling`.
|
|
286
|
+
* @param {*} [options] Override http request option.
|
|
287
|
+
* @throws {RequiredError}
|
|
288
|
+
*/
|
|
289
|
+
async billingServiceCreatePolicyBilling(body: CreatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyBillingResponse>> {
|
|
290
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceCreatePolicyBilling(body, options);
|
|
291
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
292
|
+
},
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
296
|
+
* @param {*} [options] Override http request option.
|
|
297
|
+
* @throws {RequiredError}
|
|
298
|
+
*/
|
|
299
|
+
async billingServiceGetPoliciesBillingFilterCatalog(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPoliciesBillingFilterCatalogResponse>> {
|
|
300
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceGetPoliciesBillingFilterCatalog(options);
|
|
301
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
302
|
+
},
|
|
303
|
+
/**
|
|
304
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
305
|
+
* @summary Returns one billing schedule row.
|
|
306
|
+
* @param {string} code The code of the schedule row.
|
|
307
|
+
* @param {*} [options] Override http request option.
|
|
308
|
+
* @throws {RequiredError}
|
|
309
|
+
*/
|
|
310
|
+
async billingServiceGetPolicyBilling(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyBillingResponse>> {
|
|
311
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceGetPolicyBilling(code, options);
|
|
312
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
313
|
+
},
|
|
314
|
+
/**
|
|
315
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
316
|
+
* @summary Lists the billing schedule rows.
|
|
317
|
+
* @param {number} [pageSize]
|
|
318
|
+
* @param {string} [pageToken]
|
|
319
|
+
* @param {string} [filter]
|
|
320
|
+
* @param {string} [search]
|
|
321
|
+
* @param {string} [order]
|
|
322
|
+
* @param {string} [expand]
|
|
323
|
+
* @param {string} [filters]
|
|
324
|
+
* @param {*} [options] Override http request option.
|
|
325
|
+
* @throws {RequiredError}
|
|
326
|
+
*/
|
|
327
|
+
async billingServiceListPoliciesBillings(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingsResponse>> {
|
|
328
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceListPoliciesBillings(pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
329
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
* The new `status` is `paused` or `pending`.
|
|
333
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
334
|
+
* @param {string} code The code of the schedule row.
|
|
335
|
+
* @param {string} ifMatch The billing row\'s `etag` as last read, sent back unchanged.
|
|
336
|
+
* @param {UpdatePolicyBillingBody} body
|
|
337
|
+
* @param {*} [options] Override http request option.
|
|
338
|
+
* @throws {RequiredError}
|
|
339
|
+
*/
|
|
340
|
+
async billingServiceUpdatePolicyBilling(code: string, ifMatch: string, body: UpdatePolicyBillingBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePolicyBillingResponse>> {
|
|
341
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.billingServiceUpdatePolicyBilling(code, ifMatch, body, options);
|
|
342
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
343
|
+
},
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* PolicyBillingsApi - factory interface
|
|
349
|
+
* @export
|
|
350
|
+
*/
|
|
351
|
+
export const PolicyBillingsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
352
|
+
const localVarFp = PolicyBillingsApiFp(configuration)
|
|
353
|
+
return {
|
|
354
|
+
/**
|
|
355
|
+
* The row is computed from the policy and its billing configuration. When the policy already has a row, it is returned unchanged. Only `policyCode` is read. `policyCode` may also name a group policy: it gets a row only when it is active and bills its members\' premiums together. A member billed through its group policy gets a row with status `via_master`.
|
|
356
|
+
* @summary Opens the billing schedule row of a policy.
|
|
357
|
+
* @param {CreatePolicyBillingRequest} body The request of `CreatePolicyBilling`.
|
|
358
|
+
* @param {*} [options] Override http request option.
|
|
359
|
+
* @throws {RequiredError}
|
|
360
|
+
*/
|
|
361
|
+
billingServiceCreatePolicyBilling(body: CreatePolicyBillingRequest, options?: any): AxiosPromise<CreatePolicyBillingResponse> {
|
|
362
|
+
return localVarFp.billingServiceCreatePolicyBilling(body, options).then((request) => request(axios, basePath));
|
|
363
|
+
},
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
367
|
+
* @param {*} [options] Override http request option.
|
|
368
|
+
* @throws {RequiredError}
|
|
369
|
+
*/
|
|
370
|
+
billingServiceGetPoliciesBillingFilterCatalog(options?: any): AxiosPromise<GetPoliciesBillingFilterCatalogResponse> {
|
|
371
|
+
return localVarFp.billingServiceGetPoliciesBillingFilterCatalog(options).then((request) => request(axios, basePath));
|
|
372
|
+
},
|
|
373
|
+
/**
|
|
374
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
375
|
+
* @summary Returns one billing schedule row.
|
|
376
|
+
* @param {string} code The code of the schedule row.
|
|
377
|
+
* @param {*} [options] Override http request option.
|
|
378
|
+
* @throws {RequiredError}
|
|
379
|
+
*/
|
|
380
|
+
billingServiceGetPolicyBilling(code: string, options?: any): AxiosPromise<GetPolicyBillingResponse> {
|
|
381
|
+
return localVarFp.billingServiceGetPolicyBilling(code, options).then((request) => request(axios, basePath));
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
385
|
+
* @summary Lists the billing schedule rows.
|
|
386
|
+
* @param {number} [pageSize]
|
|
387
|
+
* @param {string} [pageToken]
|
|
388
|
+
* @param {string} [filter]
|
|
389
|
+
* @param {string} [search]
|
|
390
|
+
* @param {string} [order]
|
|
391
|
+
* @param {string} [expand]
|
|
392
|
+
* @param {string} [filters]
|
|
393
|
+
* @param {*} [options] Override http request option.
|
|
394
|
+
* @throws {RequiredError}
|
|
395
|
+
*/
|
|
396
|
+
billingServiceListPoliciesBillings(pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListPoliciesBillingsResponse> {
|
|
397
|
+
return localVarFp.billingServiceListPoliciesBillings(pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
398
|
+
},
|
|
399
|
+
/**
|
|
400
|
+
* The new `status` is `paused` or `pending`.
|
|
401
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
402
|
+
* @param {string} code The code of the schedule row.
|
|
403
|
+
* @param {string} ifMatch The billing row\'s `etag` as last read, sent back unchanged.
|
|
404
|
+
* @param {UpdatePolicyBillingBody} body
|
|
405
|
+
* @param {*} [options] Override http request option.
|
|
406
|
+
* @throws {RequiredError}
|
|
407
|
+
*/
|
|
408
|
+
billingServiceUpdatePolicyBilling(code: string, ifMatch: string, body: UpdatePolicyBillingBody, options?: any): AxiosPromise<UpdatePolicyBillingResponse> {
|
|
409
|
+
return localVarFp.billingServiceUpdatePolicyBilling(code, ifMatch, body, options).then((request) => request(axios, basePath));
|
|
410
|
+
},
|
|
411
|
+
};
|
|
412
|
+
};
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Request parameters for billingServiceCreatePolicyBilling operation in PolicyBillingsApi.
|
|
416
|
+
* @export
|
|
417
|
+
* @interface PolicyBillingsApiBillingServiceCreatePolicyBillingRequest
|
|
418
|
+
*/
|
|
419
|
+
export interface PolicyBillingsApiBillingServiceCreatePolicyBillingRequest {
|
|
420
|
+
/**
|
|
421
|
+
* The request of `CreatePolicyBilling`.
|
|
422
|
+
* @type {CreatePolicyBillingRequest}
|
|
423
|
+
* @memberof PolicyBillingsApiBillingServiceCreatePolicyBilling
|
|
424
|
+
*/
|
|
425
|
+
readonly body: CreatePolicyBillingRequest
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Request parameters for billingServiceGetPolicyBilling operation in PolicyBillingsApi.
|
|
430
|
+
* @export
|
|
431
|
+
* @interface PolicyBillingsApiBillingServiceGetPolicyBillingRequest
|
|
432
|
+
*/
|
|
433
|
+
export interface PolicyBillingsApiBillingServiceGetPolicyBillingRequest {
|
|
434
|
+
/**
|
|
435
|
+
* The code of the schedule row.
|
|
436
|
+
* @type {string}
|
|
437
|
+
* @memberof PolicyBillingsApiBillingServiceGetPolicyBilling
|
|
438
|
+
*/
|
|
439
|
+
readonly code: string
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* Request parameters for billingServiceListPoliciesBillings operation in PolicyBillingsApi.
|
|
444
|
+
* @export
|
|
445
|
+
* @interface PolicyBillingsApiBillingServiceListPoliciesBillingsRequest
|
|
446
|
+
*/
|
|
447
|
+
export interface PolicyBillingsApiBillingServiceListPoliciesBillingsRequest {
|
|
448
|
+
/**
|
|
449
|
+
*
|
|
450
|
+
* @type {number}
|
|
451
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
452
|
+
*/
|
|
453
|
+
readonly pageSize?: number
|
|
454
|
+
|
|
455
|
+
/**
|
|
456
|
+
*
|
|
457
|
+
* @type {string}
|
|
458
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
459
|
+
*/
|
|
460
|
+
readonly pageToken?: string
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
*
|
|
464
|
+
* @type {string}
|
|
465
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
466
|
+
*/
|
|
467
|
+
readonly filter?: string
|
|
468
|
+
|
|
469
|
+
/**
|
|
470
|
+
*
|
|
471
|
+
* @type {string}
|
|
472
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
473
|
+
*/
|
|
474
|
+
readonly search?: string
|
|
475
|
+
|
|
476
|
+
/**
|
|
477
|
+
*
|
|
478
|
+
* @type {string}
|
|
479
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
480
|
+
*/
|
|
481
|
+
readonly order?: string
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
*
|
|
485
|
+
* @type {string}
|
|
486
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
487
|
+
*/
|
|
488
|
+
readonly expand?: string
|
|
489
|
+
|
|
490
|
+
/**
|
|
491
|
+
*
|
|
492
|
+
* @type {string}
|
|
493
|
+
* @memberof PolicyBillingsApiBillingServiceListPoliciesBillings
|
|
494
|
+
*/
|
|
495
|
+
readonly filters?: string
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Request parameters for billingServiceUpdatePolicyBilling operation in PolicyBillingsApi.
|
|
500
|
+
* @export
|
|
501
|
+
* @interface PolicyBillingsApiBillingServiceUpdatePolicyBillingRequest
|
|
502
|
+
*/
|
|
503
|
+
export interface PolicyBillingsApiBillingServiceUpdatePolicyBillingRequest {
|
|
504
|
+
/**
|
|
505
|
+
* The code of the schedule row.
|
|
506
|
+
* @type {string}
|
|
507
|
+
* @memberof PolicyBillingsApiBillingServiceUpdatePolicyBilling
|
|
508
|
+
*/
|
|
509
|
+
readonly code: string
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* The billing row\'s `etag` as last read, sent back unchanged.
|
|
513
|
+
* @type {string}
|
|
514
|
+
* @memberof PolicyBillingsApiBillingServiceUpdatePolicyBilling
|
|
515
|
+
*/
|
|
516
|
+
readonly ifMatch: string
|
|
517
|
+
|
|
518
|
+
/**
|
|
519
|
+
*
|
|
520
|
+
* @type {UpdatePolicyBillingBody}
|
|
521
|
+
* @memberof PolicyBillingsApiBillingServiceUpdatePolicyBilling
|
|
522
|
+
*/
|
|
523
|
+
readonly body: UpdatePolicyBillingBody
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* PolicyBillingsApi - object-oriented interface
|
|
528
|
+
* @export
|
|
529
|
+
* @class PolicyBillingsApi
|
|
530
|
+
* @extends {BaseAPI}
|
|
531
|
+
*/
|
|
532
|
+
export class PolicyBillingsApi extends BaseAPI {
|
|
533
|
+
/**
|
|
534
|
+
* The row is computed from the policy and its billing configuration. When the policy already has a row, it is returned unchanged. Only `policyCode` is read. `policyCode` may also name a group policy: it gets a row only when it is active and bills its members\' premiums together. A member billed through its group policy gets a row with status `via_master`.
|
|
535
|
+
* @summary Opens the billing schedule row of a policy.
|
|
536
|
+
* @param {PolicyBillingsApiBillingServiceCreatePolicyBillingRequest} requestParameters Request parameters.
|
|
537
|
+
* @param {*} [options] Override http request option.
|
|
538
|
+
* @throws {RequiredError}
|
|
539
|
+
* @memberof PolicyBillingsApi
|
|
540
|
+
*/
|
|
541
|
+
public billingServiceCreatePolicyBilling(requestParameters: PolicyBillingsApiBillingServiceCreatePolicyBillingRequest, options?: AxiosRequestConfig) {
|
|
542
|
+
return PolicyBillingsApiFp(this.configuration).billingServiceCreatePolicyBilling(requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
/**
|
|
546
|
+
*
|
|
547
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
548
|
+
* @param {*} [options] Override http request option.
|
|
549
|
+
* @throws {RequiredError}
|
|
550
|
+
* @memberof PolicyBillingsApi
|
|
551
|
+
*/
|
|
552
|
+
public billingServiceGetPoliciesBillingFilterCatalog(options?: AxiosRequestConfig) {
|
|
553
|
+
return PolicyBillingsApiFp(this.configuration).billingServiceGetPoliciesBillingFilterCatalog(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
/**
|
|
557
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
558
|
+
* @summary Returns one billing schedule row.
|
|
559
|
+
* @param {PolicyBillingsApiBillingServiceGetPolicyBillingRequest} requestParameters Request parameters.
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
* @memberof PolicyBillingsApi
|
|
563
|
+
*/
|
|
564
|
+
public billingServiceGetPolicyBilling(requestParameters: PolicyBillingsApiBillingServiceGetPolicyBillingRequest, options?: AxiosRequestConfig) {
|
|
565
|
+
return PolicyBillingsApiFp(this.configuration).billingServiceGetPolicyBilling(requestParameters.code, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
570
|
+
* @summary Lists the billing schedule rows.
|
|
571
|
+
* @param {PolicyBillingsApiBillingServiceListPoliciesBillingsRequest} requestParameters Request parameters.
|
|
572
|
+
* @param {*} [options] Override http request option.
|
|
573
|
+
* @throws {RequiredError}
|
|
574
|
+
* @memberof PolicyBillingsApi
|
|
575
|
+
*/
|
|
576
|
+
public billingServiceListPoliciesBillings(requestParameters: PolicyBillingsApiBillingServiceListPoliciesBillingsRequest = {}, options?: AxiosRequestConfig) {
|
|
577
|
+
return PolicyBillingsApiFp(this.configuration).billingServiceListPoliciesBillings(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
/**
|
|
581
|
+
* The new `status` is `paused` or `pending`.
|
|
582
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
583
|
+
* @param {PolicyBillingsApiBillingServiceUpdatePolicyBillingRequest} requestParameters Request parameters.
|
|
584
|
+
* @param {*} [options] Override http request option.
|
|
585
|
+
* @throws {RequiredError}
|
|
586
|
+
* @memberof PolicyBillingsApi
|
|
587
|
+
*/
|
|
588
|
+
public billingServiceUpdatePolicyBilling(requestParameters: PolicyBillingsApiBillingServiceUpdatePolicyBillingRequest, options?: AxiosRequestConfig) {
|
|
589
|
+
return PolicyBillingsApiFp(this.configuration).billingServiceUpdatePolicyBilling(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
590
|
+
}
|
|
591
|
+
}
|
package/api.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL Billing Service
|
|
5
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { Configuration } from './configuration';
|
|
17
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
23
|
+
import { BillRunsApi } from './api';
|
|
24
|
+
import { BillsApi } from './api';
|
|
25
|
+
import { InvoicesApi } from './api';
|
|
26
|
+
import { JobsApi } from './api';
|
|
27
|
+
import { PolicyBillingsApi } from './api';
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
export * from './api/bill-runs-api';
|
|
31
|
+
export * from './api/bills-api';
|
|
32
|
+
export * from './api/invoices-api';
|
|
33
|
+
export * from './api/jobs-api';
|
|
34
|
+
export * from './api/policy-billings-api';
|
|
35
|
+
|