@emilgroup/billing-sdk-node 1.63.1-beta.28 → 1.63.1-beta.31

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 (48) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +12 -6
  4. package/api/draft-invoice-api.ts +12 -6
  5. package/api/estimated-invoices-api.ts +16 -8
  6. package/api/initial-invoices-api.ts +8 -4
  7. package/api/invoices-api.ts +20 -10
  8. package/api/policy-billing-api.ts +12 -6
  9. package/api/recurring-invoices-api.ts +8 -4
  10. package/api/termination-invoices-api.ts +8 -4
  11. package/api/withdraw-invoices-api.ts +187 -0
  12. package/api.ts +2 -0
  13. package/common.ts +3 -2
  14. package/dist/api/correction-invoices-api.d.ts +2 -2
  15. package/dist/api/correction-invoices-api.js +17 -10
  16. package/dist/api/draft-invoice-api.d.ts +3 -3
  17. package/dist/api/draft-invoice-api.js +21 -12
  18. package/dist/api/estimated-invoices-api.d.ts +4 -4
  19. package/dist/api/estimated-invoices-api.js +28 -16
  20. package/dist/api/health-api.d.ts +1 -1
  21. package/dist/api/initial-invoices-api.d.ts +1 -1
  22. package/dist/api/initial-invoices-api.js +10 -6
  23. package/dist/api/invoices-api.d.ts +4 -4
  24. package/dist/api/invoices-api.js +22 -15
  25. package/dist/api/policy-billing-api.d.ts +3 -3
  26. package/dist/api/policy-billing-api.js +18 -11
  27. package/dist/api/recurring-invoices-api.d.ts +1 -1
  28. package/dist/api/recurring-invoices-api.js +10 -6
  29. package/dist/api/termination-invoices-api.d.ts +1 -1
  30. package/dist/api/termination-invoices-api.js +10 -6
  31. package/dist/api/withdraw-invoices-api.d.ts +106 -0
  32. package/dist/api/withdraw-invoices-api.js +238 -0
  33. package/dist/api.d.ts +1 -0
  34. package/dist/api.js +1 -0
  35. package/dist/common.d.ts +1 -1
  36. package/dist/common.js +1 -0
  37. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +50 -0
  38. package/dist/models/create-withdraw-invoice-request-dto-rest.js +15 -0
  39. package/dist/models/create-withdraw-invoice-request-dto.d.ts +50 -0
  40. package/dist/models/create-withdraw-invoice-request-dto.js +15 -0
  41. package/dist/models/index.d.ts +2 -0
  42. package/dist/models/index.js +2 -0
  43. package/dist/models/invoice-item-class.d.ts +6 -0
  44. package/models/create-withdraw-invoice-request-dto-rest.ts +54 -0
  45. package/models/create-withdraw-invoice-request-dto.ts +54 -0
  46. package/models/index.ts +2 -0
  47. package/models/invoice-item-class.ts +6 -0
  48. package/package.json +2 -2
@@ -108,7 +108,7 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
108
108
  createCorrectionInvoice: 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, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,16 +125,20 @@ var CorrectionInvoicesApiAxiosParamCreator = 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)];
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
+ ];
129
131
  case 1:
130
132
  // authentication bearer required
131
133
  // http bearer authentication required
132
134
  _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
138
  }
136
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
139
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
+ if (idempotencyKeyValue) {
141
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
138
142
  }
139
143
  localVarHeaderParameter['Content-Type'] = 'application/json';
140
144
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -159,7 +163,7 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
159
163
  revertInvoice: function (revertInvoiceRequestDto, authorization, options) {
160
164
  if (options === void 0) { options = {}; }
161
165
  return __awaiter(_this, void 0, void 0, function () {
162
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
166
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
163
167
  return __generator(this, function (_a) {
164
168
  switch (_a.label) {
165
169
  case 0:
@@ -176,13 +180,16 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
176
180
  localVarQueryParameter = {};
177
181
  // authentication bearer required
178
182
  // http bearer authentication required
179
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
183
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
184
+ // Only Authorization falls back to the configured token; an empty value is never sent.
185
+ ];
180
186
  case 1:
181
187
  // authentication bearer required
182
188
  // http bearer authentication required
183
189
  _a.sent();
184
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
185
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
190
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
191
+ if (authorizationValue) {
192
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
186
193
  }
187
194
  localVarHeaderParameter['Content-Type'] = 'application/json';
188
195
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -165,7 +165,7 @@ export declare class DraftInvoiceApi extends BaseAPI {
165
165
  * @throws {RequiredError}
166
166
  * @memberof DraftInvoiceApi
167
167
  */
168
- createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
168
+ createDraftInvoice(requestParameters: DraftInvoiceApiCreateDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
169
169
  /**
170
170
  * undefined **Required Permissions** \"billing-management.invoices.delete\"
171
171
  * @param {DraftInvoiceApiDeleteAllDraftInvoicesRequest} requestParameters Request parameters.
@@ -173,7 +173,7 @@ export declare class DraftInvoiceApi extends BaseAPI {
173
173
  * @throws {RequiredError}
174
174
  * @memberof DraftInvoiceApi
175
175
  */
176
- deleteAllDraftInvoices(requestParameters?: DraftInvoiceApiDeleteAllDraftInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
176
+ deleteAllDraftInvoices(requestParameters?: DraftInvoiceApiDeleteAllDraftInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
177
177
  /**
178
178
  * undefined **Required Permissions** \"billing-management.invoices.delete\"
179
179
  * @param {DraftInvoiceApiDeleteDraftInvoiceRequest} requestParameters Request parameters.
@@ -181,5 +181,5 @@ export declare class DraftInvoiceApi extends BaseAPI {
181
181
  * @throws {RequiredError}
182
182
  * @memberof DraftInvoiceApi
183
183
  */
184
- deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
184
+ deleteDraftInvoice(requestParameters: DraftInvoiceApiDeleteDraftInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, any>>;
185
185
  }
@@ -106,7 +106,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
106
106
  createDraftInvoice: function (createDraftInvoiceRequestDto, authorization, options) {
107
107
  if (options === void 0) { options = {}; }
108
108
  return __awaiter(_this, void 0, void 0, function () {
109
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
109
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
110
110
  return __generator(this, function (_a) {
111
111
  switch (_a.label) {
112
112
  case 0:
@@ -123,13 +123,16 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
123
123
  localVarQueryParameter = {};
124
124
  // authentication bearer required
125
125
  // http bearer authentication required
126
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
126
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
127
+ // Only Authorization falls back to the configured token; an empty value is never sent.
128
+ ];
127
129
  case 1:
128
130
  // authentication bearer required
129
131
  // http bearer authentication required
130
132
  _a.sent();
131
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
132
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
133
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
134
+ if (authorizationValue) {
135
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
133
136
  }
134
137
  localVarHeaderParameter['Content-Type'] = 'application/json';
135
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -153,7 +156,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
153
156
  deleteAllDraftInvoices: function (authorization, options) {
154
157
  if (options === void 0) { options = {}; }
155
158
  return __awaiter(_this, void 0, void 0, function () {
156
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
159
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
157
160
  return __generator(this, function (_a) {
158
161
  switch (_a.label) {
159
162
  case 0:
@@ -168,13 +171,16 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
168
171
  localVarQueryParameter = {};
169
172
  // authentication bearer required
170
173
  // http bearer authentication required
171
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
174
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
175
+ // Only Authorization falls back to the configured token; an empty value is never sent.
176
+ ];
172
177
  case 1:
173
178
  // authentication bearer required
174
179
  // http bearer authentication required
175
180
  _a.sent();
176
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
177
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
181
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
182
+ if (authorizationValue) {
183
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
178
184
  }
179
185
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
180
186
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -197,7 +203,7 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
197
203
  deleteDraftInvoice: function (body, authorization, options) {
198
204
  if (options === void 0) { options = {}; }
199
205
  return __awaiter(_this, void 0, void 0, function () {
200
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
201
207
  return __generator(this, function (_a) {
202
208
  switch (_a.label) {
203
209
  case 0:
@@ -214,13 +220,16 @@ var DraftInvoiceApiAxiosParamCreator = function (configuration) {
214
220
  localVarQueryParameter = {};
215
221
  // authentication bearer required
216
222
  // http bearer authentication required
217
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
223
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
224
+ // Only Authorization falls back to the configured token; an empty value is never sent.
225
+ ];
218
226
  case 1:
219
227
  // authentication bearer required
220
228
  // http bearer authentication required
221
229
  _a.sent();
222
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
223
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
230
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
231
+ if (authorizationValue) {
232
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
224
233
  }
225
234
  localVarHeaderParameter['Content-Type'] = 'application/json';
226
235
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -246,7 +246,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
246
246
  * @throws {RequiredError}
247
247
  * @memberof EstimatedInvoicesApi
248
248
  */
249
- createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any, {}>>;
249
+ createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any, {}, any>>;
250
250
  /**
251
251
  * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
252
252
  * @summary Create the estimated invoice
@@ -255,7 +255,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
255
255
  * @throws {RequiredError}
256
256
  * @memberof EstimatedInvoicesApi
257
257
  */
258
- createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any, {}>>;
258
+ createEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceResponseClass, any, {}, any>>;
259
259
  /**
260
260
  * This creates an estimated invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
261
261
  * @summary Create the estimated invoice
@@ -264,7 +264,7 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
264
264
  * @throws {RequiredError}
265
265
  * @memberof EstimatedInvoicesApi
266
266
  */
267
- createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any, {}>>;
267
+ createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any, {}, any>>;
268
268
  /**
269
269
  * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
270
270
  * @summary Create the estimated invoice
@@ -273,5 +273,5 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
273
273
  * @throws {RequiredError}
274
274
  * @memberof EstimatedInvoicesApi
275
275
  */
276
- createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductEstimatedInvoiceResponseClass, any, {}>>;
276
+ createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductEstimatedInvoiceResponseClass, any, {}, any>>;
277
277
  }
@@ -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, headersFromBaseOptions;
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
111
111
  return __generator(this, function (_a) {
112
112
  switch (_a.label) {
113
113
  case 0:
@@ -124,13 +124,16 @@ 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)];
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
+ ];
128
130
  case 1:
129
131
  // authentication bearer required
130
132
  // http bearer authentication required
131
133
  _a.sent();
132
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
134
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
135
+ if (authorizationValue) {
136
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
134
137
  }
135
138
  localVarHeaderParameter['Content-Type'] = 'application/json';
136
139
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -156,7 +159,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
156
159
  createEstimatedInvoice: function (createEstimatedInvoiceRequestDto, authorization, options) {
157
160
  if (options === void 0) { options = {}; }
158
161
  return __awaiter(_this, void 0, void 0, function () {
159
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
162
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
160
163
  return __generator(this, function (_a) {
161
164
  switch (_a.label) {
162
165
  case 0:
@@ -173,13 +176,16 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
173
176
  localVarQueryParameter = {};
174
177
  // authentication bearer required
175
178
  // http bearer authentication required
176
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
177
182
  case 1:
178
183
  // authentication bearer required
179
184
  // http bearer authentication required
180
185
  _a.sent();
181
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
182
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
186
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
187
+ if (authorizationValue) {
188
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
183
189
  }
184
190
  localVarHeaderParameter['Content-Type'] = 'application/json';
185
191
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -205,7 +211,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
205
211
  createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
206
212
  if (options === void 0) { options = {}; }
207
213
  return __awaiter(_this, void 0, void 0, function () {
208
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
214
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
209
215
  return __generator(this, function (_a) {
210
216
  switch (_a.label) {
211
217
  case 0:
@@ -222,13 +228,16 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
222
228
  localVarQueryParameter = {};
223
229
  // authentication bearer required
224
230
  // http bearer authentication required
225
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
226
234
  case 1:
227
235
  // authentication bearer required
228
236
  // http bearer authentication required
229
237
  _a.sent();
230
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
231
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
238
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
239
+ if (authorizationValue) {
240
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
232
241
  }
233
242
  localVarHeaderParameter['Content-Type'] = 'application/json';
234
243
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -255,7 +264,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
255
264
  createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
256
265
  if (options === void 0) { options = {}; }
257
266
  return __awaiter(_this, void 0, void 0, function () {
258
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
267
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
259
268
  return __generator(this, function (_a) {
260
269
  switch (_a.label) {
261
270
  case 0:
@@ -275,13 +284,16 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
275
284
  localVarQueryParameter = {};
276
285
  // authentication bearer required
277
286
  // http bearer authentication required
278
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
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
+ ];
279
290
  case 1:
280
291
  // authentication bearer required
281
292
  // http bearer authentication required
282
293
  _a.sent();
283
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
294
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
295
+ if (authorizationValue) {
296
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
285
297
  }
286
298
  localVarHeaderParameter['Content-Type'] = 'application/json';
287
299
  (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, {}>>;
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any, {}, 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, {}>>;
105
+ createInitialInvoice(requestParameters: InitialInvoicesApiCreateInitialInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, 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, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,16 +125,20 @@ 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)];
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
+ ];
129
131
  case 1:
130
132
  // authentication bearer required
131
133
  // http bearer authentication required
132
134
  _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
138
  }
136
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
139
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
+ if (idempotencyKeyValue) {
141
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
138
142
  }
139
143
  localVarHeaderParameter['Content-Type'] = 'application/json';
140
144
  (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, {}>>;
366
+ createInvoice(requestParameters: InvoicesApiCreateInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, 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, {}>>;
375
+ getInvoice(requestParameters: InvoicesApiGetInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetInvoiceResponseClass, any, {}, 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, {}>>;
384
+ listInvoices(requestParameters?: InvoicesApiListInvoicesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListInvoicesResponseClass, any, {}, 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, {}>>;
394
+ listPoliciesBillingDates(requestParameters?: InvoicesApiListPoliciesBillingDatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesBillingsResponseClass, any, {}, 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, headersFromBaseOptions;
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, idempotencyKeyValue, headersFromBaseOptions;
112
112
  return __generator(this, function (_a) {
113
113
  switch (_a.label) {
114
114
  case 0:
@@ -125,16 +125,20 @@ 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)];
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
+ ];
129
131
  case 1:
130
132
  // authentication bearer required
131
133
  // http bearer authentication required
132
134
  _a.sent();
133
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
134
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
135
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
136
+ if (authorizationValue) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
135
138
  }
136
- if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
- localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
139
+ idempotencyKeyValue = 'Idempotency-Key'.toLowerCase() === 'authorization' ? (idempotencyKey || baseAccessToken) : idempotencyKey;
140
+ if (idempotencyKeyValue) {
141
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
138
142
  }
139
143
  localVarHeaderParameter['Content-Type'] = 'application/json';
140
144
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -161,7 +165,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
161
165
  getInvoice: function (code, expand, authorization, options) {
162
166
  if (options === void 0) { options = {}; }
163
167
  return __awaiter(_this, void 0, void 0, function () {
164
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
168
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
165
169
  return __generator(this, function (_a) {
166
170
  switch (_a.label) {
167
171
  case 0:
@@ -189,8 +193,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
189
193
  if (expand !== undefined) {
190
194
  localVarQueryParameter['expand'] = expand;
191
195
  }
192
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
193
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
196
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
197
+ if (authorizationValue) {
198
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
194
199
  }
195
200
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
196
201
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -220,7 +225,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
220
225
  listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
221
226
  if (options === void 0) { options = {}; }
222
227
  return __awaiter(_this, void 0, void 0, function () {
223
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
228
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
224
229
  return __generator(this, function (_a) {
225
230
  switch (_a.label) {
226
231
  case 0:
@@ -261,8 +266,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
261
266
  if (filters !== undefined) {
262
267
  localVarQueryParameter['filters'] = filters;
263
268
  }
264
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
265
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
269
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
270
+ if (authorizationValue) {
271
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
266
272
  }
267
273
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
268
274
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -293,7 +299,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
293
299
  listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
294
300
  if (options === void 0) { options = {}; }
295
301
  return __awaiter(_this, void 0, void 0, function () {
296
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
302
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationValue, headersFromBaseOptions;
297
303
  return __generator(this, function (_a) {
298
304
  switch (_a.label) {
299
305
  case 0:
@@ -334,8 +340,9 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
334
340
  if (filters !== undefined) {
335
341
  localVarQueryParameter['filters'] = filters;
336
342
  }
337
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
338
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
343
+ authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
344
+ if (authorizationValue) {
345
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
339
346
  }
340
347
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
341
348
  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, {}>>;
253
+ createPolicyBilling(requestParameters: PolicyBillingApiCreatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePolicyBillingResponseClass, any, {}, 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, {}>>;
262
+ listPoliciesBillings(requestParameters?: PolicyBillingApiListPoliciesBillingsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}, 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, {}>>;
271
+ updatePolicyBilling(requestParameters: PolicyBillingApiUpdatePolicyBillingRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdatePolicyBillingResponseClass, any, {}, any>>;
272
272
  }