@emilgroup/billing-sdk-node 1.11.0 → 1.17.1-beta.1
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 +2 -0
- package/README.md +2 -2
- package/api/estimated-invoices-api.ts +111 -4
- package/api/invoices-api.ts +48 -20
- 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 +32 -14
- package/dist/api/invoices-api.js +30 -18
- package/dist/models/create-estimated-invoice-for-interval-request-dto.d.ts +49 -0
- package/dist/models/create-estimated-invoice-for-interval-request-dto.js +15 -0
- package/dist/models/create-estimated-invoice-for-interval-response-class.d.ts +25 -0
- package/dist/models/create-estimated-invoice-for-interval-response-class.js +15 -0
- package/dist/models/create-estimated-invoice-request-dto.d.ts +7 -1
- package/dist/models/create-invoice-request-dto.d.ts +1 -1
- 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 +2 -0
- package/dist/models/index.js +2 -0
- 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-payment-class.d.ts +6 -0
- 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 +1 -0
- package/dist/models/omit-type-class.js +2 -1
- package/dist/models/policy-dto.d.ts +3 -2
- package/dist/models/policy-dto.js +3 -2
- package/dist/models/policy-object-dto.d.ts +24 -0
- package/dist/models/policy-version-dto.d.ts +9 -3
- package/dist/models/timeslice-dto.d.ts +1 -1
- package/models/create-estimated-invoice-for-interval-request-dto.ts +55 -0
- package/models/create-estimated-invoice-for-interval-response-class.ts +31 -0
- package/models/create-estimated-invoice-request-dto.ts +7 -1
- package/models/create-invoice-request-dto.ts +1 -1
- package/models/create-invoice-status-request-dto.ts +2 -1
- package/models/index.ts +2 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/invoice-class.ts +2 -1
- package/models/invoice-payment-class.ts +6 -0
- package/models/invoice-status-class.ts +2 -1
- package/models/omit-type-class.ts +2 -1
- package/models/policy-dto.ts +4 -3
- package/models/policy-object-dto.ts +24 -0
- package/models/policy-version-dto.ts +9 -3
- package/models/timeslice-dto.ts +1 -1
- package/package.json +2 -2
|
@@ -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;
|
|
@@ -34,30 +34,32 @@ export declare const InvoicesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
34
34
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
35
35
|
* @summary List invoices
|
|
36
36
|
* @param {string} [authorization] Bearer Token
|
|
37
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
37
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
38
38
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
39
39
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
40
40
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
41
41
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
42
42
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
43
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
43
44
|
* @param {*} [options] Override http request option.
|
|
44
45
|
* @throws {RequiredError}
|
|
45
46
|
*/
|
|
46
|
-
listInvoices: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
|
+
listInvoices: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
47
48
|
/**
|
|
48
49
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
49
50
|
* @summary List policies billing dates
|
|
50
51
|
* @param {string} [authorization] Bearer Token
|
|
51
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
52
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
52
53
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
53
54
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
54
55
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
55
56
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
56
57
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
58
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
57
59
|
* @param {*} [options] Override http request option.
|
|
58
60
|
* @throws {RequiredError}
|
|
59
61
|
*/
|
|
60
|
-
listPoliciesBillingDates: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
|
+
listPoliciesBillingDates: (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
61
63
|
};
|
|
62
64
|
/**
|
|
63
65
|
* InvoicesApi - functional programming interface
|
|
@@ -78,30 +80,32 @@ export declare const InvoicesApiFp: (configuration?: Configuration) => {
|
|
|
78
80
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
79
81
|
* @summary List invoices
|
|
80
82
|
* @param {string} [authorization] Bearer Token
|
|
81
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
83
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
82
84
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
83
85
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
84
86
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
85
87
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
86
88
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
89
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
87
90
|
* @param {*} [options] Override http request option.
|
|
88
91
|
* @throws {RequiredError}
|
|
89
92
|
*/
|
|
90
|
-
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
|
|
93
|
+
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInvoicesResponseClass>>;
|
|
91
94
|
/**
|
|
92
95
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
93
96
|
* @summary List policies billing dates
|
|
94
97
|
* @param {string} [authorization] Bearer Token
|
|
95
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
98
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
96
99
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
97
100
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
98
101
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
99
102
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
100
103
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
104
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
101
105
|
* @param {*} [options] Override http request option.
|
|
102
106
|
* @throws {RequiredError}
|
|
103
107
|
*/
|
|
104
|
-
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>>;
|
|
108
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesBillingDatesResponseClass>>;
|
|
105
109
|
};
|
|
106
110
|
/**
|
|
107
111
|
* InvoicesApi - factory interface
|
|
@@ -122,30 +126,32 @@ export declare const InvoicesApiFactory: (configuration?: Configuration, basePat
|
|
|
122
126
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
123
127
|
* @summary List invoices
|
|
124
128
|
* @param {string} [authorization] Bearer Token
|
|
125
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
129
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
126
130
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
127
131
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
128
132
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
129
133
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
130
134
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
135
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
131
136
|
* @param {*} [options] Override http request option.
|
|
132
137
|
* @throws {RequiredError}
|
|
133
138
|
*/
|
|
134
|
-
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListInvoicesResponseClass>;
|
|
139
|
+
listInvoices(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListInvoicesResponseClass>;
|
|
135
140
|
/**
|
|
136
141
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
137
142
|
* @summary List policies billing dates
|
|
138
143
|
* @param {string} [authorization] Bearer Token
|
|
139
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
144
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
140
145
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
141
146
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
142
147
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
143
148
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
144
149
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
150
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
145
151
|
* @param {*} [options] Override http request option.
|
|
146
152
|
* @throws {RequiredError}
|
|
147
153
|
*/
|
|
148
|
-
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass>;
|
|
154
|
+
listPoliciesBillingDates(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPoliciesBillingDatesResponseClass>;
|
|
149
155
|
};
|
|
150
156
|
/**
|
|
151
157
|
* Request parameters for getInvoice operation in InvoicesApi.
|
|
@@ -185,7 +191,7 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
185
191
|
*/
|
|
186
192
|
readonly authorization?: string;
|
|
187
193
|
/**
|
|
188
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
194
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
189
195
|
* @type {any}
|
|
190
196
|
* @memberof InvoicesApiListInvoices
|
|
191
197
|
*/
|
|
@@ -220,6 +226,12 @@ export interface InvoicesApiListInvoicesRequest {
|
|
|
220
226
|
* @memberof InvoicesApiListInvoices
|
|
221
227
|
*/
|
|
222
228
|
readonly expand?: any;
|
|
229
|
+
/**
|
|
230
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
231
|
+
* @type {any}
|
|
232
|
+
* @memberof InvoicesApiListInvoices
|
|
233
|
+
*/
|
|
234
|
+
readonly filters?: any;
|
|
223
235
|
}
|
|
224
236
|
/**
|
|
225
237
|
* Request parameters for listPoliciesBillingDates operation in InvoicesApi.
|
|
@@ -234,7 +246,7 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
234
246
|
*/
|
|
235
247
|
readonly authorization?: string;
|
|
236
248
|
/**
|
|
237
|
-
* A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
249
|
+
* A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
238
250
|
* @type {any}
|
|
239
251
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
240
252
|
*/
|
|
@@ -269,6 +281,12 @@ export interface InvoicesApiListPoliciesBillingDatesRequest {
|
|
|
269
281
|
* @memberof InvoicesApiListPoliciesBillingDates
|
|
270
282
|
*/
|
|
271
283
|
readonly expand?: any;
|
|
284
|
+
/**
|
|
285
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
286
|
+
* @type {any}
|
|
287
|
+
* @memberof InvoicesApiListPoliciesBillingDates
|
|
288
|
+
*/
|
|
289
|
+
readonly filters?: any;
|
|
272
290
|
}
|
|
273
291
|
/**
|
|
274
292
|
* InvoicesApi - object-oriented interface
|
package/dist/api/invoices-api.js
CHANGED
|
@@ -154,16 +154,17 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
154
154
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
155
155
|
* @summary List invoices
|
|
156
156
|
* @param {string} [authorization] Bearer Token
|
|
157
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
157
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
158
158
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
159
159
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
160
160
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
161
161
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
162
162
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
163
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
163
164
|
* @param {*} [options] Override http request option.
|
|
164
165
|
* @throws {RequiredError}
|
|
165
166
|
*/
|
|
166
|
-
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
167
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
167
168
|
if (options === void 0) { options = {}; }
|
|
168
169
|
return __awaiter(_this, void 0, void 0, function () {
|
|
169
170
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -204,6 +205,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
204
205
|
if (expand !== undefined) {
|
|
205
206
|
localVarQueryParameter['expand'] = expand;
|
|
206
207
|
}
|
|
208
|
+
if (filters !== undefined) {
|
|
209
|
+
localVarQueryParameter['filters'] = filters;
|
|
210
|
+
}
|
|
207
211
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
208
212
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
209
213
|
}
|
|
@@ -222,16 +226,17 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
222
226
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
223
227
|
* @summary List policies billing dates
|
|
224
228
|
* @param {string} [authorization] Bearer Token
|
|
225
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
229
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
226
230
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
227
231
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
228
232
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
229
233
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
230
234
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
235
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
231
236
|
* @param {*} [options] Override http request option.
|
|
232
237
|
* @throws {RequiredError}
|
|
233
238
|
*/
|
|
234
|
-
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
239
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
235
240
|
if (options === void 0) { options = {}; }
|
|
236
241
|
return __awaiter(_this, void 0, void 0, function () {
|
|
237
242
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -272,6 +277,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
272
277
|
if (expand !== undefined) {
|
|
273
278
|
localVarQueryParameter['expand'] = expand;
|
|
274
279
|
}
|
|
280
|
+
if (filters !== undefined) {
|
|
281
|
+
localVarQueryParameter['filters'] = filters;
|
|
282
|
+
}
|
|
275
283
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
276
284
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
277
285
|
}
|
|
@@ -322,21 +330,22 @@ var InvoicesApiFp = function (configuration) {
|
|
|
322
330
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
323
331
|
* @summary List invoices
|
|
324
332
|
* @param {string} [authorization] Bearer Token
|
|
325
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
333
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
326
334
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
327
335
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
328
336
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
329
337
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
330
338
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
339
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
331
340
|
* @param {*} [options] Override http request option.
|
|
332
341
|
* @throws {RequiredError}
|
|
333
342
|
*/
|
|
334
|
-
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
343
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
335
344
|
return __awaiter(this, void 0, void 0, function () {
|
|
336
345
|
var localVarAxiosArgs;
|
|
337
346
|
return __generator(this, function (_a) {
|
|
338
347
|
switch (_a.label) {
|
|
339
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
348
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
340
349
|
case 1:
|
|
341
350
|
localVarAxiosArgs = _a.sent();
|
|
342
351
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -348,21 +357,22 @@ var InvoicesApiFp = function (configuration) {
|
|
|
348
357
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
349
358
|
* @summary List policies billing dates
|
|
350
359
|
* @param {string} [authorization] Bearer Token
|
|
351
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
360
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
352
361
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
353
362
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
354
363
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
355
364
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
356
365
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
366
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
357
367
|
* @param {*} [options] Override http request option.
|
|
358
368
|
* @throws {RequiredError}
|
|
359
369
|
*/
|
|
360
|
-
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
370
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
361
371
|
return __awaiter(this, void 0, void 0, function () {
|
|
362
372
|
var localVarAxiosArgs;
|
|
363
373
|
return __generator(this, function (_a) {
|
|
364
374
|
switch (_a.label) {
|
|
365
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
|
|
375
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
|
|
366
376
|
case 1:
|
|
367
377
|
localVarAxiosArgs = _a.sent();
|
|
368
378
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -396,33 +406,35 @@ var InvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
396
406
|
* Returns a list of invoices you have previously created. The invoices are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
397
407
|
* @summary List invoices
|
|
398
408
|
* @param {string} [authorization] Bearer Token
|
|
399
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
409
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
400
410
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
401
411
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
402
412
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
403
413
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
404
414
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
415
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
405
416
|
* @param {*} [options] Override http request option.
|
|
406
417
|
* @throws {RequiredError}
|
|
407
418
|
*/
|
|
408
|
-
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
409
|
-
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
419
|
+
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
420
|
+
return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
410
421
|
},
|
|
411
422
|
/**
|
|
412
423
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
413
424
|
* @summary List policies billing dates
|
|
414
425
|
* @param {string} [authorization] Bearer Token
|
|
415
|
-
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and
|
|
426
|
+
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
416
427
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
417
428
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
418
429
|
* @param {any} [search] Search the list by any field. For instance, if you want to search by code add code=xxx in order to fetch the result.
|
|
419
430
|
* @param {any} [order] The order parameter determines how the results should be sorted according to a specified field. It functions similarly to an SQL ORDER BY. Sorting can be performed in either ascending (ASC) or descending (DESC) order. Default: ASC.
|
|
420
431
|
* @param {any} [expand] Use this parameter to fetch additional information about the list items. The expand query parameter increases the set of fields that appear in the response in addition to the default ones. Expanding resources can reduce the number of API calls required to accomplish a task. However, use this with parsimony as some expanded fields can drastically increase payload size.
|
|
432
|
+
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
421
433
|
* @param {*} [options] Override http request option.
|
|
422
434
|
* @throws {RequiredError}
|
|
423
435
|
*/
|
|
424
|
-
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
425
|
-
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
436
|
+
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
437
|
+
return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
426
438
|
},
|
|
427
439
|
};
|
|
428
440
|
};
|
|
@@ -461,7 +473,7 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
461
473
|
InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
|
|
462
474
|
var _this = this;
|
|
463
475
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
464
|
-
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
476
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listInvoices(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
465
477
|
};
|
|
466
478
|
/**
|
|
467
479
|
* Returns a list of policies billing dates you have previously created. The policies billing dates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
@@ -474,7 +486,7 @@ var InvoicesApi = /** @class */ (function (_super) {
|
|
|
474
486
|
InvoicesApi.prototype.listPoliciesBillingDates = function (requestParameters, options) {
|
|
475
487
|
var _this = this;
|
|
476
488
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
477
|
-
return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
489
|
+
return (0, exports.InvoicesApiFp)(this.configuration).listPoliciesBillingDates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
478
490
|
};
|
|
479
491
|
return InvoicesApi;
|
|
480
492
|
}(base_1.BaseAPI));
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL BillingService
|
|
3
|
+
* The EMIL BillingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { PolicyDto } from './policy-dto';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateEstimatedInvoiceForIntervalRequestDto
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateEstimatedInvoiceForIntervalRequestDto {
|
|
19
|
+
/**
|
|
20
|
+
* The policy object that the invoice is attached to. This contains all relevant policy details associated with this invoice.
|
|
21
|
+
* @type {PolicyDto}
|
|
22
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
23
|
+
*/
|
|
24
|
+
'policy': PolicyDto;
|
|
25
|
+
/**
|
|
26
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
27
|
+
* @type {object}
|
|
28
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'metadata'?: object;
|
|
31
|
+
/**
|
|
32
|
+
* A boolean flag indicating whether the invoice should be calculated on a pro rata basis. When true, the invoice amount is adjusted proportionally based on the duration of service.
|
|
33
|
+
* @type {object}
|
|
34
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'calculateProRata'?: object;
|
|
37
|
+
/**
|
|
38
|
+
* The start date of the billing interval. This is the date from which the invoice period begins.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'billingIntervalFrom': string;
|
|
43
|
+
/**
|
|
44
|
+
* The end date of the billing interval. This is the date until which the invoice period runs. Together with billingIntervalFrom, it defines the time period for which the invoice is issued.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CreateEstimatedInvoiceForIntervalRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'billingIntervalTo': string;
|
|
49
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL BillingService
|
|
6
|
+
* The EMIL BillingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL BillingService
|
|
3
|
+
* The EMIL BillingService API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { InvoiceClass } from './invoice-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CreateEstimatedInvoiceForIntervalResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface CreateEstimatedInvoiceForIntervalResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Estimated invoice response
|
|
21
|
+
* @type {InvoiceClass}
|
|
22
|
+
* @memberof CreateEstimatedInvoiceForIntervalResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'invoice': InvoiceClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL BillingService
|
|
6
|
+
* The EMIL BillingService API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -27,5 +27,11 @@ export interface CreateEstimatedInvoiceRequestDto {
|
|
|
27
27
|
* @type {object}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
29
29
|
*/
|
|
30
|
-
'metadata'
|
|
30
|
+
'metadata'?: object;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {boolean}
|
|
34
|
+
* @memberof CreateEstimatedInvoiceRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'calculateProRata'?: boolean;
|
|
31
37
|
}
|