@emilgroup/billing-sdk-node 1.55.1-beta.7 → 1.57.0

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.
@@ -33,6 +33,8 @@ models/create-invoice-status-request-dto.ts
33
33
  models/create-item-request-dto.ts
34
34
  models/create-policy-billing-request-dto.ts
35
35
  models/create-policy-billing-response-class.ts
36
+ models/create-product-estimated-invoice-request-dto.ts
37
+ models/create-product-estimated-invoice-response-class.ts
36
38
  models/create-termination-invoice-request-dto.ts
37
39
  models/get-invoice-response-class.ts
38
40
  models/index.ts
@@ -54,6 +56,8 @@ models/policy-premium-dto.ts
54
56
  models/policy-premium-item-dto.ts
55
57
  models/policy-version-dto.ts
56
58
  models/premium-formula-dto.ts
59
+ models/premium-override-dto.ts
60
+ models/premium-override-request-dto.ts
57
61
  models/revert-invoice-request-dto.ts
58
62
  models/timeslice-dto.ts
59
63
  models/update-policy-billing-request-dto.ts
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/billing-sdk-node@1.55.1-beta.7 --save
20
+ npm install @emilgroup/billing-sdk-node@1.57.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/billing-sdk-node@1.55.1-beta.7
24
+ yarn add @emilgroup/billing-sdk-node@1.57.0
25
25
  ```
26
26
 
27
27
  And then you can import `InvoicesApi`.
@@ -32,6 +32,10 @@ import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
32
32
  import { CreateEstimatedInvoiceRequestDto } from '../models';
33
33
  // @ts-ignore
34
34
  import { CreateEstimatedInvoiceResponseClass } from '../models';
35
+ // @ts-ignore
36
+ import { CreateProductEstimatedInvoiceRequestDto } from '../models';
37
+ // @ts-ignore
38
+ import { CreateProductEstimatedInvoiceResponseClass } from '../models';
35
39
  // URLSearchParams not necessarily used
36
40
  // @ts-ignore
37
41
  import { URL, URLSearchParams } from 'url';
@@ -178,6 +182,57 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
178
182
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
179
183
  localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceForIntervalRequestDto, localVarRequestOptions, configuration)
180
184
 
185
+ return {
186
+ url: toPathString(localVarUrlObj),
187
+ options: localVarRequestOptions,
188
+ };
189
+ },
190
+ /**
191
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
192
+ * @summary Create the estimated invoice
193
+ * @param {string} productSlug
194
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
195
+ * @param {string} [authorization] Bearer Token
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ createProductEstimatedInvoice: async (productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
+ // verify required parameter 'productSlug' is not null or undefined
201
+ assertParamExists('createProductEstimatedInvoice', 'productSlug', productSlug)
202
+ // verify required parameter 'createProductEstimatedInvoiceRequestDto' is not null or undefined
203
+ assertParamExists('createProductEstimatedInvoice', 'createProductEstimatedInvoiceRequestDto', createProductEstimatedInvoiceRequestDto)
204
+ const localVarPath = `/billingservice/v1/estimated-invoices/{productSlug}/product-invoice`
205
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
206
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
207
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
208
+ let baseOptions;
209
+ let baseAccessToken;
210
+ if (configuration) {
211
+ baseOptions = configuration.baseOptions;
212
+ baseAccessToken = configuration.accessToken;
213
+ }
214
+
215
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
216
+ const localVarHeaderParameter = {} as any;
217
+ const localVarQueryParameter = {} as any;
218
+
219
+ // authentication bearer required
220
+ // http bearer authentication required
221
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
222
+
223
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
224
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
225
+ }
226
+
227
+
228
+
229
+ localVarHeaderParameter['Content-Type'] = 'application/json';
230
+
231
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
232
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
233
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
234
+ localVarRequestOptions.data = serializeDataIfNeeded(createProductEstimatedInvoiceRequestDto, localVarRequestOptions, configuration)
235
+
181
236
  return {
182
237
  url: toPathString(localVarUrlObj),
183
238
  options: localVarRequestOptions,
@@ -229,6 +284,19 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
229
284
  const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options);
230
285
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
231
286
  },
287
+ /**
288
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
289
+ * @summary Create the estimated invoice
290
+ * @param {string} productSlug
291
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
292
+ * @param {string} [authorization] Bearer Token
293
+ * @param {*} [options] Override http request option.
294
+ * @throws {RequiredError}
295
+ */
296
+ async createProductEstimatedInvoice(productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductEstimatedInvoiceResponseClass>> {
297
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options);
298
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
299
+ },
232
300
  }
233
301
  };
234
302
 
@@ -272,6 +340,18 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
272
340
  createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass> {
273
341
  return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then((request) => request(axios, basePath));
274
342
  },
343
+ /**
344
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
345
+ * @summary Create the estimated invoice
346
+ * @param {string} productSlug
347
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
348
+ * @param {string} [authorization] Bearer Token
349
+ * @param {*} [options] Override http request option.
350
+ * @throws {RequiredError}
351
+ */
352
+ createProductEstimatedInvoice(productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductEstimatedInvoiceResponseClass> {
353
+ return localVarFp.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
354
+ },
275
355
  };
276
356
  };
277
357
 
@@ -338,6 +418,34 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
338
418
  readonly authorization?: string
339
419
  }
340
420
 
421
+ /**
422
+ * Request parameters for createProductEstimatedInvoice operation in EstimatedInvoicesApi.
423
+ * @export
424
+ * @interface EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest
425
+ */
426
+ export interface EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest {
427
+ /**
428
+ *
429
+ * @type {string}
430
+ * @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
431
+ */
432
+ readonly productSlug: string
433
+
434
+ /**
435
+ *
436
+ * @type {CreateProductEstimatedInvoiceRequestDto}
437
+ * @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
438
+ */
439
+ readonly createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto
440
+
441
+ /**
442
+ * Bearer Token
443
+ * @type {string}
444
+ * @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
445
+ */
446
+ readonly authorization?: string
447
+ }
448
+
341
449
  /**
342
450
  * EstimatedInvoicesApi - object-oriented interface
343
451
  * @export
@@ -380,4 +488,16 @@ export class EstimatedInvoicesApi extends BaseAPI {
380
488
  public createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig) {
381
489
  return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
382
490
  }
491
+
492
+ /**
493
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
494
+ * @summary Create the estimated invoice
495
+ * @param {EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest} requestParameters Request parameters.
496
+ * @param {*} [options] Override http request option.
497
+ * @throws {RequiredError}
498
+ * @memberof EstimatedInvoicesApi
499
+ */
500
+ public createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
501
+ return EstimatedInvoicesApiFp(this.configuration).createProductEstimatedInvoice(requestParameters.productSlug, requestParameters.createProductEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
502
+ }
383
503
  }
@@ -18,6 +18,8 @@ import { CreateEstimatedInvoiceForIntervalRequestDto } from '../models';
18
18
  import { CreateEstimatedInvoiceForIntervalResponseClass } from '../models';
19
19
  import { CreateEstimatedInvoiceRequestDto } from '../models';
20
20
  import { CreateEstimatedInvoiceResponseClass } from '../models';
21
+ import { CreateProductEstimatedInvoiceRequestDto } from '../models';
22
+ import { CreateProductEstimatedInvoiceResponseClass } from '../models';
21
23
  /**
22
24
  * EstimatedInvoicesApi - axios parameter creator
23
25
  * @export
@@ -50,6 +52,16 @@ export declare const EstimatedInvoicesApiAxiosParamCreator: (configuration?: Con
50
52
  * @throws {RequiredError}
51
53
  */
52
54
  createEstimatedInvoiceFromInterval: (createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
55
+ /**
56
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
57
+ * @summary Create the estimated invoice
58
+ * @param {string} productSlug
59
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
60
+ * @param {string} [authorization] Bearer Token
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ createProductEstimatedInvoice: (productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
53
65
  };
54
66
  /**
55
67
  * EstimatedInvoicesApi - functional programming interface
@@ -83,6 +95,16 @@ export declare const EstimatedInvoicesApiFp: (configuration?: Configuration) =>
83
95
  * @throws {RequiredError}
84
96
  */
85
97
  createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>>;
98
+ /**
99
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
100
+ * @summary Create the estimated invoice
101
+ * @param {string} productSlug
102
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
103
+ * @param {string} [authorization] Bearer Token
104
+ * @param {*} [options] Override http request option.
105
+ * @throws {RequiredError}
106
+ */
107
+ createProductEstimatedInvoice(productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductEstimatedInvoiceResponseClass>>;
86
108
  };
87
109
  /**
88
110
  * EstimatedInvoicesApi - factory interface
@@ -116,6 +138,16 @@ export declare const EstimatedInvoicesApiFactory: (configuration?: Configuration
116
138
  * @throws {RequiredError}
117
139
  */
118
140
  createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass>;
141
+ /**
142
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
143
+ * @summary Create the estimated invoice
144
+ * @param {string} productSlug
145
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
146
+ * @param {string} [authorization] Bearer Token
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ createProductEstimatedInvoice(productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductEstimatedInvoiceResponseClass>;
119
151
  };
120
152
  /**
121
153
  * Request parameters for createCustomEstimatedInvoice operation in EstimatedInvoicesApi.
@@ -174,6 +206,31 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
174
206
  */
175
207
  readonly authorization?: string;
176
208
  }
209
+ /**
210
+ * Request parameters for createProductEstimatedInvoice operation in EstimatedInvoicesApi.
211
+ * @export
212
+ * @interface EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest
213
+ */
214
+ export interface EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest {
215
+ /**
216
+ *
217
+ * @type {string}
218
+ * @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
219
+ */
220
+ readonly productSlug: string;
221
+ /**
222
+ *
223
+ * @type {CreateProductEstimatedInvoiceRequestDto}
224
+ * @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
225
+ */
226
+ readonly createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto;
227
+ /**
228
+ * Bearer Token
229
+ * @type {string}
230
+ * @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
231
+ */
232
+ readonly authorization?: string;
233
+ }
177
234
  /**
178
235
  * EstimatedInvoicesApi - object-oriented interface
179
236
  * @export
@@ -208,4 +265,13 @@ export declare class EstimatedInvoicesApi extends BaseAPI {
208
265
  * @memberof EstimatedInvoicesApi
209
266
  */
210
267
  createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateEstimatedInvoiceForIntervalResponseClass, any, {}>>;
268
+ /**
269
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
270
+ * @summary Create the estimated invoice
271
+ * @param {EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest} requestParameters Request parameters.
272
+ * @param {*} [options] Override http request option.
273
+ * @throws {RequiredError}
274
+ * @memberof EstimatedInvoicesApi
275
+ */
276
+ createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateProductEstimatedInvoiceResponseClass, any, {}>>;
211
277
  }
@@ -243,6 +243,59 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
243
243
  });
244
244
  });
245
245
  },
246
+ /**
247
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
248
+ * @summary Create the estimated invoice
249
+ * @param {string} productSlug
250
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
251
+ * @param {string} [authorization] Bearer Token
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
256
+ if (options === void 0) { options = {}; }
257
+ return __awaiter(_this, void 0, void 0, function () {
258
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
259
+ return __generator(this, function (_a) {
260
+ switch (_a.label) {
261
+ case 0:
262
+ // verify required parameter 'productSlug' is not null or undefined
263
+ (0, common_1.assertParamExists)('createProductEstimatedInvoice', 'productSlug', productSlug);
264
+ // verify required parameter 'createProductEstimatedInvoiceRequestDto' is not null or undefined
265
+ (0, common_1.assertParamExists)('createProductEstimatedInvoice', 'createProductEstimatedInvoiceRequestDto', createProductEstimatedInvoiceRequestDto);
266
+ localVarPath = "/billingservice/v1/estimated-invoices/{productSlug}/product-invoice"
267
+ .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
268
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
269
+ if (configuration) {
270
+ baseOptions = configuration.baseOptions;
271
+ baseAccessToken = configuration.accessToken;
272
+ }
273
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
274
+ localVarHeaderParameter = {};
275
+ localVarQueryParameter = {};
276
+ // authentication bearer required
277
+ // http bearer authentication required
278
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
279
+ case 1:
280
+ // authentication bearer required
281
+ // http bearer authentication required
282
+ _a.sent();
283
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
284
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
285
+ }
286
+ localVarHeaderParameter['Content-Type'] = 'application/json';
287
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
288
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
289
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
290
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductEstimatedInvoiceRequestDto, localVarRequestOptions, configuration);
291
+ return [2 /*return*/, {
292
+ url: (0, common_1.toPathString)(localVarUrlObj),
293
+ options: localVarRequestOptions,
294
+ }];
295
+ }
296
+ });
297
+ });
298
+ },
246
299
  };
247
300
  };
248
301
  exports.EstimatedInvoicesApiAxiosParamCreator = EstimatedInvoicesApiAxiosParamCreator;
@@ -316,6 +369,28 @@ var EstimatedInvoicesApiFp = function (configuration) {
316
369
  });
317
370
  });
318
371
  },
372
+ /**
373
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
374
+ * @summary Create the estimated invoice
375
+ * @param {string} productSlug
376
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
377
+ * @param {string} [authorization] Bearer Token
378
+ * @param {*} [options] Override http request option.
379
+ * @throws {RequiredError}
380
+ */
381
+ createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
382
+ return __awaiter(this, void 0, void 0, function () {
383
+ var localVarAxiosArgs;
384
+ return __generator(this, function (_a) {
385
+ switch (_a.label) {
386
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options)];
387
+ case 1:
388
+ localVarAxiosArgs = _a.sent();
389
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
390
+ }
391
+ });
392
+ });
393
+ },
319
394
  };
320
395
  };
321
396
  exports.EstimatedInvoicesApiFp = EstimatedInvoicesApiFp;
@@ -359,6 +434,18 @@ var EstimatedInvoicesApiFactory = function (configuration, basePath, axios) {
359
434
  createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
360
435
  return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
361
436
  },
437
+ /**
438
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
439
+ * @summary Create the estimated invoice
440
+ * @param {string} productSlug
441
+ * @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
442
+ * @param {string} [authorization] Bearer Token
443
+ * @param {*} [options] Override http request option.
444
+ * @throws {RequiredError}
445
+ */
446
+ createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
447
+ return localVarFp.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
448
+ },
362
449
  };
363
450
  };
364
451
  exports.EstimatedInvoicesApiFactory = EstimatedInvoicesApiFactory;
@@ -409,6 +496,18 @@ var EstimatedInvoicesApi = /** @class */ (function (_super) {
409
496
  var _this = this;
410
497
  return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
411
498
  };
499
+ /**
500
+ * This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
501
+ * @summary Create the estimated invoice
502
+ * @param {EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest} requestParameters Request parameters.
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ * @memberof EstimatedInvoicesApi
506
+ */
507
+ EstimatedInvoicesApi.prototype.createProductEstimatedInvoice = function (requestParameters, options) {
508
+ var _this = this;
509
+ return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createProductEstimatedInvoice(requestParameters.productSlug, requestParameters.createProductEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
510
+ };
412
511
  return EstimatedInvoicesApi;
413
512
  }(base_1.BaseAPI));
414
513
  exports.EstimatedInvoicesApi = EstimatedInvoicesApi;
@@ -0,0 +1,37 @@
1
+ /**
2
+ * EMIL BillingService
3
+ * The EMIL BillingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PolicyObjectDto } from './policy-object-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateProductEstimatedInvoiceRequestDto
17
+ */
18
+ export interface CreateProductEstimatedInvoiceRequestDto {
19
+ /**
20
+ * Product version ID.
21
+ * @type {number}
22
+ * @memberof CreateProductEstimatedInvoiceRequestDto
23
+ */
24
+ 'productVersionId'?: number;
25
+ /**
26
+ * Policy objects. This is the list of insured objects that are covered by the policy.
27
+ * @type {Array<PolicyObjectDto>}
28
+ * @memberof CreateProductEstimatedInvoiceRequestDto
29
+ */
30
+ 'policyObjects': Array<PolicyObjectDto>;
31
+ /**
32
+ * Product slug.
33
+ * @type {string}
34
+ * @memberof CreateProductEstimatedInvoiceRequestDto
35
+ */
36
+ 'productSlug': string;
37
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ /**
2
+ * EMIL BillingService
3
+ * The EMIL BillingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { InvoiceClass } from './invoice-class';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateProductEstimatedInvoiceResponseClass
17
+ */
18
+ export interface CreateProductEstimatedInvoiceResponseClass {
19
+ /**
20
+ * The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
21
+ * @type {InvoiceClass}
22
+ * @memberof CreateProductEstimatedInvoiceResponseClass
23
+ */
24
+ 'invoice': InvoiceClass;
25
+ /**
26
+ * The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
27
+ * @type {InvoiceClass}
28
+ * @memberof CreateProductEstimatedInvoiceResponseClass
29
+ */
30
+ 'yearlyInvoice': InvoiceClass;
31
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -14,6 +14,8 @@ export * from './create-invoice-status-request-dto';
14
14
  export * from './create-item-request-dto';
15
15
  export * from './create-policy-billing-request-dto';
16
16
  export * from './create-policy-billing-response-class';
17
+ export * from './create-product-estimated-invoice-request-dto';
18
+ export * from './create-product-estimated-invoice-response-class';
17
19
  export * from './create-termination-invoice-request-dto';
18
20
  export * from './get-invoice-response-class';
19
21
  export * from './inline-response200';
@@ -34,6 +36,8 @@ export * from './policy-premium-dto';
34
36
  export * from './policy-premium-item-dto';
35
37
  export * from './policy-version-dto';
36
38
  export * from './premium-formula-dto';
39
+ export * from './premium-override-dto';
40
+ export * from './premium-override-request-dto';
37
41
  export * from './revert-invoice-request-dto';
38
42
  export * from './timeslice-dto';
39
43
  export * from './update-policy-billing-request-dto';
@@ -30,6 +30,8 @@ __exportStar(require("./create-invoice-status-request-dto"), exports);
30
30
  __exportStar(require("./create-item-request-dto"), exports);
31
31
  __exportStar(require("./create-policy-billing-request-dto"), exports);
32
32
  __exportStar(require("./create-policy-billing-response-class"), exports);
33
+ __exportStar(require("./create-product-estimated-invoice-request-dto"), exports);
34
+ __exportStar(require("./create-product-estimated-invoice-response-class"), exports);
33
35
  __exportStar(require("./create-termination-invoice-request-dto"), exports);
34
36
  __exportStar(require("./get-invoice-response-class"), exports);
35
37
  __exportStar(require("./inline-response200"), exports);
@@ -50,6 +52,8 @@ __exportStar(require("./policy-premium-dto"), exports);
50
52
  __exportStar(require("./policy-premium-item-dto"), exports);
51
53
  __exportStar(require("./policy-version-dto"), exports);
52
54
  __exportStar(require("./premium-formula-dto"), exports);
55
+ __exportStar(require("./premium-override-dto"), exports);
56
+ __exportStar(require("./premium-override-request-dto"), exports);
53
57
  __exportStar(require("./revert-invoice-request-dto"), exports);
54
58
  __exportStar(require("./timeslice-dto"), exports);
55
59
  __exportStar(require("./update-policy-billing-request-dto"), exports);
@@ -0,0 +1,55 @@
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 PremiumOverrideDto
16
+ */
17
+ export interface PremiumOverrideDto {
18
+ /**
19
+ * Name of Premium.
20
+ * @type {string}
21
+ * @memberof PremiumOverrideDto
22
+ */
23
+ 'name': string;
24
+ /**
25
+ * Type of Premium that is based on time.
26
+ * @type {string}
27
+ * @memberof PremiumOverrideDto
28
+ */
29
+ 'type': PremiumOverrideDtoTypeEnum;
30
+ /**
31
+ * This is unit of Premium. Premium units are determined based on day, week, month and year.
32
+ * @type {string}
33
+ * @memberof PremiumOverrideDto
34
+ */
35
+ 'unit': PremiumOverrideDtoUnitEnum;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof PremiumOverrideDto
40
+ */
41
+ 'netPremium': number;
42
+ }
43
+ export declare const PremiumOverrideDtoTypeEnum: {
44
+ readonly Time: "time";
45
+ };
46
+ export type PremiumOverrideDtoTypeEnum = typeof PremiumOverrideDtoTypeEnum[keyof typeof PremiumOverrideDtoTypeEnum];
47
+ export declare const PremiumOverrideDtoUnitEnum: {
48
+ readonly Day: "day";
49
+ readonly Week: "week";
50
+ readonly Month: "month";
51
+ readonly Quarter: "quarter";
52
+ readonly Year: "year";
53
+ readonly OneTimePayment: "oneTimePayment";
54
+ };
55
+ export type PremiumOverrideDtoUnitEnum = typeof PremiumOverrideDtoUnitEnum[keyof typeof PremiumOverrideDtoUnitEnum];
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PremiumOverrideDtoUnitEnum = exports.PremiumOverrideDtoTypeEnum = void 0;
17
+ exports.PremiumOverrideDtoTypeEnum = {
18
+ Time: 'time'
19
+ };
20
+ exports.PremiumOverrideDtoUnitEnum = {
21
+ Day: 'day',
22
+ Week: 'week',
23
+ Month: 'month',
24
+ Quarter: 'quarter',
25
+ Year: 'year',
26
+ OneTimePayment: 'oneTimePayment'
27
+ };
@@ -0,0 +1,25 @@
1
+ /**
2
+ * EMIL BillingService
3
+ * The EMIL BillingService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { PremiumOverrideDto } from './premium-override-dto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PremiumOverrideRequestDto
17
+ */
18
+ export interface PremiumOverrideRequestDto {
19
+ /**
20
+ * Premium Override.
21
+ * @type {Array<PremiumOverrideDto>}
22
+ * @memberof PremiumOverrideRequestDto
23
+ */
24
+ 'premiumOverrides': Array<PremiumOverrideDto>;
25
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * EMIL BillingService
6
+ * The EMIL BillingService API description
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ * Contact: kontakt@emil.de
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,43 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PolicyObjectDto } from './policy-object-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateProductEstimatedInvoiceRequestDto
22
+ */
23
+ export interface CreateProductEstimatedInvoiceRequestDto {
24
+ /**
25
+ * Product version ID.
26
+ * @type {number}
27
+ * @memberof CreateProductEstimatedInvoiceRequestDto
28
+ */
29
+ 'productVersionId'?: number;
30
+ /**
31
+ * Policy objects. This is the list of insured objects that are covered by the policy.
32
+ * @type {Array<PolicyObjectDto>}
33
+ * @memberof CreateProductEstimatedInvoiceRequestDto
34
+ */
35
+ 'policyObjects': Array<PolicyObjectDto>;
36
+ /**
37
+ * Product slug.
38
+ * @type {string}
39
+ * @memberof CreateProductEstimatedInvoiceRequestDto
40
+ */
41
+ 'productSlug': string;
42
+ }
43
+
@@ -0,0 +1,37 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { InvoiceClass } from './invoice-class';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CreateProductEstimatedInvoiceResponseClass
22
+ */
23
+ export interface CreateProductEstimatedInvoiceResponseClass {
24
+ /**
25
+ * The estimated invoice response based on the current policy data. This includes the calculated invoice for the specified billing period (e.g., monthly, quarterly) as defined by the policy. The invoice contains details such as gross amount, net amount, tax amount, and other invoice-related data for the specific period the invoice is generated for.
26
+ * @type {InvoiceClass}
27
+ * @memberof CreateProductEstimatedInvoiceResponseClass
28
+ */
29
+ 'invoice': InvoiceClass;
30
+ /**
31
+ * The estimated yearly invoice response. This represents the invoice recalculated to a yearly format, standardizing the invoice values regardless of the billing frequency defined by the policy (e.g., monthly, quarterly, etc.). This yearly invoice gives an overview of the total cost for the entire year, including recalculated gross amount, net amount, tax amount, and other related invoice data, ensuring that all charges are displayed on a yearly basis. Note: If the original invoice is already set to a yearly billing frequency, the \'yearlyInvoice\' will be identical to the \'invoice\'.
32
+ * @type {InvoiceClass}
33
+ * @memberof CreateProductEstimatedInvoiceResponseClass
34
+ */
35
+ 'yearlyInvoice': InvoiceClass;
36
+ }
37
+
package/models/index.ts CHANGED
@@ -14,6 +14,8 @@ export * from './create-invoice-status-request-dto';
14
14
  export * from './create-item-request-dto';
15
15
  export * from './create-policy-billing-request-dto';
16
16
  export * from './create-policy-billing-response-class';
17
+ export * from './create-product-estimated-invoice-request-dto';
18
+ export * from './create-product-estimated-invoice-response-class';
17
19
  export * from './create-termination-invoice-request-dto';
18
20
  export * from './get-invoice-response-class';
19
21
  export * from './inline-response200';
@@ -34,6 +36,8 @@ export * from './policy-premium-dto';
34
36
  export * from './policy-premium-item-dto';
35
37
  export * from './policy-version-dto';
36
38
  export * from './premium-formula-dto';
39
+ export * from './premium-override-dto';
40
+ export * from './premium-override-request-dto';
37
41
  export * from './revert-invoice-request-dto';
38
42
  export * from './timeslice-dto';
39
43
  export * from './update-policy-billing-request-dto';
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PremiumOverrideDto
21
+ */
22
+ export interface PremiumOverrideDto {
23
+ /**
24
+ * Name of Premium.
25
+ * @type {string}
26
+ * @memberof PremiumOverrideDto
27
+ */
28
+ 'name': string;
29
+ /**
30
+ * Type of Premium that is based on time.
31
+ * @type {string}
32
+ * @memberof PremiumOverrideDto
33
+ */
34
+ 'type': PremiumOverrideDtoTypeEnum;
35
+ /**
36
+ * This is unit of Premium. Premium units are determined based on day, week, month and year.
37
+ * @type {string}
38
+ * @memberof PremiumOverrideDto
39
+ */
40
+ 'unit': PremiumOverrideDtoUnitEnum;
41
+ /**
42
+ *
43
+ * @type {number}
44
+ * @memberof PremiumOverrideDto
45
+ */
46
+ 'netPremium': number;
47
+ }
48
+
49
+ export const PremiumOverrideDtoTypeEnum = {
50
+ Time: 'time'
51
+ } as const;
52
+
53
+ export type PremiumOverrideDtoTypeEnum = typeof PremiumOverrideDtoTypeEnum[keyof typeof PremiumOverrideDtoTypeEnum];
54
+ export const PremiumOverrideDtoUnitEnum = {
55
+ Day: 'day',
56
+ Week: 'week',
57
+ Month: 'month',
58
+ Quarter: 'quarter',
59
+ Year: 'year',
60
+ OneTimePayment: 'oneTimePayment'
61
+ } as const;
62
+
63
+ export type PremiumOverrideDtoUnitEnum = typeof PremiumOverrideDtoUnitEnum[keyof typeof PremiumOverrideDtoUnitEnum];
64
+
65
+
@@ -0,0 +1,31 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL BillingService
5
+ * The EMIL BillingService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import { PremiumOverrideDto } from './premium-override-dto';
17
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface PremiumOverrideRequestDto
22
+ */
23
+ export interface PremiumOverrideRequestDto {
24
+ /**
25
+ * Premium Override.
26
+ * @type {Array<PremiumOverrideDto>}
27
+ * @memberof PremiumOverrideRequestDto
28
+ */
29
+ 'premiumOverrides': Array<PremiumOverrideDto>;
30
+ }
31
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/billing-sdk-node",
3
- "version": "1.55.1-beta.7",
3
+ "version": "1.57.0",
4
4
  "description": "OpenAPI client for @emilgroup/billing-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [