@emilgroup/billing-sdk 1.7.0 → 1.8.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.
Files changed (90) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/models/create-invoice-payment-request-dto.ts +60 -0
  4. package/models/create-invoice-status-request-dto.ts +2 -1
  5. package/models/index.ts +3 -0
  6. package/models/invoice-class.ts +15 -1
  7. package/models/invoice-payment-class.ts +102 -0
  8. package/{dist/models/create-custom-estimated-invoice-request-dto.js → models/invoice-payments-class.ts} +18 -7
  9. package/models/invoice-status-class.ts +2 -1
  10. package/models/omit-type-class.ts +15 -1
  11. package/package.json +1 -2
  12. package/dist/api/correction-invoices-api.d.ts +0 -106
  13. package/dist/api/correction-invoices-api.js +0 -230
  14. package/dist/api/default-api.d.ts +0 -66
  15. package/dist/api/default-api.js +0 -196
  16. package/dist/api/estimated-invoices-api.d.ts +0 -154
  17. package/dist/api/estimated-invoices-api.js +0 -317
  18. package/dist/api/initial-invoices-api.d.ts +0 -106
  19. package/dist/api/initial-invoices-api.js +0 -230
  20. package/dist/api/invoices-api.d.ts +0 -307
  21. package/dist/api/invoices-api.js +0 -477
  22. package/dist/api/recurring-invoices-api.d.ts +0 -106
  23. package/dist/api/recurring-invoices-api.js +0 -230
  24. package/dist/api.d.ts +0 -17
  25. package/dist/api.js +0 -35
  26. package/dist/base.d.ts +0 -74
  27. package/dist/base.js +0 -298
  28. package/dist/common.d.ts +0 -91
  29. package/dist/common.js +0 -276
  30. package/dist/configuration.d.ts +0 -83
  31. package/dist/configuration.js +0 -44
  32. package/dist/index.d.ts +0 -15
  33. package/dist/index.js +0 -36
  34. package/dist/models/create-correction-invoices-response-class.d.ts +0 -25
  35. package/dist/models/create-correction-invoices-response-class.js +0 -15
  36. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +0 -35
  37. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +0 -24
  38. package/dist/models/create-custom-estimated-invoice-response-class.js +0 -15
  39. package/dist/models/create-estimated-invoice-request-dto.d.ts +0 -31
  40. package/dist/models/create-estimated-invoice-request-dto.js +0 -15
  41. package/dist/models/create-estimated-invoice-response-class.d.ts +0 -31
  42. package/dist/models/create-estimated-invoice-response-class.js +0 -15
  43. package/dist/models/create-invoice-request-dto.d.ts +0 -77
  44. package/dist/models/create-invoice-request-dto.js +0 -26
  45. package/dist/models/create-invoice-response-class.d.ts +0 -25
  46. package/dist/models/create-invoice-response-class.js +0 -15
  47. package/dist/models/create-invoice-status-request-dto.d.ts +0 -35
  48. package/dist/models/create-invoice-status-request-dto.js +0 -20
  49. package/dist/models/create-termination-invoice-request-dto.d.ts +0 -48
  50. package/dist/models/create-termination-invoice-request-dto.js +0 -15
  51. package/dist/models/get-invoice-response-class.d.ts +0 -25
  52. package/dist/models/get-invoice-response-class.js +0 -15
  53. package/dist/models/index.d.ts +0 -28
  54. package/dist/models/index.js +0 -44
  55. package/dist/models/inline-response200.d.ts +0 -54
  56. package/dist/models/inline-response200.js +0 -15
  57. package/dist/models/inline-response503.d.ts +0 -54
  58. package/dist/models/inline-response503.js +0 -15
  59. package/dist/models/invoice-class.d.ts +0 -150
  60. package/dist/models/invoice-class.js +0 -30
  61. package/dist/models/invoice-item-class.d.ts +0 -129
  62. package/dist/models/invoice-item-class.js +0 -24
  63. package/dist/models/invoice-status-class.d.ts +0 -47
  64. package/dist/models/invoice-status-class.js +0 -20
  65. package/dist/models/list-invoices-response-class.d.ts +0 -31
  66. package/dist/models/list-invoices-response-class.js +0 -15
  67. package/dist/models/list-policies-billing-dates-response-class.d.ts +0 -31
  68. package/dist/models/list-policies-billing-dates-response-class.js +0 -15
  69. package/dist/models/list-request-dto.d.ts +0 -54
  70. package/dist/models/list-request-dto.js +0 -15
  71. package/dist/models/omit-type-class.d.ts +0 -143
  72. package/dist/models/omit-type-class.js +0 -30
  73. package/dist/models/policy-billing-date-class.d.ts +0 -42
  74. package/dist/models/policy-billing-date-class.js +0 -15
  75. package/dist/models/policy-dto.d.ts +0 -122
  76. package/dist/models/policy-dto.js +0 -22
  77. package/dist/models/policy-object-dto.d.ts +0 -48
  78. package/dist/models/policy-object-dto.js +0 -15
  79. package/dist/models/policy-premium-dto.d.ts +0 -49
  80. package/dist/models/policy-premium-dto.js +0 -15
  81. package/dist/models/policy-premium-item-dto.d.ts +0 -55
  82. package/dist/models/policy-premium-item-dto.js +0 -15
  83. package/dist/models/policy-version-dto.d.ts +0 -55
  84. package/dist/models/policy-version-dto.js +0 -15
  85. package/dist/models/premium-formula-dto.d.ts +0 -72
  86. package/dist/models/premium-formula-dto.js +0 -15
  87. package/dist/models/revert-invoice-request-dto.d.ts +0 -24
  88. package/dist/models/revert-invoice-request-dto.js +0 -15
  89. package/dist/models/timeslice-dto.d.ts +0 -62
  90. package/dist/models/timeslice-dto.js +0 -15
@@ -1,477 +0,0 @@
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __assign = (this && this.__assign) || function () {
31
- __assign = Object.assign || function(t) {
32
- for (var s, i = 1, n = arguments.length; i < n; i++) {
33
- s = arguments[i];
34
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
- t[p] = s[p];
36
- }
37
- return t;
38
- };
39
- return __assign.apply(this, arguments);
40
- };
41
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
- return new (P || (P = Promise))(function (resolve, reject) {
44
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
- step((generator = generator.apply(thisArg, _arguments || [])).next());
48
- });
49
- };
50
- var __generator = (this && this.__generator) || function (thisArg, body) {
51
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
- function verb(n) { return function (v) { return step([n, v]); }; }
54
- function step(op) {
55
- if (f) throw new TypeError("Generator is already executing.");
56
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
- if (y = 0, t) op = [op[0] & 2, t.value];
59
- switch (op[0]) {
60
- case 0: case 1: t = op; break;
61
- case 4: _.label++; return { value: op[1], done: false };
62
- case 5: _.label++; y = op[1]; op = [0]; continue;
63
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
- default:
65
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
- if (t[2]) _.ops.pop();
70
- _.trys.pop(); continue;
71
- }
72
- op = body.call(thisArg, _);
73
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
- }
76
- };
77
- var __importDefault = (this && this.__importDefault) || function (mod) {
78
- return (mod && mod.__esModule) ? mod : { "default": mod };
79
- };
80
- Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.InvoicesApi = exports.InvoicesApiFactory = exports.InvoicesApiFp = exports.InvoicesApiAxiosParamCreator = void 0;
82
- var axios_1 = __importDefault(require("axios"));
83
- // Some imports not used depending on template conditions
84
- // @ts-ignore
85
- var common_1 = require("../common");
86
- // @ts-ignore
87
- var base_1 = require("../base");
88
- /**
89
- * InvoicesApi - axios parameter creator
90
- * @export
91
- */
92
- var InvoicesApiAxiosParamCreator = function (configuration) {
93
- var _this = this;
94
- return {
95
- /**
96
- * 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.
97
- * @summary List invoices
98
- * @param {string} code
99
- * @param {string} expand
100
- * @param {string} [authorization] Bearer Token
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- */
104
- getInvoice: function (code, expand, authorization, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
107
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
108
- return __generator(this, function (_a) {
109
- switch (_a.label) {
110
- case 0:
111
- // verify required parameter 'code' is not null or undefined
112
- (0, common_1.assertParamExists)('getInvoice', 'code', code);
113
- // verify required parameter 'expand' is not null or undefined
114
- (0, common_1.assertParamExists)('getInvoice', 'expand', expand);
115
- localVarPath = "/billingservice/v1/invoices/{code}"
116
- .replace("{".concat("code", "}"), encodeURIComponent(String(code)));
117
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
- if (configuration) {
119
- baseOptions = configuration.baseOptions;
120
- baseAccessToken = configuration.accessToken;
121
- }
122
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
123
- localVarHeaderParameter = {};
124
- localVarQueryParameter = {};
125
- // authentication bearer required
126
- // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
128
- case 1:
129
- // authentication bearer required
130
- // http bearer authentication required
131
- _a.sent();
132
- if (expand !== undefined) {
133
- localVarQueryParameter['expand'] = expand;
134
- }
135
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
- }
138
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
139
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
140
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
141
- return [2 /*return*/, {
142
- url: (0, common_1.toPathString)(localVarUrlObj),
143
- options: localVarRequestOptions,
144
- }];
145
- }
146
- });
147
- });
148
- },
149
- /**
150
- * 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.
151
- * @summary List invoices
152
- * @param {string} [authorization] Bearer Token
153
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
154
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
155
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
157
- * @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.
158
- * @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.
159
- * @param {*} [options] Override http request option.
160
- * @throws {RequiredError}
161
- */
162
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
163
- if (options === void 0) { options = {}; }
164
- return __awaiter(_this, void 0, void 0, function () {
165
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
- return __generator(this, function (_a) {
167
- switch (_a.label) {
168
- case 0:
169
- localVarPath = "/billingservice/v1/invoices";
170
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
171
- if (configuration) {
172
- baseOptions = configuration.baseOptions;
173
- baseAccessToken = configuration.accessToken;
174
- }
175
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
176
- localVarHeaderParameter = {};
177
- localVarQueryParameter = {};
178
- // authentication bearer required
179
- // http bearer authentication required
180
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
181
- case 1:
182
- // authentication bearer required
183
- // http bearer authentication required
184
- _a.sent();
185
- if (pageSize !== undefined) {
186
- localVarQueryParameter['pageSize'] = pageSize;
187
- }
188
- if (pageToken !== undefined) {
189
- localVarQueryParameter['pageToken'] = pageToken;
190
- }
191
- if (filter !== undefined) {
192
- localVarQueryParameter['filter'] = filter;
193
- }
194
- if (search !== undefined) {
195
- localVarQueryParameter['search'] = search;
196
- }
197
- if (order !== undefined) {
198
- localVarQueryParameter['order'] = order;
199
- }
200
- if (expand !== undefined) {
201
- localVarQueryParameter['expand'] = expand;
202
- }
203
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
204
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
205
- }
206
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
207
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
208
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
209
- return [2 /*return*/, {
210
- url: (0, common_1.toPathString)(localVarUrlObj),
211
- options: localVarRequestOptions,
212
- }];
213
- }
214
- });
215
- });
216
- },
217
- /**
218
- * 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.
219
- * @summary List policies billing dates
220
- * @param {string} [authorization] Bearer Token
221
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
222
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
223
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
224
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
225
- * @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.
226
- * @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.
227
- * @param {*} [options] Override http request option.
228
- * @throws {RequiredError}
229
- */
230
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
231
- if (options === void 0) { options = {}; }
232
- return __awaiter(_this, void 0, void 0, function () {
233
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
234
- return __generator(this, function (_a) {
235
- switch (_a.label) {
236
- case 0:
237
- localVarPath = "/billingservice/v1/invoices/policies-billing-dates";
238
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
239
- if (configuration) {
240
- baseOptions = configuration.baseOptions;
241
- baseAccessToken = configuration.accessToken;
242
- }
243
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
244
- localVarHeaderParameter = {};
245
- localVarQueryParameter = {};
246
- // authentication bearer required
247
- // http bearer authentication required
248
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
249
- case 1:
250
- // authentication bearer required
251
- // http bearer authentication required
252
- _a.sent();
253
- if (pageSize !== undefined) {
254
- localVarQueryParameter['pageSize'] = pageSize;
255
- }
256
- if (pageToken !== undefined) {
257
- localVarQueryParameter['pageToken'] = pageToken;
258
- }
259
- if (filter !== undefined) {
260
- localVarQueryParameter['filter'] = filter;
261
- }
262
- if (search !== undefined) {
263
- localVarQueryParameter['search'] = search;
264
- }
265
- if (order !== undefined) {
266
- localVarQueryParameter['order'] = order;
267
- }
268
- if (expand !== undefined) {
269
- localVarQueryParameter['expand'] = expand;
270
- }
271
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
272
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
273
- }
274
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
275
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
276
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
277
- return [2 /*return*/, {
278
- url: (0, common_1.toPathString)(localVarUrlObj),
279
- options: localVarRequestOptions,
280
- }];
281
- }
282
- });
283
- });
284
- },
285
- };
286
- };
287
- exports.InvoicesApiAxiosParamCreator = InvoicesApiAxiosParamCreator;
288
- /**
289
- * InvoicesApi - functional programming interface
290
- * @export
291
- */
292
- var InvoicesApiFp = function (configuration) {
293
- var localVarAxiosParamCreator = (0, exports.InvoicesApiAxiosParamCreator)(configuration);
294
- return {
295
- /**
296
- * 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.
297
- * @summary List invoices
298
- * @param {string} code
299
- * @param {string} expand
300
- * @param {string} [authorization] Bearer Token
301
- * @param {*} [options] Override http request option.
302
- * @throws {RequiredError}
303
- */
304
- getInvoice: function (code, expand, authorization, options) {
305
- return __awaiter(this, void 0, void 0, function () {
306
- var localVarAxiosArgs;
307
- return __generator(this, function (_a) {
308
- switch (_a.label) {
309
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.getInvoice(code, expand, authorization, options)];
310
- case 1:
311
- localVarAxiosArgs = _a.sent();
312
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
313
- }
314
- });
315
- });
316
- },
317
- /**
318
- * 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.
319
- * @summary List invoices
320
- * @param {string} [authorization] Bearer Token
321
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
322
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
323
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
324
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
325
- * @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.
326
- * @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.
327
- * @param {*} [options] Override http request option.
328
- * @throws {RequiredError}
329
- */
330
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
331
- return __awaiter(this, void 0, void 0, function () {
332
- var localVarAxiosArgs;
333
- return __generator(this, function (_a) {
334
- switch (_a.label) {
335
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options)];
336
- case 1:
337
- localVarAxiosArgs = _a.sent();
338
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
339
- }
340
- });
341
- });
342
- },
343
- /**
344
- * 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.
345
- * @summary List policies billing dates
346
- * @param {string} [authorization] Bearer Token
347
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
348
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
349
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
350
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
351
- * @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.
352
- * @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.
353
- * @param {*} [options] Override http request option.
354
- * @throws {RequiredError}
355
- */
356
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
357
- return __awaiter(this, void 0, void 0, function () {
358
- var localVarAxiosArgs;
359
- return __generator(this, function (_a) {
360
- switch (_a.label) {
361
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
362
- case 1:
363
- localVarAxiosArgs = _a.sent();
364
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
365
- }
366
- });
367
- });
368
- },
369
- };
370
- };
371
- exports.InvoicesApiFp = InvoicesApiFp;
372
- /**
373
- * InvoicesApi - factory interface
374
- * @export
375
- */
376
- var InvoicesApiFactory = function (configuration, basePath, axios) {
377
- var localVarFp = (0, exports.InvoicesApiFp)(configuration);
378
- return {
379
- /**
380
- * 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.
381
- * @summary List invoices
382
- * @param {string} code
383
- * @param {string} expand
384
- * @param {string} [authorization] Bearer Token
385
- * @param {*} [options] Override http request option.
386
- * @throws {RequiredError}
387
- */
388
- getInvoice: function (code, expand, authorization, options) {
389
- return localVarFp.getInvoice(code, expand, authorization, options).then(function (request) { return request(axios, basePath); });
390
- },
391
- /**
392
- * 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.
393
- * @summary List invoices
394
- * @param {string} [authorization] Bearer Token
395
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
396
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
397
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
398
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
399
- * @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.
400
- * @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.
401
- * @param {*} [options] Override http request option.
402
- * @throws {RequiredError}
403
- */
404
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
405
- return localVarFp.listInvoices(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
406
- },
407
- /**
408
- * 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.
409
- * @summary List policies billing dates
410
- * @param {string} [authorization] Bearer Token
411
- * @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
412
- * @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&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
413
- * @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
414
- * @param {any} [search] Search the list by any field. For instance, if you want to search by code add code&#x3D;xxx in order to fetch the result.
415
- * @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.
416
- * @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.
417
- * @param {*} [options] Override http request option.
418
- * @throws {RequiredError}
419
- */
420
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
421
- return localVarFp.listPoliciesBillingDates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
422
- },
423
- };
424
- };
425
- exports.InvoicesApiFactory = InvoicesApiFactory;
426
- /**
427
- * InvoicesApi - object-oriented interface
428
- * @export
429
- * @class InvoicesApi
430
- * @extends {BaseAPI}
431
- */
432
- var InvoicesApi = /** @class */ (function (_super) {
433
- __extends(InvoicesApi, _super);
434
- function InvoicesApi() {
435
- return _super !== null && _super.apply(this, arguments) || this;
436
- }
437
- /**
438
- * 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.
439
- * @summary List invoices
440
- * @param {InvoicesApiGetInvoiceRequest} requestParameters Request parameters.
441
- * @param {*} [options] Override http request option.
442
- * @throws {RequiredError}
443
- * @memberof InvoicesApi
444
- */
445
- InvoicesApi.prototype.getInvoice = function (requestParameters, options) {
446
- var _this = this;
447
- return (0, exports.InvoicesApiFp)(this.configuration).getInvoice(requestParameters.code, requestParameters.expand, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
448
- };
449
- /**
450
- * 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.
451
- * @summary List invoices
452
- * @param {InvoicesApiListInvoicesRequest} requestParameters Request parameters.
453
- * @param {*} [options] Override http request option.
454
- * @throws {RequiredError}
455
- * @memberof InvoicesApi
456
- */
457
- InvoicesApi.prototype.listInvoices = function (requestParameters, options) {
458
- var _this = this;
459
- if (requestParameters === void 0) { requestParameters = {}; }
460
- 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); });
461
- };
462
- /**
463
- * 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.
464
- * @summary List policies billing dates
465
- * @param {InvoicesApiListPoliciesBillingDatesRequest} requestParameters Request parameters.
466
- * @param {*} [options] Override http request option.
467
- * @throws {RequiredError}
468
- * @memberof InvoicesApi
469
- */
470
- InvoicesApi.prototype.listPoliciesBillingDates = function (requestParameters, options) {
471
- var _this = this;
472
- if (requestParameters === void 0) { requestParameters = {}; }
473
- 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); });
474
- };
475
- return InvoicesApi;
476
- }(base_1.BaseAPI));
477
- exports.InvoicesApi = InvoicesApi;
@@ -1,106 +0,0 @@
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 { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
- import { Configuration } from '../configuration';
14
- import { RequestArgs, BaseAPI } from '../base';
15
- import { CreateInvoiceRequestDto } from '../models';
16
- import { CreateInvoiceResponseClass } from '../models';
17
- /**
18
- * RecurringInvoicesApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const RecurringInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
24
- * @summary Create the recurring invoice
25
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
26
- * @param {string} [authorization] Bearer Token
27
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
28
- * @param {*} [options] Override http request option.
29
- * @throws {RequiredError}
30
- */
31
- createRecurringInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
- };
33
- /**
34
- * RecurringInvoicesApi - functional programming interface
35
- * @export
36
- */
37
- export declare const RecurringInvoicesApiFp: (configuration?: Configuration) => {
38
- /**
39
- * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
40
- * @summary Create the recurring invoice
41
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
42
- * @param {string} [authorization] Bearer Token
43
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
44
- * @param {*} [options] Override http request option.
45
- * @throws {RequiredError}
46
- */
47
- createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
48
- };
49
- /**
50
- * RecurringInvoicesApi - factory interface
51
- * @export
52
- */
53
- export declare const RecurringInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
- /**
55
- * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
56
- * @summary Create the recurring invoice
57
- * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
58
- * @param {string} [authorization] Bearer Token
59
- * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- */
63
- createRecurringInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
64
- };
65
- /**
66
- * Request parameters for createRecurringInvoice operation in RecurringInvoicesApi.
67
- * @export
68
- * @interface RecurringInvoicesApiCreateRecurringInvoiceRequest
69
- */
70
- export interface RecurringInvoicesApiCreateRecurringInvoiceRequest {
71
- /**
72
- *
73
- * @type {CreateInvoiceRequestDto}
74
- * @memberof RecurringInvoicesApiCreateRecurringInvoice
75
- */
76
- readonly createInvoiceRequestDto: CreateInvoiceRequestDto;
77
- /**
78
- * Bearer Token
79
- * @type {string}
80
- * @memberof RecurringInvoicesApiCreateRecurringInvoice
81
- */
82
- readonly authorization?: string;
83
- /**
84
- * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
85
- * @type {string}
86
- * @memberof RecurringInvoicesApiCreateRecurringInvoice
87
- */
88
- readonly idempotencyKey?: string;
89
- }
90
- /**
91
- * RecurringInvoicesApi - object-oriented interface
92
- * @export
93
- * @class RecurringInvoicesApi
94
- * @extends {BaseAPI}
95
- */
96
- export declare class RecurringInvoicesApi extends BaseAPI {
97
- /**
98
- * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
99
- * @summary Create the recurring invoice
100
- * @param {RecurringInvoicesApiCreateRecurringInvoiceRequest} requestParameters Request parameters.
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- * @memberof RecurringInvoicesApi
104
- */
105
- createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any>>;
106
- }