@emilgroup/billing-sdk 1.63.1-beta.36 → 1.63.1-beta.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +0 -3
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +6 -12
- package/api/draft-invoice-api.ts +6 -12
- package/api/estimated-invoices-api.ts +8 -16
- package/api/initial-invoices-api.ts +4 -8
- package/api/invoices-api.ts +10 -20
- package/api/policy-billing-api.ts +6 -12
- package/api/recurring-invoices-api.ts +4 -8
- package/api/termination-invoices-api.ts +4 -8
- package/api.ts +0 -2
- package/base.ts +41 -174
- package/common.ts +2 -3
- package/configuration.ts +0 -20
- package/dist/api/correction-invoices-api.d.ts +2 -2
- package/dist/api/correction-invoices-api.js +10 -17
- package/dist/api/draft-invoice-api.d.ts +3 -3
- package/dist/api/draft-invoice-api.js +12 -21
- package/dist/api/estimated-invoices-api.d.ts +4 -4
- package/dist/api/estimated-invoices-api.js +16 -28
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/initial-invoices-api.d.ts +1 -1
- package/dist/api/initial-invoices-api.js +6 -10
- package/dist/api/invoices-api.d.ts +4 -4
- package/dist/api/invoices-api.js +15 -22
- package/dist/api/policy-billing-api.d.ts +3 -3
- package/dist/api/policy-billing-api.js +11 -18
- package/dist/api/recurring-invoices-api.d.ts +1 -1
- package/dist/api/recurring-invoices-api.js +6 -10
- package/dist/api/termination-invoices-api.d.ts +1 -1
- package/dist/api/termination-invoices-api.js +6 -10
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/base.d.ts +0 -24
- package/dist/base.js +59 -178
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/dist/configuration.d.ts +0 -17
- package/dist/configuration.js +0 -2
- package/dist/models/index.d.ts +0 -2
- package/dist/models/index.js +0 -2
- package/dist/models/invoice-item-class.d.ts +0 -12
- package/models/index.ts +0 -2
- package/models/invoice-item-class.ts +0 -12
- package/package.json +2 -2
- package/api/withdraw-invoices-api.ts +0 -183
- package/dist/api/withdraw-invoices-api.d.ts +0 -106
- package/dist/api/withdraw-invoices-api.js +0 -234
- package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +0 -50
- package/dist/models/create-withdraw-invoice-request-dto-rest.js +0 -15
- package/dist/models/create-withdraw-invoice-request-dto.d.ts +0 -50
- package/dist/models/create-withdraw-invoice-request-dto.js +0 -15
- package/models/create-withdraw-invoice-request-dto-rest.ts +0 -54
- package/models/create-withdraw-invoice-request-dto.ts +0 -54
|
@@ -103,7 +103,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createCustomEstimatedInvoice: function (createCustomEstimatedInvoiceRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,16 +120,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
120
120
|
localVarQueryParameter = {};
|
|
121
121
|
// authentication bearer required
|
|
122
122
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
126
124
|
case 1:
|
|
127
125
|
// authentication bearer required
|
|
128
126
|
// http bearer authentication required
|
|
129
127
|
_a.sent();
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
130
|
}
|
|
134
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -155,7 +152,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
155
152
|
createEstimatedInvoice: function (createEstimatedInvoiceRequestDto, authorization, options) {
|
|
156
153
|
if (options === void 0) { options = {}; }
|
|
157
154
|
return __awaiter(_this, void 0, void 0, function () {
|
|
158
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
155
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
159
156
|
return __generator(this, function (_a) {
|
|
160
157
|
switch (_a.label) {
|
|
161
158
|
case 0:
|
|
@@ -172,16 +169,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
172
169
|
localVarQueryParameter = {};
|
|
173
170
|
// authentication bearer required
|
|
174
171
|
// http bearer authentication required
|
|
175
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
176
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
177
|
-
];
|
|
172
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
178
173
|
case 1:
|
|
179
174
|
// authentication bearer required
|
|
180
175
|
// http bearer authentication required
|
|
181
176
|
_a.sent();
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
178
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
185
179
|
}
|
|
186
180
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
187
181
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -207,7 +201,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
207
201
|
createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
|
|
208
202
|
if (options === void 0) { options = {}; }
|
|
209
203
|
return __awaiter(_this, void 0, void 0, function () {
|
|
210
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
204
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
211
205
|
return __generator(this, function (_a) {
|
|
212
206
|
switch (_a.label) {
|
|
213
207
|
case 0:
|
|
@@ -224,16 +218,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
224
218
|
localVarQueryParameter = {};
|
|
225
219
|
// authentication bearer required
|
|
226
220
|
// http bearer authentication required
|
|
227
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
228
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
229
|
-
];
|
|
221
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
230
222
|
case 1:
|
|
231
223
|
// authentication bearer required
|
|
232
224
|
// http bearer authentication required
|
|
233
225
|
_a.sent();
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
226
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
227
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
237
228
|
}
|
|
238
229
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
239
230
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -260,7 +251,7 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
260
251
|
createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
|
|
261
252
|
if (options === void 0) { options = {}; }
|
|
262
253
|
return __awaiter(_this, void 0, void 0, function () {
|
|
263
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
254
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
264
255
|
return __generator(this, function (_a) {
|
|
265
256
|
switch (_a.label) {
|
|
266
257
|
case 0:
|
|
@@ -280,16 +271,13 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
280
271
|
localVarQueryParameter = {};
|
|
281
272
|
// authentication bearer required
|
|
282
273
|
// http bearer authentication required
|
|
283
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
284
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
285
|
-
];
|
|
274
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
286
275
|
case 1:
|
|
287
276
|
// authentication bearer required
|
|
288
277
|
// http bearer authentication required
|
|
289
278
|
_a.sent();
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
279
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
280
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
293
281
|
}
|
|
294
282
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
295
283
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
package/dist/api/health-api.d.ts
CHANGED
|
@@ -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, {}>>;
|
|
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, {}>>;
|
|
106
106
|
}
|
|
@@ -104,7 +104,7 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
createInitialInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
108
|
return __generator(this, function (_a) {
|
|
109
109
|
switch (_a.label) {
|
|
110
110
|
case 0:
|
|
@@ -121,20 +121,16 @@ var InitialInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
localVarQueryParameter = {};
|
|
122
122
|
// authentication bearer required
|
|
123
123
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
126
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
125
|
case 1:
|
|
128
126
|
// authentication bearer required
|
|
129
127
|
// http bearer authentication required
|
|
130
128
|
_a.sent();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
131
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
132
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
138
134
|
}
|
|
139
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
136
|
(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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
395
395
|
}
|
package/dist/api/invoices-api.js
CHANGED
|
@@ -104,7 +104,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
createInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
108
|
return __generator(this, function (_a) {
|
|
109
109
|
switch (_a.label) {
|
|
110
110
|
case 0:
|
|
@@ -121,20 +121,16 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
localVarQueryParameter = {};
|
|
122
122
|
// authentication bearer required
|
|
123
123
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
126
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
125
|
case 1:
|
|
128
126
|
// authentication bearer required
|
|
129
127
|
// http bearer authentication required
|
|
130
128
|
_a.sent();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
131
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
132
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
138
134
|
}
|
|
139
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -161,7 +157,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
161
157
|
getInvoice: function (code, expand, authorization, options) {
|
|
162
158
|
if (options === void 0) { options = {}; }
|
|
163
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
160
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
161
|
return __generator(this, function (_a) {
|
|
166
162
|
switch (_a.label) {
|
|
167
163
|
case 0:
|
|
@@ -189,9 +185,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
189
185
|
if (expand !== undefined) {
|
|
190
186
|
localVarQueryParameter['expand'] = expand;
|
|
191
187
|
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
188
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
195
190
|
}
|
|
196
191
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
197
192
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -221,7 +216,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
221
216
|
listInvoices: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
222
217
|
if (options === void 0) { options = {}; }
|
|
223
218
|
return __awaiter(_this, void 0, void 0, function () {
|
|
224
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
219
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
225
220
|
return __generator(this, function (_a) {
|
|
226
221
|
switch (_a.label) {
|
|
227
222
|
case 0:
|
|
@@ -262,9 +257,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
262
257
|
if (filters !== undefined) {
|
|
263
258
|
localVarQueryParameter['filters'] = filters;
|
|
264
259
|
}
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
260
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
261
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
262
|
}
|
|
269
263
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
270
264
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -295,7 +289,7 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
295
289
|
listPoliciesBillingDates: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
296
290
|
if (options === void 0) { options = {}; }
|
|
297
291
|
return __awaiter(_this, void 0, void 0, function () {
|
|
298
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
292
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
299
293
|
return __generator(this, function (_a) {
|
|
300
294
|
switch (_a.label) {
|
|
301
295
|
case 0:
|
|
@@ -336,9 +330,8 @@ var InvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
336
330
|
if (filters !== undefined) {
|
|
337
331
|
localVarQueryParameter['filters'] = filters;
|
|
338
332
|
}
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
333
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
334
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
342
335
|
}
|
|
343
336
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
344
337
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
272
272
|
}
|
|
@@ -103,7 +103,7 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
|
|
|
103
103
|
createPolicyBilling: function (createPolicyBillingRequestDto, authorization, options) {
|
|
104
104
|
if (options === void 0) { options = {}; }
|
|
105
105
|
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
106
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
107
|
return __generator(this, function (_a) {
|
|
108
108
|
switch (_a.label) {
|
|
109
109
|
case 0:
|
|
@@ -120,16 +120,13 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
|
|
|
120
120
|
localVarQueryParameter = {};
|
|
121
121
|
// authentication bearer required
|
|
122
122
|
// http bearer authentication required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
124
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
125
|
-
];
|
|
123
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
126
124
|
case 1:
|
|
127
125
|
// authentication bearer required
|
|
128
126
|
// http bearer authentication required
|
|
129
127
|
_a.sent();
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
128
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
130
|
}
|
|
134
131
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
132
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -161,7 +158,7 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
|
|
|
161
158
|
listPoliciesBillings: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
162
159
|
if (options === void 0) { options = {}; }
|
|
163
160
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
161
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
162
|
return __generator(this, function (_a) {
|
|
166
163
|
switch (_a.label) {
|
|
167
164
|
case 0:
|
|
@@ -202,9 +199,8 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
|
|
|
202
199
|
if (filters !== undefined) {
|
|
203
200
|
localVarQueryParameter['filters'] = filters;
|
|
204
201
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
202
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
203
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
208
204
|
}
|
|
209
205
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
210
206
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -229,7 +225,7 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
|
|
|
229
225
|
updatePolicyBilling: function (code, updatePolicyBillingRequestDto, authorization, options) {
|
|
230
226
|
if (options === void 0) { options = {}; }
|
|
231
227
|
return __awaiter(_this, void 0, void 0, function () {
|
|
232
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
228
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
233
229
|
return __generator(this, function (_a) {
|
|
234
230
|
switch (_a.label) {
|
|
235
231
|
case 0:
|
|
@@ -249,16 +245,13 @@ var PolicyBillingApiAxiosParamCreator = function (configuration) {
|
|
|
249
245
|
localVarQueryParameter = {};
|
|
250
246
|
// authentication bearer required
|
|
251
247
|
// http bearer authentication required
|
|
252
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
253
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
254
|
-
];
|
|
248
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
255
249
|
case 1:
|
|
256
250
|
// authentication bearer required
|
|
257
251
|
// http bearer authentication required
|
|
258
252
|
_a.sent();
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
253
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
254
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
262
255
|
}
|
|
263
256
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
264
257
|
(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, {}
|
|
105
|
+
createRecurringInvoice(requestParameters: RecurringInvoicesApiCreateRecurringInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
|
|
106
106
|
}
|
|
@@ -104,7 +104,7 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
createRecurringInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
108
|
return __generator(this, function (_a) {
|
|
109
109
|
switch (_a.label) {
|
|
110
110
|
case 0:
|
|
@@ -121,20 +121,16 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
localVarQueryParameter = {};
|
|
122
122
|
// authentication bearer required
|
|
123
123
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
126
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
125
|
case 1:
|
|
128
126
|
// authentication bearer required
|
|
129
127
|
// http bearer authentication required
|
|
130
128
|
_a.sent();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
131
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
132
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
138
134
|
}
|
|
139
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
136
|
(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, {}
|
|
105
|
+
createTerminationInvoice(requestParameters: TerminationInvoicesApiCreateTerminationInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}>>;
|
|
106
106
|
}
|
|
@@ -104,7 +104,7 @@ var TerminationInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
104
104
|
createTerminationInvoice: function (createInvoiceForPolicyRequestDto, authorization, idempotencyKey, options) {
|
|
105
105
|
if (options === void 0) { options = {}; }
|
|
106
106
|
return __awaiter(_this, void 0, void 0, function () {
|
|
107
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter,
|
|
107
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
108
108
|
return __generator(this, function (_a) {
|
|
109
109
|
switch (_a.label) {
|
|
110
110
|
case 0:
|
|
@@ -121,20 +121,16 @@ var TerminationInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
121
121
|
localVarQueryParameter = {};
|
|
122
122
|
// authentication bearer required
|
|
123
123
|
// http bearer authentication required
|
|
124
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
125
|
-
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
126
|
-
];
|
|
124
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
127
125
|
case 1:
|
|
128
126
|
// authentication bearer required
|
|
129
127
|
// http bearer authentication required
|
|
130
128
|
_a.sent();
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
129
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
130
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
134
131
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
|
|
132
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
133
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
138
134
|
}
|
|
139
135
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
140
136
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
package/dist/api.d.ts
CHANGED
package/dist/api.js
CHANGED
|
@@ -36,4 +36,3 @@ __exportStar(require("./api/invoices-api"), exports);
|
|
|
36
36
|
__exportStar(require("./api/policy-billing-api"), exports);
|
|
37
37
|
__exportStar(require("./api/recurring-invoices-api"), exports);
|
|
38
38
|
__exportStar(require("./api/termination-invoices-api"), exports);
|
|
39
|
-
__exportStar(require("./api/withdraw-invoices-api"), exports);
|
package/dist/base.d.ts
CHANGED
|
@@ -22,19 +22,9 @@ export declare const COLLECTION_FORMATS: {
|
|
|
22
22
|
tsv: string;
|
|
23
23
|
pipes: string;
|
|
24
24
|
};
|
|
25
|
-
export interface SessionClass {
|
|
26
|
-
sub: string;
|
|
27
|
-
username?: string;
|
|
28
|
-
email?: string;
|
|
29
|
-
tenantSlug?: string;
|
|
30
|
-
permissions?: string;
|
|
31
|
-
expiresAt?: number;
|
|
32
|
-
}
|
|
33
25
|
export interface LoginClass {
|
|
34
26
|
accessToken: string;
|
|
35
27
|
permissions: string;
|
|
36
|
-
authMode?: string;
|
|
37
|
-
session?: SessionClass;
|
|
38
28
|
}
|
|
39
29
|
export interface SwitchWorkspaceRequest {
|
|
40
30
|
username: string;
|
|
@@ -43,8 +33,6 @@ export interface SwitchWorkspaceRequest {
|
|
|
43
33
|
export interface SwitchWorkspaceResponseClass {
|
|
44
34
|
accessToken: string;
|
|
45
35
|
permissions: string;
|
|
46
|
-
authMode?: string;
|
|
47
|
-
session?: SessionClass;
|
|
48
36
|
}
|
|
49
37
|
export declare enum Environment {
|
|
50
38
|
Production = "https://apiv2.emil.de",
|
|
@@ -75,18 +63,6 @@ export declare class BaseAPI {
|
|
|
75
63
|
protected configuration: Configuration | undefined;
|
|
76
64
|
private tokenData?;
|
|
77
65
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
78
|
-
private sessionAccount;
|
|
79
|
-
private authBasePath;
|
|
80
|
-
private usesSession;
|
|
81
|
-
private useSessionAuth;
|
|
82
|
-
private useHeaderAuth;
|
|
83
|
-
private applyTokenReply;
|
|
84
|
-
private sessionHeaders;
|
|
85
|
-
private withCurrentAuth;
|
|
86
|
-
private canRetryWithToken;
|
|
87
|
-
private canResend;
|
|
88
|
-
private switchToToken;
|
|
89
|
-
private retryWithToken;
|
|
90
66
|
selectEnvironment(env: Environment): void;
|
|
91
67
|
selectBasePath(path: string): void;
|
|
92
68
|
getPermissions(): Array<string>;
|