@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,561 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Billing Service
|
|
6
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __extends = (this && this.__extends) || (function () {
|
|
16
|
+
var extendStatics = function (d, b) {
|
|
17
|
+
extendStatics = Object.setPrototypeOf ||
|
|
18
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
+
return extendStatics(d, b);
|
|
21
|
+
};
|
|
22
|
+
return function (d, b) {
|
|
23
|
+
if (typeof b !== "function" && b !== null)
|
|
24
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
+
extendStatics(d, b);
|
|
26
|
+
function __() { this.constructor = d; }
|
|
27
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
+
};
|
|
29
|
+
})();
|
|
30
|
+
var __assign = (this && this.__assign) || function () {
|
|
31
|
+
__assign = Object.assign || function(t) {
|
|
32
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
+
s = arguments[i];
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
}
|
|
37
|
+
return t;
|
|
38
|
+
};
|
|
39
|
+
return __assign.apply(this, arguments);
|
|
40
|
+
};
|
|
41
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
+
});
|
|
49
|
+
};
|
|
50
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
+
function step(op) {
|
|
55
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
+
switch (op[0]) {
|
|
60
|
+
case 0: case 1: t = op; break;
|
|
61
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
+
default:
|
|
65
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
+
if (t[2]) _.ops.pop();
|
|
70
|
+
_.trys.pop(); continue;
|
|
71
|
+
}
|
|
72
|
+
op = body.call(thisArg, _);
|
|
73
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
+
};
|
|
80
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
+
exports.PolicyBillingsApi = exports.PolicyBillingsApiFactory = exports.PolicyBillingsApiFp = exports.PolicyBillingsApiAxiosParamCreator = void 0;
|
|
82
|
+
var axios_1 = __importDefault(require("axios"));
|
|
83
|
+
// Some imports not used depending on template conditions
|
|
84
|
+
// @ts-ignore
|
|
85
|
+
var common_1 = require("../common");
|
|
86
|
+
// @ts-ignore
|
|
87
|
+
var base_1 = require("../base");
|
|
88
|
+
/**
|
|
89
|
+
* PolicyBillingsApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PolicyBillingsApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
* 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`.
|
|
97
|
+
* @summary Opens the billing schedule row of a policy.
|
|
98
|
+
* @param {CreatePolicyBillingRequest} body The request of `CreatePolicyBilling`.
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
billingServiceCreatePolicyBilling: function (body, options) {
|
|
103
|
+
if (options === void 0) { options = {}; }
|
|
104
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
105
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
106
|
+
return __generator(this, function (_a) {
|
|
107
|
+
// verify required parameter 'body' is not null or undefined
|
|
108
|
+
(0, common_1.assertParamExists)('billingServiceCreatePolicyBilling', 'body', body);
|
|
109
|
+
localVarPath = "/billingservice/v2/policies-billings";
|
|
110
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
111
|
+
if (configuration) {
|
|
112
|
+
baseOptions = configuration.baseOptions;
|
|
113
|
+
baseAccessToken = configuration.accessToken;
|
|
114
|
+
}
|
|
115
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
116
|
+
localVarHeaderParameter = {};
|
|
117
|
+
localVarQueryParameter = {};
|
|
118
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
119
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
120
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
121
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
122
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
123
|
+
return [2 /*return*/, {
|
|
124
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
125
|
+
options: localVarRequestOptions,
|
|
126
|
+
}];
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
},
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
133
|
+
* @param {*} [options] Override http request option.
|
|
134
|
+
* @throws {RequiredError}
|
|
135
|
+
*/
|
|
136
|
+
billingServiceGetPoliciesBillingFilterCatalog: function (options) {
|
|
137
|
+
if (options === void 0) { options = {}; }
|
|
138
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
139
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
140
|
+
return __generator(this, function (_a) {
|
|
141
|
+
localVarPath = "/billingservice/v2/policies-billings:filterCatalog";
|
|
142
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
143
|
+
if (configuration) {
|
|
144
|
+
baseOptions = configuration.baseOptions;
|
|
145
|
+
baseAccessToken = configuration.accessToken;
|
|
146
|
+
}
|
|
147
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
148
|
+
localVarHeaderParameter = {};
|
|
149
|
+
localVarQueryParameter = {};
|
|
150
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
151
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
152
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
153
|
+
return [2 /*return*/, {
|
|
154
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
155
|
+
options: localVarRequestOptions,
|
|
156
|
+
}];
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
162
|
+
* @summary Returns one billing schedule row.
|
|
163
|
+
* @param {string} code The code of the schedule row.
|
|
164
|
+
* @param {*} [options] Override http request option.
|
|
165
|
+
* @throws {RequiredError}
|
|
166
|
+
*/
|
|
167
|
+
billingServiceGetPolicyBilling: function (code, options) {
|
|
168
|
+
if (options === void 0) { options = {}; }
|
|
169
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
170
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
171
|
+
return __generator(this, function (_a) {
|
|
172
|
+
// verify required parameter 'code' is not null or undefined
|
|
173
|
+
(0, common_1.assertParamExists)('billingServiceGetPolicyBilling', 'code', code);
|
|
174
|
+
localVarPath = "/billingservice/v2/policies-billings/{code}"
|
|
175
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
176
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
177
|
+
if (configuration) {
|
|
178
|
+
baseOptions = configuration.baseOptions;
|
|
179
|
+
baseAccessToken = configuration.accessToken;
|
|
180
|
+
}
|
|
181
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
182
|
+
localVarHeaderParameter = {};
|
|
183
|
+
localVarQueryParameter = {};
|
|
184
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
185
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
186
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
187
|
+
return [2 /*return*/, {
|
|
188
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
189
|
+
options: localVarRequestOptions,
|
|
190
|
+
}];
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
},
|
|
194
|
+
/**
|
|
195
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
196
|
+
* @summary Lists the billing schedule rows.
|
|
197
|
+
* @param {number} [pageSize]
|
|
198
|
+
* @param {string} [pageToken]
|
|
199
|
+
* @param {string} [filter]
|
|
200
|
+
* @param {string} [search]
|
|
201
|
+
* @param {string} [order]
|
|
202
|
+
* @param {string} [expand]
|
|
203
|
+
* @param {string} [filters]
|
|
204
|
+
* @param {*} [options] Override http request option.
|
|
205
|
+
* @throws {RequiredError}
|
|
206
|
+
*/
|
|
207
|
+
billingServiceListPoliciesBillings: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
208
|
+
if (options === void 0) { options = {}; }
|
|
209
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
211
|
+
return __generator(this, function (_a) {
|
|
212
|
+
localVarPath = "/billingservice/v2/policies-billings";
|
|
213
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
214
|
+
if (configuration) {
|
|
215
|
+
baseOptions = configuration.baseOptions;
|
|
216
|
+
baseAccessToken = configuration.accessToken;
|
|
217
|
+
}
|
|
218
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
219
|
+
localVarHeaderParameter = {};
|
|
220
|
+
localVarQueryParameter = {};
|
|
221
|
+
if (pageSize !== undefined) {
|
|
222
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
223
|
+
}
|
|
224
|
+
if (pageToken !== undefined) {
|
|
225
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
226
|
+
}
|
|
227
|
+
if (filter !== undefined) {
|
|
228
|
+
localVarQueryParameter['filter'] = filter;
|
|
229
|
+
}
|
|
230
|
+
if (search !== undefined) {
|
|
231
|
+
localVarQueryParameter['search'] = search;
|
|
232
|
+
}
|
|
233
|
+
if (order !== undefined) {
|
|
234
|
+
localVarQueryParameter['order'] = order;
|
|
235
|
+
}
|
|
236
|
+
if (expand !== undefined) {
|
|
237
|
+
localVarQueryParameter['expand'] = expand;
|
|
238
|
+
}
|
|
239
|
+
if (filters !== undefined) {
|
|
240
|
+
localVarQueryParameter['filters'] = filters;
|
|
241
|
+
}
|
|
242
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
243
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
+
return [2 /*return*/, {
|
|
246
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
247
|
+
options: localVarRequestOptions,
|
|
248
|
+
}];
|
|
249
|
+
});
|
|
250
|
+
});
|
|
251
|
+
},
|
|
252
|
+
/**
|
|
253
|
+
* The new `status` is `paused` or `pending`.
|
|
254
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
255
|
+
* @param {string} code The code of the schedule row.
|
|
256
|
+
* @param {string} ifMatch The billing row\'s `etag` as last read, sent back unchanged.
|
|
257
|
+
* @param {UpdatePolicyBillingBody} body
|
|
258
|
+
* @param {*} [options] Override http request option.
|
|
259
|
+
* @throws {RequiredError}
|
|
260
|
+
*/
|
|
261
|
+
billingServiceUpdatePolicyBilling: function (code, ifMatch, body, options) {
|
|
262
|
+
if (options === void 0) { options = {}; }
|
|
263
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
264
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, ifMatchIsAuth, ifMatchValue, ifMatchKeepEmpty, headersFromBaseOptions;
|
|
265
|
+
var _a;
|
|
266
|
+
return __generator(this, function (_b) {
|
|
267
|
+
// verify required parameter 'code' is not null or undefined
|
|
268
|
+
(0, common_1.assertParamExists)('billingServiceUpdatePolicyBilling', 'code', code);
|
|
269
|
+
// verify required parameter 'ifMatch' is not null or undefined
|
|
270
|
+
(0, common_1.assertParamExists)('billingServiceUpdatePolicyBilling', 'ifMatch', ifMatch);
|
|
271
|
+
// verify required parameter 'body' is not null or undefined
|
|
272
|
+
(0, common_1.assertParamExists)('billingServiceUpdatePolicyBilling', 'body', body);
|
|
273
|
+
localVarPath = "/billingservice/v2/policies-billings/{code}"
|
|
274
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
275
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
276
|
+
if (configuration) {
|
|
277
|
+
baseOptions = configuration.baseOptions;
|
|
278
|
+
baseAccessToken = configuration.accessToken;
|
|
279
|
+
}
|
|
280
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
281
|
+
localVarHeaderParameter = {};
|
|
282
|
+
localVarQueryParameter = {};
|
|
283
|
+
ifMatchIsAuth = 'If-Match'.toLowerCase() === 'authorization';
|
|
284
|
+
ifMatchValue = ifMatchIsAuth ? (ifMatch || baseAccessToken) : ifMatch;
|
|
285
|
+
ifMatchKeepEmpty = ifMatchIsAuth && ifMatchValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
286
|
+
if (ifMatchValue || ifMatchKeepEmpty) {
|
|
287
|
+
localVarHeaderParameter['If-Match'] = String(ifMatchValue);
|
|
288
|
+
}
|
|
289
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
290
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
291
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
292
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
293
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
294
|
+
return [2 /*return*/, {
|
|
295
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
296
|
+
options: localVarRequestOptions,
|
|
297
|
+
}];
|
|
298
|
+
});
|
|
299
|
+
});
|
|
300
|
+
},
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
exports.PolicyBillingsApiAxiosParamCreator = PolicyBillingsApiAxiosParamCreator;
|
|
304
|
+
/**
|
|
305
|
+
* PolicyBillingsApi - functional programming interface
|
|
306
|
+
* @export
|
|
307
|
+
*/
|
|
308
|
+
var PolicyBillingsApiFp = function (configuration) {
|
|
309
|
+
var localVarAxiosParamCreator = (0, exports.PolicyBillingsApiAxiosParamCreator)(configuration);
|
|
310
|
+
return {
|
|
311
|
+
/**
|
|
312
|
+
* 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`.
|
|
313
|
+
* @summary Opens the billing schedule row of a policy.
|
|
314
|
+
* @param {CreatePolicyBillingRequest} body The request of `CreatePolicyBilling`.
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
billingServiceCreatePolicyBilling: function (body, options) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
320
|
+
var localVarAxiosArgs;
|
|
321
|
+
return __generator(this, function (_a) {
|
|
322
|
+
switch (_a.label) {
|
|
323
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceCreatePolicyBilling(body, options)];
|
|
324
|
+
case 1:
|
|
325
|
+
localVarAxiosArgs = _a.sent();
|
|
326
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
327
|
+
}
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
},
|
|
331
|
+
/**
|
|
332
|
+
*
|
|
333
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
billingServiceGetPoliciesBillingFilterCatalog: function (options) {
|
|
338
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
339
|
+
var localVarAxiosArgs;
|
|
340
|
+
return __generator(this, function (_a) {
|
|
341
|
+
switch (_a.label) {
|
|
342
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceGetPoliciesBillingFilterCatalog(options)];
|
|
343
|
+
case 1:
|
|
344
|
+
localVarAxiosArgs = _a.sent();
|
|
345
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
346
|
+
}
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
},
|
|
350
|
+
/**
|
|
351
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
352
|
+
* @summary Returns one billing schedule row.
|
|
353
|
+
* @param {string} code The code of the schedule row.
|
|
354
|
+
* @param {*} [options] Override http request option.
|
|
355
|
+
* @throws {RequiredError}
|
|
356
|
+
*/
|
|
357
|
+
billingServiceGetPolicyBilling: function (code, options) {
|
|
358
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
359
|
+
var localVarAxiosArgs;
|
|
360
|
+
return __generator(this, function (_a) {
|
|
361
|
+
switch (_a.label) {
|
|
362
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceGetPolicyBilling(code, options)];
|
|
363
|
+
case 1:
|
|
364
|
+
localVarAxiosArgs = _a.sent();
|
|
365
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
366
|
+
}
|
|
367
|
+
});
|
|
368
|
+
});
|
|
369
|
+
},
|
|
370
|
+
/**
|
|
371
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
372
|
+
* @summary Lists the billing schedule rows.
|
|
373
|
+
* @param {number} [pageSize]
|
|
374
|
+
* @param {string} [pageToken]
|
|
375
|
+
* @param {string} [filter]
|
|
376
|
+
* @param {string} [search]
|
|
377
|
+
* @param {string} [order]
|
|
378
|
+
* @param {string} [expand]
|
|
379
|
+
* @param {string} [filters]
|
|
380
|
+
* @param {*} [options] Override http request option.
|
|
381
|
+
* @throws {RequiredError}
|
|
382
|
+
*/
|
|
383
|
+
billingServiceListPoliciesBillings: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
384
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
385
|
+
var localVarAxiosArgs;
|
|
386
|
+
return __generator(this, function (_a) {
|
|
387
|
+
switch (_a.label) {
|
|
388
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceListPoliciesBillings(pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
389
|
+
case 1:
|
|
390
|
+
localVarAxiosArgs = _a.sent();
|
|
391
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
392
|
+
}
|
|
393
|
+
});
|
|
394
|
+
});
|
|
395
|
+
},
|
|
396
|
+
/**
|
|
397
|
+
* The new `status` is `paused` or `pending`.
|
|
398
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
399
|
+
* @param {string} code The code of the schedule row.
|
|
400
|
+
* @param {string} ifMatch The billing row\'s `etag` as last read, sent back unchanged.
|
|
401
|
+
* @param {UpdatePolicyBillingBody} body
|
|
402
|
+
* @param {*} [options] Override http request option.
|
|
403
|
+
* @throws {RequiredError}
|
|
404
|
+
*/
|
|
405
|
+
billingServiceUpdatePolicyBilling: function (code, ifMatch, body, options) {
|
|
406
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
407
|
+
var localVarAxiosArgs;
|
|
408
|
+
return __generator(this, function (_a) {
|
|
409
|
+
switch (_a.label) {
|
|
410
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceUpdatePolicyBilling(code, ifMatch, body, options)];
|
|
411
|
+
case 1:
|
|
412
|
+
localVarAxiosArgs = _a.sent();
|
|
413
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
});
|
|
417
|
+
},
|
|
418
|
+
};
|
|
419
|
+
};
|
|
420
|
+
exports.PolicyBillingsApiFp = PolicyBillingsApiFp;
|
|
421
|
+
/**
|
|
422
|
+
* PolicyBillingsApi - factory interface
|
|
423
|
+
* @export
|
|
424
|
+
*/
|
|
425
|
+
var PolicyBillingsApiFactory = function (configuration, basePath, axios) {
|
|
426
|
+
var localVarFp = (0, exports.PolicyBillingsApiFp)(configuration);
|
|
427
|
+
return {
|
|
428
|
+
/**
|
|
429
|
+
* 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`.
|
|
430
|
+
* @summary Opens the billing schedule row of a policy.
|
|
431
|
+
* @param {CreatePolicyBillingRequest} body The request of `CreatePolicyBilling`.
|
|
432
|
+
* @param {*} [options] Override http request option.
|
|
433
|
+
* @throws {RequiredError}
|
|
434
|
+
*/
|
|
435
|
+
billingServiceCreatePolicyBilling: function (body, options) {
|
|
436
|
+
return localVarFp.billingServiceCreatePolicyBilling(body, options).then(function (request) { return request(axios, basePath); });
|
|
437
|
+
},
|
|
438
|
+
/**
|
|
439
|
+
*
|
|
440
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
441
|
+
* @param {*} [options] Override http request option.
|
|
442
|
+
* @throws {RequiredError}
|
|
443
|
+
*/
|
|
444
|
+
billingServiceGetPoliciesBillingFilterCatalog: function (options) {
|
|
445
|
+
return localVarFp.billingServiceGetPoliciesBillingFilterCatalog(options).then(function (request) { return request(axios, basePath); });
|
|
446
|
+
},
|
|
447
|
+
/**
|
|
448
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
449
|
+
* @summary Returns one billing schedule row.
|
|
450
|
+
* @param {string} code The code of the schedule row.
|
|
451
|
+
* @param {*} [options] Override http request option.
|
|
452
|
+
* @throws {RequiredError}
|
|
453
|
+
*/
|
|
454
|
+
billingServiceGetPolicyBilling: function (code, options) {
|
|
455
|
+
return localVarFp.billingServiceGetPolicyBilling(code, options).then(function (request) { return request(axios, basePath); });
|
|
456
|
+
},
|
|
457
|
+
/**
|
|
458
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
459
|
+
* @summary Lists the billing schedule rows.
|
|
460
|
+
* @param {number} [pageSize]
|
|
461
|
+
* @param {string} [pageToken]
|
|
462
|
+
* @param {string} [filter]
|
|
463
|
+
* @param {string} [search]
|
|
464
|
+
* @param {string} [order]
|
|
465
|
+
* @param {string} [expand]
|
|
466
|
+
* @param {string} [filters]
|
|
467
|
+
* @param {*} [options] Override http request option.
|
|
468
|
+
* @throws {RequiredError}
|
|
469
|
+
*/
|
|
470
|
+
billingServiceListPoliciesBillings: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
471
|
+
return localVarFp.billingServiceListPoliciesBillings(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
472
|
+
},
|
|
473
|
+
/**
|
|
474
|
+
* The new `status` is `paused` or `pending`.
|
|
475
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
476
|
+
* @param {string} code The code of the schedule row.
|
|
477
|
+
* @param {string} ifMatch The billing row\'s `etag` as last read, sent back unchanged.
|
|
478
|
+
* @param {UpdatePolicyBillingBody} body
|
|
479
|
+
* @param {*} [options] Override http request option.
|
|
480
|
+
* @throws {RequiredError}
|
|
481
|
+
*/
|
|
482
|
+
billingServiceUpdatePolicyBilling: function (code, ifMatch, body, options) {
|
|
483
|
+
return localVarFp.billingServiceUpdatePolicyBilling(code, ifMatch, body, options).then(function (request) { return request(axios, basePath); });
|
|
484
|
+
},
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
exports.PolicyBillingsApiFactory = PolicyBillingsApiFactory;
|
|
488
|
+
/**
|
|
489
|
+
* PolicyBillingsApi - object-oriented interface
|
|
490
|
+
* @export
|
|
491
|
+
* @class PolicyBillingsApi
|
|
492
|
+
* @extends {BaseAPI}
|
|
493
|
+
*/
|
|
494
|
+
var PolicyBillingsApi = /** @class */ (function (_super) {
|
|
495
|
+
__extends(PolicyBillingsApi, _super);
|
|
496
|
+
function PolicyBillingsApi() {
|
|
497
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
498
|
+
}
|
|
499
|
+
/**
|
|
500
|
+
* 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`.
|
|
501
|
+
* @summary Opens the billing schedule row of a policy.
|
|
502
|
+
* @param {PolicyBillingsApiBillingServiceCreatePolicyBillingRequest} requestParameters Request parameters.
|
|
503
|
+
* @param {*} [options] Override http request option.
|
|
504
|
+
* @throws {RequiredError}
|
|
505
|
+
* @memberof PolicyBillingsApi
|
|
506
|
+
*/
|
|
507
|
+
PolicyBillingsApi.prototype.billingServiceCreatePolicyBilling = function (requestParameters, options) {
|
|
508
|
+
var _this = this;
|
|
509
|
+
return (0, exports.PolicyBillingsApiFp)(this.configuration).billingServiceCreatePolicyBilling(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
510
|
+
};
|
|
511
|
+
/**
|
|
512
|
+
*
|
|
513
|
+
* @summary Returns the filter catalog of the billing schedule list.
|
|
514
|
+
* @param {*} [options] Override http request option.
|
|
515
|
+
* @throws {RequiredError}
|
|
516
|
+
* @memberof PolicyBillingsApi
|
|
517
|
+
*/
|
|
518
|
+
PolicyBillingsApi.prototype.billingServiceGetPoliciesBillingFilterCatalog = function (options) {
|
|
519
|
+
var _this = this;
|
|
520
|
+
return (0, exports.PolicyBillingsApiFp)(this.configuration).billingServiceGetPoliciesBillingFilterCatalog(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* The row carries its `etag`, which `UpdatePolicyBilling` takes in the `If-Match` header.
|
|
524
|
+
* @summary Returns one billing schedule row.
|
|
525
|
+
* @param {PolicyBillingsApiBillingServiceGetPolicyBillingRequest} requestParameters Request parameters.
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
* @memberof PolicyBillingsApi
|
|
529
|
+
*/
|
|
530
|
+
PolicyBillingsApi.prototype.billingServiceGetPolicyBilling = function (requestParameters, options) {
|
|
531
|
+
var _this = this;
|
|
532
|
+
return (0, exports.PolicyBillingsApiFp)(this.configuration).billingServiceGetPolicyBilling(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* An item is the schedule row, with `match` when `search` is set. - Search: the policy and group policy codes.
|
|
536
|
+
* @summary Lists the billing schedule rows.
|
|
537
|
+
* @param {PolicyBillingsApiBillingServiceListPoliciesBillingsRequest} requestParameters Request parameters.
|
|
538
|
+
* @param {*} [options] Override http request option.
|
|
539
|
+
* @throws {RequiredError}
|
|
540
|
+
* @memberof PolicyBillingsApi
|
|
541
|
+
*/
|
|
542
|
+
PolicyBillingsApi.prototype.billingServiceListPoliciesBillings = function (requestParameters, options) {
|
|
543
|
+
var _this = this;
|
|
544
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
545
|
+
return (0, exports.PolicyBillingsApiFp)(this.configuration).billingServiceListPoliciesBillings(requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
546
|
+
};
|
|
547
|
+
/**
|
|
548
|
+
* The new `status` is `paused` or `pending`.
|
|
549
|
+
* @summary Pauses or resumes a billing schedule row.
|
|
550
|
+
* @param {PolicyBillingsApiBillingServiceUpdatePolicyBillingRequest} requestParameters Request parameters.
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
* @memberof PolicyBillingsApi
|
|
554
|
+
*/
|
|
555
|
+
PolicyBillingsApi.prototype.billingServiceUpdatePolicyBilling = function (requestParameters, options) {
|
|
556
|
+
var _this = this;
|
|
557
|
+
return (0, exports.PolicyBillingsApiFp)(this.configuration).billingServiceUpdatePolicyBilling(requestParameters.code, requestParameters.ifMatch, requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
558
|
+
};
|
|
559
|
+
return PolicyBillingsApi;
|
|
560
|
+
}(base_1.BaseAPI));
|
|
561
|
+
exports.PolicyBillingsApi = PolicyBillingsApi;
|
package/dist/api.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL Billing Service
|
|
3
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export * from './api/bill-runs-api';
|
|
13
|
+
export * from './api/bills-api';
|
|
14
|
+
export * from './api/invoices-api';
|
|
15
|
+
export * from './api/jobs-api';
|
|
16
|
+
export * from './api/policy-billings-api';
|
package/dist/api.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL Billing Service
|
|
6
|
+
* The billing service: bills, bill runs, invoices and policy billings.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
16
|
+
if (k2 === undefined) k2 = k;
|
|
17
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
18
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
19
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20
|
+
}
|
|
21
|
+
Object.defineProperty(o, k2, desc);
|
|
22
|
+
}) : (function(o, m, k, k2) {
|
|
23
|
+
if (k2 === undefined) k2 = k;
|
|
24
|
+
o[k2] = m[k];
|
|
25
|
+
}));
|
|
26
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
27
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
__exportStar(require("./api/bill-runs-api"), exports);
|
|
31
|
+
__exportStar(require("./api/bills-api"), exports);
|
|
32
|
+
__exportStar(require("./api/invoices-api"), exports);
|
|
33
|
+
__exportStar(require("./api/jobs-api"), exports);
|
|
34
|
+
__exportStar(require("./api/policy-billings-api"), exports);
|