@emilgroup/billing-sdk 1.63.1-beta.37 → 1.63.1-beta.39

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 (56) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +23 -8
  4. package/api/draft-invoice-api.ts +24 -9
  5. package/api/estimated-invoices-api.ts +32 -12
  6. package/api/health-api.ts +1 -1
  7. package/api/initial-invoices-api.ts +15 -5
  8. package/api/invoices-api.ts +39 -14
  9. package/api/policy-billing-api.ts +24 -9
  10. package/api/recurring-invoices-api.ts +15 -5
  11. package/api/termination-invoices-api.ts +15 -5
  12. package/api/withdraw-invoices-api.ts +189 -0
  13. package/api.ts +2 -0
  14. package/base.ts +239 -43
  15. package/common.ts +3 -2
  16. package/configuration.ts +20 -0
  17. package/dist/api/correction-invoices-api.d.ts +2 -2
  18. package/dist/api/correction-invoices-api.js +35 -18
  19. package/dist/api/draft-invoice-api.d.ts +3 -3
  20. package/dist/api/draft-invoice-api.js +45 -24
  21. package/dist/api/estimated-invoices-api.d.ts +4 -4
  22. package/dist/api/estimated-invoices-api.js +60 -32
  23. package/dist/api/health-api.d.ts +1 -1
  24. package/dist/api/health-api.js +1 -1
  25. package/dist/api/initial-invoices-api.d.ts +1 -1
  26. package/dist/api/initial-invoices-api.js +20 -10
  27. package/dist/api/invoices-api.d.ts +4 -4
  28. package/dist/api/invoices-api.js +53 -31
  29. package/dist/api/policy-billing-api.d.ts +3 -3
  30. package/dist/api/policy-billing-api.js +41 -23
  31. package/dist/api/recurring-invoices-api.d.ts +1 -1
  32. package/dist/api/recurring-invoices-api.js +20 -10
  33. package/dist/api/termination-invoices-api.d.ts +1 -1
  34. package/dist/api/termination-invoices-api.js +20 -10
  35. package/dist/api/withdraw-invoices-api.d.ts +106 -0
  36. package/dist/api/withdraw-invoices-api.js +240 -0
  37. package/dist/api.d.ts +1 -0
  38. package/dist/api.js +1 -0
  39. package/dist/base.d.ts +26 -0
  40. package/dist/base.js +243 -60
  41. package/dist/common.d.ts +1 -1
  42. package/dist/common.js +1 -0
  43. package/dist/configuration.d.ts +17 -0
  44. package/dist/configuration.js +2 -0
  45. package/dist/models/create-withdraw-invoice-request-dto-rest.d.ts +50 -0
  46. package/dist/models/create-withdraw-invoice-request-dto-rest.js +15 -0
  47. package/dist/models/create-withdraw-invoice-request-dto.d.ts +50 -0
  48. package/dist/models/create-withdraw-invoice-request-dto.js +15 -0
  49. package/dist/models/index.d.ts +2 -0
  50. package/dist/models/index.js +2 -0
  51. package/dist/models/invoice-item-class.d.ts +12 -0
  52. package/models/create-withdraw-invoice-request-dto-rest.ts +54 -0
  53. package/models/create-withdraw-invoice-request-dto.ts +54 -0
  54. package/models/index.ts +2 -0
  55. package/models/invoice-item-class.ts +12 -0
  56. package/package.json +2 -2
@@ -0,0 +1,106 @@
1
+ /**
2
+ * EMIL BillingService
3
+ * The EMIL BillingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { CreateInvoiceResponseClass } from '../models';
16
+ import { CreateWithdrawInvoiceRequestDtoRest } from '../models';
17
+ /**
18
+ * WithdrawInvoicesApi - axios parameter creator
19
+ * @export
20
+ */
21
+ export declare const WithdrawInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
+ /**
23
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
24
+ * @summary Create the Withdraw invoice
25
+ * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
26
+ * @param {string} [authorization] Bearer Token
27
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
28
+ * @param {*} [options] Override http request option.
29
+ * @throws {RequiredError}
30
+ */
31
+ createWithdrawInvoice: (createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
+ };
33
+ /**
34
+ * WithdrawInvoicesApi - functional programming interface
35
+ * @export
36
+ */
37
+ export declare const WithdrawInvoicesApiFp: (configuration?: Configuration) => {
38
+ /**
39
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
40
+ * @summary Create the Withdraw invoice
41
+ * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
42
+ * @param {string} [authorization] Bearer Token
43
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
48
+ };
49
+ /**
50
+ * WithdrawInvoicesApi - factory interface
51
+ * @export
52
+ */
53
+ export declare const WithdrawInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
54
+ /**
55
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
56
+ * @summary Create the Withdraw invoice
57
+ * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
58
+ * @param {string} [authorization] Bearer Token
59
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
60
+ * @param {*} [options] Override http request option.
61
+ * @throws {RequiredError}
62
+ */
63
+ createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
64
+ };
65
+ /**
66
+ * Request parameters for createWithdrawInvoice operation in WithdrawInvoicesApi.
67
+ * @export
68
+ * @interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest
69
+ */
70
+ export interface WithdrawInvoicesApiCreateWithdrawInvoiceRequest {
71
+ /**
72
+ *
73
+ * @type {CreateWithdrawInvoiceRequestDtoRest}
74
+ * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
75
+ */
76
+ readonly createWithdrawInvoiceRequestDtoRest: CreateWithdrawInvoiceRequestDtoRest;
77
+ /**
78
+ * Bearer Token
79
+ * @type {string}
80
+ * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
81
+ */
82
+ readonly authorization?: string;
83
+ /**
84
+ * Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
85
+ * @type {string}
86
+ * @memberof WithdrawInvoicesApiCreateWithdrawInvoice
87
+ */
88
+ readonly idempotencyKey?: string;
89
+ }
90
+ /**
91
+ * WithdrawInvoicesApi - object-oriented interface
92
+ * @export
93
+ * @class WithdrawInvoicesApi
94
+ * @extends {BaseAPI}
95
+ */
96
+ export declare class WithdrawInvoicesApi extends BaseAPI {
97
+ /**
98
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
99
+ * @summary Create the Withdraw invoice
100
+ * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ * @memberof WithdrawInvoicesApi
104
+ */
105
+ createWithdrawInvoice(requestParameters: WithdrawInvoicesApiCreateWithdrawInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInvoiceResponseClass, any, {}, any>>;
106
+ }
@@ -0,0 +1,240 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.WithdrawInvoicesApi = exports.WithdrawInvoicesApiFactory = exports.WithdrawInvoicesApiFp = exports.WithdrawInvoicesApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * WithdrawInvoicesApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var WithdrawInvoicesApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
97
+ * @summary Create the Withdraw invoice
98
+ * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
99
+ * @param {string} [authorization] Bearer Token
100
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
101
+ * @param {*} [options] Override http request option.
102
+ * @throws {RequiredError}
103
+ */
104
+ createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
105
+ if (options === void 0) { options = {}; }
106
+ return __awaiter(_this, void 0, void 0, function () {
107
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, idempotencyKeyIsAuth, idempotencyKeyValue, idempotencyKeyKeepEmpty, headersFromBaseOptions;
108
+ var _a, _b;
109
+ return __generator(this, function (_c) {
110
+ switch (_c.label) {
111
+ case 0:
112
+ // verify required parameter 'createWithdrawInvoiceRequestDtoRest' is not null or undefined
113
+ (0, common_1.assertParamExists)('createWithdrawInvoice', 'createWithdrawInvoiceRequestDtoRest', createWithdrawInvoiceRequestDtoRest);
114
+ localVarPath = "/billingservice/v1/withdraw-invoices";
115
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
116
+ if (configuration) {
117
+ baseOptions = configuration.baseOptions;
118
+ baseAccessToken = configuration.accessToken;
119
+ }
120
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
121
+ localVarHeaderParameter = {};
122
+ localVarQueryParameter = {};
123
+ // authentication bearer required
124
+ // http bearer authentication required
125
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
126
+ // Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
127
+ // no token is stored, so a refused call still refreshes; a session call (account header) sends none.
128
+ ];
129
+ case 1:
130
+ // authentication bearer required
131
+ // http bearer authentication required
132
+ _c.sent();
133
+ authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
134
+ authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
135
+ authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
136
+ if (authorizationValue || authorizationKeepEmpty) {
137
+ localVarHeaderParameter['Authorization'] = String(authorizationValue);
138
+ }
139
+ idempotencyKeyIsAuth = 'Idempotency-Key'.toLowerCase() === 'authorization';
140
+ idempotencyKeyValue = idempotencyKeyIsAuth ? (idempotencyKey || baseAccessToken) : idempotencyKey;
141
+ idempotencyKeyKeepEmpty = idempotencyKeyIsAuth && idempotencyKeyValue === '' && !((_b = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _b === void 0 ? void 0 : _b['X-Emil-Account']);
142
+ if (idempotencyKeyValue || idempotencyKeyKeepEmpty) {
143
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKeyValue);
144
+ }
145
+ localVarHeaderParameter['Content-Type'] = 'application/json';
146
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
147
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
148
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
149
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWithdrawInvoiceRequestDtoRest, localVarRequestOptions, configuration);
150
+ return [2 /*return*/, {
151
+ url: (0, common_1.toPathString)(localVarUrlObj),
152
+ options: localVarRequestOptions,
153
+ }];
154
+ }
155
+ });
156
+ });
157
+ },
158
+ };
159
+ };
160
+ exports.WithdrawInvoicesApiAxiosParamCreator = WithdrawInvoicesApiAxiosParamCreator;
161
+ /**
162
+ * WithdrawInvoicesApi - functional programming interface
163
+ * @export
164
+ */
165
+ var WithdrawInvoicesApiFp = function (configuration) {
166
+ var localVarAxiosParamCreator = (0, exports.WithdrawInvoicesApiAxiosParamCreator)(configuration);
167
+ return {
168
+ /**
169
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
170
+ * @summary Create the Withdraw invoice
171
+ * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
172
+ * @param {string} [authorization] Bearer Token
173
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
174
+ * @param {*} [options] Override http request option.
175
+ * @throws {RequiredError}
176
+ */
177
+ createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
178
+ return __awaiter(this, void 0, void 0, function () {
179
+ var localVarAxiosArgs;
180
+ return __generator(this, function (_a) {
181
+ switch (_a.label) {
182
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options)];
183
+ case 1:
184
+ localVarAxiosArgs = _a.sent();
185
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
186
+ }
187
+ });
188
+ });
189
+ },
190
+ };
191
+ };
192
+ exports.WithdrawInvoicesApiFp = WithdrawInvoicesApiFp;
193
+ /**
194
+ * WithdrawInvoicesApi - factory interface
195
+ * @export
196
+ */
197
+ var WithdrawInvoicesApiFactory = function (configuration, basePath, axios) {
198
+ var localVarFp = (0, exports.WithdrawInvoicesApiFp)(configuration);
199
+ return {
200
+ /**
201
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
202
+ * @summary Create the Withdraw invoice
203
+ * @param {CreateWithdrawInvoiceRequestDtoRest} createWithdrawInvoiceRequestDtoRest
204
+ * @param {string} [authorization] Bearer Token
205
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ createWithdrawInvoice: function (createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options) {
210
+ return localVarFp.createWithdrawInvoice(createWithdrawInvoiceRequestDtoRest, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
211
+ },
212
+ };
213
+ };
214
+ exports.WithdrawInvoicesApiFactory = WithdrawInvoicesApiFactory;
215
+ /**
216
+ * WithdrawInvoicesApi - object-oriented interface
217
+ * @export
218
+ * @class WithdrawInvoicesApi
219
+ * @extends {BaseAPI}
220
+ */
221
+ var WithdrawInvoicesApi = /** @class */ (function (_super) {
222
+ __extends(WithdrawInvoicesApi, _super);
223
+ function WithdrawInvoicesApi() {
224
+ return _super !== null && _super.apply(this, arguments) || this;
225
+ }
226
+ /**
227
+ * This will create a withdraw invoice that negates existing invoice line items for a policy. **Required Permissions** \"billing-management.invoices.create\"
228
+ * @summary Create the Withdraw invoice
229
+ * @param {WithdrawInvoicesApiCreateWithdrawInvoiceRequest} requestParameters Request parameters.
230
+ * @param {*} [options] Override http request option.
231
+ * @throws {RequiredError}
232
+ * @memberof WithdrawInvoicesApi
233
+ */
234
+ WithdrawInvoicesApi.prototype.createWithdrawInvoice = function (requestParameters, options) {
235
+ var _this = this;
236
+ return (0, exports.WithdrawInvoicesApiFp)(this.configuration).createWithdrawInvoice(requestParameters.createWithdrawInvoiceRequestDtoRest, requestParameters.authorization, requestParameters.idempotencyKey, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
237
+ };
238
+ return WithdrawInvoicesApi;
239
+ }(base_1.BaseAPI));
240
+ exports.WithdrawInvoicesApi = WithdrawInvoicesApi;
package/dist/api.d.ts CHANGED
@@ -18,3 +18,4 @@ export * from './api/invoices-api';
18
18
  export * from './api/policy-billing-api';
19
19
  export * from './api/recurring-invoices-api';
20
20
  export * from './api/termination-invoices-api';
21
+ export * from './api/withdraw-invoices-api';
package/dist/api.js CHANGED
@@ -36,3 +36,4 @@ __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,9 +22,19 @@ 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
+ }
25
33
  export interface LoginClass {
26
34
  accessToken: string;
27
35
  permissions: string;
36
+ authMode?: string;
37
+ session?: SessionClass;
28
38
  }
29
39
  export interface SwitchWorkspaceRequest {
30
40
  username: string;
@@ -33,6 +43,8 @@ export interface SwitchWorkspaceRequest {
33
43
  export interface SwitchWorkspaceResponseClass {
34
44
  accessToken: string;
35
45
  permissions: string;
46
+ authMode?: string;
47
+ session?: SessionClass;
36
48
  }
37
49
  export declare enum Environment {
38
50
  Production = "https://apiv2.emil.de",
@@ -63,6 +75,18 @@ export declare class BaseAPI {
63
75
  protected configuration: Configuration | undefined;
64
76
  private tokenData?;
65
77
  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;
66
90
  selectEnvironment(env: Environment): void;
67
91
  selectBasePath(path: string): void;
68
92
  getPermissions(): Array<string>;
@@ -72,6 +96,8 @@ export declare class BaseAPI {
72
96
  private storeTokenData;
73
97
  loadTokenData(): void;
74
98
  cleanTokenData(): void;
99
+ private ownAccount;
100
+ protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
75
101
  private attachInterceptor;
76
102
  }
77
103
  /**