@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
|
@@ -0,0 +1,470 @@
|
|
|
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.BillRunsApi = exports.BillRunsApiFactory = exports.BillRunsApiFp = exports.BillRunsApiAxiosParamCreator = 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
|
+
// URLSearchParams not necessarily used
|
|
89
|
+
// @ts-ignore
|
|
90
|
+
var url_1 = require("url");
|
|
91
|
+
var FormData = require('form-data');
|
|
92
|
+
/**
|
|
93
|
+
* BillRunsApi - axios parameter creator
|
|
94
|
+
* @export
|
|
95
|
+
*/
|
|
96
|
+
var BillRunsApiAxiosParamCreator = function (configuration) {
|
|
97
|
+
var _this = this;
|
|
98
|
+
return {
|
|
99
|
+
/**
|
|
100
|
+
*
|
|
101
|
+
* @summary Returns one bill run.
|
|
102
|
+
* @param {string} code The run\'s code.
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
billingServiceGetBillRun: function (code, options) {
|
|
107
|
+
if (options === void 0) { options = {}; }
|
|
108
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
109
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
110
|
+
return __generator(this, function (_a) {
|
|
111
|
+
// verify required parameter 'code' is not null or undefined
|
|
112
|
+
(0, common_1.assertParamExists)('billingServiceGetBillRun', 'code', code);
|
|
113
|
+
localVarPath = "/billingservice/v2/bill-runs/{code}"
|
|
114
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
115
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
116
|
+
if (configuration) {
|
|
117
|
+
baseOptions = configuration.baseOptions;
|
|
118
|
+
baseAccessToken = configuration.accessToken;
|
|
119
|
+
}
|
|
120
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
121
|
+
localVarHeaderParameter = {};
|
|
122
|
+
localVarQueryParameter = {};
|
|
123
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
124
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
125
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
126
|
+
return [2 /*return*/, {
|
|
127
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
128
|
+
options: localVarRequestOptions,
|
|
129
|
+
}];
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
*
|
|
135
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
136
|
+
* @param {*} [options] Override http request option.
|
|
137
|
+
* @throws {RequiredError}
|
|
138
|
+
*/
|
|
139
|
+
billingServiceGetBillRunFilterCatalog: function (options) {
|
|
140
|
+
if (options === void 0) { options = {}; }
|
|
141
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
142
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
143
|
+
return __generator(this, function (_a) {
|
|
144
|
+
localVarPath = "/billingservice/v2/bill-runs:filterCatalog";
|
|
145
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
146
|
+
if (configuration) {
|
|
147
|
+
baseOptions = configuration.baseOptions;
|
|
148
|
+
baseAccessToken = configuration.accessToken;
|
|
149
|
+
}
|
|
150
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
151
|
+
localVarHeaderParameter = {};
|
|
152
|
+
localVarQueryParameter = {};
|
|
153
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
154
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
155
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
156
|
+
return [2 /*return*/, {
|
|
157
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
158
|
+
options: localVarRequestOptions,
|
|
159
|
+
}];
|
|
160
|
+
});
|
|
161
|
+
});
|
|
162
|
+
},
|
|
163
|
+
/**
|
|
164
|
+
*
|
|
165
|
+
* @summary Lists bill runs.
|
|
166
|
+
* @param {number} [pageSize]
|
|
167
|
+
* @param {string} [pageToken]
|
|
168
|
+
* @param {string} [filter]
|
|
169
|
+
* @param {string} [search]
|
|
170
|
+
* @param {string} [order]
|
|
171
|
+
* @param {string} [expand]
|
|
172
|
+
* @param {string} [filters]
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
billingServiceListBillRuns: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
177
|
+
if (options === void 0) { options = {}; }
|
|
178
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
179
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
180
|
+
return __generator(this, function (_a) {
|
|
181
|
+
localVarPath = "/billingservice/v2/bill-runs";
|
|
182
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
183
|
+
if (configuration) {
|
|
184
|
+
baseOptions = configuration.baseOptions;
|
|
185
|
+
baseAccessToken = configuration.accessToken;
|
|
186
|
+
}
|
|
187
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
188
|
+
localVarHeaderParameter = {};
|
|
189
|
+
localVarQueryParameter = {};
|
|
190
|
+
if (pageSize !== undefined) {
|
|
191
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
192
|
+
}
|
|
193
|
+
if (pageToken !== undefined) {
|
|
194
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
195
|
+
}
|
|
196
|
+
if (filter !== undefined) {
|
|
197
|
+
localVarQueryParameter['filter'] = filter;
|
|
198
|
+
}
|
|
199
|
+
if (search !== undefined) {
|
|
200
|
+
localVarQueryParameter['search'] = search;
|
|
201
|
+
}
|
|
202
|
+
if (order !== undefined) {
|
|
203
|
+
localVarQueryParameter['order'] = order;
|
|
204
|
+
}
|
|
205
|
+
if (expand !== undefined) {
|
|
206
|
+
localVarQueryParameter['expand'] = expand;
|
|
207
|
+
}
|
|
208
|
+
if (filters !== undefined) {
|
|
209
|
+
localVarQueryParameter['filters'] = filters;
|
|
210
|
+
}
|
|
211
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
+
return [2 /*return*/, {
|
|
215
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
216
|
+
options: localVarRequestOptions,
|
|
217
|
+
}];
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
},
|
|
221
|
+
/**
|
|
222
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
223
|
+
* @summary Runs a bill run now.
|
|
224
|
+
* @param {RequestBillRunRequest} body The request of `RequestBillRun`.
|
|
225
|
+
* @param {*} [options] Override http request option.
|
|
226
|
+
* @throws {RequiredError}
|
|
227
|
+
*/
|
|
228
|
+
billingServiceRequestBillRun: function (body, options) {
|
|
229
|
+
if (options === void 0) { options = {}; }
|
|
230
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
231
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
232
|
+
return __generator(this, function (_a) {
|
|
233
|
+
// verify required parameter 'body' is not null or undefined
|
|
234
|
+
(0, common_1.assertParamExists)('billingServiceRequestBillRun', 'body', body);
|
|
235
|
+
localVarPath = "/billingservice/v2/bill-runs";
|
|
236
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
237
|
+
if (configuration) {
|
|
238
|
+
baseOptions = configuration.baseOptions;
|
|
239
|
+
baseAccessToken = configuration.accessToken;
|
|
240
|
+
}
|
|
241
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
242
|
+
localVarHeaderParameter = {};
|
|
243
|
+
localVarQueryParameter = {};
|
|
244
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
245
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
246
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
247
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
248
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
249
|
+
return [2 /*return*/, {
|
|
250
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
251
|
+
options: localVarRequestOptions,
|
|
252
|
+
}];
|
|
253
|
+
});
|
|
254
|
+
});
|
|
255
|
+
},
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
exports.BillRunsApiAxiosParamCreator = BillRunsApiAxiosParamCreator;
|
|
259
|
+
/**
|
|
260
|
+
* BillRunsApi - functional programming interface
|
|
261
|
+
* @export
|
|
262
|
+
*/
|
|
263
|
+
var BillRunsApiFp = function (configuration) {
|
|
264
|
+
var localVarAxiosParamCreator = (0, exports.BillRunsApiAxiosParamCreator)(configuration);
|
|
265
|
+
return {
|
|
266
|
+
/**
|
|
267
|
+
*
|
|
268
|
+
* @summary Returns one bill run.
|
|
269
|
+
* @param {string} code The run\'s code.
|
|
270
|
+
* @param {*} [options] Override http request option.
|
|
271
|
+
* @throws {RequiredError}
|
|
272
|
+
*/
|
|
273
|
+
billingServiceGetBillRun: function (code, options) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
275
|
+
var localVarAxiosArgs;
|
|
276
|
+
return __generator(this, function (_a) {
|
|
277
|
+
switch (_a.label) {
|
|
278
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceGetBillRun(code, options)];
|
|
279
|
+
case 1:
|
|
280
|
+
localVarAxiosArgs = _a.sent();
|
|
281
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
},
|
|
286
|
+
/**
|
|
287
|
+
*
|
|
288
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
billingServiceGetBillRunFilterCatalog: function (options) {
|
|
293
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
294
|
+
var localVarAxiosArgs;
|
|
295
|
+
return __generator(this, function (_a) {
|
|
296
|
+
switch (_a.label) {
|
|
297
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceGetBillRunFilterCatalog(options)];
|
|
298
|
+
case 1:
|
|
299
|
+
localVarAxiosArgs = _a.sent();
|
|
300
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
/**
|
|
306
|
+
*
|
|
307
|
+
* @summary Lists bill runs.
|
|
308
|
+
* @param {number} [pageSize]
|
|
309
|
+
* @param {string} [pageToken]
|
|
310
|
+
* @param {string} [filter]
|
|
311
|
+
* @param {string} [search]
|
|
312
|
+
* @param {string} [order]
|
|
313
|
+
* @param {string} [expand]
|
|
314
|
+
* @param {string} [filters]
|
|
315
|
+
* @param {*} [options] Override http request option.
|
|
316
|
+
* @throws {RequiredError}
|
|
317
|
+
*/
|
|
318
|
+
billingServiceListBillRuns: function (pageSize, pageToken, filter, search, order, expand, filters, 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.billingServiceListBillRuns(pageSize, pageToken, filter, search, order, expand, filters, 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
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
333
|
+
* @summary Runs a bill run now.
|
|
334
|
+
* @param {RequestBillRunRequest} body The request of `RequestBillRun`.
|
|
335
|
+
* @param {*} [options] Override http request option.
|
|
336
|
+
* @throws {RequiredError}
|
|
337
|
+
*/
|
|
338
|
+
billingServiceRequestBillRun: function (body, options) {
|
|
339
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
340
|
+
var localVarAxiosArgs;
|
|
341
|
+
return __generator(this, function (_a) {
|
|
342
|
+
switch (_a.label) {
|
|
343
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.billingServiceRequestBillRun(body, options)];
|
|
344
|
+
case 1:
|
|
345
|
+
localVarAxiosArgs = _a.sent();
|
|
346
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
});
|
|
350
|
+
},
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
exports.BillRunsApiFp = BillRunsApiFp;
|
|
354
|
+
/**
|
|
355
|
+
* BillRunsApi - factory interface
|
|
356
|
+
* @export
|
|
357
|
+
*/
|
|
358
|
+
var BillRunsApiFactory = function (configuration, basePath, axios) {
|
|
359
|
+
var localVarFp = (0, exports.BillRunsApiFp)(configuration);
|
|
360
|
+
return {
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @summary Returns one bill run.
|
|
364
|
+
* @param {string} code The run\'s code.
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
billingServiceGetBillRun: function (code, options) {
|
|
369
|
+
return localVarFp.billingServiceGetBillRun(code, options).then(function (request) { return request(axios, basePath); });
|
|
370
|
+
},
|
|
371
|
+
/**
|
|
372
|
+
*
|
|
373
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
billingServiceGetBillRunFilterCatalog: function (options) {
|
|
378
|
+
return localVarFp.billingServiceGetBillRunFilterCatalog(options).then(function (request) { return request(axios, basePath); });
|
|
379
|
+
},
|
|
380
|
+
/**
|
|
381
|
+
*
|
|
382
|
+
* @summary Lists bill runs.
|
|
383
|
+
* @param {number} [pageSize]
|
|
384
|
+
* @param {string} [pageToken]
|
|
385
|
+
* @param {string} [filter]
|
|
386
|
+
* @param {string} [search]
|
|
387
|
+
* @param {string} [order]
|
|
388
|
+
* @param {string} [expand]
|
|
389
|
+
* @param {string} [filters]
|
|
390
|
+
* @param {*} [options] Override http request option.
|
|
391
|
+
* @throws {RequiredError}
|
|
392
|
+
*/
|
|
393
|
+
billingServiceListBillRuns: function (pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
394
|
+
return localVarFp.billingServiceListBillRuns(pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
395
|
+
},
|
|
396
|
+
/**
|
|
397
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
398
|
+
* @summary Runs a bill run now.
|
|
399
|
+
* @param {RequestBillRunRequest} body The request of `RequestBillRun`.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
*/
|
|
403
|
+
billingServiceRequestBillRun: function (body, options) {
|
|
404
|
+
return localVarFp.billingServiceRequestBillRun(body, options).then(function (request) { return request(axios, basePath); });
|
|
405
|
+
},
|
|
406
|
+
};
|
|
407
|
+
};
|
|
408
|
+
exports.BillRunsApiFactory = BillRunsApiFactory;
|
|
409
|
+
/**
|
|
410
|
+
* BillRunsApi - object-oriented interface
|
|
411
|
+
* @export
|
|
412
|
+
* @class BillRunsApi
|
|
413
|
+
* @extends {BaseAPI}
|
|
414
|
+
*/
|
|
415
|
+
var BillRunsApi = /** @class */ (function (_super) {
|
|
416
|
+
__extends(BillRunsApi, _super);
|
|
417
|
+
function BillRunsApi() {
|
|
418
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
419
|
+
}
|
|
420
|
+
/**
|
|
421
|
+
*
|
|
422
|
+
* @summary Returns one bill run.
|
|
423
|
+
* @param {BillRunsApiBillingServiceGetBillRunRequest} requestParameters Request parameters.
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
* @memberof BillRunsApi
|
|
427
|
+
*/
|
|
428
|
+
BillRunsApi.prototype.billingServiceGetBillRun = function (requestParameters, options) {
|
|
429
|
+
var _this = this;
|
|
430
|
+
return (0, exports.BillRunsApiFp)(this.configuration).billingServiceGetBillRun(requestParameters.code, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
431
|
+
};
|
|
432
|
+
/**
|
|
433
|
+
*
|
|
434
|
+
* @summary Returns the filter catalog of the bill run list.
|
|
435
|
+
* @param {*} [options] Override http request option.
|
|
436
|
+
* @throws {RequiredError}
|
|
437
|
+
* @memberof BillRunsApi
|
|
438
|
+
*/
|
|
439
|
+
BillRunsApi.prototype.billingServiceGetBillRunFilterCatalog = function (options) {
|
|
440
|
+
var _this = this;
|
|
441
|
+
return (0, exports.BillRunsApiFp)(this.configuration).billingServiceGetBillRunFilterCatalog(this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
*
|
|
445
|
+
* @summary Lists bill runs.
|
|
446
|
+
* @param {BillRunsApiBillingServiceListBillRunsRequest} requestParameters Request parameters.
|
|
447
|
+
* @param {*} [options] Override http request option.
|
|
448
|
+
* @throws {RequiredError}
|
|
449
|
+
* @memberof BillRunsApi
|
|
450
|
+
*/
|
|
451
|
+
BillRunsApi.prototype.billingServiceListBillRuns = function (requestParameters, options) {
|
|
452
|
+
var _this = this;
|
|
453
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
454
|
+
return (0, exports.BillRunsApiFp)(this.configuration).billingServiceListBillRuns(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); });
|
|
455
|
+
};
|
|
456
|
+
/**
|
|
457
|
+
* It runs `kind` for `runDate` (today when empty). The run is finished when the call returns, and the response is the finished run. `kind` is `INVOICE`, `ESTIMATE` or `RECONCILE`. Only one run of a kind can run at a time.
|
|
458
|
+
* @summary Runs a bill run now.
|
|
459
|
+
* @param {BillRunsApiBillingServiceRequestBillRunRequest} requestParameters Request parameters.
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof BillRunsApi
|
|
463
|
+
*/
|
|
464
|
+
BillRunsApi.prototype.billingServiceRequestBillRun = function (requestParameters, options) {
|
|
465
|
+
var _this = this;
|
|
466
|
+
return (0, exports.BillRunsApiFp)(this.configuration).billingServiceRequestBillRun(requestParameters.body, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
467
|
+
};
|
|
468
|
+
return BillRunsApi;
|
|
469
|
+
}(base_1.BaseAPI));
|
|
470
|
+
exports.BillRunsApi = BillRunsApi;
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
|
+
import { Configuration } from '../configuration';
|
|
14
|
+
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { GetBillResponse } from '../models';
|
|
16
|
+
/**
|
|
17
|
+
* BillsApi - axios parameter creator
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export declare const BillsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21
|
+
/**
|
|
22
|
+
* Bills are not listed. The `billErn` of an invoice names the bill it shows.
|
|
23
|
+
* @summary Returns one bill, for an audit.
|
|
24
|
+
* @param {string} code The bill\'s code.
|
|
25
|
+
* @param {*} [options] Override http request option.
|
|
26
|
+
* @throws {RequiredError}
|
|
27
|
+
*/
|
|
28
|
+
billingServiceGetBill: (code: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* BillsApi - functional programming interface
|
|
32
|
+
* @export
|
|
33
|
+
*/
|
|
34
|
+
export declare const BillsApiFp: (configuration?: Configuration) => {
|
|
35
|
+
/**
|
|
36
|
+
* Bills are not listed. The `billErn` of an invoice names the bill it shows.
|
|
37
|
+
* @summary Returns one bill, for an audit.
|
|
38
|
+
* @param {string} code The bill\'s code.
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
billingServiceGetBill(code: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetBillResponse>>;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* BillsApi - factory interface
|
|
46
|
+
* @export
|
|
47
|
+
*/
|
|
48
|
+
export declare const BillsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
49
|
+
/**
|
|
50
|
+
* Bills are not listed. The `billErn` of an invoice names the bill it shows.
|
|
51
|
+
* @summary Returns one bill, for an audit.
|
|
52
|
+
* @param {string} code The bill\'s code.
|
|
53
|
+
* @param {*} [options] Override http request option.
|
|
54
|
+
* @throws {RequiredError}
|
|
55
|
+
*/
|
|
56
|
+
billingServiceGetBill(code: string, options?: any): AxiosPromise<GetBillResponse>;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Request parameters for billingServiceGetBill operation in BillsApi.
|
|
60
|
+
* @export
|
|
61
|
+
* @interface BillsApiBillingServiceGetBillRequest
|
|
62
|
+
*/
|
|
63
|
+
export interface BillsApiBillingServiceGetBillRequest {
|
|
64
|
+
/**
|
|
65
|
+
* The bill\'s code.
|
|
66
|
+
* @type {string}
|
|
67
|
+
* @memberof BillsApiBillingServiceGetBill
|
|
68
|
+
*/
|
|
69
|
+
readonly code: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* BillsApi - object-oriented interface
|
|
73
|
+
* @export
|
|
74
|
+
* @class BillsApi
|
|
75
|
+
* @extends {BaseAPI}
|
|
76
|
+
*/
|
|
77
|
+
export declare class BillsApi extends BaseAPI {
|
|
78
|
+
/**
|
|
79
|
+
* Bills are not listed. The `billErn` of an invoice names the bill it shows.
|
|
80
|
+
* @summary Returns one bill, for an audit.
|
|
81
|
+
* @param {BillsApiBillingServiceGetBillRequest} requestParameters Request parameters.
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
* @memberof BillsApi
|
|
85
|
+
*/
|
|
86
|
+
billingServiceGetBill(requestParameters: BillsApiBillingServiceGetBillRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetBillResponse, any, {}, any>>;
|
|
87
|
+
}
|