@emilgroup/billing-sdk 1.45.1-beta.2 → 1.45.1-beta.21

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/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/billing-sdk@1.45.1-beta.2 --save
20
+ npm install @emilgroup/billing-sdk@1.45.1-beta.21 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk@1.45.1-beta.2
24
+ yarn add @emilgroup/billing-sdk@1.45.1-beta.21
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
package/base.ts CHANGED
@@ -270,7 +270,7 @@ export class BaseAPI {
270
270
  * @extends {Error}
271
271
  */
272
272
  export class RequiredError extends Error {
273
- name: "RequiredError" = "RequiredError";
273
+ override name: "RequiredError" = "RequiredError";
274
274
  constructor(public field: string, msg?: string) {
275
275
  super(msg);
276
276
  }
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -101,10 +110,14 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
101
110
  * @param {*} [options] Override http request option.
102
111
  * @throws {RequiredError}
103
112
  */
104
- createCorrectionInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
113
+ createCorrectionInvoice: function (createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1) {
114
+ var args_1 = [];
115
+ for (var _i = 3; _i < arguments.length; _i++) {
116
+ args_1[_i - 3] = arguments[_i];
117
+ }
118
+ return __awaiter(_this, __spreadArray([createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
107
119
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
120
+ if (options === void 0) { options = {}; }
108
121
  return __generator(this, function (_a) {
109
122
  switch (_a.label) {
110
123
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -97,10 +106,14 @@ var DefaultApiAxiosParamCreator = function (configuration) {
97
106
  * @param {*} [options] Override http request option.
98
107
  * @throws {RequiredError}
99
108
  */
100
- check: function (options) {
101
- if (options === void 0) { options = {}; }
102
- return __awaiter(_this, void 0, void 0, function () {
109
+ check: function () {
110
+ var args_1 = [];
111
+ for (var _i = 0; _i < arguments.length; _i++) {
112
+ args_1[_i] = arguments[_i];
113
+ }
114
+ return __awaiter(_this, __spreadArray([], args_1, true), void 0, function (options) {
103
115
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ if (options === void 0) { options = {}; }
104
117
  return __generator(this, function (_a) {
105
118
  localVarPath = "/billingservice/health";
106
119
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -99,10 +108,14 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
99
108
  * @param {*} [options] Override http request option.
100
109
  * @throws {RequiredError}
101
110
  */
102
- createDraftInvoice: function (createDraftInvoiceRequestDto, authorization, options) {
103
- if (options === void 0) { options = {}; }
104
- return __awaiter(_this, void 0, void 0, function () {
111
+ createDraftInvoice: function (createDraftInvoiceRequestDto_1, authorization_1) {
112
+ var args_1 = [];
113
+ for (var _i = 2; _i < arguments.length; _i++) {
114
+ args_1[_i - 2] = arguments[_i];
115
+ }
116
+ return __awaiter(_this, __spreadArray([createDraftInvoiceRequestDto_1, authorization_1], args_1, true), void 0, function (createDraftInvoiceRequestDto, authorization, options) {
105
117
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
118
+ if (options === void 0) { options = {}; }
106
119
  return __generator(this, function (_a) {
107
120
  switch (_a.label) {
108
121
  case 0:
@@ -146,10 +159,14 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
146
159
  * @param {*} [options] Override http request option.
147
160
  * @throws {RequiredError}
148
161
  */
149
- deleteAllDraftInvoices: function (authorization, options) {
150
- if (options === void 0) { options = {}; }
151
- return __awaiter(_this, void 0, void 0, function () {
162
+ deleteAllDraftInvoices: function (authorization_1) {
163
+ var args_1 = [];
164
+ for (var _i = 1; _i < arguments.length; _i++) {
165
+ args_1[_i - 1] = arguments[_i];
166
+ }
167
+ return __awaiter(_this, __spreadArray([authorization_1], args_1, true), void 0, function (authorization, options) {
152
168
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
169
+ if (options === void 0) { options = {}; }
153
170
  return __generator(this, function (_a) {
154
171
  switch (_a.label) {
155
172
  case 0:
@@ -190,10 +207,14 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
190
207
  * @param {*} [options] Override http request option.
191
208
  * @throws {RequiredError}
192
209
  */
193
- deleteDraftInvoice: function (body, authorization, options) {
194
- if (options === void 0) { options = {}; }
195
- return __awaiter(_this, void 0, void 0, function () {
210
+ deleteDraftInvoice: function (body_1, authorization_1) {
211
+ var args_1 = [];
212
+ for (var _i = 2; _i < arguments.length; _i++) {
213
+ args_1[_i - 2] = arguments[_i];
214
+ }
215
+ return __awaiter(_this, __spreadArray([body_1, authorization_1], args_1, true), void 0, function (body, authorization, options) {
196
216
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
217
+ if (options === void 0) { options = {}; }
197
218
  return __generator(this, function (_a) {
198
219
  switch (_a.label) {
199
220
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -100,10 +109,14 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
100
109
  * @param {*} [options] Override http request option.
101
110
  * @throws {RequiredError}
102
111
  */
103
- createCustomEstimatedInvoice: function (createCustomEstimatedInvoiceRequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
112
+ createCustomEstimatedInvoice: function (createCustomEstimatedInvoiceRequestDto_1, authorization_1) {
113
+ var args_1 = [];
114
+ for (var _i = 2; _i < arguments.length; _i++) {
115
+ args_1[_i - 2] = arguments[_i];
116
+ }
117
+ return __awaiter(_this, __spreadArray([createCustomEstimatedInvoiceRequestDto_1, authorization_1], args_1, true), void 0, function (createCustomEstimatedInvoiceRequestDto, authorization, options) {
106
118
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
119
+ if (options === void 0) { options = {}; }
107
120
  return __generator(this, function (_a) {
108
121
  switch (_a.label) {
109
122
  case 0:
@@ -149,10 +162,14 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
149
162
  * @param {*} [options] Override http request option.
150
163
  * @throws {RequiredError}
151
164
  */
152
- createEstimatedInvoice: function (createEstimatedInvoiceRequestDto, authorization, options) {
153
- if (options === void 0) { options = {}; }
154
- return __awaiter(_this, void 0, void 0, function () {
165
+ createEstimatedInvoice: function (createEstimatedInvoiceRequestDto_1, authorization_1) {
166
+ var args_1 = [];
167
+ for (var _i = 2; _i < arguments.length; _i++) {
168
+ args_1[_i - 2] = arguments[_i];
169
+ }
170
+ return __awaiter(_this, __spreadArray([createEstimatedInvoiceRequestDto_1, authorization_1], args_1, true), void 0, function (createEstimatedInvoiceRequestDto, authorization, options) {
155
171
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
172
+ if (options === void 0) { options = {}; }
156
173
  return __generator(this, function (_a) {
157
174
  switch (_a.label) {
158
175
  case 0:
@@ -198,10 +215,14 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
198
215
  * @param {*} [options] Override http request option.
199
216
  * @throws {RequiredError}
200
217
  */
201
- createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
202
- if (options === void 0) { options = {}; }
203
- return __awaiter(_this, void 0, void 0, function () {
218
+ createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto_1, authorization_1) {
219
+ var args_1 = [];
220
+ for (var _i = 2; _i < arguments.length; _i++) {
221
+ args_1[_i - 2] = arguments[_i];
222
+ }
223
+ return __awaiter(_this, __spreadArray([createEstimatedInvoiceForIntervalRequestDto_1, authorization_1], args_1, true), void 0, function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
204
224
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
225
+ if (options === void 0) { options = {}; }
205
226
  return __generator(this, function (_a) {
206
227
  switch (_a.label) {
207
228
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -101,10 +110,14 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
101
110
  * @param {*} [options] Override http request option.
102
111
  * @throws {RequiredError}
103
112
  */
104
- createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
113
+ createInitialInvoice: function (createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1) {
114
+ var args_1 = [];
115
+ for (var _i = 3; _i < arguments.length; _i++) {
116
+ args_1[_i - 3] = arguments[_i];
117
+ }
118
+ return __awaiter(_this, __spreadArray([createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
107
119
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
120
+ if (options === void 0) { options = {}; }
108
121
  return __generator(this, function (_a) {
109
122
  switch (_a.label) {
110
123
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -101,10 +110,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
101
110
  * @param {*} [options] Override http request option.
102
111
  * @throws {RequiredError}
103
112
  */
104
- createInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
113
+ createInvoice: function (createInvoiceRequestDto_1, authorization_1, idempotencyKey_1) {
114
+ var args_1 = [];
115
+ for (var _i = 3; _i < arguments.length; _i++) {
116
+ args_1[_i - 3] = arguments[_i];
117
+ }
118
+ return __awaiter(_this, __spreadArray([createInvoiceRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
107
119
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
120
+ if (options === void 0) { options = {}; }
108
121
  return __generator(this, function (_a) {
109
122
  switch (_a.label) {
110
123
  case 0:
@@ -154,10 +167,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
154
167
  * @param {*} [options] Override http request option.
155
168
  * @throws {RequiredError}
156
169
  */
157
- getInvoice: function (code, expand, authorization, options) {
158
- if (options === void 0) { options = {}; }
159
- return __awaiter(_this, void 0, void 0, function () {
170
+ getInvoice: function (code_1, expand_1, authorization_1) {
171
+ var args_1 = [];
172
+ for (var _i = 3; _i < arguments.length; _i++) {
173
+ args_1[_i - 3] = arguments[_i];
174
+ }
175
+ return __awaiter(_this, __spreadArray([code_1, expand_1, authorization_1], args_1, true), void 0, function (code, expand, authorization, options) {
160
176
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
177
+ if (options === void 0) { options = {}; }
161
178
  return __generator(this, function (_a) {
162
179
  switch (_a.label) {
163
180
  case 0:
@@ -213,10 +230,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
213
230
  * @param {*} [options] Override http request option.
214
231
  * @throws {RequiredError}
215
232
  */
216
- listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
217
- if (options === void 0) { options = {}; }
218
- return __awaiter(_this, void 0, void 0, function () {
233
+ listInvoices: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
234
+ var args_1 = [];
235
+ for (var _i = 8; _i < arguments.length; _i++) {
236
+ args_1[_i - 8] = arguments[_i];
237
+ }
238
+ return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
219
239
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
240
+ if (options === void 0) { options = {}; }
220
241
  return __generator(this, function (_a) {
221
242
  switch (_a.label) {
222
243
  case 0:
@@ -286,10 +307,14 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
286
307
  * @deprecated
287
308
  * @throws {RequiredError}
288
309
  */
289
- listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
290
- if (options === void 0) { options = {}; }
291
- return __awaiter(_this, void 0, void 0, function () {
310
+ listPoliciesBillingDates: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
311
+ var args_1 = [];
312
+ for (var _i = 8; _i < arguments.length; _i++) {
313
+ args_1[_i - 8] = arguments[_i];
314
+ }
315
+ return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
292
316
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
317
+ if (options === void 0) { options = {}; }
293
318
  return __generator(this, function (_a) {
294
319
  switch (_a.label) {
295
320
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -100,10 +109,14 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
100
109
  * @param {*} [options] Override http request option.
101
110
  * @throws {RequiredError}
102
111
  */
103
- createPolicyBilling: function (createPolicyBillingRequestDto, authorization, options) {
104
- if (options === void 0) { options = {}; }
105
- return __awaiter(_this, void 0, void 0, function () {
112
+ createPolicyBilling: function (createPolicyBillingRequestDto_1, authorization_1) {
113
+ var args_1 = [];
114
+ for (var _i = 2; _i < arguments.length; _i++) {
115
+ args_1[_i - 2] = arguments[_i];
116
+ }
117
+ return __awaiter(_this, __spreadArray([createPolicyBillingRequestDto_1, authorization_1], args_1, true), void 0, function (createPolicyBillingRequestDto, authorization, options) {
106
118
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
119
+ if (options === void 0) { options = {}; }
107
120
  return __generator(this, function (_a) {
108
121
  switch (_a.label) {
109
122
  case 0:
@@ -155,10 +168,14 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
155
168
  * @param {*} [options] Override http request option.
156
169
  * @throws {RequiredError}
157
170
  */
158
- listPoliciesBillings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
159
- if (options === void 0) { options = {}; }
160
- return __awaiter(_this, void 0, void 0, function () {
171
+ listPoliciesBillings: function (authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1) {
172
+ var args_1 = [];
173
+ for (var _i = 8; _i < arguments.length; _i++) {
174
+ args_1[_i - 8] = arguments[_i];
175
+ }
176
+ return __awaiter(_this, __spreadArray([authorization_1, pageSize_1, pageToken_1, filter_1, search_1, order_1, expand_1, filters_1], args_1, true), void 0, function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
161
177
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
178
+ if (options === void 0) { options = {}; }
162
179
  return __generator(this, function (_a) {
163
180
  switch (_a.label) {
164
181
  case 0:
@@ -222,10 +239,14 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
222
239
  * @param {*} [options] Override http request option.
223
240
  * @throws {RequiredError}
224
241
  */
225
- updatePolicyBilling: function (code, updatePolicyBillingRequestDto, authorization, options) {
226
- if (options === void 0) { options = {}; }
227
- return __awaiter(_this, void 0, void 0, function () {
242
+ updatePolicyBilling: function (code_1, updatePolicyBillingRequestDto_1, authorization_1) {
243
+ var args_1 = [];
244
+ for (var _i = 3; _i < arguments.length; _i++) {
245
+ args_1[_i - 3] = arguments[_i];
246
+ }
247
+ return __awaiter(_this, __spreadArray([code_1, updatePolicyBillingRequestDto_1, authorization_1], args_1, true), void 0, function (code, updatePolicyBillingRequestDto, authorization, options) {
228
248
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
249
+ if (options === void 0) { options = {}; }
229
250
  return __generator(this, function (_a) {
230
251
  switch (_a.label) {
231
252
  case 0:
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -74,6 +74,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
74
74
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
75
  }
76
76
  };
77
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
78
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
79
+ if (ar || !(i in from)) {
80
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
81
+ ar[i] = from[i];
82
+ }
83
+ }
84
+ return to.concat(ar || Array.prototype.slice.call(from));
85
+ };
77
86
  var __importDefault = (this && this.__importDefault) || function (mod) {
78
87
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
88
  };
@@ -101,10 +110,14 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
101
110
  * @param {*} [options] Override http request option.
102
111
  * @throws {RequiredError}
103
112
  */
104
- createRecurringInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
105
- if (options === void 0) { options = {}; }
106
- return __awaiter(_this, void 0, void 0, function () {
113
+ createRecurringInvoice: function (createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1) {
114
+ var args_1 = [];
115
+ for (var _i = 3; _i < arguments.length; _i++) {
116
+ args_1[_i - 3] = arguments[_i];
117
+ }
118
+ return __awaiter(_this, __spreadArray([createInvoiceForPolicyRequestDto_1, authorization_1, idempotencyKey_1], args_1, true), void 0, function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
107
119
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
120
+ if (options === void 0) { options = {}; }
108
121
  return __generator(this, function (_a) {
109
122
  switch (_a.label) {
110
123
  case 0:
package/dist/base.js CHANGED
@@ -48,8 +48,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
48
48
  });
49
49
  };
50
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;
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
52
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
53
  function verb(n) { return function (v) { return step([n, v]); }; }
54
54
  function step(op) {
55
55
  if (f) throw new TypeError("Generator is already executing.");
@@ -78,7 +78,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
78
78
  return (mod && mod.__esModule) ? mod : { "default": mod };
79
79
  };
80
80
  Object.defineProperty(exports, "__esModule", { value: true });
81
- exports.RequiredError = exports.BaseAPI = exports.resetRetry = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
81
+ exports.RequiredError = exports.BaseAPI = exports.Environment = exports.COLLECTION_FORMATS = exports.BASE_PATH = void 0;
82
+ exports.resetRetry = resetRetry;
82
83
  var configuration_1 = require("./configuration");
83
84
  var common_1 = require("./common");
84
85
  // Some imports not used depending on template conditions
@@ -102,13 +103,12 @@ var Environment;
102
103
  Environment["Staging"] = "https://apiv2-staging.emil.de";
103
104
  Environment["Development"] = "https://apiv2-dev.emil.de";
104
105
  Environment["ProductionZurich"] = "https://eu-central-2.apiv2.emil.de";
105
- })(Environment = exports.Environment || (exports.Environment = {}));
106
+ })(Environment || (exports.Environment = Environment = {}));
106
107
  var _retry_count = 0;
107
108
  var _retry = null;
108
109
  function resetRetry() {
109
110
  _retry_count = 0;
110
111
  }
111
- exports.resetRetry = resetRetry;
112
112
  var NETWORK_ERROR_MESSAGE = "Network Error";
113
113
  var TOKEN_DATA = 'APP_TOKEN';
114
114
  /**
package/dist/common.d.ts CHANGED
@@ -62,7 +62,7 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
66
  /**
67
67
  * EMIL BillingService
68
68
  * The EMIL BillingService API description
package/dist/common.js CHANGED
@@ -33,8 +33,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
33
33
  });
34
34
  };
35
35
  var __generator = (this && this.__generator) || function (thisArg, body) {
36
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
37
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
36
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
37
+ return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
38
38
  function verb(n) { return function (v) { return step([n, v]); }; }
39
39
  function step(op) {
40
40
  if (f) throw new TypeError("Generator is already executing.");
@@ -28,4 +28,16 @@ export interface ListInvoicesResponseClass {
28
28
  * @memberof ListInvoicesResponseClass
29
29
  */
30
30
  'nextPageToken': string;
31
+ /**
32
+ * Items per page.
33
+ * @type {number}
34
+ * @memberof ListInvoicesResponseClass
35
+ */
36
+ 'itemsPerPage': number;
37
+ /**
38
+ * Total amount of items.
39
+ * @type {number}
40
+ * @memberof ListInvoicesResponseClass
41
+ */
42
+ 'totalItems': number;
31
43
  }
@@ -33,5 +33,17 @@ export interface ListInvoicesResponseClass {
33
33
  * @memberof ListInvoicesResponseClass
34
34
  */
35
35
  'nextPageToken': string;
36
+ /**
37
+ * Items per page.
38
+ * @type {number}
39
+ * @memberof ListInvoicesResponseClass
40
+ */
41
+ 'itemsPerPage': number;
42
+ /**
43
+ * Total amount of items.
44
+ * @type {number}
45
+ * @memberof ListInvoicesResponseClass
46
+ */
47
+ 'totalItems': number;
36
48
  }
37
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk",
3
- "version": "1.45.1-beta.2",
3
+ "version": "1.45.1-beta.21",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -18,9 +18,9 @@
18
18
  "prepare": "npm run build"
19
19
  },
20
20
  "dependencies": {
21
- "axios": "^0.27.2"
21
+ "axios": "^1.9.0"
22
22
  },
23
23
  "devDependencies": {
24
- "typescript": "^4.0"
24
+ "typescript": "^5.8"
25
25
  }
26
26
  }
package/tsconfig.json CHANGED
@@ -5,6 +5,7 @@
5
5
  "module": "CommonJS",
6
6
  "noImplicitAny": true,
7
7
  "esModuleInterop": true,
8
+ "noImplicitOverride": true,
8
9
  "outDir": "dist",
9
10
  "rootDir": ".",
10
11
  "lib": [