@emilgroup/billing-sdk-node 1.3.0 → 1.4.1
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 +7 -0
- package/README.md +2 -2
- package/api/correction-invoices-api.ts +29 -11
- package/api/estimated-invoices-api.ts +17 -9
- package/api/initial-invoices-api.ts +29 -11
- package/api/invoices-api.ts +95 -87
- package/api/recurring-invoices-api.ts +29 -11
- package/api.ts +1 -6
- package/base.ts +6 -5
- package/common.ts +2 -2
- package/configuration.ts +1 -1
- package/dist/api/correction-invoices-api.d.ts +21 -8
- package/dist/api/correction-invoices-api.js +21 -11
- package/dist/api/estimated-invoices-api.d.ts +17 -9
- package/dist/api/estimated-invoices-api.js +17 -9
- package/dist/api/initial-invoices-api.d.ts +21 -8
- package/dist/api/initial-invoices-api.js +21 -11
- package/dist/api/invoices-api.d.ts +95 -87
- package/dist/api/invoices-api.js +53 -45
- package/dist/api/recurring-invoices-api.d.ts +21 -8
- package/dist/api/recurring-invoices-api.js +21 -11
- package/dist/api.d.ts +1 -5
- package/dist/api.js +1 -7
- package/dist/base.d.ts +4 -3
- package/dist/base.js +6 -5
- package/dist/common.d.ts +2 -2
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +3 -2
- package/dist/models/create-correction-invoices-response-class.d.ts +5 -5
- package/dist/models/create-correction-invoices-response-class.js +1 -1
- package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-custom-estimated-invoice-request-dto.js +1 -1
- package/dist/models/create-custom-estimated-invoice-response-class.d.ts +1 -1
- package/dist/models/create-custom-estimated-invoice-response-class.js +1 -1
- package/dist/models/create-estimated-invoice-request-dto.d.ts +3 -3
- package/dist/models/create-estimated-invoice-request-dto.js +1 -1
- package/dist/models/create-estimated-invoice-response-class.d.ts +3 -3
- package/dist/models/create-estimated-invoice-response-class.js +1 -1
- package/dist/models/create-invoice-request-dto.d.ts +16 -14
- package/dist/models/create-invoice-request-dto.js +4 -2
- package/dist/models/create-invoice-response-class.d.ts +5 -5
- package/dist/models/create-invoice-response-class.js +1 -1
- package/dist/models/create-invoice-status-request-dto.d.ts +35 -0
- package/dist/models/create-invoice-status-request-dto.js +20 -0
- package/dist/models/create-termination-invoice-request-dto.d.ts +48 -0
- package/dist/models/create-termination-invoice-request-dto.js +15 -0
- package/dist/models/currency-class.d.ts +48 -0
- package/dist/models/currency-class.js +15 -0
- package/dist/models/index.d.ts +7 -0
- package/dist/models/index.js +7 -0
- package/dist/models/invoice-class.d.ts +50 -20
- package/dist/models/invoice-class.js +16 -1
- package/dist/models/invoice-item-class.d.ts +26 -17
- package/dist/models/invoice-item-class.js +10 -1
- package/dist/models/invoice-status-class.d.ts +47 -0
- package/dist/models/invoice-status-class.js +20 -0
- package/dist/models/list-invoices-response-class.d.ts +3 -3
- package/dist/models/list-invoices-response-class.js +1 -1
- package/dist/models/list-policies-billing-dates-response-class.d.ts +6 -5
- package/dist/models/list-policies-billing-dates-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +1 -1
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/omit-type-class.d.ts +144 -0
- package/dist/models/omit-type-class.js +30 -0
- package/dist/models/policy-billing-date-class.d.ts +42 -0
- package/dist/models/policy-billing-date-class.js +15 -0
- package/dist/models/policy-dto.d.ts +62 -25
- package/dist/models/policy-dto.js +8 -1
- package/dist/models/policy-object-dto.d.ts +10 -10
- package/dist/models/policy-object-dto.js +1 -1
- package/dist/models/policy-premium-dto.d.ts +12 -12
- package/dist/models/policy-premium-dto.js +1 -1
- package/dist/models/policy-premium-item-dto.d.ts +20 -14
- package/dist/models/policy-premium-item-dto.js +1 -1
- package/dist/models/policy-version-dto.d.ts +17 -17
- package/dist/models/policy-version-dto.js +1 -1
- package/dist/models/premium-formula-dto.d.ts +20 -20
- package/dist/models/premium-formula-dto.js +1 -1
- package/dist/models/revert-invoice-request-dto.d.ts +24 -0
- package/dist/models/revert-invoice-request-dto.js +15 -0
- package/dist/models/timeslice-dto.d.ts +13 -13
- package/dist/models/timeslice-dto.js +1 -1
- package/index.ts +2 -2
- package/models/create-correction-invoices-response-class.ts +5 -5
- package/models/create-custom-estimated-invoice-request-dto.ts +3 -3
- package/models/create-custom-estimated-invoice-response-class.ts +1 -1
- package/models/create-estimated-invoice-request-dto.ts +3 -3
- package/models/create-estimated-invoice-response-class.ts +3 -3
- package/models/create-invoice-request-dto.ts +17 -15
- package/models/create-invoice-response-class.ts +5 -5
- package/models/create-invoice-status-request-dto.ts +44 -0
- package/models/create-termination-invoice-request-dto.ts +54 -0
- package/models/currency-class.ts +54 -0
- package/models/index.ts +7 -0
- package/models/invoice-class.ts +54 -20
- package/models/invoice-item-class.ts +29 -17
- package/models/invoice-status-class.ts +56 -0
- package/models/list-invoices-response-class.ts +3 -3
- package/models/list-policies-billing-dates-response-class.ts +6 -5
- package/models/list-request-dto.ts +1 -1
- package/models/omit-type-class.ts +154 -0
- package/models/policy-billing-date-class.ts +48 -0
- package/models/policy-dto.ts +65 -25
- package/models/policy-object-dto.ts +10 -10
- package/models/policy-premium-dto.ts +12 -12
- package/models/policy-premium-item-dto.ts +20 -14
- package/models/policy-version-dto.ts +17 -17
- package/models/premium-formula-dto.ts +20 -20
- package/models/revert-invoice-request-dto.ts +30 -0
- package/models/timeslice-dto.ts +13 -13
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL BillingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -97,13 +97,15 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
97
97
|
var _this = this;
|
|
98
98
|
return {
|
|
99
99
|
/**
|
|
100
|
-
*
|
|
100
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
101
|
+
* @summary Create the recurring invoice
|
|
101
102
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
102
103
|
* @param {string} [authorization] Bearer Token
|
|
104
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
103
105
|
* @param {*} [options] Override http request option.
|
|
104
106
|
* @throws {RequiredError}
|
|
105
107
|
*/
|
|
106
|
-
createRecurringInvoice: function (createInvoiceRequestDto, authorization, options) {
|
|
108
|
+
createRecurringInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
|
|
107
109
|
if (options === void 0) { options = {}; }
|
|
108
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
109
111
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -131,6 +133,9 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
131
133
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
132
134
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
133
135
|
}
|
|
136
|
+
if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
137
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
|
|
138
|
+
}
|
|
134
139
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
135
140
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
136
141
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -155,18 +160,20 @@ var RecurringInvoicesApiFp = function (configuration) {
|
|
|
155
160
|
var localVarAxiosParamCreator = (0, exports.RecurringInvoicesApiAxiosParamCreator)(configuration);
|
|
156
161
|
return {
|
|
157
162
|
/**
|
|
158
|
-
*
|
|
163
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
164
|
+
* @summary Create the recurring invoice
|
|
159
165
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
160
166
|
* @param {string} [authorization] Bearer Token
|
|
167
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
161
168
|
* @param {*} [options] Override http request option.
|
|
162
169
|
* @throws {RequiredError}
|
|
163
170
|
*/
|
|
164
|
-
createRecurringInvoice: function (createInvoiceRequestDto, authorization, options) {
|
|
171
|
+
createRecurringInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
|
|
165
172
|
return __awaiter(this, void 0, void 0, function () {
|
|
166
173
|
var localVarAxiosArgs;
|
|
167
174
|
return __generator(this, function (_a) {
|
|
168
175
|
switch (_a.label) {
|
|
169
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, options)];
|
|
176
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options)];
|
|
170
177
|
case 1:
|
|
171
178
|
localVarAxiosArgs = _a.sent();
|
|
172
179
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -185,14 +192,16 @@ var RecurringInvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
185
192
|
var localVarFp = (0, exports.RecurringInvoicesApiFp)(configuration);
|
|
186
193
|
return {
|
|
187
194
|
/**
|
|
188
|
-
*
|
|
195
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
196
|
+
* @summary Create the recurring invoice
|
|
189
197
|
* @param {CreateInvoiceRequestDto} createInvoiceRequestDto
|
|
190
198
|
* @param {string} [authorization] Bearer Token
|
|
199
|
+
* @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
|
|
191
200
|
* @param {*} [options] Override http request option.
|
|
192
201
|
* @throws {RequiredError}
|
|
193
202
|
*/
|
|
194
|
-
createRecurringInvoice: function (createInvoiceRequestDto, authorization, options) {
|
|
195
|
-
return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
203
|
+
createRecurringInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
|
|
204
|
+
return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
|
|
196
205
|
},
|
|
197
206
|
};
|
|
198
207
|
};
|
|
@@ -209,7 +218,8 @@ var RecurringInvoicesApi = /** @class */ (function (_super) {
|
|
|
209
218
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
210
219
|
}
|
|
211
220
|
/**
|
|
212
|
-
*
|
|
221
|
+
* This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
|
|
222
|
+
* @summary Create the recurring invoice
|
|
213
223
|
* @param {RecurringInvoicesApiCreateRecurringInvoiceRequest} requestParameters Request parameters.
|
|
214
224
|
* @param {*} [options] Override http request option.
|
|
215
225
|
* @throws {RequiredError}
|
|
@@ -217,7 +227,7 @@ var RecurringInvoicesApi = /** @class */ (function (_super) {
|
|
|
217
227
|
*/
|
|
218
228
|
RecurringInvoicesApi.prototype.createRecurringInvoice = function (requestParameters, options) {
|
|
219
229
|
var _this = this;
|
|
220
|
-
return (0, exports.RecurringInvoicesApiFp)(this.configuration).createRecurringInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
230
|
+
return (0, exports.RecurringInvoicesApiFp)(this.configuration).createRecurringInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
221
231
|
};
|
|
222
232
|
return RecurringInvoicesApi;
|
|
223
233
|
}(base_1.BaseAPI));
|
package/dist/api.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -14,7 +14,3 @@ export * from './api/estimated-invoices-api';
|
|
|
14
14
|
export * from './api/initial-invoices-api';
|
|
15
15
|
export * from './api/invoices-api';
|
|
16
16
|
export * from './api/recurring-invoices-api';
|
|
17
|
-
export declare enum Environment {
|
|
18
|
-
Production = "https://apiv2.emil.de",
|
|
19
|
-
Test = "https://apiv2-test.emil.de"
|
|
20
|
-
}
|
package/dist/api.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL BillingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -27,14 +27,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.Environment = void 0;
|
|
31
30
|
__exportStar(require("./api/correction-invoices-api"), exports);
|
|
32
31
|
__exportStar(require("./api/estimated-invoices-api"), exports);
|
|
33
32
|
__exportStar(require("./api/initial-invoices-api"), exports);
|
|
34
33
|
__exportStar(require("./api/invoices-api"), exports);
|
|
35
34
|
__exportStar(require("./api/recurring-invoices-api"), exports);
|
|
36
|
-
var Environment;
|
|
37
|
-
(function (Environment) {
|
|
38
|
-
Environment["Production"] = "https://apiv2.emil.de";
|
|
39
|
-
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
40
|
-
})(Environment = exports.Environment || (exports.Environment = {}));
|
package/dist/base.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -28,7 +28,8 @@ export interface LoginClass {
|
|
|
28
28
|
}
|
|
29
29
|
export declare enum Environment {
|
|
30
30
|
Production = "https://apiv2.emil.de",
|
|
31
|
-
Test = "https://apiv2-test.emil.de"
|
|
31
|
+
Test = "https://apiv2-test.emil.de",
|
|
32
|
+
Development = "https://apiv2-dev.emil.de"
|
|
32
33
|
}
|
|
33
34
|
export declare function resetRetry(): void;
|
|
34
35
|
/**
|
|
@@ -58,7 +59,7 @@ export declare class BaseAPI {
|
|
|
58
59
|
private readEnvVariables;
|
|
59
60
|
selectEnvironment(env: Environment): void;
|
|
60
61
|
authorize(username: string, password: string): Promise<void>;
|
|
61
|
-
|
|
62
|
+
refreshTokenInternal(): Promise<string>;
|
|
62
63
|
private extractRefreshToken;
|
|
63
64
|
getConfiguration(): Configuration;
|
|
64
65
|
private attachInterceptor;
|
package/dist/base.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL BillingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -109,7 +109,7 @@ var axios_1 = __importDefault(require("axios"));
|
|
|
109
109
|
var fs = __importStar(require("fs"));
|
|
110
110
|
var path = __importStar(require("path"));
|
|
111
111
|
var os = __importStar(require("os"));
|
|
112
|
-
exports.BASE_PATH = "
|
|
112
|
+
exports.BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
113
113
|
var CONFIG_DIRECTORY = '.emil';
|
|
114
114
|
var CONFIG_FILENAME = 'credentials';
|
|
115
115
|
var KEY_USERNAME = 'emil_username';
|
|
@@ -129,6 +129,7 @@ var Environment;
|
|
|
129
129
|
(function (Environment) {
|
|
130
130
|
Environment["Production"] = "https://apiv2.emil.de";
|
|
131
131
|
Environment["Test"] = "https://apiv2-test.emil.de";
|
|
132
|
+
Environment["Development"] = "https://apiv2-dev.emil.de";
|
|
132
133
|
})(Environment = exports.Environment || (exports.Environment = {}));
|
|
133
134
|
var _retry_count = 0;
|
|
134
135
|
var _retry = null;
|
|
@@ -269,7 +270,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
269
270
|
});
|
|
270
271
|
});
|
|
271
272
|
};
|
|
272
|
-
BaseAPI.prototype.
|
|
273
|
+
BaseAPI.prototype.refreshTokenInternal = function () {
|
|
273
274
|
return __awaiter(this, void 0, void 0, function () {
|
|
274
275
|
var _a, username, refreshToken, options, accessToken;
|
|
275
276
|
return __generator(this, function (_b) {
|
|
@@ -323,7 +324,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
323
324
|
_a.label = 1;
|
|
324
325
|
case 1:
|
|
325
326
|
_a.trys.push([1, 3, , 4]);
|
|
326
|
-
return [4 /*yield*/, this.
|
|
327
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
327
328
|
case 2:
|
|
328
329
|
tokenString = _a.sent();
|
|
329
330
|
accessToken = "Bearer ".concat(tokenString);
|
|
@@ -350,7 +351,7 @@ var BaseAPI = /** @class */ (function () {
|
|
|
350
351
|
_a.label = 6;
|
|
351
352
|
case 6:
|
|
352
353
|
_a.trys.push([6, 8, , 9]);
|
|
353
|
-
return [4 /*yield*/, this.
|
|
354
|
+
return [4 /*yield*/, this.refreshTokenInternal()];
|
|
354
355
|
case 7:
|
|
355
356
|
tokenString = _a.sent();
|
|
356
357
|
accessToken = "Bearer ".concat(tokenString);
|
package/dist/common.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -69,7 +69,7 @@ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios
|
|
|
69
69
|
* The EMIL BillingService API description
|
|
70
70
|
*
|
|
71
71
|
* The version of the OpenAPI document: 1.0
|
|
72
|
-
*
|
|
72
|
+
* Contact: kontakt@emil.de
|
|
73
73
|
*
|
|
74
74
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
75
75
|
* https://openapi-generator.tech
|
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
export { BaseAPI } from "./base";
|
|
12
|
+
export { Environment, BaseAPI } from "./base";
|
|
13
13
|
export * from "./api";
|
|
14
14
|
export * from "./configuration";
|
|
15
15
|
export * from "./models";
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL BillingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -27,8 +27,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
27
27
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
-
exports.BaseAPI = void 0;
|
|
30
|
+
exports.BaseAPI = exports.Environment = void 0;
|
|
31
31
|
var base_1 = require("./base");
|
|
32
|
+
Object.defineProperty(exports, "Environment", { enumerable: true, get: function () { return base_1.Environment; } });
|
|
32
33
|
Object.defineProperty(exports, "BaseAPI", { enumerable: true, get: function () { return base_1.BaseAPI; } });
|
|
33
34
|
__exportStar(require("./api"), exports);
|
|
34
35
|
__exportStar(require("./configuration"), exports);
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OmitTypeClass } from './omit-type-class';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,9 +17,9 @@ import { InvoiceClass } from './invoice-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateCorrectionInvoicesResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
* Correction invoices response
|
|
21
|
-
* @type {
|
|
20
|
+
* Correction invoices response.
|
|
21
|
+
* @type {OmitTypeClass}
|
|
22
22
|
* @memberof CreateCorrectionInvoicesResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'invoices':
|
|
24
|
+
'invoices': OmitTypeClass;
|
|
25
25
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateCustomEstimatedInvoiceRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Required data to create a custom application.
|
|
20
20
|
* @type {object}
|
|
21
21
|
* @memberof CreateCustomEstimatedInvoiceRequestDto
|
|
22
22
|
*/
|
|
23
23
|
'data': object;
|
|
24
24
|
/**
|
|
25
|
-
* Custom premium provider
|
|
25
|
+
* Custom premium provider.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateCustomEstimatedInvoiceRequestDto
|
|
28
28
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -17,13 +17,13 @@ import { PolicyDto } from './policy-dto';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateEstimatedInvoiceRequestDto {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Policy.
|
|
21
21
|
* @type {PolicyDto}
|
|
22
22
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
23
23
|
*/
|
|
24
24
|
'policy': PolicyDto;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
27
27
|
* @type {object}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceRequestDto
|
|
29
29
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -17,13 +17,13 @@ import { InvoiceClass } from './invoice-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateEstimatedInvoiceResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Estimated invoice response.
|
|
21
21
|
* @type {InvoiceClass}
|
|
22
22
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
23
23
|
*/
|
|
24
24
|
'invoice': InvoiceClass;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* In some cases, custom premium calculation needs to be used. In that case, a custom object is returned. It can hold up any kind of information. For more information, check the general documentation.
|
|
27
27
|
* @type {object}
|
|
28
28
|
* @memberof CreateEstimatedInvoiceResponseClass
|
|
29
29
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
@@ -16,53 +16,53 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateInvoiceRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Unique number for the invoice. If not set, the system will automatically assign a value.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateInvoiceRequestDto
|
|
22
22
|
*/
|
|
23
23
|
'invoiceNumber'?: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Account number.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateInvoiceRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'accountNumber': string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Unique identifier of the policy that this object belongs to.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateInvoiceRequestDto
|
|
34
34
|
*/
|
|
35
35
|
'policyCode': string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Type of the invoice.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreateInvoiceRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'type': CreateInvoiceRequestDtoTypeEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Metadata contains extra information that the object would need for specific cases.
|
|
38
44
|
* @type {object}
|
|
39
45
|
* @memberof CreateInvoiceRequestDto
|
|
40
46
|
*/
|
|
41
47
|
'metadata'?: object;
|
|
42
48
|
/**
|
|
43
|
-
*
|
|
49
|
+
* This is the date from which the invoice item interval starts.
|
|
44
50
|
* @type {string}
|
|
45
51
|
* @memberof CreateInvoiceRequestDto
|
|
46
52
|
*/
|
|
47
53
|
'billingIntervalFrom': string;
|
|
48
54
|
/**
|
|
49
|
-
*
|
|
55
|
+
* This is the date that the invoice item interval ends.
|
|
50
56
|
* @type {string}
|
|
51
57
|
* @memberof CreateInvoiceRequestDto
|
|
52
58
|
*/
|
|
53
59
|
'billingIntervalTo': string;
|
|
54
60
|
/**
|
|
55
|
-
* Invoice due date
|
|
61
|
+
* Invoice due date.
|
|
56
62
|
* @type {string}
|
|
57
63
|
* @memberof CreateInvoiceRequestDto
|
|
58
64
|
*/
|
|
59
65
|
'dueDate'?: string;
|
|
60
|
-
/**
|
|
61
|
-
*
|
|
62
|
-
* @type {string}
|
|
63
|
-
* @memberof CreateInvoiceRequestDto
|
|
64
|
-
*/
|
|
65
|
-
'type': CreateInvoiceRequestDtoTypeEnum;
|
|
66
66
|
}
|
|
67
67
|
export declare const CreateInvoiceRequestDtoTypeEnum: {
|
|
68
68
|
readonly Initial: "initial";
|
|
@@ -71,5 +71,7 @@ export declare const CreateInvoiceRequestDtoTypeEnum: {
|
|
|
71
71
|
readonly Estimated: "estimated";
|
|
72
72
|
readonly Penalty: "penalty";
|
|
73
73
|
readonly Other: "other";
|
|
74
|
+
readonly Withdraw: "withdraw";
|
|
75
|
+
readonly Final: "final";
|
|
74
76
|
};
|
|
75
77
|
export type CreateInvoiceRequestDtoTypeEnum = typeof CreateInvoiceRequestDtoTypeEnum[keyof typeof CreateInvoiceRequestDtoTypeEnum];
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* The EMIL BillingService API description
|
|
7
7
|
*
|
|
8
8
|
* The version of the OpenAPI document: 1.0
|
|
9
|
-
*
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
12
|
* https://openapi-generator.tech
|
|
@@ -20,5 +20,7 @@ exports.CreateInvoiceRequestDtoTypeEnum = {
|
|
|
20
20
|
Correction: 'correction',
|
|
21
21
|
Estimated: 'estimated',
|
|
22
22
|
Penalty: 'penalty',
|
|
23
|
-
Other: 'other'
|
|
23
|
+
Other: 'other',
|
|
24
|
+
Withdraw: 'withdraw',
|
|
25
|
+
Final: 'final'
|
|
24
26
|
};
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* The EMIL BillingService API description
|
|
4
4
|
*
|
|
5
5
|
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { OmitTypeClass } from './omit-type-class';
|
|
13
13
|
/**
|
|
14
14
|
*
|
|
15
15
|
* @export
|
|
@@ -17,9 +17,9 @@ import { InvoiceClass } from './invoice-class';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface CreateInvoiceResponseClass {
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
20
|
+
* Invoice response.
|
|
21
|
+
* @type {OmitTypeClass}
|
|
22
22
|
* @memberof CreateInvoiceResponseClass
|
|
23
23
|
*/
|
|
24
|
-
'invoice':
|
|
24
|
+
'invoice': OmitTypeClass;
|
|
25
25
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CreateInvoiceStatusRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreateInvoiceStatusRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof CreateInvoiceStatusRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'invoiceId': number;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreateInvoiceStatusRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'status': CreateInvoiceStatusRequestDtoStatusEnum;
|
|
30
|
+
}
|
|
31
|
+
export declare const CreateInvoiceStatusRequestDtoStatusEnum: {
|
|
32
|
+
readonly Open: "open";
|
|
33
|
+
readonly Paid: "paid";
|
|
34
|
+
};
|
|
35
|
+
export type CreateInvoiceStatusRequestDtoStatusEnum = typeof CreateInvoiceStatusRequestDtoStatusEnum[keyof typeof CreateInvoiceStatusRequestDtoStatusEnum];
|