@emilgroup/billing-sdk-node 1.17.0 → 1.18.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 +3 -17
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +2 -4
- package/api/draft-invoice-api.ts +346 -0
- package/api/estimated-invoices-api.ts +112 -11
- package/api/initial-invoices-api.ts +2 -4
- package/api/invoices-api.ts +110 -222
- package/api/recurring-invoices-api.ts +2 -4
- package/api.ts +2 -0
- package/dist/api/correction-invoices-api.d.ts +3 -4
- package/dist/api/draft-invoice-api.d.ts +185 -0
- package/dist/api/draft-invoice-api.js +396 -0
- package/dist/api/estimated-invoices-api.d.ts +66 -12
- package/dist/api/estimated-invoices-api.js +97 -4
- package/dist/api/initial-invoices-api.d.ts +3 -4
- package/dist/api/invoices-api.d.ts +97 -157
- package/dist/api/invoices-api.js +70 -163
- package/dist/api/recurring-invoices-api.d.ts +3 -4
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-draft-invoice-request-dto.d.ts +89 -0
- package/dist/models/{invoice-class.js → create-draft-invoice-request-dto.js} +2 -7
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +1 -7
- package/dist/models/create-invoice-payment-request-dto.d.ts +2 -2
- package/dist/models/create-invoice-request-dto.d.ts +5 -5
- package/dist/models/index.d.ts +2 -17
- package/dist/models/index.js +2 -17
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/policy-dto.d.ts +5 -19
- package/dist/models/policy-dto.js +0 -8
- package/dist/models/policy-object-dto.d.ts +14 -20
- package/dist/models/policy-premium-dto.d.ts +2 -2
- package/dist/models/policy-premium-item-dto.d.ts +2 -2
- package/dist/models/policy-version-dto.d.ts +9 -3
- package/dist/models/premium-formula-dto.d.ts +2 -2
- package/dist/models/timeslice-dto.d.ts +1 -1
- package/models/create-draft-invoice-request-dto.ts +98 -0
- package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
- package/models/create-estimated-invoice-request-dto.ts +1 -7
- package/models/create-invoice-payment-request-dto.ts +2 -2
- package/models/create-invoice-request-dto.ts +5 -5
- package/models/index.ts +2 -17
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/policy-dto.ts +5 -22
- package/models/policy-object-dto.ts +14 -20
- package/models/policy-premium-dto.ts +2 -2
- package/models/policy-premium-item-dto.ts +2 -2
- package/models/policy-version-dto.ts +9 -3
- package/models/premium-formula-dto.ts +2 -2
- package/models/timeslice-dto.ts +1 -1
- package/package.json +1 -1
- package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
- 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-response-class.d.ts +0 -31
- package/dist/models/create-estimated-invoice-response-class.js +0 -15
- package/dist/models/create-invoice-payment-response-class.d.ts +0 -25
- package/dist/models/create-invoice-payment-response-class.js +0 -15
- 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 -36
- package/dist/models/create-invoice-status-request-dto.js +0 -21
- package/dist/models/create-termination-invoice-request-dto.d.ts +0 -54
- 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/invoice-class.d.ts +0 -170
- package/dist/models/invoice-item-class.d.ts +0 -129
- package/dist/models/invoice-item-class.js +0 -24
- package/dist/models/invoice-payment-class.d.ts +0 -102
- package/dist/models/invoice-payment-class.js +0 -15
- package/dist/models/invoice-payments-class.d.ts +0 -25
- package/dist/models/invoice-payments-class.js +0 -15
- package/dist/models/invoice-status-class.d.ts +0 -48
- package/dist/models/invoice-status-class.js +0 -21
- 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/omit-type-class.d.ts +0 -156
- package/dist/models/omit-type-class.js +0 -31
- package/dist/models/policy-billing-date-class.d.ts +0 -42
- package/dist/models/policy-billing-date-class.js +0 -15
- package/models/create-correction-invoices-response-class.ts +0 -31
- package/models/create-custom-estimated-invoice-response-class.ts +0 -30
- package/models/create-estimated-invoice-response-class.ts +0 -37
- package/models/create-invoice-payment-response-class.ts +0 -31
- package/models/create-invoice-response-class.ts +0 -31
- package/models/create-invoice-status-request-dto.ts +0 -45
- package/models/create-termination-invoice-request-dto.ts +0 -60
- package/models/get-invoice-response-class.ts +0 -31
- package/models/invoice-class.ts +0 -180
- package/models/invoice-item-class.ts +0 -138
- package/models/invoice-payment-class.ts +0 -108
- package/models/invoice-payments-class.ts +0 -31
- package/models/invoice-status-class.ts +0 -57
- package/models/list-invoices-response-class.ts +0 -37
- package/models/list-policies-billing-dates-response-class.ts +0 -37
- package/models/omit-type-class.ts +0 -166
- package/models/policy-billing-date-class.ts +0 -48
- /package/dist/models/{create-correction-invoices-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -5,6 +5,7 @@ README.md
|
|
|
5
5
|
api.ts
|
|
6
6
|
api/correction-invoices-api.ts
|
|
7
7
|
api/default-api.ts
|
|
8
|
+
api/draft-invoice-api.ts
|
|
8
9
|
api/estimated-invoices-api.ts
|
|
9
10
|
api/initial-invoices-api.ts
|
|
10
11
|
api/invoices-api.ts
|
|
@@ -14,31 +15,16 @@ common.ts
|
|
|
14
15
|
configuration.ts
|
|
15
16
|
git_push.sh
|
|
16
17
|
index.ts
|
|
17
|
-
models/create-correction-invoices-response-class.ts
|
|
18
18
|
models/create-custom-estimated-invoice-request-dto.ts
|
|
19
|
-
models/create-
|
|
19
|
+
models/create-draft-invoice-request-dto.ts
|
|
20
|
+
models/create-estimated-invoice-for-interval-request-dto.ts
|
|
20
21
|
models/create-estimated-invoice-request-dto.ts
|
|
21
|
-
models/create-estimated-invoice-response-class.ts
|
|
22
22
|
models/create-invoice-payment-request-dto.ts
|
|
23
|
-
models/create-invoice-payment-response-class.ts
|
|
24
23
|
models/create-invoice-request-dto.ts
|
|
25
|
-
models/create-invoice-response-class.ts
|
|
26
|
-
models/create-invoice-status-request-dto.ts
|
|
27
|
-
models/create-termination-invoice-request-dto.ts
|
|
28
|
-
models/get-invoice-response-class.ts
|
|
29
24
|
models/index.ts
|
|
30
25
|
models/inline-response200.ts
|
|
31
26
|
models/inline-response503.ts
|
|
32
|
-
models/invoice-class.ts
|
|
33
|
-
models/invoice-item-class.ts
|
|
34
|
-
models/invoice-payment-class.ts
|
|
35
|
-
models/invoice-payments-class.ts
|
|
36
|
-
models/invoice-status-class.ts
|
|
37
|
-
models/list-invoices-response-class.ts
|
|
38
|
-
models/list-policies-billing-dates-response-class.ts
|
|
39
27
|
models/list-request-dto.ts
|
|
40
|
-
models/omit-type-class.ts
|
|
41
|
-
models/policy-billing-date-class.ts
|
|
42
28
|
models/policy-dto.ts
|
|
43
29
|
models/policy-object-dto.ts
|
|
44
30
|
models/policy-premium-dto.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.18.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.18.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `InvoicesApi`.
|
|
@@ -21,8 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CreateCorrectionInvoicesResponseClass } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
24
|
import { CreateInvoiceRequestDto } from '../models';
|
|
27
25
|
// URLSearchParams not necessarily used
|
|
28
26
|
// @ts-ignore
|
|
@@ -105,7 +103,7 @@ export const CorrectionInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
105
103
|
* @param {*} [options] Override http request option.
|
|
106
104
|
* @throws {RequiredError}
|
|
107
105
|
*/
|
|
108
|
-
async createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
106
|
+
async createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
109
107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
|
|
110
108
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
111
109
|
},
|
|
@@ -128,7 +126,7 @@ export const CorrectionInvoicesApiFactory = function (configuration?: Configurat
|
|
|
128
126
|
* @param {*} [options] Override http request option.
|
|
129
127
|
* @throws {RequiredError}
|
|
130
128
|
*/
|
|
131
|
-
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<
|
|
129
|
+
createCorrectionInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
|
|
132
130
|
return localVarFp.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
133
131
|
},
|
|
134
132
|
};
|
|
@@ -0,0 +1,346 @@
|
|
|
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 { CreateDraftInvoiceRequestDto } from '../models';
|
|
25
|
+
// URLSearchParams not necessarily used
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { URL, URLSearchParams } from 'url';
|
|
28
|
+
const FormData = require('form-data');
|
|
29
|
+
/**
|
|
30
|
+
* DraftInvoiceApi - axios parameter creator
|
|
31
|
+
* @export
|
|
32
|
+
*/
|
|
33
|
+
export const DraftInvoiceApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
34
|
+
return {
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
|
|
38
|
+
* @param {string} [authorization] Bearer Token
|
|
39
|
+
* @param {*} [options] Override http request option.
|
|
40
|
+
* @throws {RequiredError}
|
|
41
|
+
*/
|
|
42
|
+
createDraftInvoice: async (createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
43
|
+
// verify required parameter 'createDraftInvoiceRequestDto' is not null or undefined
|
|
44
|
+
assertParamExists('createDraftInvoice', 'createDraftInvoiceRequestDto', createDraftInvoiceRequestDto)
|
|
45
|
+
const localVarPath = `/billingservice/v1/draft-invoices`;
|
|
46
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
47
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
48
|
+
let baseOptions;
|
|
49
|
+
let baseAccessToken;
|
|
50
|
+
if (configuration) {
|
|
51
|
+
baseOptions = configuration.baseOptions;
|
|
52
|
+
baseAccessToken = configuration.accessToken;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
56
|
+
const localVarHeaderParameter = {} as any;
|
|
57
|
+
const localVarQueryParameter = {} as any;
|
|
58
|
+
|
|
59
|
+
// authentication bearer required
|
|
60
|
+
// http bearer authentication required
|
|
61
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
62
|
+
|
|
63
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
64
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
70
|
+
|
|
71
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
72
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
73
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
74
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDraftInvoiceRequestDto, localVarRequestOptions, configuration)
|
|
75
|
+
|
|
76
|
+
return {
|
|
77
|
+
url: toPathString(localVarUrlObj),
|
|
78
|
+
options: localVarRequestOptions,
|
|
79
|
+
};
|
|
80
|
+
},
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @param {string} [authorization] Bearer Token
|
|
84
|
+
* @param {*} [options] Override http request option.
|
|
85
|
+
* @throws {RequiredError}
|
|
86
|
+
*/
|
|
87
|
+
deleteAllDraftInvoices: async (authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
88
|
+
const localVarPath = `/billingservice/v1/draft-invoices`;
|
|
89
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
90
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
91
|
+
let baseOptions;
|
|
92
|
+
let baseAccessToken;
|
|
93
|
+
if (configuration) {
|
|
94
|
+
baseOptions = configuration.baseOptions;
|
|
95
|
+
baseAccessToken = configuration.accessToken;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
99
|
+
const localVarHeaderParameter = {} as any;
|
|
100
|
+
const localVarQueryParameter = {} as any;
|
|
101
|
+
|
|
102
|
+
// authentication bearer required
|
|
103
|
+
// http bearer authentication required
|
|
104
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
105
|
+
|
|
106
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
107
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
113
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
114
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
url: toPathString(localVarUrlObj),
|
|
118
|
+
options: localVarRequestOptions,
|
|
119
|
+
};
|
|
120
|
+
},
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @param {object} body
|
|
124
|
+
* @param {string} [authorization] Bearer Token
|
|
125
|
+
* @param {*} [options] Override http request option.
|
|
126
|
+
* @throws {RequiredError}
|
|
127
|
+
*/
|
|
128
|
+
deleteDraftInvoice: async (body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
129
|
+
// verify required parameter 'body' is not null or undefined
|
|
130
|
+
assertParamExists('deleteDraftInvoice', 'body', body)
|
|
131
|
+
const localVarPath = `/billingservice/v1/draft-invoices/code`;
|
|
132
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
133
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
134
|
+
let baseOptions;
|
|
135
|
+
let baseAccessToken;
|
|
136
|
+
if (configuration) {
|
|
137
|
+
baseOptions = configuration.baseOptions;
|
|
138
|
+
baseAccessToken = configuration.accessToken;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
142
|
+
const localVarHeaderParameter = {} as any;
|
|
143
|
+
const localVarQueryParameter = {} as any;
|
|
144
|
+
|
|
145
|
+
// authentication bearer required
|
|
146
|
+
// http bearer authentication required
|
|
147
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
148
|
+
|
|
149
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
150
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
156
|
+
|
|
157
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
158
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
159
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
160
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
161
|
+
|
|
162
|
+
return {
|
|
163
|
+
url: toPathString(localVarUrlObj),
|
|
164
|
+
options: localVarRequestOptions,
|
|
165
|
+
};
|
|
166
|
+
},
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
/**
|
|
171
|
+
* DraftInvoiceApi - functional programming interface
|
|
172
|
+
* @export
|
|
173
|
+
*/
|
|
174
|
+
export const DraftInvoiceApiFp = function(configuration?: Configuration) {
|
|
175
|
+
const localVarAxiosParamCreator = DraftInvoiceApiAxiosParamCreator(configuration)
|
|
176
|
+
return {
|
|
177
|
+
/**
|
|
178
|
+
*
|
|
179
|
+
* @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
|
|
180
|
+
* @param {string} [authorization] Bearer Token
|
|
181
|
+
* @param {*} [options] Override http request option.
|
|
182
|
+
* @throws {RequiredError}
|
|
183
|
+
*/
|
|
184
|
+
async createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
185
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options);
|
|
186
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
187
|
+
},
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @param {string} [authorization] Bearer Token
|
|
191
|
+
* @param {*} [options] Override http request option.
|
|
192
|
+
* @throws {RequiredError}
|
|
193
|
+
*/
|
|
194
|
+
async deleteAllDraftInvoices(authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
195
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAllDraftInvoices(authorization, options);
|
|
196
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
*
|
|
200
|
+
* @param {object} body
|
|
201
|
+
* @param {string} [authorization] Bearer Token
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
async deleteDraftInvoice(body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
206
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDraftInvoice(body, authorization, options);
|
|
207
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
208
|
+
},
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* DraftInvoiceApi - factory interface
|
|
214
|
+
* @export
|
|
215
|
+
*/
|
|
216
|
+
export const DraftInvoiceApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
217
|
+
const localVarFp = DraftInvoiceApiFp(configuration)
|
|
218
|
+
return {
|
|
219
|
+
/**
|
|
220
|
+
*
|
|
221
|
+
* @param {CreateDraftInvoiceRequestDto} createDraftInvoiceRequestDto
|
|
222
|
+
* @param {string} [authorization] Bearer Token
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
createDraftInvoice(createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
227
|
+
return localVarFp.createDraftInvoice(createDraftInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
228
|
+
},
|
|
229
|
+
/**
|
|
230
|
+
*
|
|
231
|
+
* @param {string} [authorization] Bearer Token
|
|
232
|
+
* @param {*} [options] Override http request option.
|
|
233
|
+
* @throws {RequiredError}
|
|
234
|
+
*/
|
|
235
|
+
deleteAllDraftInvoices(authorization?: string, options?: any): AxiosPromise<void> {
|
|
236
|
+
return localVarFp.deleteAllDraftInvoices(authorization, options).then((request) => request(axios, basePath));
|
|
237
|
+
},
|
|
238
|
+
/**
|
|
239
|
+
*
|
|
240
|
+
* @param {object} body
|
|
241
|
+
* @param {string} [authorization] Bearer Token
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
deleteDraftInvoice(body: object, authorization?: string, options?: any): AxiosPromise<void> {
|
|
246
|
+
return localVarFp.deleteDraftInvoice(body, authorization, options).then((request) => request(axios, basePath));
|
|
247
|
+
},
|
|
248
|
+
};
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Request parameters for createDraftInvoice operation in DraftInvoiceApi.
|
|
253
|
+
* @export
|
|
254
|
+
* @interface DraftInvoiceApiCreateDraftInvoiceRequest
|
|
255
|
+
*/
|
|
256
|
+
export interface DraftInvoiceApiCreateDraftInvoiceRequest {
|
|
257
|
+
/**
|
|
258
|
+
*
|
|
259
|
+
* @type {CreateDraftInvoiceRequestDto}
|
|
260
|
+
* @memberof DraftInvoiceApiCreateDraftInvoice
|
|
261
|
+
*/
|
|
262
|
+
readonly createDraftInvoiceRequestDto: CreateDraftInvoiceRequestDto
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* Bearer Token
|
|
266
|
+
* @type {string}
|
|
267
|
+
* @memberof DraftInvoiceApiCreateDraftInvoice
|
|
268
|
+
*/
|
|
269
|
+
readonly authorization?: string
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/**
|
|
273
|
+
* Request parameters for deleteAllDraftInvoices operation in DraftInvoiceApi.
|
|
274
|
+
* @export
|
|
275
|
+
* @interface DraftInvoiceApiDeleteAllDraftInvoicesRequest
|
|
276
|
+
*/
|
|
277
|
+
export interface DraftInvoiceApiDeleteAllDraftInvoicesRequest {
|
|
278
|
+
/**
|
|
279
|
+
* Bearer Token
|
|
280
|
+
* @type {string}
|
|
281
|
+
* @memberof DraftInvoiceApiDeleteAllDraftInvoices
|
|
282
|
+
*/
|
|
283
|
+
readonly authorization?: string
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
/**
|
|
287
|
+
* Request parameters for deleteDraftInvoice operation in DraftInvoiceApi.
|
|
288
|
+
* @export
|
|
289
|
+
* @interface DraftInvoiceApiDeleteDraftInvoiceRequest
|
|
290
|
+
*/
|
|
291
|
+
export interface DraftInvoiceApiDeleteDraftInvoiceRequest {
|
|
292
|
+
/**
|
|
293
|
+
*
|
|
294
|
+
* @type {object}
|
|
295
|
+
* @memberof DraftInvoiceApiDeleteDraftInvoice
|
|
296
|
+
*/
|
|
297
|
+
readonly body: object
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Bearer Token
|
|
301
|
+
* @type {string}
|
|
302
|
+
* @memberof DraftInvoiceApiDeleteDraftInvoice
|
|
303
|
+
*/
|
|
304
|
+
readonly authorization?: string
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* DraftInvoiceApi - object-oriented interface
|
|
309
|
+
* @export
|
|
310
|
+
* @class DraftInvoiceApi
|
|
311
|
+
* @extends {BaseAPI}
|
|
312
|
+
*/
|
|
313
|
+
export class DraftInvoiceApi extends BaseAPI {
|
|
314
|
+
/**
|
|
315
|
+
*
|
|
316
|
+
* @param {DraftInvoiceApiCreateDraftInvoiceRequest} requestParameters Request parameters.
|
|
317
|
+
* @param {*} [options] Override http request option.
|
|
318
|
+
* @throws {RequiredError}
|
|
319
|
+
* @memberof DraftInvoiceApi
|
|
320
|
+
*/
|
|
321
|
+
public createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig) {
|
|
322
|
+
return DraftInvoiceApiFp(this.configuration).createDraftInvoice(requestParameters.createDraftInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
*
|
|
327
|
+
* @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
|
|
328
|
+
* @param {*} [options] Override http request option.
|
|
329
|
+
* @throws {RequiredError}
|
|
330
|
+
* @memberof DraftInvoiceApi
|
|
331
|
+
*/
|
|
332
|
+
public deleteAllDraftInvoices(requestParameters: DraftInvoiceApiDeleteAllDraftInvoicesRequest = {}, options?: AxiosRequestConfig) {
|
|
333
|
+
return DraftInvoiceApiFp(this.configuration).deleteAllDraftInvoices(requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
|
|
339
|
+
* @param {*} [options] Override http request option.
|
|
340
|
+
* @throws {RequiredError}
|
|
341
|
+
* @memberof DraftInvoiceApi
|
|
342
|
+
*/
|
|
343
|
+
public deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig) {
|
|
344
|
+
return DraftInvoiceApiFp(this.configuration).deleteDraftInvoice(requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
345
|
+
}
|
|
346
|
+
}
|
|
@@ -23,11 +23,9 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
|
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
|
|
25
25
|
// @ts-ignore
|
|
26
|
-
import {
|
|
26
|
+
import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { CreateEstimatedInvoiceResponseClass } from '../models';
|
|
31
29
|
// URLSearchParams not necessarily used
|
|
32
30
|
// @ts-ignore
|
|
33
31
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -86,7 +84,7 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
86
84
|
};
|
|
87
85
|
},
|
|
88
86
|
/**
|
|
89
|
-
* This
|
|
87
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
90
88
|
* @summary Create the estimated invoice
|
|
91
89
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
92
90
|
* @param {string} [authorization] Bearer Token
|
|
@@ -127,6 +125,53 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
127
125
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
128
126
|
localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceRequestDto, localVarRequestOptions, configuration)
|
|
129
127
|
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
/**
|
|
134
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
135
|
+
* @summary Create the estimated invoice
|
|
136
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
137
|
+
* @param {string} [authorization] Bearer Token
|
|
138
|
+
* @param {*} [options] Override http request option.
|
|
139
|
+
* @throws {RequiredError}
|
|
140
|
+
*/
|
|
141
|
+
createEstimatedInvoiceFromInterval: async (createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
142
|
+
// verify required parameter 'createEstimatedInvoiceForIntervalRequestDto' is not null or undefined
|
|
143
|
+
assertParamExists('createEstimatedInvoiceFromInterval', 'createEstimatedInvoiceForIntervalRequestDto', createEstimatedInvoiceForIntervalRequestDto)
|
|
144
|
+
const localVarPath = `/billingservice/v1/estimated-invoices/interval`;
|
|
145
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
146
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
147
|
+
let baseOptions;
|
|
148
|
+
let baseAccessToken;
|
|
149
|
+
if (configuration) {
|
|
150
|
+
baseOptions = configuration.baseOptions;
|
|
151
|
+
baseAccessToken = configuration.accessToken;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
155
|
+
const localVarHeaderParameter = {} as any;
|
|
156
|
+
const localVarQueryParameter = {} as any;
|
|
157
|
+
|
|
158
|
+
// authentication bearer required
|
|
159
|
+
// http bearer authentication required
|
|
160
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
161
|
+
|
|
162
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
163
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
169
|
+
|
|
170
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
171
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
173
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceForIntervalRequestDto, localVarRequestOptions, configuration)
|
|
174
|
+
|
|
130
175
|
return {
|
|
131
176
|
url: toPathString(localVarUrlObj),
|
|
132
177
|
options: localVarRequestOptions,
|
|
@@ -150,22 +195,34 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
150
195
|
* @param {*} [options] Override http request option.
|
|
151
196
|
* @throws {RequiredError}
|
|
152
197
|
*/
|
|
153
|
-
async createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
198
|
+
async createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
154
199
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options);
|
|
155
200
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
156
201
|
},
|
|
157
202
|
/**
|
|
158
|
-
* This
|
|
203
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
159
204
|
* @summary Create the estimated invoice
|
|
160
205
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
161
206
|
* @param {string} [authorization] Bearer Token
|
|
162
207
|
* @param {*} [options] Override http request option.
|
|
163
208
|
* @throws {RequiredError}
|
|
164
209
|
*/
|
|
165
|
-
async createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
210
|
+
async createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
166
211
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options);
|
|
167
212
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
168
213
|
},
|
|
214
|
+
/**
|
|
215
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
216
|
+
* @summary Create the estimated invoice
|
|
217
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
218
|
+
* @param {string} [authorization] Bearer Token
|
|
219
|
+
* @param {*} [options] Override http request option.
|
|
220
|
+
* @throws {RequiredError}
|
|
221
|
+
*/
|
|
222
|
+
async createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
223
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options);
|
|
224
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
225
|
+
},
|
|
169
226
|
}
|
|
170
227
|
};
|
|
171
228
|
|
|
@@ -184,20 +241,31 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
|
|
|
184
241
|
* @param {*} [options] Override http request option.
|
|
185
242
|
* @throws {RequiredError}
|
|
186
243
|
*/
|
|
187
|
-
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
244
|
+
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
188
245
|
return localVarFp.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
189
246
|
},
|
|
190
247
|
/**
|
|
191
|
-
* This
|
|
248
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
192
249
|
* @summary Create the estimated invoice
|
|
193
250
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
194
251
|
* @param {string} [authorization] Bearer Token
|
|
195
252
|
* @param {*} [options] Override http request option.
|
|
196
253
|
* @throws {RequiredError}
|
|
197
254
|
*/
|
|
198
|
-
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
255
|
+
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
199
256
|
return localVarFp.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
200
257
|
},
|
|
258
|
+
/**
|
|
259
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
260
|
+
* @summary Create the estimated invoice
|
|
261
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
262
|
+
* @param {string} [authorization] Bearer Token
|
|
263
|
+
* @param {*} [options] Override http request option.
|
|
264
|
+
* @throws {RequiredError}
|
|
265
|
+
*/
|
|
266
|
+
createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<void> {
|
|
267
|
+
return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
268
|
+
},
|
|
201
269
|
};
|
|
202
270
|
};
|
|
203
271
|
|
|
@@ -243,6 +311,27 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceRequest {
|
|
|
243
311
|
readonly authorization?: string
|
|
244
312
|
}
|
|
245
313
|
|
|
314
|
+
/**
|
|
315
|
+
* Request parameters for createEstimatedInvoiceFromInterval operation in EstimatedInvoicesApi.
|
|
316
|
+
* @export
|
|
317
|
+
* @interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest
|
|
318
|
+
*/
|
|
319
|
+
export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
|
|
320
|
+
/**
|
|
321
|
+
*
|
|
322
|
+
* @type {CreateEstimatedInvoiceForIntervalRequestDto}
|
|
323
|
+
* @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
|
|
324
|
+
*/
|
|
325
|
+
readonly createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto
|
|
326
|
+
|
|
327
|
+
/**
|
|
328
|
+
* Bearer Token
|
|
329
|
+
* @type {string}
|
|
330
|
+
* @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
|
|
331
|
+
*/
|
|
332
|
+
readonly authorization?: string
|
|
333
|
+
}
|
|
334
|
+
|
|
246
335
|
/**
|
|
247
336
|
* EstimatedInvoicesApi - object-oriented interface
|
|
248
337
|
* @export
|
|
@@ -263,7 +352,7 @@ export class EstimatedInvoicesApi extends BaseAPI {
|
|
|
263
352
|
}
|
|
264
353
|
|
|
265
354
|
/**
|
|
266
|
-
* This
|
|
355
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
267
356
|
* @summary Create the estimated invoice
|
|
268
357
|
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
269
358
|
* @param {*} [options] Override http request option.
|
|
@@ -273,4 +362,16 @@ export class EstimatedInvoicesApi extends BaseAPI {
|
|
|
273
362
|
public createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
|
|
274
363
|
return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoice(requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
275
364
|
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
368
|
+
* @summary Create the estimated invoice
|
|
369
|
+
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
|
|
370
|
+
* @param {*} [options] Override http request option.
|
|
371
|
+
* @throws {RequiredError}
|
|
372
|
+
* @memberof EstimatedInvoicesApi
|
|
373
|
+
*/
|
|
374
|
+
public createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig) {
|
|
375
|
+
return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
376
|
+
}
|
|
276
377
|
}
|
|
@@ -22,8 +22,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { CreateInvoiceRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreateInvoiceResponseClass } from '../models';
|
|
27
25
|
// URLSearchParams not necessarily used
|
|
28
26
|
// @ts-ignore
|
|
29
27
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -105,7 +103,7 @@ export const InitialInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
105
103
|
* @param {*} [options] Override http request option.
|
|
106
104
|
* @throws {RequiredError}
|
|
107
105
|
*/
|
|
108
|
-
async createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
106
|
+
async createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
109
107
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options);
|
|
110
108
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
111
109
|
},
|
|
@@ -128,7 +126,7 @@ export const InitialInvoicesApiFactory = function (configuration?: Configuration
|
|
|
128
126
|
* @param {*} [options] Override http request option.
|
|
129
127
|
* @throws {RequiredError}
|
|
130
128
|
*/
|
|
131
|
-
createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<
|
|
129
|
+
createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void> {
|
|
132
130
|
return localVarFp.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
133
131
|
},
|
|
134
132
|
};
|