@emilgroup/billing-sdk-node 1.8.0 → 1.10.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 +6 -0
- package/README.md +2 -2
- package/api/default-api.ts +124 -0
- package/api/invoices-api.ts +32 -32
- package/api.ts +2 -0
- package/base.ts +1 -0
- package/models/create-invoice-payment-request-dto.ts +60 -0
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +5 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/invoice-class.ts +15 -1
- package/models/invoice-payment-class.ts +102 -0
- package/{dist/models/create-custom-estimated-invoice-request-dto.js → models/invoice-payments-class.ts} +18 -7
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +15 -1
- package/package.json +1 -1
- package/dist/api/correction-invoices-api.d.ts +0 -106
- package/dist/api/correction-invoices-api.js +0 -234
- package/dist/api/estimated-invoices-api.d.ts +0 -154
- package/dist/api/estimated-invoices-api.js +0 -321
- package/dist/api/initial-invoices-api.d.ts +0 -106
- package/dist/api/initial-invoices-api.js +0 -234
- package/dist/api/invoices-api.d.ts +0 -307
- package/dist/api/invoices-api.js +0 -481
- package/dist/api/recurring-invoices-api.d.ts +0 -106
- package/dist/api/recurring-invoices-api.js +0 -234
- package/dist/api.d.ts +0 -16
- package/dist/api.js +0 -34
- package/dist/base.d.ts +0 -77
- package/dist/base.js +0 -393
- package/dist/common.d.ts +0 -92
- package/dist/common.js +0 -277
- package/dist/configuration.d.ts +0 -90
- package/dist/configuration.js +0 -44
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -36
- package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
- package/dist/models/create-correction-invoices-response-class.js +0 -15
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +0 -35
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
- package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-estimated-invoice-request-dto.d.ts +0 -31
- package/dist/models/create-estimated-invoice-request-dto.js +0 -15
- package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
- package/dist/models/create-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-request-dto.d.ts +0 -77
- package/dist/models/create-invoice-request-dto.js +0 -26
- package/dist/models/create-invoice-response-class.d.ts +0 -25
- package/dist/models/create-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-status-request-dto.d.ts +0 -35
- package/dist/models/create-invoice-status-request-dto.js +0 -20
- package/dist/models/create-termination-invoice-request-dto.d.ts +0 -48
- package/dist/models/create-termination-invoice-request-dto.js +0 -15
- package/dist/models/get-invoice-response-class.d.ts +0 -25
- package/dist/models/get-invoice-response-class.js +0 -15
- package/dist/models/index.d.ts +0 -26
- package/dist/models/index.js +0 -42
- package/dist/models/invoice-class.d.ts +0 -150
- package/dist/models/invoice-class.js +0 -30
- package/dist/models/invoice-item-class.d.ts +0 -129
- package/dist/models/invoice-item-class.js +0 -24
- package/dist/models/invoice-status-class.d.ts +0 -47
- package/dist/models/invoice-status-class.js +0 -20
- package/dist/models/list-invoices-response-class.d.ts +0 -31
- package/dist/models/list-invoices-response-class.js +0 -15
- package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
- package/dist/models/list-policies-billing-dates-response-class.js +0 -15
- package/dist/models/list-request-dto.d.ts +0 -54
- package/dist/models/list-request-dto.js +0 -15
- package/dist/models/omit-type-class.d.ts +0 -143
- package/dist/models/omit-type-class.js +0 -30
- package/dist/models/policy-billing-date-class.d.ts +0 -42
- package/dist/models/policy-billing-date-class.js +0 -15
- package/dist/models/policy-dto.d.ts +0 -122
- package/dist/models/policy-dto.js +0 -22
- package/dist/models/policy-object-dto.d.ts +0 -48
- package/dist/models/policy-object-dto.js +0 -15
- package/dist/models/policy-premium-dto.d.ts +0 -49
- package/dist/models/policy-premium-dto.js +0 -15
- package/dist/models/policy-premium-item-dto.d.ts +0 -55
- package/dist/models/policy-premium-item-dto.js +0 -15
- package/dist/models/policy-version-dto.d.ts +0 -55
- package/dist/models/policy-version-dto.js +0 -15
- package/dist/models/premium-formula-dto.d.ts +0 -72
- package/dist/models/premium-formula-dto.js +0 -15
- package/dist/models/revert-invoice-request-dto.d.ts +0 -24
- package/dist/models/revert-invoice-request-dto.js +0 -15
- package/dist/models/timeslice-dto.d.ts +0 -62
- package/dist/models/timeslice-dto.js +0 -15
package/.openapi-generator/FILES
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
README.md
|
|
5
5
|
api.ts
|
|
6
6
|
api/correction-invoices-api.ts
|
|
7
|
+
api/default-api.ts
|
|
7
8
|
api/estimated-invoices-api.ts
|
|
8
9
|
api/initial-invoices-api.ts
|
|
9
10
|
api/invoices-api.ts
|
|
@@ -18,14 +19,19 @@ models/create-custom-estimated-invoice-request-dto.ts
|
|
|
18
19
|
models/create-custom-estimated-invoice-response-class.ts
|
|
19
20
|
models/create-estimated-invoice-request-dto.ts
|
|
20
21
|
models/create-estimated-invoice-response-class.ts
|
|
22
|
+
models/create-invoice-payment-request-dto.ts
|
|
21
23
|
models/create-invoice-request-dto.ts
|
|
22
24
|
models/create-invoice-response-class.ts
|
|
23
25
|
models/create-invoice-status-request-dto.ts
|
|
24
26
|
models/create-termination-invoice-request-dto.ts
|
|
25
27
|
models/get-invoice-response-class.ts
|
|
26
28
|
models/index.ts
|
|
29
|
+
models/inline-response200.ts
|
|
30
|
+
models/inline-response503.ts
|
|
27
31
|
models/invoice-class.ts
|
|
28
32
|
models/invoice-item-class.ts
|
|
33
|
+
models/invoice-payment-class.ts
|
|
34
|
+
models/invoice-payments-class.ts
|
|
29
35
|
models/invoice-status-class.ts
|
|
30
36
|
models/list-invoices-response-class.ts
|
|
31
37
|
models/list-policies-billing-dates-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/billing-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/billing-sdk-node@1.10.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/billing-sdk-node@1.10.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
17
|
+
import { Configuration } from '../configuration';
|
|
18
|
+
// Some imports not used depending on template conditions
|
|
19
|
+
// @ts-ignore
|
|
20
|
+
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
|
|
21
|
+
// @ts-ignore
|
|
22
|
+
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
import { InlineResponse200 } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { InlineResponse503 } from '../models';
|
|
27
|
+
// URLSearchParams not necessarily used
|
|
28
|
+
// @ts-ignore
|
|
29
|
+
import { URL, URLSearchParams } from 'url';
|
|
30
|
+
const FormData = require('form-data');
|
|
31
|
+
/**
|
|
32
|
+
* DefaultApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
check: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
const localVarPath = `/billingservice/health`;
|
|
44
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
45
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
46
|
+
let baseOptions;
|
|
47
|
+
let baseAccessToken;
|
|
48
|
+
if (configuration) {
|
|
49
|
+
baseOptions = configuration.baseOptions;
|
|
50
|
+
baseAccessToken = configuration.accessToken;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54
|
+
const localVarHeaderParameter = {} as any;
|
|
55
|
+
const localVarQueryParameter = {} as any;
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
60
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
61
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
62
|
+
|
|
63
|
+
return {
|
|
64
|
+
url: toPathString(localVarUrlObj),
|
|
65
|
+
options: localVarRequestOptions,
|
|
66
|
+
};
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* DefaultApi - functional programming interface
|
|
73
|
+
* @export
|
|
74
|
+
*/
|
|
75
|
+
export const DefaultApiFp = function(configuration?: Configuration) {
|
|
76
|
+
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration)
|
|
77
|
+
return {
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @param {*} [options] Override http request option.
|
|
81
|
+
* @throws {RequiredError}
|
|
82
|
+
*/
|
|
83
|
+
async check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>> {
|
|
84
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.check(options);
|
|
85
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
86
|
+
},
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* DefaultApi - factory interface
|
|
92
|
+
* @export
|
|
93
|
+
*/
|
|
94
|
+
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
95
|
+
const localVarFp = DefaultApiFp(configuration)
|
|
96
|
+
return {
|
|
97
|
+
/**
|
|
98
|
+
*
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
check(options?: any): AxiosPromise<InlineResponse200> {
|
|
103
|
+
return localVarFp.check(options).then((request) => request(axios, basePath));
|
|
104
|
+
},
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* DefaultApi - object-oriented interface
|
|
110
|
+
* @export
|
|
111
|
+
* @class DefaultApi
|
|
112
|
+
* @extends {BaseAPI}
|
|
113
|
+
*/
|
|
114
|
+
export class DefaultApi extends BaseAPI {
|
|
115
|
+
/**
|
|
116
|
+
*
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
* @memberof DefaultApi
|
|
120
|
+
*/
|
|
121
|
+
public check(options?: AxiosRequestConfig) {
|
|
122
|
+
return DefaultApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
|
+
}
|
|
124
|
+
}
|
package/api/invoices-api.ts
CHANGED
|
@@ -92,12 +92,12 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
92
92
|
* 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.
|
|
93
93
|
* @summary List invoices
|
|
94
94
|
* @param {string} [authorization] Bearer Token
|
|
95
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
96
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
95
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
96
|
+
* @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.
|
|
97
97
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
98
98
|
* @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.
|
|
99
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
100
|
-
* @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
|
|
99
|
+
* @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.
|
|
100
|
+
* @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.
|
|
101
101
|
* @param {*} [options] Override http request option.
|
|
102
102
|
* @throws {RequiredError}
|
|
103
103
|
*/
|
|
@@ -163,12 +163,12 @@ export const InvoicesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
163
163
|
* 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.
|
|
164
164
|
* @summary List policies billing dates
|
|
165
165
|
* @param {string} [authorization] Bearer Token
|
|
166
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
167
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
166
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
167
|
+
* @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.
|
|
168
168
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
169
169
|
* @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.
|
|
170
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
171
|
-
* @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
|
|
170
|
+
* @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.
|
|
171
|
+
* @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.
|
|
172
172
|
* @param {*} [options] Override http request option.
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
*/
|
|
@@ -257,12 +257,12 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
257
257
|
* 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.
|
|
258
258
|
* @summary List invoices
|
|
259
259
|
* @param {string} [authorization] Bearer Token
|
|
260
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
261
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
260
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
261
|
+
* @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.
|
|
262
262
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
263
263
|
* @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.
|
|
264
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
265
|
-
* @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
|
|
264
|
+
* @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.
|
|
265
|
+
* @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.
|
|
266
266
|
* @param {*} [options] Override http request option.
|
|
267
267
|
* @throws {RequiredError}
|
|
268
268
|
*/
|
|
@@ -274,12 +274,12 @@ export const InvoicesApiFp = function(configuration?: Configuration) {
|
|
|
274
274
|
* 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.
|
|
275
275
|
* @summary List policies billing dates
|
|
276
276
|
* @param {string} [authorization] Bearer Token
|
|
277
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
278
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
277
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
278
|
+
* @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.
|
|
279
279
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
280
280
|
* @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.
|
|
281
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
282
|
-
* @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
|
|
281
|
+
* @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.
|
|
282
|
+
* @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.
|
|
283
283
|
* @param {*} [options] Override http request option.
|
|
284
284
|
* @throws {RequiredError}
|
|
285
285
|
*/
|
|
@@ -313,12 +313,12 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
313
313
|
* 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.
|
|
314
314
|
* @summary List invoices
|
|
315
315
|
* @param {string} [authorization] Bearer Token
|
|
316
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
317
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
316
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
317
|
+
* @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.
|
|
318
318
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
319
319
|
* @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.
|
|
320
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
321
|
-
* @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
|
|
320
|
+
* @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.
|
|
321
|
+
* @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.
|
|
322
322
|
* @param {*} [options] Override http request option.
|
|
323
323
|
* @throws {RequiredError}
|
|
324
324
|
*/
|
|
@@ -329,12 +329,12 @@ export const InvoicesApiFactory = function (configuration?: Configuration, baseP
|
|
|
329
329
|
* 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.
|
|
330
330
|
* @summary List policies billing dates
|
|
331
331
|
* @param {string} [authorization] Bearer Token
|
|
332
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned.
|
|
333
|
-
* @param {any} [pageToken] A cursor for use in pagination.
|
|
332
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
333
|
+
* @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.
|
|
334
334
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
335
335
|
* @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.
|
|
336
|
-
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field.
|
|
337
|
-
* @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
|
|
336
|
+
* @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.
|
|
337
|
+
* @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.
|
|
338
338
|
* @param {*} [options] Override http request option.
|
|
339
339
|
* @throws {RequiredError}
|
|
340
340
|
*/
|
|
@@ -386,14 +386,14 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
386
386
|
readonly authorization?: string
|
|
387
387
|
|
|
388
388
|
/**
|
|
389
|
-
* A limit on the number of objects to be returned.
|
|
389
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
390
390
|
* @type {any}
|
|
391
391
|
* @memberof InvoicesApiListInvoices
|
|
392
392
|
*/
|
|
393
393
|
readonly pageSize?: any
|
|
394
394
|
|
|
395
395
|
/**
|
|
396
|
-
* A cursor for use in pagination.
|
|
396
|
+
* 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.
|
|
397
397
|
* @type {any}
|
|
398
398
|
* @memberof InvoicesApiListInvoices
|
|
399
399
|
*/
|
|
@@ -414,14 +414,14 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
414
414
|
readonly search?: any
|
|
415
415
|
|
|
416
416
|
/**
|
|
417
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
417
|
+
* 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.
|
|
418
418
|
* @type {any}
|
|
419
419
|
* @memberof InvoicesApiListInvoices
|
|
420
420
|
*/
|
|
421
421
|
readonly order?: any
|
|
422
422
|
|
|
423
423
|
/**
|
|
424
|
-
* 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
|
|
424
|
+
* 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.
|
|
425
425
|
* @type {any}
|
|
426
426
|
* @memberof InvoicesApiListInvoices
|
|
427
427
|
*/
|
|
@@ -442,14 +442,14 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
442
442
|
readonly authorization?: string
|
|
443
443
|
|
|
444
444
|
/**
|
|
445
|
-
* A limit on the number of objects to be returned.
|
|
445
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
446
446
|
* @type {any}
|
|
447
447
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
448
448
|
*/
|
|
449
449
|
readonly pageSize?: any
|
|
450
450
|
|
|
451
451
|
/**
|
|
452
|
-
* A cursor for use in pagination.
|
|
452
|
+
* 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.
|
|
453
453
|
* @type {any}
|
|
454
454
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
455
455
|
*/
|
|
@@ -470,14 +470,14 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
470
470
|
readonly search?: any
|
|
471
471
|
|
|
472
472
|
/**
|
|
473
|
-
* The order parameter determines how the results should be sorted according to a specified field.
|
|
473
|
+
* 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.
|
|
474
474
|
* @type {any}
|
|
475
475
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
476
476
|
*/
|
|
477
477
|
readonly order?: any
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
|
-
* 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
|
|
480
|
+
* 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.
|
|
481
481
|
* @type {any}
|
|
482
482
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
483
483
|
*/
|
package/api.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
|
|
27
27
|
import { CorrectionInvoicesApi } from './api';
|
|
28
|
+
import { DefaultApi } from './api';
|
|
28
29
|
import { EstimatedInvoicesApi } from './api';
|
|
29
30
|
import { InitialInvoicesApi } from './api';
|
|
30
31
|
import { InvoicesApi } from './api';
|
|
@@ -32,6 +33,7 @@ import { RecurringInvoicesApi } from './api';
|
|
|
32
33
|
|
|
33
34
|
|
|
34
35
|
export * from './api/correction-invoices-api';
|
|
36
|
+
export * from './api/default-api';
|
|
35
37
|
export * from './api/estimated-invoices-api';
|
|
36
38
|
export * from './api/initial-invoices-api';
|
|
37
39
|
export * from './api/invoices-api';
|
package/base.ts
CHANGED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface CreateInvoicePaymentRequestDto
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateInvoicePaymentRequestDto {
|
|
23
|
+
/**
|
|
24
|
+
* Payment amount.
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
27
|
+
*/
|
|
28
|
+
'transactionAmount': number;
|
|
29
|
+
/**
|
|
30
|
+
* Payment date.
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
33
|
+
*/
|
|
34
|
+
'transactionDate': string;
|
|
35
|
+
/**
|
|
36
|
+
* Transaction reference.
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'transactionReference': string;
|
|
41
|
+
/**
|
|
42
|
+
* Payment comment.
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'comment'?: string;
|
|
47
|
+
/**
|
|
48
|
+
* Payment id.
|
|
49
|
+
* @type {number}
|
|
50
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
51
|
+
*/
|
|
52
|
+
'paymentId': number;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {number}
|
|
56
|
+
* @memberof CreateInvoicePaymentRequestDto
|
|
57
|
+
*/
|
|
58
|
+
'invoiceId': number;
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -36,7 +36,8 @@ export interface CreateInvoiceStatusRequestDto {
|
|
|
36
36
|
|
|
37
37
|
export const CreateInvoiceStatusRequestDtoStatusEnum = {
|
|
38
38
|
Open: 'open',
|
|
39
|
-
Paid: 'paid'
|
|
39
|
+
Paid: 'paid',
|
|
40
|
+
PartiallyPaid: 'partially-paid'
|
|
40
41
|
} as const;
|
|
41
42
|
|
|
42
43
|
export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
|
package/models/index.ts
CHANGED
|
@@ -3,13 +3,18 @@ export * from './create-custom-estimated-invoice-request-dto';
|
|
|
3
3
|
export * from './create-custom-estimated-invoice-response-class';
|
|
4
4
|
export * from './create-estimated-invoice-request-dto';
|
|
5
5
|
export * from './create-estimated-invoice-response-class';
|
|
6
|
+
export * from './create-invoice-payment-request-dto';
|
|
6
7
|
export * from './create-invoice-request-dto';
|
|
7
8
|
export * from './create-invoice-response-class';
|
|
8
9
|
export * from './create-invoice-status-request-dto';
|
|
9
10
|
export * from './create-termination-invoice-request-dto';
|
|
10
11
|
export * from './get-invoice-response-class';
|
|
12
|
+
export * from './inline-response200';
|
|
13
|
+
export * from './inline-response503';
|
|
11
14
|
export * from './invoice-class';
|
|
12
15
|
export * from './invoice-item-class';
|
|
16
|
+
export * from './invoice-payment-class';
|
|
17
|
+
export * from './invoice-payments-class';
|
|
13
18
|
export * from './invoice-status-class';
|
|
14
19
|
export * from './list-invoices-response-class';
|
|
15
20
|
export * from './list-policies-billing-dates-response-class';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InlineResponse200
|
|
21
|
+
*/
|
|
22
|
+
export interface InlineResponse200 {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InlineResponse200
|
|
27
|
+
*/
|
|
28
|
+
'status'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
|
+
* @memberof InlineResponse200
|
|
33
|
+
*/
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
|
+
* @memberof InlineResponse200
|
|
39
|
+
*/
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
|
+
* @memberof InlineResponse200
|
|
45
|
+
*/
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL BillingService
|
|
5
|
+
* The EMIL BillingService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @interface InlineResponse503
|
|
21
|
+
*/
|
|
22
|
+
export interface InlineResponse503 {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof InlineResponse503
|
|
27
|
+
*/
|
|
28
|
+
'status'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
|
+
* @memberof InlineResponse503
|
|
33
|
+
*/
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
|
+
* @memberof InlineResponse503
|
|
39
|
+
*/
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
|
+
* @memberof InlineResponse503
|
|
45
|
+
*/
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
|
+
}
|
|
48
|
+
|
package/models/invoice-class.ts
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
import { InvoiceItemClass } from './invoice-item-class';
|
|
17
|
+
import { InvoicePaymentsClass } from './invoice-payments-class';
|
|
17
18
|
import { InvoiceStatusClass } from './invoice-status-class';
|
|
18
19
|
|
|
19
20
|
/**
|
|
@@ -82,6 +83,12 @@ export interface InvoiceClass {
|
|
|
82
83
|
* @memberof InvoiceClass
|
|
83
84
|
*/
|
|
84
85
|
'grossAmount': number;
|
|
86
|
+
/**
|
|
87
|
+
* Paid amount. This property is amount paid by this invoice. The amount corresponds to the sum (positives and negatives) of all payments relating to that invoice.
|
|
88
|
+
* @type {number}
|
|
89
|
+
* @memberof InvoiceClass
|
|
90
|
+
*/
|
|
91
|
+
'paidAmount': number;
|
|
85
92
|
/**
|
|
86
93
|
* Invoice status.
|
|
87
94
|
* @type {string}
|
|
@@ -136,6 +143,12 @@ export interface InvoiceClass {
|
|
|
136
143
|
* @memberof InvoiceClass
|
|
137
144
|
*/
|
|
138
145
|
'currency': string;
|
|
146
|
+
/**
|
|
147
|
+
* Invoice payments.
|
|
148
|
+
* @type {InvoicePaymentsClass}
|
|
149
|
+
* @memberof InvoiceClass
|
|
150
|
+
*/
|
|
151
|
+
'payments': InvoicePaymentsClass;
|
|
139
152
|
}
|
|
140
153
|
|
|
141
154
|
export const InvoiceClassTypeEnum = {
|
|
@@ -152,7 +165,8 @@ export const InvoiceClassTypeEnum = {
|
|
|
152
165
|
export type InvoiceClassTypeEnum = typeof InvoiceClassTypeEnum[keyof typeof InvoiceClassTypeEnum];
|
|
153
166
|
export const InvoiceClassStatusEnum = {
|
|
154
167
|
Open: 'open',
|
|
155
|
-
Paid: 'paid'
|
|
168
|
+
Paid: 'paid',
|
|
169
|
+
PartiallyPaid: 'partially-paid'
|
|
156
170
|
} as const;
|
|
157
171
|
|
|
158
172
|
export type InvoiceClassStatusEnum = typeof InvoiceClassStatusEnum[keyof typeof InvoiceClassStatusEnum];
|