@emilgroup/billing-v2-sdk-node 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 +83 -2
- package/api/bill-runs-api.ts +472 -0
- package/api/bills-api.ts +149 -0
- package/api/invoices-api.ts +1534 -0
- package/api/jobs-api.ts +760 -0
- package/api/policy-billings-api.ts +595 -0
- package/api.ts +39 -0
- package/base.ts +396 -0
- package/common.ts +200 -0
- package/configuration.ts +118 -0
- package/dist/api/bill-runs-api.d.ts +266 -0
- package/dist/api/bill-runs-api.js +470 -0
- package/dist/api/bills-api.d.ts +87 -0
- package/dist/api/bills-api.js +211 -0
- package/dist/api/invoices-api.d.ts +847 -0
- package/dist/api/invoices-api.js +1357 -0
- package/dist/api/jobs-api.d.ts +426 -0
- package/dist/api/jobs-api.js +712 -0
- package/dist/api/policy-billings-api.d.ts +332 -0
- package/dist/api/policy-billings-api.js +565 -0
- package/dist/api.d.ts +16 -0
- package/dist/api.js +34 -0
- package/dist/base.d.ts +97 -0
- package/dist/base.js +493 -0
- package/dist/common.d.ts +92 -0
- package/dist/common.js +278 -0
- package/dist/configuration.d.ts +96 -0
- package/dist/configuration.js +52 -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 +27 -4
- package/tsconfig.json +23 -0
package/dist/common.js
ADDED
|
@@ -0,0 +1,278 @@
|
|
|
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 __assign = (this && this.__assign) || function () {
|
|
16
|
+
__assign = Object.assign || function(t) {
|
|
17
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
18
|
+
s = arguments[i];
|
|
19
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
20
|
+
t[p] = s[p];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
24
|
+
return __assign.apply(this, arguments);
|
|
25
|
+
};
|
|
26
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
27
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
28
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
29
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
30
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
31
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
32
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
36
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
37
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
38
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
39
|
+
function step(op) {
|
|
40
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
41
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
42
|
+
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;
|
|
43
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
44
|
+
switch (op[0]) {
|
|
45
|
+
case 0: case 1: t = op; break;
|
|
46
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
47
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
48
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
49
|
+
default:
|
|
50
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
51
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
52
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
53
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
54
|
+
if (t[2]) _.ops.pop();
|
|
55
|
+
_.trys.pop(); continue;
|
|
56
|
+
}
|
|
57
|
+
op = body.call(thisArg, _);
|
|
58
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
59
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
63
|
+
exports.defaultStorage = exports.LocalStorage = exports.createRequestFunction = exports.toPathString = exports.serializeDataIfNeeded = exports.setSearchParams = exports.setOAuthToObject = exports.setBearerAuthToObject = exports.setBasicAuthToObject = exports.setApiKeyToObject = exports.assertParamExists = exports.DUMMY_BASE_URL = void 0;
|
|
64
|
+
var base_1 = require("./base");
|
|
65
|
+
var url_1 = require("url");
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @export
|
|
69
|
+
*/
|
|
70
|
+
exports.DUMMY_BASE_URL = 'https://example.com';
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @throws {RequiredError}
|
|
74
|
+
* @export
|
|
75
|
+
*/
|
|
76
|
+
var assertParamExists = function (functionName, paramName, paramValue) {
|
|
77
|
+
if (paramValue === null || paramValue === undefined) {
|
|
78
|
+
throw new base_1.RequiredError(paramName, "Required parameter ".concat(paramName, " was null or undefined when calling ").concat(functionName, "."));
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
exports.assertParamExists = assertParamExists;
|
|
82
|
+
/**
|
|
83
|
+
*
|
|
84
|
+
* @export
|
|
85
|
+
*/
|
|
86
|
+
var setApiKeyToObject = function (object, keyParamName, configuration) {
|
|
87
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
88
|
+
var localVarApiKeyValue, _a;
|
|
89
|
+
return __generator(this, function (_b) {
|
|
90
|
+
switch (_b.label) {
|
|
91
|
+
case 0:
|
|
92
|
+
if (!(configuration && configuration.apiKey)) return [3 /*break*/, 5];
|
|
93
|
+
if (!(typeof configuration.apiKey === 'function')) return [3 /*break*/, 2];
|
|
94
|
+
return [4 /*yield*/, configuration.apiKey(keyParamName)];
|
|
95
|
+
case 1:
|
|
96
|
+
_a = _b.sent();
|
|
97
|
+
return [3 /*break*/, 4];
|
|
98
|
+
case 2: return [4 /*yield*/, configuration.apiKey];
|
|
99
|
+
case 3:
|
|
100
|
+
_a = _b.sent();
|
|
101
|
+
_b.label = 4;
|
|
102
|
+
case 4:
|
|
103
|
+
localVarApiKeyValue = _a;
|
|
104
|
+
object[keyParamName] = localVarApiKeyValue;
|
|
105
|
+
_b.label = 5;
|
|
106
|
+
case 5: return [2 /*return*/];
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
};
|
|
111
|
+
exports.setApiKeyToObject = setApiKeyToObject;
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @export
|
|
115
|
+
*/
|
|
116
|
+
var setBasicAuthToObject = function (object, configuration) {
|
|
117
|
+
if (configuration && (configuration.username || configuration.password)) {
|
|
118
|
+
object["auth"] = { username: configuration.username, password: configuration.password };
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
exports.setBasicAuthToObject = setBasicAuthToObject;
|
|
122
|
+
/**
|
|
123
|
+
*
|
|
124
|
+
* @export
|
|
125
|
+
*/
|
|
126
|
+
var setBearerAuthToObject = function (object, configuration) {
|
|
127
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
128
|
+
var accessToken, _a;
|
|
129
|
+
return __generator(this, function (_b) {
|
|
130
|
+
switch (_b.label) {
|
|
131
|
+
case 0:
|
|
132
|
+
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
|
133
|
+
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
134
|
+
return [4 /*yield*/, configuration.accessToken()];
|
|
135
|
+
case 1:
|
|
136
|
+
_a = _b.sent();
|
|
137
|
+
return [3 /*break*/, 4];
|
|
138
|
+
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
139
|
+
case 3:
|
|
140
|
+
_a = _b.sent();
|
|
141
|
+
_b.label = 4;
|
|
142
|
+
case 4:
|
|
143
|
+
accessToken = _a;
|
|
144
|
+
object["Authorization"] = configuration.getBearerToken(accessToken);
|
|
145
|
+
_b.label = 5;
|
|
146
|
+
case 5: return [2 /*return*/];
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
};
|
|
151
|
+
exports.setBearerAuthToObject = setBearerAuthToObject;
|
|
152
|
+
/**
|
|
153
|
+
*
|
|
154
|
+
* @export
|
|
155
|
+
*/
|
|
156
|
+
var setOAuthToObject = function (object, name, scopes, configuration) {
|
|
157
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
158
|
+
var localVarAccessTokenValue, _a;
|
|
159
|
+
return __generator(this, function (_b) {
|
|
160
|
+
switch (_b.label) {
|
|
161
|
+
case 0:
|
|
162
|
+
if (!(configuration && configuration.accessToken)) return [3 /*break*/, 5];
|
|
163
|
+
if (!(typeof configuration.accessToken === 'function')) return [3 /*break*/, 2];
|
|
164
|
+
return [4 /*yield*/, configuration.accessToken(name, scopes)];
|
|
165
|
+
case 1:
|
|
166
|
+
_a = _b.sent();
|
|
167
|
+
return [3 /*break*/, 4];
|
|
168
|
+
case 2: return [4 /*yield*/, configuration.accessToken];
|
|
169
|
+
case 3:
|
|
170
|
+
_a = _b.sent();
|
|
171
|
+
_b.label = 4;
|
|
172
|
+
case 4:
|
|
173
|
+
localVarAccessTokenValue = _a;
|
|
174
|
+
object["Authorization"] = configuration.getBearerToken(localVarAccessTokenValue);
|
|
175
|
+
_b.label = 5;
|
|
176
|
+
case 5: return [2 /*return*/];
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
};
|
|
181
|
+
exports.setOAuthToObject = setOAuthToObject;
|
|
182
|
+
/**
|
|
183
|
+
*
|
|
184
|
+
* @export
|
|
185
|
+
*/
|
|
186
|
+
var setSearchParams = function (url) {
|
|
187
|
+
var objects = [];
|
|
188
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
189
|
+
objects[_i - 1] = arguments[_i];
|
|
190
|
+
}
|
|
191
|
+
var searchParams = new url_1.URLSearchParams(url.search);
|
|
192
|
+
for (var _a = 0, objects_1 = objects; _a < objects_1.length; _a++) {
|
|
193
|
+
var object = objects_1[_a];
|
|
194
|
+
for (var key in object) {
|
|
195
|
+
if (Array.isArray(object[key])) {
|
|
196
|
+
searchParams.delete(key);
|
|
197
|
+
for (var _b = 0, _c = object[key]; _b < _c.length; _b++) {
|
|
198
|
+
var item = _c[_b];
|
|
199
|
+
searchParams.append(key, item);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
else {
|
|
203
|
+
searchParams.set(key, object[key]);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
url.search = searchParams.toString();
|
|
208
|
+
};
|
|
209
|
+
exports.setSearchParams = setSearchParams;
|
|
210
|
+
/**
|
|
211
|
+
*
|
|
212
|
+
* @export
|
|
213
|
+
*/
|
|
214
|
+
var serializeDataIfNeeded = function (value, requestOptions, configuration) {
|
|
215
|
+
var nonString = typeof value !== 'string';
|
|
216
|
+
var needsSerialization = nonString && configuration && configuration.isJsonMime
|
|
217
|
+
? configuration.isJsonMime(requestOptions.headers['Content-Type'])
|
|
218
|
+
: nonString;
|
|
219
|
+
return needsSerialization
|
|
220
|
+
? JSON.stringify(value !== undefined ? value : {})
|
|
221
|
+
: (value || "");
|
|
222
|
+
};
|
|
223
|
+
exports.serializeDataIfNeeded = serializeDataIfNeeded;
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @export
|
|
227
|
+
*/
|
|
228
|
+
var toPathString = function (url) {
|
|
229
|
+
return url.pathname + url.search + url.hash;
|
|
230
|
+
};
|
|
231
|
+
exports.toPathString = toPathString;
|
|
232
|
+
/**
|
|
233
|
+
*
|
|
234
|
+
* @export
|
|
235
|
+
*/
|
|
236
|
+
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
237
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
238
|
+
return function (axios, basePath) {
|
|
239
|
+
if (axios === void 0) { axios = globalAxios; }
|
|
240
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
241
|
+
var axiosRequestArgs = __assign(__assign({}, axiosArgs.options), { url: ((configuration === null || configuration === void 0 ? void 0 : configuration.basePath) || basePath) + axiosArgs.url });
|
|
242
|
+
return axios.request(axiosRequestArgs);
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
exports.createRequestFunction = createRequestFunction;
|
|
246
|
+
var LocalStorage = /** @class */ (function () {
|
|
247
|
+
function LocalStorage() {
|
|
248
|
+
this.storage = localStorage;
|
|
249
|
+
}
|
|
250
|
+
LocalStorage.prototype.get = function (key, converter) {
|
|
251
|
+
var jsonValue = this.storage.getItem(key);
|
|
252
|
+
if (jsonValue === null) {
|
|
253
|
+
return null;
|
|
254
|
+
}
|
|
255
|
+
var value = JSON.parse(jsonValue);
|
|
256
|
+
if (converter !== undefined) {
|
|
257
|
+
return converter.fromStorageData(value);
|
|
258
|
+
}
|
|
259
|
+
else {
|
|
260
|
+
return value;
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
LocalStorage.prototype.set = function (key, value, converter) {
|
|
264
|
+
var valueToStore = value;
|
|
265
|
+
if (converter !== undefined) {
|
|
266
|
+
valueToStore = converter.toStorageData(value);
|
|
267
|
+
}
|
|
268
|
+
var jsonValue = JSON.stringify(valueToStore);
|
|
269
|
+
this.storage.setItem(key, jsonValue);
|
|
270
|
+
};
|
|
271
|
+
return LocalStorage;
|
|
272
|
+
}());
|
|
273
|
+
exports.LocalStorage = LocalStorage;
|
|
274
|
+
var _defaultStorage = null;
|
|
275
|
+
var defaultStorage = function () {
|
|
276
|
+
return _defaultStorage || (_defaultStorage = new LocalStorage());
|
|
277
|
+
};
|
|
278
|
+
exports.defaultStorage = defaultStorage;
|
|
@@ -0,0 +1,96 @@
|
|
|
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 interface ConfigurationParameters {
|
|
13
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
14
|
+
username?: string;
|
|
15
|
+
password?: string;
|
|
16
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
17
|
+
basePath?: string;
|
|
18
|
+
baseOptions?: any;
|
|
19
|
+
formDataCtor?: new () => any;
|
|
20
|
+
}
|
|
21
|
+
export declare class Configuration {
|
|
22
|
+
/**
|
|
23
|
+
* parameter for apiKey security
|
|
24
|
+
* @param name security name
|
|
25
|
+
* @memberof Configuration
|
|
26
|
+
*/
|
|
27
|
+
apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
|
|
28
|
+
/**
|
|
29
|
+
* parameter for basic security
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof Configuration
|
|
33
|
+
*/
|
|
34
|
+
username?: string;
|
|
35
|
+
/**
|
|
36
|
+
* parameter for basic security
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof Configuration
|
|
40
|
+
*/
|
|
41
|
+
password?: string;
|
|
42
|
+
/**
|
|
43
|
+
* parameter for oauth2 security
|
|
44
|
+
* @param name security name
|
|
45
|
+
* @param scopes oauth2 scope
|
|
46
|
+
* @memberof Configuration
|
|
47
|
+
*/
|
|
48
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
49
|
+
/**
|
|
50
|
+
* override base path
|
|
51
|
+
*
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof Configuration
|
|
54
|
+
*/
|
|
55
|
+
basePath?: string;
|
|
56
|
+
/**
|
|
57
|
+
* base options for axios calls
|
|
58
|
+
*
|
|
59
|
+
* @type {any}
|
|
60
|
+
* @memberof Configuration
|
|
61
|
+
*/
|
|
62
|
+
baseOptions?: any;
|
|
63
|
+
/**
|
|
64
|
+
* The FormData constructor that will be used to create multipart form data
|
|
65
|
+
* requests. You can inject this here so that execution environments that
|
|
66
|
+
* do not support the FormData class can still run the generated client.
|
|
67
|
+
*
|
|
68
|
+
* @type {new () => FormData}
|
|
69
|
+
*/
|
|
70
|
+
formDataCtor?: new () => any;
|
|
71
|
+
/**
|
|
72
|
+
* parameter for automatically refreshing access token for oauth2 security
|
|
73
|
+
*
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof Configuration
|
|
76
|
+
*/
|
|
77
|
+
refreshToken?: string;
|
|
78
|
+
constructor(param?: ConfigurationParameters);
|
|
79
|
+
/**
|
|
80
|
+
* Check if the given MIME is a JSON MIME.
|
|
81
|
+
* JSON MIME examples:
|
|
82
|
+
* application/json
|
|
83
|
+
* application/json; charset=UTF8
|
|
84
|
+
* APPLICATION/JSON
|
|
85
|
+
* application/vnd.company+json
|
|
86
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
87
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
88
|
+
*/
|
|
89
|
+
isJsonMime(mime: string): boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Returns "Bearer" token.
|
|
92
|
+
* @param token - access token.
|
|
93
|
+
* @return Bearer token.
|
|
94
|
+
*/
|
|
95
|
+
getBearerToken(token?: string): string;
|
|
96
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.Configuration = void 0;
|
|
17
|
+
var Configuration = /** @class */ (function () {
|
|
18
|
+
function Configuration(param) {
|
|
19
|
+
if (param === void 0) { param = {}; }
|
|
20
|
+
this.apiKey = param.apiKey;
|
|
21
|
+
this.username = param.username;
|
|
22
|
+
this.password = param.password;
|
|
23
|
+
this.accessToken = param.accessToken;
|
|
24
|
+
this.basePath = param.basePath;
|
|
25
|
+
this.baseOptions = param.baseOptions;
|
|
26
|
+
this.formDataCtor = param.formDataCtor;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Check if the given MIME is a JSON MIME.
|
|
30
|
+
* JSON MIME examples:
|
|
31
|
+
* application/json
|
|
32
|
+
* application/json; charset=UTF8
|
|
33
|
+
* APPLICATION/JSON
|
|
34
|
+
* application/vnd.company+json
|
|
35
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
36
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
37
|
+
*/
|
|
38
|
+
Configuration.prototype.isJsonMime = function (mime) {
|
|
39
|
+
var jsonMime = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
40
|
+
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Returns "Bearer" token.
|
|
44
|
+
* @param token - access token.
|
|
45
|
+
* @return Bearer token.
|
|
46
|
+
*/
|
|
47
|
+
Configuration.prototype.getBearerToken = function (token) {
|
|
48
|
+
return ('' + token).startsWith("Bearer") ? token : "Bearer " + token;
|
|
49
|
+
};
|
|
50
|
+
return Configuration;
|
|
51
|
+
}());
|
|
52
|
+
exports.Configuration = Configuration;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
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 { Environment, BaseAPI } from "./base";
|
|
13
|
+
export * from "./api";
|
|
14
|
+
export * from "./configuration";
|
|
15
|
+
export * from "./models";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
|
+
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
33
|
+
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
34
|
+
__exportStar(require("./api"), exports);
|
|
35
|
+
__exportStar(require("./configuration"), exports);
|
|
36
|
+
__exportStar(require("./models"), exports);
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface Any
|
|
16
|
+
*/
|
|
17
|
+
export interface Any {
|
|
18
|
+
[key: string]: object | any;
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof Any
|
|
23
|
+
*/
|
|
24
|
+
'@type'?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,132 @@
|
|
|
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
|
+
/**
|
|
13
|
+
* One priced line of a bill: one premium item over one part of the billing period.
|
|
14
|
+
* @export
|
|
15
|
+
* @interface BillItem
|
|
16
|
+
*/
|
|
17
|
+
export interface BillItem {
|
|
18
|
+
/**
|
|
19
|
+
* The first day the line covers, as an RFC 3339 full-date. The window includes this day.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof BillItem
|
|
22
|
+
*/
|
|
23
|
+
'coveredFrom'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The end of the window the line covers, as an RFC 3339 full-date. The window does not include this day.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof BillItem
|
|
28
|
+
*/
|
|
29
|
+
'coveredTo'?: string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof BillItem
|
|
34
|
+
*/
|
|
35
|
+
'createdAt'?: string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof BillItem
|
|
40
|
+
*/
|
|
41
|
+
'createdBy'?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The gross amount of the line, in minor units.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof BillItem
|
|
46
|
+
*/
|
|
47
|
+
'grossAmount'?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The group of the premium item.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof BillItem
|
|
52
|
+
*/
|
|
53
|
+
'group'?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof BillItem
|
|
58
|
+
*/
|
|
59
|
+
'id'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* The key of the premium item.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof BillItem
|
|
64
|
+
*/
|
|
65
|
+
'itemKey'?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The type of the premium item, such as `NET` or `TOTAL`.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof BillItem
|
|
70
|
+
*/
|
|
71
|
+
'itemType'?: string;
|
|
72
|
+
/**
|
|
73
|
+
* The name of the premium item.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof BillItem
|
|
76
|
+
*/
|
|
77
|
+
'name'?: string;
|
|
78
|
+
/**
|
|
79
|
+
* The net amount of the line, in minor units.
|
|
80
|
+
* @type {number}
|
|
81
|
+
* @memberof BillItem
|
|
82
|
+
*/
|
|
83
|
+
'netAmount'?: number;
|
|
84
|
+
/**
|
|
85
|
+
* The id of the policy state this line was priced from.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof BillItem
|
|
88
|
+
*/
|
|
89
|
+
'policySnapshotId'?: string;
|
|
90
|
+
/**
|
|
91
|
+
* The period the premium is stated for: `PER_DAY`, `PER_MONTH`, `PER_YEAR` or `ONE_TIME`.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof BillItem
|
|
94
|
+
*/
|
|
95
|
+
'premiumPeriod'?: string;
|
|
96
|
+
/**
|
|
97
|
+
* The gross premium for one unit, as an exact string (`8.59`): for one billing period on a monthly or yearly premium, for one day on a daily one. A decimal when it terminates within 10 places, otherwise a fraction.
|
|
98
|
+
* @type {string}
|
|
99
|
+
* @memberof BillItem
|
|
100
|
+
*/
|
|
101
|
+
'pricePerUnit'?: string;
|
|
102
|
+
/**
|
|
103
|
+
* How many units the line bills, as an exact string: the covered fraction of the period (`1`, `0.5`, `17/31`) for a monthly or yearly premium, the days covered for a daily one, `1` for a one-time one. A decimal when it terminates within 10 places, otherwise a fraction.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof BillItem
|
|
106
|
+
*/
|
|
107
|
+
'quantity'?: string;
|
|
108
|
+
/**
|
|
109
|
+
* The tax amount of the line, in minor units.
|
|
110
|
+
* @type {number}
|
|
111
|
+
* @memberof BillItem
|
|
112
|
+
*/
|
|
113
|
+
'taxAmount'?: number;
|
|
114
|
+
/**
|
|
115
|
+
* The unit the line counts: the billing frequency word (`month`) for a monthly or yearly premium, `day` for a daily one, `oneTimePayment` for a one-time one.
|
|
116
|
+
* @type {string}
|
|
117
|
+
* @memberof BillItem
|
|
118
|
+
*/
|
|
119
|
+
'unit'?: string;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof BillItem
|
|
124
|
+
*/
|
|
125
|
+
'updatedAt'?: string;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {string}
|
|
129
|
+
* @memberof BillItem
|
|
130
|
+
*/
|
|
131
|
+
'updatedBy'?: string;
|
|
132
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|