@emilgroup/billing-sdk-node 1.17.0 → 1.17.1-beta.3
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 +4 -1
- package/README.md +2 -2
- package/api/draft-invoice-api.ts +346 -0
- package/api/estimated-invoices-api.ts +111 -4
- package/api/invoices-api.ts +108 -214
- package/api.ts +2 -0
- 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 +61 -4
- package/dist/api/estimated-invoices-api.js +97 -4
- package/dist/api/invoices-api.d.ts +92 -149
- package/dist/api/invoices-api.js +70 -163
- 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/create-draft-invoice-request-dto.js +26 -0
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/{create-invoice-payment-response-class.d.ts → create-estimated-invoice-for-interval-response-class.d.ts} +7 -7
- package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
- package/dist/models/create-invoice-payment-request-dto.d.ts +6 -0
- package/dist/models/create-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-invoice-status-request-dto.d.ts +1 -0
- package/dist/models/create-invoice-status-request-dto.js +2 -1
- package/dist/models/index.d.ts +3 -1
- package/dist/models/index.js +3 -1
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/invoice-class.d.ts +1 -0
- package/dist/models/invoice-class.js +2 -1
- package/dist/models/invoice-item-class.d.ts +12 -0
- package/dist/models/invoice-payment-class.d.ts +7 -7
- package/dist/models/invoice-status-class.d.ts +1 -0
- package/dist/models/invoice-status-class.js +2 -1
- package/dist/models/omit-type-class.d.ts +8 -0
- package/dist/models/omit-type-class.js +2 -1
- package/dist/models/policy-dto.d.ts +7 -1
- package/dist/models/policy-object-dto.d.ts +12 -12
- package/dist/models/policy-version-dto.d.ts +6 -0
- 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-invoice-payment-response-class.ts → create-estimated-invoice-for-interval-response-class.ts} +7 -7
- package/models/create-invoice-payment-request-dto.ts +6 -0
- package/models/create-invoice-request-dto.ts +3 -3
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +3 -1
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/invoice-class.ts +2 -1
- package/models/invoice-item-class.ts +12 -0
- package/models/invoice-payment-class.ts +7 -7
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +9 -1
- package/models/policy-dto.ts +7 -1
- package/models/policy-object-dto.ts +12 -12
- package/models/policy-version-dto.ts +6 -0
- package/package.json +1 -1
- /package/dist/models/{create-invoice-payment-response-class.js → create-estimated-invoice-for-interval-request-dto.js} +0 -0
|
@@ -14,6 +14,8 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { CreateCustomEstimatedInvoiceRequestDto } from '../models';
|
|
16
16
|
import { CreateCustomEstimatedInvoiceResponseClass } from '../models';
|
|
17
|
+
import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
|
|
18
|
+
import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
|
|
17
19
|
import { CreateEstimatedInvoiceRequestDto } from '../models';
|
|
18
20
|
import { CreateEstimatedInvoiceResponseClass } from '../models';
|
|
19
21
|
/**
|
|
@@ -31,7 +33,7 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
|
|
|
31
33
|
*/
|
|
32
34
|
createCustomEstimatedInvoice: (createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
35
|
/**
|
|
34
|
-
* This
|
|
36
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
35
37
|
* @summary Create the estimated invoice
|
|
36
38
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
37
39
|
* @param {string} [authorization] Bearer Token
|
|
@@ -39,6 +41,15 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
|
|
|
39
41
|
* @throws {RequiredError}
|
|
40
42
|
*/
|
|
41
43
|
createEstimatedInvoice: (createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
46
|
+
* @summary Create the estimated invoice
|
|
47
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
createEstimatedInvoiceFromInterval: (createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
42
53
|
};
|
|
43
54
|
/**
|
|
44
55
|
* EstimatedInvoicesApi - functional programming interface
|
|
@@ -55,7 +66,7 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
|
|
|
55
66
|
*/
|
|
56
67
|
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>>;
|
|
57
68
|
/**
|
|
58
|
-
* This
|
|
69
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
59
70
|
* @summary Create the estimated invoice
|
|
60
71
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
61
72
|
* @param {string} [authorization] Bearer Token
|
|
@@ -63,6 +74,15 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
|
|
|
63
74
|
* @throws {RequiredError}
|
|
64
75
|
*/
|
|
65
76
|
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceResponseClass>>;
|
|
77
|
+
/**
|
|
78
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
79
|
+
* @summary Create the estimated invoice
|
|
80
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
81
|
+
* @param {string} [authorization] Bearer Token
|
|
82
|
+
* @param {*} [options] Override http request option.
|
|
83
|
+
* @throws {RequiredError}
|
|
84
|
+
*/
|
|
85
|
+
createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>>;
|
|
66
86
|
};
|
|
67
87
|
/**
|
|
68
88
|
* EstimatedInvoicesApi - factory interface
|
|
@@ -79,7 +99,7 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
|
|
|
79
99
|
*/
|
|
80
100
|
createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>;
|
|
81
101
|
/**
|
|
82
|
-
* This
|
|
102
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
83
103
|
* @summary Create the estimated invoice
|
|
84
104
|
* @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
|
|
85
105
|
* @param {string} [authorization] Bearer Token
|
|
@@ -87,6 +107,15 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
|
|
|
87
107
|
* @throws {RequiredError}
|
|
88
108
|
*/
|
|
89
109
|
createEstimatedInvoice(createEstimatedInvoiceRequestDto: CreateEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceResponseClass>;
|
|
110
|
+
/**
|
|
111
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
112
|
+
* @summary Create the estimated invoice
|
|
113
|
+
* @param {CreateEstimatedInvoiceForIntervalRequestDto} createEstimatedInvoiceForIntervalRequestDto
|
|
114
|
+
* @param {string} [authorization] Bearer Token
|
|
115
|
+
* @param {*} [options] Override http request option.
|
|
116
|
+
* @throws {RequiredError}
|
|
117
|
+
*/
|
|
118
|
+
createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>;
|
|
90
119
|
};
|
|
91
120
|
/**
|
|
92
121
|
* Request parameters for createCustomEstimatedInvoice operation in EstimatedInvoicesApi.
|
|
@@ -126,6 +155,25 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceRequest {
|
|
|
126
155
|
*/
|
|
127
156
|
readonly authorization?: string;
|
|
128
157
|
}
|
|
158
|
+
/**
|
|
159
|
+
* Request parameters for createEstimatedInvoiceFromInterval operation in EstimatedInvoicesApi.
|
|
160
|
+
* @export
|
|
161
|
+
* @interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest
|
|
162
|
+
*/
|
|
163
|
+
export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {CreateEstimatedInvoiceForIntervalRequestDto}
|
|
167
|
+
* @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
|
|
168
|
+
*/
|
|
169
|
+
readonly createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto;
|
|
170
|
+
/**
|
|
171
|
+
* Bearer Token
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof EstimatedInvoicesApiCreateEstimatedInvoiceFromInterval
|
|
174
|
+
*/
|
|
175
|
+
readonly authorization?: string;
|
|
176
|
+
}
|
|
129
177
|
/**
|
|
130
178
|
* EstimatedInvoicesApi - object-oriented interface
|
|
131
179
|
* @export
|
|
@@ -143,7 +191,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
143
191
|
*/
|
|
144
192
|
createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any>>;
|
|
145
193
|
/**
|
|
146
|
-
* This
|
|
194
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
147
195
|
* @summary Create the estimated invoice
|
|
148
196
|
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
149
197
|
* @param {*} [options] Override http request option.
|
|
@@ -151,4 +199,13 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
|
|
|
151
199
|
* @memberof EstimatedInvoicesApi
|
|
152
200
|
*/
|
|
153
201
|
createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any>>;
|
|
202
|
+
/**
|
|
203
|
+
* This creates an estimated invoice. It will not be saved in the database.
|
|
204
|
+
* @summary Create the estimated invoice
|
|
205
|
+
* @param {EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest} requestParameters Request parameters.
|
|
206
|
+
* @param {*} [options] Override http request option.
|
|
207
|
+
* @throws {RequiredError}
|
|
208
|
+
* @memberof EstimatedInvoicesApi
|
|
209
|
+
*/
|
|
210
|
+
createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any>>;
|
|
154
211
|
}
|
|
@@ -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;
|