@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
|
@@ -13,9 +13,8 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
|
|
16
|
-
import {
|
|
16
|
+
import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
|
|
17
17
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
18
|
-
import { CreateEstimatedInvoiceResponseClass } from '../models';
|
|
19
18
|
/**
|
|
20
19
|
* EstimatedInvoicesApi - axios parameter creator
|
|
21
20
|
* @export
|
|
@@ -31,7 +30,7 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
|
|
|
31
30
|
*/
|
|
32
31
|
createCustomEstimatedInvoice: (createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
32
|
/**
|
|
34
|
-
* This
|
|
33
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
35
34
|
* @summary Create the estimated invoice
|
|
36
35
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
37
36
|
* @param {string} [authorization] Bearer Token
|
|
@@ -39,6 +38,15 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
|
|
|
39
38
|
* @throws {RequiredError}
|
|
40
39
|
*/
|
|
41
40
|
createEstimatedInvoice: (createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
41
|
+
/**
|
|
42
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
43
|
+
* @summary Create the estimated invoice
|
|
44
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
45
|
+
* @param {string} [authorization] Bearer Token
|
|
46
|
+
* @param {*} [options] Override http request option.
|
|
47
|
+
* @throws {RequiredError}
|
|
48
|
+
*/
|
|
49
|
+
createEstimatedInvoiceFromInterval: (createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
50
|
};
|
|
43
51
|
/**
|
|
44
52
|
* EstimatedInvoicesApi - functional programming interface
|
|
@@ -53,16 +61,25 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
|
|
|
53
61
|
* @param {*} [options] Override http request option.
|
|
54
62
|
* @throws {RequiredError}
|
|
55
63
|
*/
|
|
56
|
-
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
64
|
+
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
57
65
|
/**
|
|
58
|
-
* This
|
|
66
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
59
67
|
* @summary Create the estimated invoice
|
|
60
68
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
61
69
|
* @param {string} [authorization] Bearer Token
|
|
62
70
|
* @param {*} [options] Override http request option.
|
|
63
71
|
* @throws {RequiredError}
|
|
64
72
|
*/
|
|
65
|
-
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
73
|
+
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
74
|
+
/**
|
|
75
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
76
|
+
* @summary Create the estimated invoice
|
|
77
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
78
|
+
* @param {string} [authorization] Bearer Token
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
66
83
|
};
|
|
67
84
|
/**
|
|
68
85
|
* EstimatedInvoicesApi - factory interface
|
|
@@ -77,16 +94,25 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
|
|
|
77
94
|
* @param {*} [options] Override http request option.
|
|
78
95
|
* @throws {RequiredError}
|
|
79
96
|
*/
|
|
80
|
-
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
97
|
+
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
81
98
|
/**
|
|
82
|
-
* This
|
|
99
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
83
100
|
* @summary Create the estimated invoice
|
|
84
101
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
85
102
|
* @param {string} [authorization] Bearer Token
|
|
86
103
|
* @param {*} [options] Override http request option.
|
|
87
104
|
* @throws {RequiredError}
|
|
88
105
|
*/
|
|
89
|
-
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<
|
|
106
|
+
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
107
|
+
/**
|
|
108
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
109
|
+
* @summary Create the estimated invoice
|
|
110
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
111
|
+
* @param {string} [authorization] Bearer Token
|
|
112
|
+
* @param {*} [options] Override http request option.
|
|
113
|
+
* @throws {RequiredError}
|
|
114
|
+
*/
|
|
115
|
+
createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<void>;
|
|
90
116
|
};
|
|
91
117
|
/**
|
|
92
118
|
* Request parameters for createCustomEstimatedInvoice operation in EstimatedInvoicesApi.
|
|
@@ -126,6 +152,25 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceRequest {
|
|
|
126
152
|
*/
|
|
127
153
|
readonly authorization?: string;
|
|
128
154
|
}
|
|
155
|
+
/**
|
|
156
|
+
* Request parameters for createEstimatedInvoiceFromInterval operation in EstimatedInvoicesApi.
|
|
157
|
+
* @export
|
|
158
|
+
* @interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest
|
|
159
|
+
*/
|
|
160
|
+
export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {CreateEstimatedInvoiceForIntervalRequestDto}
|
|
164
|
+
* @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
|
|
165
|
+
*/
|
|
166
|
+
readonly createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto;
|
|
167
|
+
/**
|
|
168
|
+
* Bearer Token
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
|
|
171
|
+
*/
|
|
172
|
+
readonly authorization?: string;
|
|
173
|
+
}
|
|
129
174
|
/**
|
|
130
175
|
* EstimatedInvoicesApi - object-oriented interface
|
|
131
176
|
* @export
|
|
@@ -141,14 +186,23 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
141
186
|
* @throws {RequiredError}
|
|
142
187
|
* @memberof EstimatedInvoicesApi
|
|
143
188
|
*/
|
|
144
|
-
createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
189
|
+
createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
145
190
|
/**
|
|
146
|
-
* This
|
|
191
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
147
192
|
* @summary Create the estimated invoice
|
|
148
193
|
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
149
194
|
* @param {*} [options] Override http request option.
|
|
150
195
|
* @throws {RequiredError}
|
|
151
196
|
* @memberof EstimatedInvoicesApi
|
|
152
197
|
*/
|
|
153
|
-
createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
198
|
+
createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
199
|
+
/**
|
|
200
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
201
|
+
* @summary Create the estimated invoice
|
|
202
|
+
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
* @memberof EstimatedInvoicesApi
|
|
206
|
+
*/
|
|
207
|
+
createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
154
208
|
}
|
|
@@ -146,7 +146,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
146
146
|
});
|
|
147
147
|
},
|
|
148
148
|
/**
|
|
149
|
-
* This
|
|
149
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
150
150
|
* @summary Create the estimated invoice
|
|
151
151
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
152
152
|
* @param {string} [authorization] Bearer Token
|
|
@@ -194,6 +194,55 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
196
|
},
|
|
197
|
+
/**
|
|
198
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
199
|
+
* @summary Create the estimated invoice
|
|
200
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
201
|
+
* @param {string} [authorization] Bearer Token
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
|
|
206
|
+
if (options === void 0) { options = {}; }
|
|
207
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
+
return __generator(this, function (_a) {
|
|
210
|
+
switch (_a.label) {
|
|
211
|
+
case 0:
|
|
212
|
+
// verify required parameter 'createEstimatedInvoiceForIntervalRequestDto' is not null or undefined
|
|
213
|
+
(0, common_1.assertParamExists)('createEstimatedInvoiceFromInterval', 'createEstimatedInvoiceForIntervalRequestDto', createEstimatedInvoiceForIntervalRequestDto);
|
|
214
|
+
localVarPath = "/billingservice/v1/estimated-invoices/interval";
|
|
215
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
216
|
+
if (configuration) {
|
|
217
|
+
baseOptions = configuration.baseOptions;
|
|
218
|
+
baseAccessToken = configuration.accessToken;
|
|
219
|
+
}
|
|
220
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
221
|
+
localVarHeaderParameter = {};
|
|
222
|
+
localVarQueryParameter = {};
|
|
223
|
+
// authentication bearer required
|
|
224
|
+
// http bearer authentication required
|
|
225
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
226
|
+
case 1:
|
|
227
|
+
// authentication bearer required
|
|
228
|
+
// http bearer authentication required
|
|
229
|
+
_a.sent();
|
|
230
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
231
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
232
|
+
}
|
|
233
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
235
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
236
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
237
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createEstimatedInvoiceForIntervalRequestDto, localVarRequestOptions, configuration);
|
|
238
|
+
return [2 /*return*/, {
|
|
239
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
240
|
+
options: localVarRequestOptions,
|
|
241
|
+
}];
|
|
242
|
+
}
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
},
|
|
197
246
|
};
|
|
198
247
|
};
|
|
199
248
|
exports.EstimatedInvoicesApiAxiosParamCreator = EstimatedInvoicesApiAxiosParamCreator;
|
|
@@ -226,7 +275,7 @@ var EstimatedInvoicesApiFp = function (configuration) {
|
|
|
226
275
|
});
|
|
227
276
|
},
|
|
228
277
|
/**
|
|
229
|
-
* This
|
|
278
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
230
279
|
* @summary Create the estimated invoice
|
|
231
280
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
232
281
|
* @param {string} [authorization] Bearer Token
|
|
@@ -246,6 +295,27 @@ var EstimatedInvoicesApiFp = function (configuration) {
|
|
|
246
295
|
});
|
|
247
296
|
});
|
|
248
297
|
},
|
|
298
|
+
/**
|
|
299
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
300
|
+
* @summary Create the estimated invoice
|
|
301
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
302
|
+
* @param {string} [authorization] Bearer Token
|
|
303
|
+
* @param {*} [options] Override http request option.
|
|
304
|
+
* @throws {RequiredError}
|
|
305
|
+
*/
|
|
306
|
+
createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
|
|
307
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
308
|
+
var localVarAxiosArgs;
|
|
309
|
+
return __generator(this, function (_a) {
|
|
310
|
+
switch (_a.label) {
|
|
311
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options)];
|
|
312
|
+
case 1:
|
|
313
|
+
localVarAxiosArgs = _a.sent();
|
|
314
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
315
|
+
}
|
|
316
|
+
});
|
|
317
|
+
});
|
|
318
|
+
},
|
|
249
319
|
};
|
|
250
320
|
};
|
|
251
321
|
exports.EstimatedInvoicesApiFp = EstimatedInvoicesApiFp;
|
|
@@ -268,7 +338,7 @@ var EstimatedInvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
268
338
|
return localVarFp.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
269
339
|
},
|
|
270
340
|
/**
|
|
271
|
-
* This
|
|
341
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
272
342
|
* @summary Create the estimated invoice
|
|
273
343
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
274
344
|
* @param {string} [authorization] Bearer Token
|
|
@@ -278,6 +348,17 @@ var EstimatedInvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
278
348
|
createEstimatedInvoice: function (createEstimatedInvoiceRequestDto, authorization, options) {
|
|
279
349
|
return localVarFp.createEstimatedInvoice(createEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
280
350
|
},
|
|
351
|
+
/**
|
|
352
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
353
|
+
* @summary Create the estimated invoice
|
|
354
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
355
|
+
* @param {string} [authorization] Bearer Token
|
|
356
|
+
* @param {*} [options] Override http request option.
|
|
357
|
+
* @throws {RequiredError}
|
|
358
|
+
*/
|
|
359
|
+
createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
|
|
360
|
+
return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
361
|
+
},
|
|
281
362
|
};
|
|
282
363
|
};
|
|
283
364
|
exports.EstimatedInvoicesApiFactory = EstimatedInvoicesApiFactory;
|
|
@@ -305,7 +386,7 @@ var EstimatedInvoicesApi = /** @class */ (function (_super) {
|
|
|
305
386
|
return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createCustomEstimatedInvoice(requestParameters.createCustomEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
306
387
|
};
|
|
307
388
|
/**
|
|
308
|
-
* This
|
|
389
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
309
390
|
* @summary Create the estimated invoice
|
|
310
391
|
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
311
392
|
* @param {*} [options] Override http request option.
|
|
@@ -316,6 +397,18 @@ var EstimatedInvoicesApi = /** @class */ (function (_super) {
|
|
|
316
397
|
var _this = this;
|
|
317
398
|
return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createEstimatedInvoice(requestParameters.createEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
318
399
|
};
|
|
400
|
+
/**
|
|
401
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
402
|
+
* @summary Create the estimated invoice
|
|
403
|
+
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
|
|
404
|
+
* @param {*} [options] Override http request option.
|
|
405
|
+
* @throws {RequiredError}
|
|
406
|
+
* @memberof EstimatedInvoicesApi
|
|
407
|
+
*/
|
|
408
|
+
EstimatedInvoicesApi.prototype.createEstimatedInvoiceFromInterval = function (requestParameters, options) {
|
|
409
|
+
var _this = this;
|
|
410
|
+
return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
411
|
+
};
|
|
319
412
|
return EstimatedInvoicesApi;
|
|
320
413
|
}(base_1.BaseAPI));
|
|
321
414
|
exports.EstimatedInvoicesApi = EstimatedInvoicesApi;
|
|
@@ -13,7 +13,6 @@ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateInvoiceRequestDto } from '../models';
|
|
16
|
-
import { CreateInvoiceResponseClass } from '../models';
|
|
17
16
|
/**
|
|
18
17
|
* InitialInvoicesApi - axios parameter creator
|
|
19
18
|
* @export
|
|
@@ -44,7 +43,7 @@ export declare const InitialInvoicesApiFp: (configuration?: Configuration) => {
|
|
|
44
43
|
* @param {*} [options] Override http request option.
|
|
45
44
|
* @throws {RequiredError}
|
|
46
45
|
*/
|
|
47
|
-
createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
46
|
+
createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
48
47
|
};
|
|
49
48
|
/**
|
|
50
49
|
* InitialInvoicesApi - factory interface
|
|
@@ -60,7 +59,7 @@ export declare const InitialInvoicesApiFactory: (configuration?: Configuration,
|
|
|
60
59
|
* @param {*} [options] Override http request option.
|
|
61
60
|
* @throws {RequiredError}
|
|
62
61
|
*/
|
|
63
|
-
createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<
|
|
62
|
+
createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<void>;
|
|
64
63
|
};
|
|
65
64
|
/**
|
|
66
65
|
* Request parameters for createInitialInvoice operation in InitialInvoicesApi.
|
|
@@ -102,5 +101,5 @@ export declare class InitialInvoicesApi extends BaseAPI {
|
|
|
102
101
|
* @throws {RequiredError}
|
|
103
102
|
* @memberof InitialInvoicesApi
|
|
104
103
|
*/
|
|
105
|
-
createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
104
|
+
createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
106
105
|
}
|