@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.
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 +6 -5
  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 +6 -5
  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
@@ -97,13 +97,15 @@ var CorrectionInvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
101
+ * @summary Create the correction 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
- createCorrectionInvoice: function (createInvoiceRequestDto, authorization, options) {
108
+ createCorrectionInvoice: 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 CorrectionInvoicesApiAxiosParamCreator = 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 CorrectionInvoicesApiFp = function (configuration) {
155
160
  var localVarAxiosParamCreator = (0, exports.CorrectionInvoicesApiAxiosParamCreator)(configuration);
156
161
  return {
157
162
  /**
158
- *
163
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
164
+ * @summary Create the correction 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
- createCorrectionInvoice: function (createInvoiceRequestDto, authorization, options) {
171
+ createCorrectionInvoice: 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.createCorrectionInvoice(createInvoiceRequestDto, authorization, options)];
176
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createCorrectionInvoice(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 CorrectionInvoicesApiFactory = function (configuration, basePath, axios) {
185
192
  var localVarFp = (0, exports.CorrectionInvoicesApiFp)(configuration);
186
193
  return {
187
194
  /**
188
- *
195
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
196
+ * @summary Create the correction 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
- createCorrectionInvoice: function (createInvoiceRequestDto, authorization, options) {
195
- return localVarFp.createCorrectionInvoice(createInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
203
+ createCorrectionInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
204
+ return localVarFp.createCorrectionInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
196
205
  },
197
206
  };
198
207
  };
@@ -209,7 +218,8 @@ var CorrectionInvoicesApi = /** @class */ (function (_super) {
209
218
  return _super !== null && _super.apply(this, arguments) || this;
210
219
  }
211
220
  /**
212
- *
221
+ * This will create a correction invoice. That will be generated on policy update which affects the price, These invoices usually are positive or negative value. The main purpose of this invoices is to recalculate the customer invoices and be created if any price difference.
222
+ * @summary Create the correction invoice
213
223
  * @param {CorrectionInvoicesApiCreateCorrectionInvoiceRequest} requestParameters Request parameters.
214
224
  * @param {*} [options] Override http request option.
215
225
  * @throws {RequiredError}
@@ -217,7 +227,7 @@ var CorrectionInvoicesApi = /** @class */ (function (_super) {
217
227
  */
218
228
  CorrectionInvoicesApi.prototype.createCorrectionInvoice = function (requestParameters, options) {
219
229
  var _this = this;
220
- return (0, exports.CorrectionInvoicesApiFp)(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
230
+ return (0, exports.CorrectionInvoicesApiFp)(this.configuration).createCorrectionInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
221
231
  };
222
232
  return CorrectionInvoicesApi;
223
233
  }(base_1.BaseAPI));
@@ -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
@@ -22,7 +22,8 @@ import { CreateEstimatedInvoiceResponseClass } from '../models';
22
22
  */
23
23
  export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
24
24
  /**
25
- *
25
+ * This will create a custom estimated invoice.
26
+ * @summary Create the custom estimated invoice
26
27
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
27
28
  * @param {string} [authorization] Bearer Token
28
29
  * @param {*} [options] Override http request option.
@@ -30,7 +31,8 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
30
31
  */
31
32
  createCustomEstimatedInvoice: (createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
33
  /**
33
- *
34
+ * This will create an estimated invoice. It will not be saved in the database.
35
+ * @summary Create the estimated invoice
34
36
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
35
37
  * @param {string} [authorization] Bearer Token
36
38
  * @param {*} [options] Override http request option.
@@ -44,7 +46,8 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
44
46
  */
45
47
  export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) => {
46
48
  /**
47
- *
49
+ * This will create a custom estimated invoice.
50
+ * @summary Create the custom estimated invoice
48
51
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
49
52
  * @param {string} [authorization] Bearer Token
50
53
  * @param {*} [options] Override http request option.
@@ -52,7 +55,8 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
52
55
  */
53
56
  createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>>;
54
57
  /**
55
- *
58
+ * This will create an estimated invoice. It will not be saved in the database.
59
+ * @summary Create the estimated invoice
56
60
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
57
61
  * @param {string} [authorization] Bearer Token
58
62
  * @param {*} [options] Override http request option.
@@ -66,7 +70,8 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
66
70
  */
67
71
  export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
68
72
  /**
69
- *
73
+ * This will create a custom estimated invoice.
74
+ * @summary Create the custom estimated invoice
70
75
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
71
76
  * @param {string} [authorization] Bearer Token
72
77
  * @param {*} [options] Override http request option.
@@ -74,7 +79,8 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
74
79
  */
75
80
  createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto: CreateCustomEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateCustomEstimatedInvoiceResponseClass>;
76
81
  /**
77
- *
82
+ * This will create an estimated invoice. It will not be saved in the database.
83
+ * @summary Create the estimated invoice
78
84
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
79
85
  * @param {string} [authorization] Bearer Token
80
86
  * @param {*} [options] Override http request option.
@@ -128,7 +134,8 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceRequest {
128
134
  */
129
135
  export declare class EstimatedInvoicesApi extends BaseAPI {
130
136
  /**
131
- *
137
+ * This will create a custom estimated invoice.
138
+ * @summary Create the custom estimated invoice
132
139
  * @param {EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest} requestParameters Request parameters.
133
140
  * @param {*} [options] Override http request option.
134
141
  * @throws {RequiredError}
@@ -136,7 +143,8 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
136
143
  */
137
144
  createCustomEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateCustomEstimatedInvoiceResponseClass, any>>;
138
145
  /**
139
- *
146
+ * This will create an estimated invoice. It will not be saved in the database.
147
+ * @summary Create the estimated invoice
140
148
  * @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
141
149
  * @param {*} [options] Override http request option.
142
150
  * @throws {RequiredError}
@@ -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,7 +97,8 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * This will create a custom estimated invoice.
101
+ * @summary Create the custom estimated invoice
101
102
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
102
103
  * @param {string} [authorization] Bearer Token
103
104
  * @param {*} [options] Override http request option.
@@ -145,7 +146,8 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
145
146
  });
146
147
  },
147
148
  /**
148
- *
149
+ * This will create an estimated invoice. It will not be saved in the database.
150
+ * @summary Create the estimated invoice
149
151
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
150
152
  * @param {string} [authorization] Bearer Token
151
153
  * @param {*} [options] Override http request option.
@@ -203,7 +205,8 @@ var EstimatedInvoicesApiFp = function (configuration) {
203
205
  var localVarAxiosParamCreator = (0, exports.EstimatedInvoicesApiAxiosParamCreator)(configuration);
204
206
  return {
205
207
  /**
206
- *
208
+ * This will create a custom estimated invoice.
209
+ * @summary Create the custom estimated invoice
207
210
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
208
211
  * @param {string} [authorization] Bearer Token
209
212
  * @param {*} [options] Override http request option.
@@ -223,7 +226,8 @@ var EstimatedInvoicesApiFp = function (configuration) {
223
226
  });
224
227
  },
225
228
  /**
226
- *
229
+ * This will create an estimated invoice. It will not be saved in the database.
230
+ * @summary Create the estimated invoice
227
231
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
228
232
  * @param {string} [authorization] Bearer Token
229
233
  * @param {*} [options] Override http request option.
@@ -253,7 +257,8 @@ var EstimatedInvoicesApiFactory = function (configuration, basePath, axios) {
253
257
  var localVarFp = (0, exports.EstimatedInvoicesApiFp)(configuration);
254
258
  return {
255
259
  /**
256
- *
260
+ * This will create a custom estimated invoice.
261
+ * @summary Create the custom estimated invoice
257
262
  * @param {CreateCustomEstimatedInvoiceRequestDto} createCustomEstimatedInvoiceRequestDto
258
263
  * @param {string} [authorization] Bearer Token
259
264
  * @param {*} [options] Override http request option.
@@ -263,7 +268,8 @@ var EstimatedInvoicesApiFactory = function (configuration, basePath, axios) {
263
268
  return localVarFp.createCustomEstimatedInvoice(createCustomEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
264
269
  },
265
270
  /**
266
- *
271
+ * This will create an estimated invoice. It will not be saved in the database.
272
+ * @summary Create the estimated invoice
267
273
  * @param {CreateEstimatedInvoiceRequestDto} createEstimatedInvoiceRequestDto
268
274
  * @param {string} [authorization] Bearer Token
269
275
  * @param {*} [options] Override http request option.
@@ -287,7 +293,8 @@ var EstimatedInvoicesApi = /** @class */ (function (_super) {
287
293
  return _super !== null && _super.apply(this, arguments) || this;
288
294
  }
289
295
  /**
290
- *
296
+ * This will create a custom estimated invoice.
297
+ * @summary Create the custom estimated invoice
291
298
  * @param {EstimatedInvoicesApiCreateCustomEstimatedInvoiceRequest} requestParameters Request parameters.
292
299
  * @param {*} [options] Override http request option.
293
300
  * @throws {RequiredError}
@@ -298,7 +305,8 @@ var EstimatedInvoicesApi = /** @class */ (function (_super) {
298
305
  return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createCustomEstimatedInvoice(requestParameters.createCustomEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
299
306
  };
300
307
  /**
301
- *
308
+ * This will create an estimated invoice. It will not be saved in the database.
309
+ * @summary Create the estimated invoice
302
310
  * @param {EstimatedInvoicesApiCreateEstimatedInvoiceRequest} requestParameters Request parameters.
303
311
  * @param {*} [options] Override http request option.
304
312
  * @throws {RequiredError}
@@ -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
@@ -20,13 +20,15 @@ import { CreateInvoiceResponseClass } from '../models';
20
20
  */
21
21
  export declare const InitialInvoicesApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
- *
23
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
24
+ * @summary Create the initial invoice
24
25
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
25
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.
26
28
  * @param {*} [options] Override http request option.
27
29
  * @throws {RequiredError}
28
30
  */
29
- createInitialInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ createInitialInvoice: (createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
30
32
  };
31
33
  /**
32
34
  * InitialInvoicesApi - functional programming interface
@@ -34,13 +36,15 @@ export declare const InitialInvoicesApiAxiosParamCreator: (configuration?: Confi
34
36
  */
35
37
  export declare const InitialInvoicesApiFp: (configuration?: Configuration) => {
36
38
  /**
37
- *
39
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
40
+ * @summary Create the initial invoice
38
41
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
39
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.
40
44
  * @param {*} [options] Override http request option.
41
45
  * @throws {RequiredError}
42
46
  */
43
- createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
47
+ createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInvoiceResponseClass>>;
44
48
  };
45
49
  /**
46
50
  * InitialInvoicesApi - factory interface
@@ -48,13 +52,15 @@ export declare const InitialInvoicesApiFp: (configuration?: Configuration) => {
48
52
  */
49
53
  export declare const InitialInvoicesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
50
54
  /**
51
- *
55
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
56
+ * @summary Create the initial invoice
52
57
  * @param {CreateInvoiceRequestDto} createInvoiceRequestDto
53
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.
54
60
  * @param {*} [options] Override http request option.
55
61
  * @throws {RequiredError}
56
62
  */
57
- createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
63
+ createInitialInvoice(createInvoiceRequestDto: CreateInvoiceRequestDto, authorization?: string, idempotencyKey?: string, options?: any): AxiosPromise<CreateInvoiceResponseClass>;
58
64
  };
59
65
  /**
60
66
  * Request parameters for createInitialInvoice operation in InitialInvoicesApi.
@@ -74,6 +80,12 @@ export interface InitialInvoicesApiCreateInitialInvoiceRequest {
74
80
  * @memberof InitialInvoicesApiCreateInitialInvoice
75
81
  */
76
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 InitialInvoicesApiCreateInitialInvoice
87
+ */
88
+ readonly idempotencyKey?: string;
77
89
  }
78
90
  /**
79
91
  * InitialInvoicesApi - object-oriented interface
@@ -83,7 +95,8 @@ export interface InitialInvoicesApiCreateInitialInvoiceRequest {
83
95
  */
84
96
  export declare class InitialInvoicesApi extends BaseAPI {
85
97
  /**
86
- *
98
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
99
+ * @summary Create the initial invoice
87
100
  * @param {InitialInvoicesApiCreateInitialInvoiceRequest} requestParameters Request parameters.
88
101
  * @param {*} [options] Override http request option.
89
102
  * @throws {RequiredError}
@@ -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 InitialInvoicesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
99
  /**
100
- *
100
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
101
+ * @summary Create the initial 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
- createInitialInvoice: function (createInvoiceRequestDto, authorization, options) {
108
+ createInitialInvoice: 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 InitialInvoicesApiAxiosParamCreator = 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 InitialInvoicesApiFp = function (configuration) {
155
160
  var localVarAxiosParamCreator = (0, exports.InitialInvoicesApiAxiosParamCreator)(configuration);
156
161
  return {
157
162
  /**
158
- *
163
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
164
+ * @summary Create the initial 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
- createInitialInvoice: function (createInvoiceRequestDto, authorization, options) {
171
+ createInitialInvoice: 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.createInitialInvoice(createInvoiceRequestDto, authorization, options)];
176
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createInitialInvoice(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 InitialInvoicesApiFactory = function (configuration, basePath, axios) {
185
192
  var localVarFp = (0, exports.InitialInvoicesApiFp)(configuration);
186
193
  return {
187
194
  /**
188
- *
195
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
196
+ * @summary Create the initial 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
- createInitialInvoice: function (createInvoiceRequestDto, authorization, options) {
195
- return localVarFp.createInitialInvoice(createInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
203
+ createInitialInvoice: function (createInvoiceRequestDto, authorization, idempotencyKey, options) {
204
+ return localVarFp.createInitialInvoice(createInvoiceRequestDto, authorization, idempotencyKey, options).then(function (request) { return request(axios, basePath); });
196
205
  },
197
206
  };
198
207
  };
@@ -209,7 +218,8 @@ var InitialInvoicesApi = /** @class */ (function (_super) {
209
218
  return _super !== null && _super.apply(this, arguments) || this;
210
219
  }
211
220
  /**
212
- *
221
+ * This will create an initial invoice. It will be created once a policy is approved and it will cover a partial until the issuing of the regular invoice.
222
+ * @summary Create the initial invoice
213
223
  * @param {InitialInvoicesApiCreateInitialInvoiceRequest} requestParameters Request parameters.
214
224
  * @param {*} [options] Override http request option.
215
225
  * @throws {RequiredError}
@@ -217,7 +227,7 @@ var InitialInvoicesApi = /** @class */ (function (_super) {
217
227
  */
218
228
  InitialInvoicesApi.prototype.createInitialInvoice = function (requestParameters, options) {
219
229
  var _this = this;
220
- return (0, exports.InitialInvoicesApiFp)(this.configuration).createInitialInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
230
+ return (0, exports.InitialInvoicesApiFp)(this.configuration).createInitialInvoice(requestParameters.createInvoiceRequestDto, requestParameters.authorization, requestParameters.idempotencyKey, options).then(function (request) { return request(_this.axios, _this.basePath); });
221
231
  };
222
232
  return InitialInvoicesApi;
223
233
  }(base_1.BaseAPI));