@emilgroup/billing-sdk-node 1.63.1-beta.33 → 1.63.1-beta.34

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 (35) hide show
  1. package/README.md +2 -2
  2. package/api/correction-invoices-api.ts +6 -12
  3. package/api/draft-invoice-api.ts +6 -12
  4. package/api/estimated-invoices-api.ts +8 -16
  5. package/api/initial-invoices-api.ts +4 -8
  6. package/api/invoices-api.ts +10 -20
  7. package/api/policy-billing-api.ts +6 -12
  8. package/api/recurring-invoices-api.ts +4 -8
  9. package/api/termination-invoices-api.ts +4 -8
  10. package/api/withdraw-invoices-api.ts +4 -8
  11. package/common.ts +2 -3
  12. package/dist/api/correction-invoices-api.d.ts +2 -2
  13. package/dist/api/correction-invoices-api.js +10 -17
  14. package/dist/api/draft-invoice-api.d.ts +3 -3
  15. package/dist/api/draft-invoice-api.js +12 -21
  16. package/dist/api/estimated-invoices-api.d.ts +4 -4
  17. package/dist/api/estimated-invoices-api.js +16 -28
  18. package/dist/api/health-api.d.ts +1 -1
  19. package/dist/api/initial-invoices-api.d.ts +1 -1
  20. package/dist/api/initial-invoices-api.js +6 -10
  21. package/dist/api/invoices-api.d.ts +4 -4
  22. package/dist/api/invoices-api.js +15 -22
  23. package/dist/api/policy-billing-api.d.ts +3 -3
  24. package/dist/api/policy-billing-api.js +11 -18
  25. package/dist/api/recurring-invoices-api.d.ts +1 -1
  26. package/dist/api/recurring-invoices-api.js +6 -10
  27. package/dist/api/termination-invoices-api.d.ts +1 -1
  28. package/dist/api/termination-invoices-api.js +6 -10
  29. package/dist/api/withdraw-invoices-api.d.ts +1 -1
  30. package/dist/api/withdraw-invoices-api.js +6 -10
  31. package/dist/common.d.ts +1 -1
  32. package/dist/common.js +0 -1
  33. package/dist/models/invoice-item-class.d.ts +0 -6
  34. package/models/invoice-item-class.ts +0 -6
  35. package/package.json +2 -2
@@ -107,7 +107,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
107
107
  createCustomEstimatedInvoice: function (createCustomEstimatedInvoiceRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,16 +124,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- ];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
128
  case 1:
131
129
  // authentication bearer required
132
130
  // http bearer authentication required
133
131
  _a.sent();
134
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
134
  }
138
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,7 +156,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
159
156
  createEstimatedInvoice: function (createEstimatedInvoiceRequestDto, authorization, options) {
160
157
  if (options === void 0) { options = {}; }
161
158
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
163
160
  return __generator(this, function (_a) {
164
161
  switch (_a.label) {
165
162
  case 0:
@@ -176,16 +173,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
176
173
  localVarQueryParameter = {};
177
174
  // authentication bearer required
178
175
  // http bearer authentication required
179
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
180
- // Only Authorization falls back to the configured token; an empty value is never sent.
181
- ];
176
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
182
177
  case 1:
183
178
  // authentication bearer required
184
179
  // http bearer authentication required
185
180
  _a.sent();
186
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
- if (authorizationValue) {
188
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
181
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
189
183
  }
190
184
  localVarHeaderParameter['Content-Type'] = 'application/json';
191
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -211,7 +205,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
211
205
  createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
212
206
  if (options === void 0) { options = {}; }
213
207
  return __awaiter(_this, void 0, void 0, function () {
214
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
208
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
215
209
  return __generator(this, function (_a) {
216
210
  switch (_a.label) {
217
211
  case 0:
@@ -228,16 +222,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
228
222
  localVarQueryParameter = {};
229
223
  // authentication bearer required
230
224
  // http bearer authentication required
231
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
232
- // Only Authorization falls back to the configured token; an empty value is never sent.
233
- ];
225
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
234
226
  case 1:
235
227
  // authentication bearer required
236
228
  // http bearer authentication required
237
229
  _a.sent();
238
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
- if (authorizationValue) {
240
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
230
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
241
232
  }
242
233
  localVarHeaderParameter['Content-Type'] = 'application/json';
243
234
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -264,7 +255,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
264
255
  createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
265
256
  if (options === void 0) { options = {}; }
266
257
  return __awaiter(_this, void 0, void 0, function () {
267
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
258
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
259
  return __generator(this, function (_a) {
269
260
  switch (_a.label) {
270
261
  case 0:
@@ -284,16 +275,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
284
275
  localVarQueryParameter = {};
285
276
  // authentication bearer required
286
277
  // http bearer authentication required
287
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
288
- // Only Authorization falls back to the configured token; an empty value is never sent.
289
- ];
278
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
290
279
  case 1:
291
280
  // authentication bearer required
292
281
  // http bearer authentication required
293
282
  _a.sent();
294
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
295
- if (authorizationValue) {
296
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
283
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
297
285
  }
298
286
  localVarHeaderParameter['Content-Type'] = 'application/json';
299
287
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -62,5 +62,5 @@ export declare class HealthApi extends BaseAPI {
62
62
  * @throws {RequiredError}
63
63
  * @memberof HealthApi
64
64
  */
65
- check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, any>>;
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}>>;
66
66
  }
@@ -102,5 +102,5 @@ export declare class InitialInvoicesApi extends BaseAPI {
102
102
  * @throws {RequiredError}
103
103
  * @memberof InitialInvoicesApi
104
104
  */
105
- createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, any>>;
105
+ createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
106
  }
@@ -108,7 +108,7 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
108
108
  createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,20 +125,16 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
- // Only Authorization falls back to the configured token; an empty value is never sent.
130
- ];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
129
  case 1:
132
130
  // authentication bearer required
133
131
  // http bearer authentication required
134
132
  _a.sent();
135
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
- if (authorizationValue) {
137
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
135
  }
139
- idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
- if (idempotencyKeyValue) {
141
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
142
138
  }
143
139
  localVarHeaderParameter['Content-Type'] = 'application/json';
144
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -363,7 +363,7 @@ export declare class InvoicesApi extends BaseAPI {
363
363
  * @throws {RequiredError}
364
364
  * @memberof InvoicesApi
365
365
  */
366
- createInvoice(requestParameters: InvoicesApiCreateInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, any>>;
366
+ createInvoice(requestParameters: InvoicesApiCreateInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
367
367
  /**
368
368
  * Gets an invoice. **Required Permissions** \"billing-management.invoices.view\"
369
369
  * @summary Retrieve the invoice
@@ -372,7 +372,7 @@ export declare class InvoicesApi extends BaseAPI {
372
372
  * @throws {RequiredError}
373
373
  * @memberof InvoicesApi
374
374
  */
375
- getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceResponseClass, any, {}, any>>;
375
+ getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceResponseClass, any, {}>>;
376
376
  /**
377
377
  * 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. **Required Permissions** \"billing-management.invoices.view\"
378
378
  * @summary List invoices
@@ -381,7 +381,7 @@ export declare class InvoicesApi extends BaseAPI {
381
381
  * @throws {RequiredError}
382
382
  * @memberof InvoicesApi
383
383
  */
384
- listInvoices(requestParameters?: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any, {}, any>>;
384
+ listInvoices(requestParameters?: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any, {}>>;
385
385
  /**
386
386
  * 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. **Required Permissions** \"billing-management.invoices.view\"
387
387
  * @summary List policies billing dates
@@ -391,5 +391,5 @@ export declare class InvoicesApi extends BaseAPI {
391
391
  * @throws {RequiredError}
392
392
  * @memberof InvoicesApi
393
393
  */
394
- listPoliciesBillingDates(requestParameters?: InvoicesApiListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesBillingsResponseClass, any, {}, any>>;
394
+ listPoliciesBillingDates(requestParameters?: InvoicesApiListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesBillingsResponseClass, any, {}>>;
395
395
  }
@@ -108,7 +108,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
108
108
  createInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,20 +125,16 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
- // Only Authorization falls back to the configured token; an empty value is never sent.
130
- ];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
129
  case 1:
132
130
  // authentication bearer required
133
131
  // http bearer authentication required
134
132
  _a.sent();
135
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
- if (authorizationValue) {
137
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
135
  }
139
- idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
- if (idempotencyKeyValue) {
141
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
142
138
  }
143
139
  localVarHeaderParameter['Content-Type'] = 'application/json';
144
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -165,7 +161,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
165
161
  getInvoice: function (code, expand, authorization, options) {
166
162
  if (options === void 0) { options = {}; }
167
163
  return __awaiter(_this, void 0, void 0, function () {
168
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
164
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
169
165
  return __generator(this, function (_a) {
170
166
  switch (_a.label) {
171
167
  case 0:
@@ -193,9 +189,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
193
189
  if (expand !== undefined) {
194
190
  localVarQueryParameter['expand'] = expand;
195
191
  }
196
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
197
- if (authorizationValue) {
198
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
192
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
193
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
199
194
  }
200
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
201
196
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -225,7 +220,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
225
220
  listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
226
221
  if (options === void 0) { options = {}; }
227
222
  return __awaiter(_this, void 0, void 0, function () {
228
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
223
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
229
224
  return __generator(this, function (_a) {
230
225
  switch (_a.label) {
231
226
  case 0:
@@ -266,9 +261,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
266
261
  if (filters !== undefined) {
267
262
  localVarQueryParameter['filters'] = filters;
268
263
  }
269
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
270
- if (authorizationValue) {
271
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
264
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
265
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
272
266
  }
273
267
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
274
268
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -299,7 +293,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
299
293
  listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
300
294
  if (options === void 0) { options = {}; }
301
295
  return __awaiter(_this, void 0, void 0, function () {
302
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
296
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
303
297
  return __generator(this, function (_a) {
304
298
  switch (_a.label) {
305
299
  case 0:
@@ -340,9 +334,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
340
334
  if (filters !== undefined) {
341
335
  localVarQueryParameter['filters'] = filters;
342
336
  }
343
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
344
- if (authorizationValue) {
345
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
337
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
338
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
346
339
  }
347
340
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
348
341
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -250,7 +250,7 @@ export declare class PolicyBillingApi extends BaseAPI {
250
250
  * @throws {RequiredError}
251
251
  * @memberof PolicyBillingApi
252
252
  */
253
- createPolicyBilling(requestParameters: PolicyBillingApiCreatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyBillingResponseClass, any, {}, any>>;
253
+ createPolicyBilling(requestParameters: PolicyBillingApiCreatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyBillingResponseClass, any, {}>>;
254
254
  /**
255
255
  * Returns a list of policies billings you have previously created. The policies billings are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"billing-management.invoices.view\"
256
256
  * @summary List policies billings
@@ -259,7 +259,7 @@ export declare class PolicyBillingApi extends BaseAPI {
259
259
  * @throws {RequiredError}
260
260
  * @memberof PolicyBillingApi
261
261
  */
262
- listPoliciesBillings(requestParameters?: PolicyBillingApiListPoliciesBillingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
262
+ listPoliciesBillings(requestParameters?: PolicyBillingApiListPoliciesBillingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
263
263
  /**
264
264
  * Updates the specified request message by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"billing-management.invoices.update\"
265
265
  * @summary Update the request message
@@ -268,5 +268,5 @@ export declare class PolicyBillingApi extends BaseAPI {
268
268
  * @throws {RequiredError}
269
269
  * @memberof PolicyBillingApi
270
270
  */
271
- updatePolicyBilling(requestParameters: PolicyBillingApiUpdatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePolicyBillingResponseClass, any, {}, any>>;
271
+ updatePolicyBilling(requestParameters: PolicyBillingApiUpdatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePolicyBillingResponseClass, any, {}>>;
272
272
  }
@@ -107,7 +107,7 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
107
107
  createPolicyBilling: function (createPolicyBillingRequestDto, authorization, options) {
108
108
  if (options === void 0) { options = {}; }
109
109
  return __awaiter(_this, void 0, void 0, function () {
110
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,16 +124,13 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
124
124
  localVarQueryParameter = {};
125
125
  // authentication bearer required
126
126
  // http bearer authentication required
127
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
128
- // Only Authorization falls back to the configured token; an empty value is never sent.
129
- ];
127
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
130
128
  case 1:
131
129
  // authentication bearer required
132
130
  // http bearer authentication required
133
131
  _a.sent();
134
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
- if (authorizationValue) {
136
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
132
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
137
134
  }
138
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
139
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -165,7 +162,7 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
165
162
  listPoliciesBillings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
166
163
  if (options === void 0) { options = {}; }
167
164
  return __awaiter(_this, void 0, void 0, function () {
168
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
165
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
169
166
  return __generator(this, function (_a) {
170
167
  switch (_a.label) {
171
168
  case 0:
@@ -206,9 +203,8 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
206
203
  if (filters !== undefined) {
207
204
  localVarQueryParameter['filters'] = filters;
208
205
  }
209
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
210
- if (authorizationValue) {
211
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
206
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
207
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
212
208
  }
213
209
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
214
210
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -233,7 +229,7 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
233
229
  updatePolicyBilling: function (code, updatePolicyBillingRequestDto, authorization, options) {
234
230
  if (options === void 0) { options = {}; }
235
231
  return __awaiter(_this, void 0, void 0, function () {
236
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
232
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
237
233
  return __generator(this, function (_a) {
238
234
  switch (_a.label) {
239
235
  case 0:
@@ -253,16 +249,13 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
253
249
  localVarQueryParameter = {};
254
250
  // authentication bearer required
255
251
  // http bearer authentication required
256
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
257
- // Only Authorization falls back to the configured token; an empty value is never sent.
258
- ];
252
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
259
253
  case 1:
260
254
  // authentication bearer required
261
255
  // http bearer authentication required
262
256
  _a.sent();
263
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
264
- if (authorizationValue) {
265
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
257
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
258
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
266
259
  }
267
260
  localVarHeaderParameter['Content-Type'] = 'application/json';
268
261
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -102,5 +102,5 @@ export declare class RecurringInvoicesApi extends BaseAPI {
102
102
  * @throws {RequiredError}
103
103
  * @memberof RecurringInvoicesApi
104
104
  */
105
- createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, any>>;
105
+ createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
106
  }
@@ -108,7 +108,7 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
108
108
  createRecurringInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,20 +125,16 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
- // Only Authorization falls back to the configured token; an empty value is never sent.
130
- ];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
129
  case 1:
132
130
  // authentication bearer required
133
131
  // http bearer authentication required
134
132
  _a.sent();
135
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
- if (authorizationValue) {
137
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
135
  }
139
- idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
- if (idempotencyKeyValue) {
141
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
142
138
  }
143
139
  localVarHeaderParameter['Content-Type'] = 'application/json';
144
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -102,5 +102,5 @@ export declare class TerminationInvoicesApi extends BaseAPI {
102
102
  * @throws {RequiredError}
103
103
  * @memberof TerminationInvoicesApi
104
104
  */
105
- createTerminationInvoice(requestParameters: TerminationInvoicesApiCreateTerminationInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, any>>;
105
+ createTerminationInvoice(requestParameters: TerminationInvoicesApiCreateTerminationInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
106
  }
@@ -108,7 +108,7 @@ var TerminationInvoicesApiAxiosParamCreator = function (configuration) {
108
108
  createTerminationInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,20 +125,16 @@ var TerminationInvoicesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
- // Only Authorization falls back to the configured token; an empty value is never sent.
130
- ];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
129
  case 1:
132
130
  // authentication bearer required
133
131
  // http bearer authentication required
134
132
  _a.sent();
135
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
- if (authorizationValue) {
137
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
135
  }
139
- idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
- if (idempotencyKeyValue) {
141
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
142
138
  }
143
139
  localVarHeaderParameter['Content-Type'] = 'application/json';
144
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -102,5 +102,5 @@ export declare class WithdrawInvoicesApi extends BaseAPI {
102
102
  * @throws {RequiredError}
103
103
  * @memberof WithdrawInvoicesApi
104
104
  */
105
- createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, any>>;
105
+ createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
106
106
  }
@@ -108,7 +108,7 @@ var WithdrawInvoicesApiAxiosParamCreator = function (configuration) {
108
108
  createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
109
109
  if (options === void 0) { options = {}; }
110
110
  return __awaiter(_this, void 0, void 0, function () {
111
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,20 +125,16 @@ var WithdrawInvoicesApiAxiosParamCreator = function (configuration) {
125
125
  localVarQueryParameter = {};
126
126
  // authentication bearer required
127
127
  // http bearer authentication required
128
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
129
- // Only Authorization falls back to the configured token; an empty value is never sent.
130
- ];
128
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
131
129
  case 1:
132
130
  // authentication bearer required
133
131
  // http bearer authentication required
134
132
  _a.sent();
135
- authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
- if (authorizationValue) {
137
- localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
135
  }
139
- idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
- if (idempotencyKeyValue) {
141
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
136
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
142
138
  }
143
139
  localVarHeaderParameter['Content-Type'] = 'application/json';
144
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
package/dist/common.d.ts CHANGED
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
63
63
  *
64
64
  * @export
65
65
  */
66
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
66
+ 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>;
67
67
  /**
68
68
  * EMIL BillingService
69
69
  * The EMIL BillingService API description
package/dist/common.js CHANGED
@@ -234,7 +234,6 @@ exports.toPathString = toPathString;
234
234
  * @export
235
235
  */
236
236
  var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
237
- // Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
238
237
  return function (axios, basePath) {
239
238
  if (axios === void 0) { axios = globalAxios; }
240
239
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -33,12 +33,6 @@ export interface InvoiceItemClass {
33
33
  * @memberof InvoiceItemClass
34
34
  */
35
35
  'premiumFormulaCode'?: string;
36
- /**
37
- * Unique identifier of the original invoice that this object belongs to.
38
- * @type {string}
39
- * @memberof InvoiceItemClass
40
- */
41
- 'reversedInvoiceCode'?: string;
42
36
  /**
43
37
  * Product name.
44
38
  * @type {string}
@@ -38,12 +38,6 @@ export interface InvoiceItemClass {
38
38
  * @memberof InvoiceItemClass
39
39
  */
40
40
  'premiumFormulaCode'?: string;
41
- /**
42
- * Unique identifier of the original invoice that this object belongs to.
43
- * @type {string}
44
- * @memberof InvoiceItemClass
45
- */
46
- 'reversedInvoiceCode'?: string;
47
41
  /**
48
42
  * Product name.
49
43
  * @type {string}