@emilgroup/billing-sdk 1.1.0 → 1.2.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.
Files changed (114) hide show
  1. package/.openapi-generator/FILES +7 -0
  2. package/README.md +2 -2
  3. package/api/correction-invoices-api.ts +29 -11
  4. package/api/estimated-invoices-api.ts +17 -9
  5. package/api/initial-invoices-api.ts +29 -11
  6. package/api/invoices-api.ts +95 -87
  7. package/api/recurring-invoices-api.ts +29 -11
  8. package/api.ts +1 -6
  9. package/base.ts +5 -4
  10. package/common.ts +2 -2
  11. package/configuration.ts +1 -1
  12. package/dist/api/correction-invoices-api.d.ts +21 -8
  13. package/dist/api/correction-invoices-api.js +21 -11
  14. package/dist/api/estimated-invoices-api.d.ts +17 -9
  15. package/dist/api/estimated-invoices-api.js +17 -9
  16. package/dist/api/initial-invoices-api.d.ts +21 -8
  17. package/dist/api/initial-invoices-api.js +21 -11
  18. package/dist/api/invoices-api.d.ts +95 -87
  19. package/dist/api/invoices-api.js +53 -45
  20. package/dist/api/recurring-invoices-api.d.ts +21 -8
  21. package/dist/api/recurring-invoices-api.js +21 -11
  22. package/dist/api.d.ts +1 -5
  23. package/dist/api.js +1 -7
  24. package/dist/base.d.ts +4 -3
  25. package/dist/base.js +5 -4
  26. package/dist/common.d.ts +2 -2
  27. package/dist/common.js +1 -1
  28. package/dist/configuration.d.ts +1 -1
  29. package/dist/configuration.js +1 -1
  30. package/dist/index.d.ts +2 -2
  31. package/dist/index.js +3 -2
  32. package/dist/models/create-correction-invoices-response-class.d.ts +5 -5
  33. package/dist/models/create-correction-invoices-response-class.js +1 -1
  34. package/dist/models/create-custom-estimated-invoice-request-dto.d.ts +3 -3
  35. package/dist/models/create-custom-estimated-invoice-request-dto.js +1 -1
  36. package/dist/models/create-custom-estimated-invoice-response-class.d.ts +1 -1
  37. package/dist/models/create-custom-estimated-invoice-response-class.js +1 -1
  38. package/dist/models/create-estimated-invoice-request-dto.d.ts +3 -3
  39. package/dist/models/create-estimated-invoice-request-dto.js +1 -1
  40. package/dist/models/create-estimated-invoice-response-class.d.ts +3 -3
  41. package/dist/models/create-estimated-invoice-response-class.js +1 -1
  42. package/dist/models/create-invoice-request-dto.d.ts +16 -14
  43. package/dist/models/create-invoice-request-dto.js +4 -2
  44. package/dist/models/create-invoice-response-class.d.ts +5 -5
  45. package/dist/models/create-invoice-response-class.js +1 -1
  46. package/dist/models/create-invoice-status-request-dto.d.ts +35 -0
  47. package/dist/models/create-invoice-status-request-dto.js +20 -0
  48. package/dist/models/create-termination-invoice-request-dto.d.ts +48 -0
  49. package/dist/models/create-termination-invoice-request-dto.js +15 -0
  50. package/dist/models/currency-class.d.ts +48 -0
  51. package/dist/models/currency-class.js +15 -0
  52. package/dist/models/index.d.ts +7 -0
  53. package/dist/models/index.js +7 -0
  54. package/dist/models/invoice-class.d.ts +50 -20
  55. package/dist/models/invoice-class.js +16 -1
  56. package/dist/models/invoice-item-class.d.ts +26 -17
  57. package/dist/models/invoice-item-class.js +10 -1
  58. package/dist/models/invoice-status-class.d.ts +47 -0
  59. package/dist/models/invoice-status-class.js +20 -0
  60. package/dist/models/list-invoices-response-class.d.ts +3 -3
  61. package/dist/models/list-invoices-response-class.js +1 -1
  62. package/dist/models/list-policies-billing-dates-response-class.d.ts +6 -5
  63. package/dist/models/list-policies-billing-dates-response-class.js +1 -1
  64. package/dist/models/list-request-dto.d.ts +1 -1
  65. package/dist/models/list-request-dto.js +1 -1
  66. package/dist/models/omit-type-class.d.ts +144 -0
  67. package/dist/models/omit-type-class.js +30 -0
  68. package/dist/models/policy-billing-date-class.d.ts +42 -0
  69. package/dist/models/policy-billing-date-class.js +15 -0
  70. package/dist/models/policy-dto.d.ts +62 -25
  71. package/dist/models/policy-dto.js +8 -1
  72. package/dist/models/policy-object-dto.d.ts +10 -10
  73. package/dist/models/policy-object-dto.js +1 -1
  74. package/dist/models/policy-premium-dto.d.ts +12 -12
  75. package/dist/models/policy-premium-dto.js +1 -1
  76. package/dist/models/policy-premium-item-dto.d.ts +20 -14
  77. package/dist/models/policy-premium-item-dto.js +1 -1
  78. package/dist/models/policy-version-dto.d.ts +17 -17
  79. package/dist/models/policy-version-dto.js +1 -1
  80. package/dist/models/premium-formula-dto.d.ts +20 -20
  81. package/dist/models/premium-formula-dto.js +1 -1
  82. package/dist/models/revert-invoice-request-dto.d.ts +24 -0
  83. package/dist/models/revert-invoice-request-dto.js +15 -0
  84. package/dist/models/timeslice-dto.d.ts +13 -13
  85. package/dist/models/timeslice-dto.js +1 -1
  86. package/index.ts +2 -2
  87. package/models/create-correction-invoices-response-class.ts +5 -5
  88. package/models/create-custom-estimated-invoice-request-dto.ts +3 -3
  89. package/models/create-custom-estimated-invoice-response-class.ts +1 -1
  90. package/models/create-estimated-invoice-request-dto.ts +3 -3
  91. package/models/create-estimated-invoice-response-class.ts +3 -3
  92. package/models/create-invoice-request-dto.ts +17 -15
  93. package/models/create-invoice-response-class.ts +5 -5
  94. package/models/create-invoice-status-request-dto.ts +44 -0
  95. package/models/create-termination-invoice-request-dto.ts +54 -0
  96. package/models/currency-class.ts +54 -0
  97. package/models/index.ts +7 -0
  98. package/models/invoice-class.ts +54 -20
  99. package/models/invoice-item-class.ts +29 -17
  100. package/models/invoice-status-class.ts +56 -0
  101. package/models/list-invoices-response-class.ts +3 -3
  102. package/models/list-policies-billing-dates-response-class.ts +6 -5
  103. package/models/list-request-dto.ts +1 -1
  104. package/models/omit-type-class.ts +154 -0
  105. package/models/policy-billing-date-class.ts +48 -0
  106. package/models/policy-dto.ts +65 -25
  107. package/models/policy-object-dto.ts +10 -10
  108. package/models/policy-premium-dto.ts +12 -12
  109. package/models/policy-premium-item-dto.ts +20 -14
  110. package/models/policy-version-dto.ts +17 -17
  111. package/models/premium-formula-dto.ts +20 -20
  112. package/models/revert-invoice-request-dto.ts +30 -0
  113. package/models/timeslice-dto.ts +13 -13
  114. 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
@@ -93,13 +93,15 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
93
93
  var _this = this;
94
94
  return {
95
95
  /**
96
- *
96
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
97
+ * @summary Create the recurring invoice
97
98
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
98
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.
99
101
  * @param {*} [options] Override http request option.
100
102
  * @throws {RequiredError}
101
103
  */
102
- createRecurringInvoice: function (createInvoiceRequestDto, authorization, options) {
104
+ createRecurringInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
103
105
  if (options === void 0) { options = {}; }
104
106
  return __awaiter(_this, void 0, void 0, function () {
105
107
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -127,6 +129,9 @@ var RecurringInvoicesApiAxiosParamCreator = function (configuration) {
127
129
  if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
128
130
  localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
129
131
  }
132
+ if (idempotencyKey !== undefined && idempotencyKey !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
133
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey ? idempotencyKey : baseAccessToken);
134
+ }
130
135
  localVarHeaderParameter['Content-Type'] = 'application/json';
131
136
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
137
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -151,18 +156,20 @@ var RecurringInvoicesApiFp = function (configuration) {
151
156
  var localVarAxiosParamCreator = (0, exports.RecurringInvoicesApiAxiosParamCreator)(configuration);
152
157
  return {
153
158
  /**
154
- *
159
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
160
+ * @summary Create the recurring invoice
155
161
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
156
162
  * @param {string} [authorization] Bearer Token
163
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
157
164
  * @param {*} [options] Override http request option.
158
165
  * @throws {RequiredError}
159
166
  */
160
- createRecurringInvoice: function (createInvoiceRequestDto, authorization, options) {
167
+ createRecurringInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
161
168
  return __awaiter(this, void 0, void 0, function () {
162
169
  var localVarAxiosArgs;
163
170
  return __generator(this, function (_a) {
164
171
  switch (_a.label) {
165
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, options)];
172
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options)];
166
173
  case 1:
167
174
  localVarAxiosArgs = _a.sent();
168
175
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -181,14 +188,16 @@ var RecurringInvoicesApiFactory = function (configuration, basePath, axios) {
181
188
  var localVarFp = (0, exports.RecurringInvoicesApiFp)(configuration);
182
189
  return {
183
190
  /**
184
- *
191
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
192
+ * @summary Create the recurring invoice
185
193
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
186
194
  * @param {string} [authorization] Bearer Token
195
+ * @param {string} [idempotencyKey] Idempotency Key used to make the request idempotent. The key should be unique. Usually, a generated v4 UUID is enough.
187
196
  * @param {*} [options] Override http request option.
188
197
  * @throws {RequiredError}
189
198
  */
190
- createRecurringInvoice: function (createInvoiceRequestDto, authorization, options) {
191
- return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
199
+ createRecurringInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
200
+ return localVarFp.createRecurringInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
192
201
  },
193
202
  };
194
203
  };
@@ -205,7 +214,8 @@ var RecurringInvoicesApi = /** @class */ (function (_super) {
205
214
  return _super !== null && _super.apply(this, arguments) || this;
206
215
  }
207
216
  /**
208
- *
217
+ * This will create recurring invoice. It will be generated on a cyclical basis during the lifetime of a policy.
218
+ * @summary Create the recurring invoice
209
219
  * @param {RecurringInvoicesApiCreateRecurringInvoiceRequest} requestParameters Request parameters.
210
220
  * @param {*} [options] Override http request option.
211
221
  * @throws {RequiredError}
@@ -213,7 +223,7 @@ var RecurringInvoicesApi = /** @class */ (function (_super) {
213
223
  */
214
224
  RecurringInvoicesApi.prototype.createRecurringInvoice = function (requestParameters, options) {
215
225
  var _this = this;
216
- return (0, exports.RecurringInvoicesApiFp)(this.configuration).createRecurringInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
226
+ return (0, exports.RecurringInvoicesApiFp)(this.configuration).createRecurringInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
217
227
  };
218
228
  return RecurringInvoicesApi;
219
229
  }(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
  /**
@@ -53,7 +54,7 @@ export declare class BaseAPI {
53
54
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
54
55
  selectEnvironment(env: Environment): void;
55
56
  authorize(username: string, password: string): Promise<void>;
56
- refreshToken(): Promise<string>;
57
+ refreshTokenInternal(): Promise<string>;
57
58
  private storeTokenData;
58
59
  loadTokenData(): void;
59
60
  cleanTokenData(): void;
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
@@ -99,6 +99,7 @@ var Environment;
99
99
  (function (Environment) {
100
100
  Environment["Production"] = "https://apiv2.emil.de";
101
101
  Environment["Test"] = "https://apiv2-test.emil.de";
102
+ Environment["Development"] = "https://apiv2-dev.emil.de";
102
103
  })(Environment = exports.Environment || (exports.Environment = {}));
103
104
  var _retry_count = 0;
104
105
  var _retry = null;
@@ -167,7 +168,7 @@ var BaseAPI = /** @class */ (function () {
167
168
  });
168
169
  });
169
170
  };
170
- BaseAPI.prototype.refreshToken = function () {
171
+ BaseAPI.prototype.refreshTokenInternal = function () {
171
172
  return __awaiter(this, void 0, void 0, function () {
172
173
  var username, options, accessToken;
173
174
  return __generator(this, function (_a) {
@@ -224,7 +225,7 @@ var BaseAPI = /** @class */ (function () {
224
225
  _a.label = 1;
225
226
  case 1:
226
227
  _a.trys.push([1, 3, , 4]);
227
- return [4 /*yield*/, this.refreshToken()];
228
+ return [4 /*yield*/, this.refreshTokenInternal()];
228
229
  case 2:
229
230
  tokenString = _a.sent();
230
231
  accessToken = "Bearer ".concat(tokenString);
@@ -249,7 +250,7 @@ var BaseAPI = /** @class */ (function () {
249
250
  _a.label = 6;
250
251
  case 6:
251
252
  _a.trys.push([6, 8, , 9]);
252
- return [4 /*yield*/, this.refreshToken()];
253
+ return [4 /*yield*/, this.refreshTokenInternal()];
253
254
  case 7:
254
255
  tokenString = _a.sent();
255
256
  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
@@ -68,7 +68,7 @@ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios
68
68
  * The EMIL BillingService API description
69
69
  *
70
70
  * The version of the OpenAPI document: 1.0
71
- *
71
+ * Contact: kontakt@emil.de
72
72
  *
73
73
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
74
74
  * https://openapi-generator.tech
package/dist/common.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
@@ -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
@@ -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
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 { InvoiceClass } from './invoice-class';
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 {Array<InvoiceClass>}
20
+ * Correction invoices response.
21
+ * @type {OmitTypeClass}
22
22
  * @memberof CreateCorrectionInvoicesResponseClass
23
23
  */
24
- 'invoices': Array<InvoiceClass>;
24
+ 'invoices': OmitTypeClass;
25
25
  }
@@ -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
@@ -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
- * Customer custom data for premium calculation
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
  */
@@ -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
@@ -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
@@ -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
@@ -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
- * metadata
26
+ * Metadata contains extra information that the object would need for specific cases.
27
27
  * @type {object}
28
28
  * @memberof CreateEstimatedInvoiceRequestDto
29
29
  */
@@ -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
@@ -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
- * Recurring invoice response
20
+ * Estimated invoice response.
21
21
  * @type {InvoiceClass}
22
22
  * @memberof CreateEstimatedInvoiceResponseClass
23
23
  */
24
24
  'invoice': InvoiceClass;
25
25
  /**
26
- * Recurring invoice response
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
  */
@@ -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
@@ -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
- * Invoice number
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
- * account number
25
+ * Account number.
26
26
  * @type {string}
27
27
  * @memberof CreateInvoiceRequestDto
28
28
  */
29
29
  'accountNumber': string;
30
30
  /**
31
- * Policy code
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
- * metadata
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
- * Interval from date
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
- * Interval to date
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 { InvoiceClass } from './invoice-class';
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
- * Recurring invoice response
21
- * @type {InvoiceClass}
20
+ * Invoice response.
21
+ * @type {OmitTypeClass}
22
22
  * @memberof CreateInvoiceResponseClass
23
23
  */
24
- 'invoice': InvoiceClass;
24
+ 'invoice': OmitTypeClass;
25
25
  }
@@ -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
@@ -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];