@emilgroup/billing-sdk-node 1.4.0 → 1.5.0
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 +26 -52
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +183 -0
- package/api/estimated-invoices-api.ts +276 -0
- package/api/initial-invoices-api.ts +183 -0
- package/api/invoices-api.ts +410 -0
- package/api/recurring-invoices-api.ts +183 -0
- package/api.ts +12 -12
- package/base.ts +3 -3
- package/common.ts +4 -4
- package/configuration.ts +2 -2
- package/dist/api/correction-invoices-api.d.ts +106 -0
- package/dist/api/correction-invoices-api.js +234 -0
- package/dist/api/estimated-invoices-api.d.ts +154 -0
- package/dist/api/estimated-invoices-api.js +321 -0
- package/dist/api/initial-invoices-api.d.ts +106 -0
- package/dist/api/initial-invoices-api.js +234 -0
- package/dist/api/invoices-api.d.ts +242 -0
- package/dist/api/{documents-api.js → invoices-api.js} +105 -167
- package/dist/api/recurring-invoices-api.d.ts +106 -0
- package/dist/api/{notifications-api.js → recurring-invoices-api.js} +51 -45
- package/dist/api.d.ts +7 -7
- package/dist/api.js +7 -7
- package/dist/base.d.ts +2 -2
- package/dist/base.js +3 -3
- package/dist/common.d.ts +4 -4
- package/dist/common.js +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/models/create-correction-invoices-response-class.d.ts +25 -0
- package/dist/models/{complete-braintree-payment-setup-request-dto.js → create-correction-invoices-response-class.js} +2 -2
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +35 -0
- package/dist/models/{create-custom-application-request-dto.js → create-custom-estimated-invoice-request-dto.js} +4 -4
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +24 -0
- package/dist/models/{complete-payment-setup-request-dto.js → create-custom-estimated-invoice-response-class.js} +2 -2
- package/dist/models/create-estimated-invoice-request-dto.d.ts +8 -32
- package/dist/models/create-estimated-invoice-request-dto.js +2 -7
- package/dist/models/create-estimated-invoice-response-class.d.ts +6 -6
- package/dist/models/create-estimated-invoice-response-class.js +2 -2
- package/dist/models/create-invoice-request-dto.d.ts +77 -0
- package/dist/models/{premium-override-dto.js → create-invoice-request-dto.js} +12 -12
- package/dist/models/create-invoice-response-class.d.ts +25 -0
- package/dist/models/{complete-stripe-payment-setup-request-dto.js → create-invoice-response-class.js} +2 -2
- package/dist/models/create-invoice-status-request-dto.d.ts +35 -0
- package/dist/models/create-invoice-status-request-dto.js +20 -0
- package/dist/models/create-termination-invoice-request-dto.d.ts +48 -0
- package/dist/models/{complete-payment-setup-response-class.js → create-termination-invoice-request-dto.js} +2 -2
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/index.d.ts +21 -47
- package/dist/models/index.js +21 -47
- package/dist/models/invoice-class.d.ts +38 -15
- package/dist/models/invoice-class.js +17 -2
- package/dist/models/invoice-item-class.d.ts +18 -9
- package/dist/models/invoice-item-class.js +11 -2
- package/dist/models/invoice-status-class.d.ts +9 -4
- package/dist/models/invoice-status-class.js +7 -2
- package/dist/models/list-invoices-response-class.d.ts +31 -0
- package/dist/models/list-invoices-response-class.js +15 -0
- package/dist/models/list-policies-billing-dates-response-class.d.ts +31 -0
- package/dist/models/list-policies-billing-dates-response-class.js +15 -0
- package/dist/models/list-request-dto.d.ts +54 -0
- package/dist/models/list-request-dto.js +15 -0
- package/dist/models/omit-type-class.d.ts +144 -0
- package/dist/models/omit-type-class.js +30 -0
- package/dist/models/policy-billing-date-class.d.ts +42 -0
- package/dist/models/policy-billing-date-class.js +15 -0
- package/dist/models/policy-dto.d.ts +122 -0
- package/dist/models/{lead-account-class.js → policy-dto.js} +8 -8
- package/dist/models/policy-object-dto.d.ts +48 -0
- package/dist/models/policy-object-dto.js +15 -0
- package/dist/models/policy-premium-dto.d.ts +43 -0
- package/dist/models/policy-premium-dto.js +15 -0
- package/dist/models/policy-premium-item-dto.d.ts +55 -0
- package/dist/models/policy-premium-item-dto.js +15 -0
- package/dist/models/policy-version-dto.d.ts +55 -0
- package/dist/models/policy-version-dto.js +15 -0
- package/dist/models/{premium-formula-class.d.ts → premium-formula-dto.d.ts} +17 -17
- package/dist/models/premium-formula-dto.js +15 -0
- package/dist/models/{send-notification-response-class.d.ts → revert-invoice-request-dto.d.ts} +6 -6
- package/dist/models/revert-invoice-request-dto.js +15 -0
- package/dist/models/{product-factor-class.d.ts → timeslice-dto.d.ts} +23 -21
- package/dist/models/timeslice-dto.js +15 -0
- package/index.ts +2 -2
- package/models/create-correction-invoices-response-class.ts +31 -0
- package/models/create-custom-estimated-invoice-request-dto.ts +44 -0
- package/models/{create-custom-application-response-class.ts → create-custom-estimated-invoice-response-class.ts} +7 -7
- package/models/create-estimated-invoice-request-dto.ts +8 -35
- package/models/create-estimated-invoice-response-class.ts +6 -6
- package/models/create-invoice-request-dto.ts +86 -0
- package/models/{get-lead-response-class.ts → create-invoice-response-class.ts} +9 -9
- package/models/create-invoice-status-request-dto.ts +44 -0
- package/models/create-termination-invoice-request-dto.ts +54 -0
- package/models/currency-class.ts +54 -0
- package/models/index.ts +21 -47
- package/models/invoice-class.ts +42 -15
- package/models/invoice-item-class.ts +21 -9
- package/models/invoice-status-class.ts +12 -4
- package/models/{list-products-response-class.ts → list-invoices-response-class.ts} +10 -10
- package/models/list-policies-billing-dates-response-class.ts +37 -0
- package/models/list-request-dto.ts +60 -0
- package/models/omit-type-class.ts +154 -0
- package/models/policy-billing-date-class.ts +48 -0
- package/models/policy-dto.ts +131 -0
- package/models/policy-object-dto.ts +54 -0
- package/models/policy-premium-dto.ts +49 -0
- package/models/policy-premium-item-dto.ts +61 -0
- package/models/policy-version-dto.ts +61 -0
- package/models/{premium-formula-class.ts → premium-formula-dto.ts} +17 -17
- package/models/{send-notification-response-class.ts → revert-invoice-request-dto.ts} +6 -6
- package/models/{product-factor-class.ts → timeslice-dto.ts} +23 -21
- package/package.json +2 -2
- package/api/documents-api.ts +0 -442
- package/api/leads-api.ts +0 -482
- package/api/notifications-api.ts +0 -169
- package/api/payments-setup-api.ts +0 -408
- package/api/products-api.ts +0 -891
- package/dist/api/documents-api.d.ts +0 -252
- package/dist/api/leads-api.d.ts +0 -266
- package/dist/api/leads-api.js +0 -506
- package/dist/api/notifications-api.d.ts +0 -97
- package/dist/api/payments-setup-api.d.ts +0 -228
- package/dist/api/payments-setup-api.js +0 -426
- package/dist/api/products-api.d.ts +0 -497
- package/dist/api/products-api.js +0 -827
- package/dist/models/complete-braintree-payment-setup-request-dto.d.ts +0 -48
- package/dist/models/complete-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/complete-payment-setup-response-class.d.ts +0 -25
- package/dist/models/complete-stripe-payment-setup-request-dto.d.ts +0 -60
- package/dist/models/create-account-request-dto.d.ts +0 -132
- package/dist/models/create-account-request-dto.js +0 -31
- package/dist/models/create-bank-account-request-dto.d.ts +0 -30
- package/dist/models/create-bank-account-request-dto.js +0 -15
- package/dist/models/create-custom-application-request-dto.d.ts +0 -35
- package/dist/models/create-custom-application-response-class.d.ts +0 -24
- package/dist/models/create-custom-application-response-class.js +0 -15
- package/dist/models/create-document-request-dto.d.ts +0 -101
- package/dist/models/create-document-request-dto.js +0 -31
- package/dist/models/create-lead-request-dto.d.ts +0 -83
- package/dist/models/create-lead-request-dto.js +0 -15
- package/dist/models/create-lead-response-class.d.ts +0 -25
- package/dist/models/create-lead-response-class.js +0 -15
- package/dist/models/document-class.d.ts +0 -130
- package/dist/models/document-class.js +0 -41
- package/dist/models/get-custom-css-response-class.d.ts +0 -24
- package/dist/models/get-custom-css-response-class.js +0 -15
- package/dist/models/get-lead-response-class.d.ts +0 -25
- package/dist/models/get-lead-response-class.js +0 -15
- package/dist/models/get-public-psp-settings-response-class.d.ts +0 -30
- package/dist/models/get-public-psp-settings-response-class.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-braintree-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-braintree-payment-setup-response-class.d.ts +0 -24
- package/dist/models/initiate-braintree-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-lead-response-class.d.ts +0 -24
- package/dist/models/initiate-lead-response-class.js +0 -15
- package/dist/models/initiate-payment-setup-request-dto.d.ts +0 -32
- package/dist/models/initiate-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-payment-setup-response-class.d.ts +0 -32
- package/dist/models/initiate-payment-setup-response-class.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-request-dto.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-request-dto.js +0 -15
- package/dist/models/initiate-stripe-payment-setup-response-class.d.ts +0 -30
- package/dist/models/initiate-stripe-payment-setup-response-class.js +0 -15
- package/dist/models/insured-object-class.d.ts +0 -67
- package/dist/models/insured-object-class.js +0 -15
- package/dist/models/insured-object-type-class.d.ts +0 -48
- package/dist/models/insured-object-type-class.js +0 -15
- package/dist/models/lead-account-class.d.ts +0 -109
- package/dist/models/lead-bank-account-class.d.ts +0 -30
- package/dist/models/lead-bank-account-class.js +0 -15
- package/dist/models/lead-class.d.ts +0 -96
- package/dist/models/lead-class.js +0 -15
- package/dist/models/lead-policy-class.d.ts +0 -43
- package/dist/models/lead-policy-class.js +0 -15
- package/dist/models/lead-policy-object-class.d.ts +0 -30
- package/dist/models/lead-policy-object-class.js +0 -15
- package/dist/models/list-documents-response-class.d.ts +0 -31
- package/dist/models/list-documents-response-class.js +0 -15
- package/dist/models/list-products-response-class.d.ts +0 -31
- package/dist/models/list-products-response-class.js +0 -15
- package/dist/models/payment-method-class.d.ts +0 -60
- package/dist/models/payment-method-class.js +0 -15
- package/dist/models/policy-object-request-dto.d.ts +0 -30
- package/dist/models/policy-object-request-dto.js +0 -15
- package/dist/models/policy-premium-class.d.ts +0 -55
- package/dist/models/policy-premium-class.js +0 -15
- package/dist/models/policy-premium-item-class.d.ts +0 -73
- package/dist/models/policy-premium-item-class.js +0 -15
- package/dist/models/premium-formula-class.js +0 -15
- package/dist/models/premium-override-dto.d.ts +0 -54
- package/dist/models/premium-override-request-dto.d.ts +0 -25
- package/dist/models/premium-override-request-dto.js +0 -15
- package/dist/models/product-class.d.ts +0 -74
- package/dist/models/product-class.js +0 -15
- package/dist/models/product-factor-class.js +0 -15
- package/dist/models/product-field-class.d.ts +0 -132
- package/dist/models/product-field-class.js +0 -15
- package/dist/models/product-version-class.d.ts +0 -61
- package/dist/models/product-version-class.js +0 -22
- package/dist/models/send-notification-request-dto.d.ts +0 -36
- package/dist/models/send-notification-request-dto.js +0 -15
- package/dist/models/send-notification-response-class.js +0 -15
- package/dist/models/update-lead-request-dto.d.ts +0 -83
- package/dist/models/update-lead-request-dto.js +0 -15
- package/dist/models/update-lead-response-class.d.ts +0 -25
- package/dist/models/update-lead-response-class.js +0 -15
- package/dist/models/uploaded-document-dto.d.ts +0 -24
- package/dist/models/uploaded-document-dto.js +0 -15
- package/models/complete-braintree-payment-setup-request-dto.ts +0 -54
- package/models/complete-payment-setup-request-dto.ts +0 -38
- package/models/complete-payment-setup-response-class.ts +0 -31
- package/models/complete-stripe-payment-setup-request-dto.ts +0 -66
- package/models/create-account-request-dto.ts +0 -143
- package/models/create-bank-account-request-dto.ts +0 -36
- package/models/create-custom-application-request-dto.ts +0 -44
- package/models/create-document-request-dto.ts +0 -111
- package/models/create-lead-request-dto.ts +0 -89
- package/models/create-lead-response-class.ts +0 -31
- package/models/document-class.ts +0 -141
- package/models/get-custom-css-response-class.ts +0 -30
- package/models/get-public-psp-settings-response-class.ts +0 -36
- package/models/initiate-braintree-payment-setup-request-dto.ts +0 -36
- package/models/initiate-braintree-payment-setup-response-class.ts +0 -30
- package/models/initiate-lead-response-class.ts +0 -30
- package/models/initiate-payment-setup-request-dto.ts +0 -38
- package/models/initiate-payment-setup-response-class.ts +0 -38
- package/models/initiate-stripe-payment-setup-request-dto.ts +0 -36
- package/models/initiate-stripe-payment-setup-response-class.ts +0 -36
- package/models/insured-object-class.ts +0 -73
- package/models/insured-object-type-class.ts +0 -54
- package/models/lead-account-class.ts +0 -118
- package/models/lead-bank-account-class.ts +0 -36
- package/models/lead-class.ts +0 -102
- package/models/lead-policy-class.ts +0 -49
- package/models/lead-policy-object-class.ts +0 -36
- package/models/list-documents-response-class.ts +0 -37
- package/models/payment-method-class.ts +0 -66
- package/models/policy-object-request-dto.ts +0 -36
- package/models/policy-premium-class.ts +0 -61
- package/models/policy-premium-item-class.ts +0 -79
- package/models/premium-override-dto.ts +0 -64
- package/models/premium-override-request-dto.ts +0 -31
- package/models/product-class.ts +0 -80
- package/models/product-field-class.ts +0 -138
- package/models/product-version-class.ts +0 -70
- package/models/send-notification-request-dto.ts +0 -42
- package/models/update-lead-request-dto.ts +0 -89
- package/models/update-lead-response-class.ts +0 -31
- package/models/uploaded-document-dto.ts +0 -30
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* tslint:disable */
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* The
|
|
5
|
+
* EMIL BillingService
|
|
6
|
+
* The EMIL BillingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
9
|
* Contact: kontakt@emil.de
|
|
@@ -78,7 +78,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
78
78
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
79
|
};
|
|
80
80
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.
|
|
81
|
+
exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = void 0;
|
|
82
82
|
var axios_1 = __importDefault(require("axios"));
|
|
83
83
|
// Some imports not used depending on template conditions
|
|
84
84
|
// @ts-ignore
|
|
@@ -90,36 +90,39 @@ var base_1 = require("../base");
|
|
|
90
90
|
var url_1 = require("url");
|
|
91
91
|
var FormData = require('form-data');
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
93
|
+
* InvoicesApi - axios parameter creator
|
|
94
94
|
* @export
|
|
95
95
|
*/
|
|
96
|
-
var
|
|
96
|
+
var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
101
|
-
* @summary
|
|
102
|
-
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
100
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
101
|
+
* @summary List invoices
|
|
103
102
|
* @param {string} [authorization] Bearer Token
|
|
103
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
104
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
105
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
106
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
107
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
108
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
104
109
|
* @param {*} [options] Override http request option.
|
|
105
110
|
* @throws {RequiredError}
|
|
106
111
|
*/
|
|
107
|
-
|
|
112
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
108
113
|
if (options === void 0) { options = {}; }
|
|
109
114
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
115
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
116
|
return __generator(this, function (_a) {
|
|
112
117
|
switch (_a.label) {
|
|
113
118
|
case 0:
|
|
114
|
-
|
|
115
|
-
(0, common_1.assertParamExists)('createTemporaryDocument', 'createDocumentRequestDto', createDocumentRequestDto);
|
|
116
|
-
localVarPath = "/publicapi/v1/documents";
|
|
119
|
+
localVarPath = "/billingservice/v1/invoices";
|
|
117
120
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
118
121
|
if (configuration) {
|
|
119
122
|
baseOptions = configuration.baseOptions;
|
|
120
123
|
baseAccessToken = configuration.accessToken;
|
|
121
124
|
}
|
|
122
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
125
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
123
126
|
localVarHeaderParameter = {};
|
|
124
127
|
localVarQueryParameter = {};
|
|
125
128
|
// authentication bearer required
|
|
@@ -129,56 +132,24 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
129
132
|
// authentication bearer required
|
|
130
133
|
// http bearer authentication required
|
|
131
134
|
_a.sent();
|
|
132
|
-
if (
|
|
133
|
-
|
|
135
|
+
if (pageSize !== undefined) {
|
|
136
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
134
137
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
150
|
-
* @summary Download a document
|
|
151
|
-
* @param {string} code
|
|
152
|
-
* @param {string} [authorization] Bearer Token
|
|
153
|
-
* @param {*} [options] Override http request option.
|
|
154
|
-
* @throws {RequiredError}
|
|
155
|
-
*/
|
|
156
|
-
downloadDocument: function (code, authorization, options) {
|
|
157
|
-
if (options === void 0) { options = {}; }
|
|
158
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
return __generator(this, function (_a) {
|
|
161
|
-
switch (_a.label) {
|
|
162
|
-
case 0:
|
|
163
|
-
// verify required parameter 'code' is not null or undefined
|
|
164
|
-
(0, common_1.assertParamExists)('downloadDocument', 'code', code);
|
|
165
|
-
localVarPath = "/publicapi/v1/documents/download/{code}"
|
|
166
|
-
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
167
|
-
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
168
|
-
if (configuration) {
|
|
169
|
-
baseOptions = configuration.baseOptions;
|
|
170
|
-
baseAccessToken = configuration.accessToken;
|
|
138
|
+
if (pageToken !== undefined) {
|
|
139
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
140
|
+
}
|
|
141
|
+
if (filter !== undefined) {
|
|
142
|
+
localVarQueryParameter['filter'] = filter;
|
|
143
|
+
}
|
|
144
|
+
if (search !== undefined) {
|
|
145
|
+
localVarQueryParameter['search'] = search;
|
|
146
|
+
}
|
|
147
|
+
if (order !== undefined) {
|
|
148
|
+
localVarQueryParameter['order'] = order;
|
|
149
|
+
}
|
|
150
|
+
if (expand !== undefined) {
|
|
151
|
+
localVarQueryParameter['expand'] = expand;
|
|
171
152
|
}
|
|
172
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
173
|
-
localVarHeaderParameter = {};
|
|
174
|
-
localVarQueryParameter = {};
|
|
175
|
-
// authentication bearer required
|
|
176
|
-
// http bearer authentication required
|
|
177
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
|
-
case 1:
|
|
179
|
-
// authentication bearer required
|
|
180
|
-
// http bearer authentication required
|
|
181
|
-
_a.sent();
|
|
182
153
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
154
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
155
|
}
|
|
@@ -194,26 +165,26 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
194
165
|
});
|
|
195
166
|
},
|
|
196
167
|
/**
|
|
197
|
-
* Returns a list of
|
|
198
|
-
* @summary List
|
|
168
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
169
|
+
* @summary List policies billing dates
|
|
199
170
|
* @param {string} [authorization] Bearer Token
|
|
200
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
201
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
171
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
172
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
202
173
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
203
174
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
204
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
205
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
175
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
176
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
206
177
|
* @param {*} [options] Override http request option.
|
|
207
178
|
* @throws {RequiredError}
|
|
208
179
|
*/
|
|
209
|
-
|
|
180
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
210
181
|
if (options === void 0) { options = {}; }
|
|
211
182
|
return __awaiter(_this, void 0, void 0, function () {
|
|
212
183
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
213
184
|
return __generator(this, function (_a) {
|
|
214
185
|
switch (_a.label) {
|
|
215
186
|
case 0:
|
|
216
|
-
localVarPath = "/
|
|
187
|
+
localVarPath = "/billingservice/v1/invoices/policies-billing-dates";
|
|
217
188
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
218
189
|
if (configuration) {
|
|
219
190
|
baseOptions = configuration.baseOptions;
|
|
@@ -263,49 +234,33 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
263
234
|
},
|
|
264
235
|
};
|
|
265
236
|
};
|
|
266
|
-
exports.
|
|
237
|
+
exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
|
|
267
238
|
/**
|
|
268
|
-
*
|
|
239
|
+
* InvoicesApi - functional programming interface
|
|
269
240
|
* @export
|
|
270
241
|
*/
|
|
271
|
-
var
|
|
272
|
-
var localVarAxiosParamCreator = (0, exports.
|
|
242
|
+
var InvoicesApiFp = function (configuration) {
|
|
243
|
+
var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
|
|
273
244
|
return {
|
|
274
245
|
/**
|
|
275
|
-
*
|
|
276
|
-
* @summary
|
|
277
|
-
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
278
|
-
* @param {string} [authorization] Bearer Token
|
|
279
|
-
* @param {*} [options] Override http request option.
|
|
280
|
-
* @throws {RequiredError}
|
|
281
|
-
*/
|
|
282
|
-
createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
|
|
283
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
284
|
-
var localVarAxiosArgs;
|
|
285
|
-
return __generator(this, function (_a) {
|
|
286
|
-
switch (_a.label) {
|
|
287
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createTemporaryDocument(createDocumentRequestDto, authorization, options)];
|
|
288
|
-
case 1:
|
|
289
|
-
localVarAxiosArgs = _a.sent();
|
|
290
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
291
|
-
}
|
|
292
|
-
});
|
|
293
|
-
});
|
|
294
|
-
},
|
|
295
|
-
/**
|
|
296
|
-
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
297
|
-
* @summary Download a document
|
|
298
|
-
* @param {string} code
|
|
246
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
247
|
+
* @summary List invoices
|
|
299
248
|
* @param {string} [authorization] Bearer Token
|
|
249
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
250
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
251
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
252
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
253
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
254
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
300
255
|
* @param {*} [options] Override http request option.
|
|
301
256
|
* @throws {RequiredError}
|
|
302
257
|
*/
|
|
303
|
-
|
|
258
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
304
259
|
return __awaiter(this, void 0, void 0, function () {
|
|
305
260
|
var localVarAxiosArgs;
|
|
306
261
|
return __generator(this, function (_a) {
|
|
307
262
|
switch (_a.label) {
|
|
308
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
263
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
309
264
|
case 1:
|
|
310
265
|
localVarAxiosArgs = _a.sent();
|
|
311
266
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -314,24 +269,24 @@ var DocumentsApiFp = function (configuration) {
|
|
|
314
269
|
});
|
|
315
270
|
},
|
|
316
271
|
/**
|
|
317
|
-
* Returns a list of
|
|
318
|
-
* @summary List
|
|
272
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
273
|
+
* @summary List policies billing dates
|
|
319
274
|
* @param {string} [authorization] Bearer Token
|
|
320
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
321
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
275
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
276
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
322
277
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
323
278
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
324
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
325
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
279
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
280
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
326
281
|
* @param {*} [options] Override http request option.
|
|
327
282
|
* @throws {RequiredError}
|
|
328
283
|
*/
|
|
329
|
-
|
|
284
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
330
285
|
return __awaiter(this, void 0, void 0, function () {
|
|
331
286
|
var localVarAxiosArgs;
|
|
332
287
|
return __generator(this, function (_a) {
|
|
333
288
|
switch (_a.label) {
|
|
334
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
289
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
335
290
|
case 1:
|
|
336
291
|
localVarAxiosArgs = _a.sent();
|
|
337
292
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -341,103 +296,86 @@ var DocumentsApiFp = function (configuration) {
|
|
|
341
296
|
},
|
|
342
297
|
};
|
|
343
298
|
};
|
|
344
|
-
exports.
|
|
299
|
+
exports.InvoicesApiFp = InvoicesApiFp;
|
|
345
300
|
/**
|
|
346
|
-
*
|
|
301
|
+
* InvoicesApi - factory interface
|
|
347
302
|
* @export
|
|
348
303
|
*/
|
|
349
|
-
var
|
|
350
|
-
var localVarFp = (0, exports.
|
|
304
|
+
var InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
305
|
+
var localVarFp = (0, exports.InvoicesApiFp)(configuration);
|
|
351
306
|
return {
|
|
352
307
|
/**
|
|
353
|
-
*
|
|
354
|
-
* @summary
|
|
355
|
-
* @param {CreateDocumentRequestDto} createDocumentRequestDto
|
|
356
|
-
* @param {string} [authorization] Bearer Token
|
|
357
|
-
* @param {*} [options] Override http request option.
|
|
358
|
-
* @throws {RequiredError}
|
|
359
|
-
*/
|
|
360
|
-
createTemporaryDocument: function (createDocumentRequestDto, authorization, options) {
|
|
361
|
-
return localVarFp.createTemporaryDocument(createDocumentRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
362
|
-
},
|
|
363
|
-
/**
|
|
364
|
-
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
365
|
-
* @summary Download a document
|
|
366
|
-
* @param {string} code
|
|
308
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
309
|
+
* @summary List invoices
|
|
367
310
|
* @param {string} [authorization] Bearer Token
|
|
311
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
312
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
313
|
+
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
314
|
+
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
315
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
316
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
368
317
|
* @param {*} [options] Override http request option.
|
|
369
318
|
* @throws {RequiredError}
|
|
370
319
|
*/
|
|
371
|
-
|
|
372
|
-
return localVarFp.
|
|
320
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
321
|
+
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
373
322
|
},
|
|
374
323
|
/**
|
|
375
|
-
* Returns a list of
|
|
376
|
-
* @summary List
|
|
324
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
325
|
+
* @summary List policies billing dates
|
|
377
326
|
* @param {string} [authorization] Bearer Token
|
|
378
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
379
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
327
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
328
|
+
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
380
329
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
381
330
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
382
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
383
|
-
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in
|
|
331
|
+
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
332
|
+
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
384
333
|
* @param {*} [options] Override http request option.
|
|
385
334
|
* @throws {RequiredError}
|
|
386
335
|
*/
|
|
387
|
-
|
|
388
|
-
return localVarFp.
|
|
336
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
337
|
+
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
389
338
|
},
|
|
390
339
|
};
|
|
391
340
|
};
|
|
392
|
-
exports.
|
|
341
|
+
exports.InvoicesApiFactory = InvoicesApiFactory;
|
|
393
342
|
/**
|
|
394
|
-
*
|
|
343
|
+
* InvoicesApi - object-oriented interface
|
|
395
344
|
* @export
|
|
396
|
-
* @class
|
|
345
|
+
* @class InvoicesApi
|
|
397
346
|
* @extends {BaseAPI}
|
|
398
347
|
*/
|
|
399
|
-
var
|
|
400
|
-
__extends(
|
|
401
|
-
function
|
|
348
|
+
var InvoicesApi = /** @class */ (function (_super) {
|
|
349
|
+
__extends(InvoicesApi, _super);
|
|
350
|
+
function InvoicesApi() {
|
|
402
351
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
403
352
|
}
|
|
404
353
|
/**
|
|
405
|
-
*
|
|
406
|
-
* @summary
|
|
407
|
-
* @param {
|
|
354
|
+
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
355
|
+
* @summary List invoices
|
|
356
|
+
* @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
|
|
408
357
|
* @param {*} [options] Override http request option.
|
|
409
358
|
* @throws {RequiredError}
|
|
410
|
-
* @memberof
|
|
359
|
+
* @memberof InvoicesApi
|
|
411
360
|
*/
|
|
412
|
-
|
|
361
|
+
InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
|
|
413
362
|
var _this = this;
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
/**
|
|
417
|
-
* Retrieves the details of the specific document that was previously created. Supply the unique document code that was returned when you created it and Emil Api will return the corresponding document file to download.
|
|
418
|
-
* @summary Download a document
|
|
419
|
-
* @param {DocumentsApiDownloadDocumentRequest} requestParameters Request parameters.
|
|
420
|
-
* @param {*} [options] Override http request option.
|
|
421
|
-
* @throws {RequiredError}
|
|
422
|
-
* @memberof DocumentsApi
|
|
423
|
-
*/
|
|
424
|
-
DocumentsApi.prototype.downloadDocument = function (requestParameters, options) {
|
|
425
|
-
var _this = this;
|
|
426
|
-
return (0, exports.DocumentsApiFp)(this.configuration).downloadDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
363
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
364
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
427
365
|
};
|
|
428
366
|
/**
|
|
429
|
-
* Returns a list of
|
|
430
|
-
* @summary List
|
|
431
|
-
* @param {
|
|
367
|
+
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
368
|
+
* @summary List policies billing dates
|
|
369
|
+
* @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
|
|
432
370
|
* @param {*} [options] Override http request option.
|
|
433
371
|
* @throws {RequiredError}
|
|
434
|
-
* @memberof
|
|
372
|
+
* @memberof InvoicesApi
|
|
435
373
|
*/
|
|
436
|
-
|
|
374
|
+
InvoicesApi.prototype.listPoliciesBillingDates = function (requestParameters, options) {
|
|
437
375
|
var _this = this;
|
|
438
376
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
439
|
-
return (0, exports.
|
|
377
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
440
378
|
};
|
|
441
|
-
return
|
|
379
|
+
return InvoicesApi;
|
|
442
380
|
}(base_1.BaseAPI));
|
|
443
|
-
exports.
|
|
381
|
+
exports.InvoicesApi = InvoicesApi;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL BillingService
|
|
3
|
+
* The EMIL BillingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
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 { CreateInvoiceRequestDto } from '../models';
|
|
16
|
+
import { CreateInvoiceResponseClass } from '../models';
|
|
17
|
+
/**
|
|
18
|
+
* RecurringInvoicesApi - axios parameter creator
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
export declare const RecurringInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
22
|
+
/**
|
|
23
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
24
|
+
* @summary Create the recurring invoice
|
|
25
|
+
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
26
|
+
* @param {string} [authorization] Bearer Token
|
|
27
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
28
|
+
* @param {*} [options] Override http request option.
|
|
29
|
+
* @throws {RequiredError}
|
|
30
|
+
*/
|
|
31
|
+
createRecurringInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* RecurringInvoicesApi - functional programming interface
|
|
35
|
+
* @export
|
|
36
|
+
*/
|
|
37
|
+
export declare const RecurringInvoicesApiFp: (configuration?: Configuration) => {
|
|
38
|
+
/**
|
|
39
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
40
|
+
* @summary Create the recurring invoice
|
|
41
|
+
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
42
|
+
* @param {string} [authorization] Bearer Token
|
|
43
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
44
|
+
* @param {*} [options] Override http request option.
|
|
45
|
+
* @throws {RequiredError}
|
|
46
|
+
*/
|
|
47
|
+
createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* RecurringInvoicesApi - factory interface
|
|
51
|
+
* @export
|
|
52
|
+
*/
|
|
53
|
+
export declare const RecurringInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
54
|
+
/**
|
|
55
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
56
|
+
* @summary Create the recurring invoice
|
|
57
|
+
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
58
|
+
* @param {string} [authorization] Bearer Token
|
|
59
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
60
|
+
* @param {*} [options] Override http request option.
|
|
61
|
+
* @throws {RequiredError}
|
|
62
|
+
*/
|
|
63
|
+
createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* Request parameters for createRecurringInvoice operation in RecurringInvoicesApi.
|
|
67
|
+
* @export
|
|
68
|
+
* @interface RecurringInvoicesApiCreateRecurringInvoiceRequest
|
|
69
|
+
*/
|
|
70
|
+
export interface RecurringInvoicesApiCreateRecurringInvoiceRequest {
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {CreateInvoiceRequestDto}
|
|
74
|
+
* @memberof RecurringInvoicesApiCreateRecurringInvoice
|
|
75
|
+
*/
|
|
76
|
+
readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
|
|
77
|
+
/**
|
|
78
|
+
* Bearer Token
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof RecurringInvoicesApiCreateRecurringInvoice
|
|
81
|
+
*/
|
|
82
|
+
readonly authorization?: string;
|
|
83
|
+
/**
|
|
84
|
+
* Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof RecurringInvoicesApiCreateRecurringInvoice
|
|
87
|
+
*/
|
|
88
|
+
readonly idempotencyKey?: string;
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* RecurringInvoicesApi - object-oriented interface
|
|
92
|
+
* @export
|
|
93
|
+
* @class RecurringInvoicesApi
|
|
94
|
+
* @extends {BaseAPI}
|
|
95
|
+
*/
|
|
96
|
+
export declare class RecurringInvoicesApi extends BaseAPI {
|
|
97
|
+
/**
|
|
98
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
99
|
+
* @summary Create the recurring invoice
|
|
100
|
+
* @param {RecurringInvoicesApiCreateRecurringInvoiceRequest} requestParameters Request parameters.
|
|
101
|
+
* @param {*} [options] Override http request option.
|
|
102
|
+
* @throws {RequiredError}
|
|
103
|
+
* @memberof RecurringInvoicesApi
|
|
104
|
+
*/
|
|
105
|
+
createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any>>;
|
|
106
|
+
}
|