@emilgroup/billing-sdk 1.54.1-beta.9 → 1.56.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.
- package/.openapi-generator/FILES +4 -0
- package/README.md +2 -2
- package/api/estimated-invoices-api.ts +120 -0
- package/dist/api/estimated-invoices-api.d.ts +66 -0
- package/dist/api/estimated-invoices-api.js +99 -0
- package/dist/models/create-product-estimated-invoice-request-dto.d.ts +37 -0
- package/dist/models/create-product-estimated-invoice-request-dto.js +15 -0
- package/dist/models/create-product-estimated-invoice-response-class.d.ts +31 -0
- package/dist/models/create-product-estimated-invoice-response-class.js +15 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/premium-override-dto.d.ts +55 -0
- package/dist/models/premium-override-dto.js +27 -0
- package/dist/models/premium-override-request-dto.d.ts +25 -0
- package/dist/models/premium-override-request-dto.js +15 -0
- package/models/create-product-estimated-invoice-request-dto.ts +43 -0
- package/models/create-product-estimated-invoice-response-class.ts +37 -0
- package/models/index.ts +4 -0
- package/models/premium-override-dto.ts +65 -0
- package/models/premium-override-request-dto.ts +31 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -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@1.
|
|
20
|
+
npm install @emilgroup/billing-sdk@1.56.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/billing-sdk@1.
|
|
24
|
+
yarn add @emilgroup/billing-sdk@1.56.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
|
/**
|
|
36
40
|
* EstimatedInvoicesApi - axios parameter creator
|
|
37
41
|
* @export
|
|
@@ -174,6 +178,57 @@ export const EstimatedInvoicesApiAxiosParamCreator = function (configuration?: C
|
|
|
174
178
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
175
179
|
localVarRequestOptions.data = serializeDataIfNeeded(createEstimatedInvoiceForIntervalRequestDto, localVarRequestOptions, configuration)
|
|
176
180
|
|
|
181
|
+
return {
|
|
182
|
+
url: toPathString(localVarUrlObj),
|
|
183
|
+
options: localVarRequestOptions,
|
|
184
|
+
};
|
|
185
|
+
},
|
|
186
|
+
/**
|
|
187
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
188
|
+
* @summary Create the estimated invoice
|
|
189
|
+
* @param {string} productSlug
|
|
190
|
+
* @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
|
|
191
|
+
* @param {string} [authorization] Bearer Token
|
|
192
|
+
* @param {*} [options] Override http request option.
|
|
193
|
+
* @throws {RequiredError}
|
|
194
|
+
*/
|
|
195
|
+
createProductEstimatedInvoice: async (productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
196
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
197
|
+
assertParamExists('createProductEstimatedInvoice', 'productSlug', productSlug)
|
|
198
|
+
// verify required parameter 'createProductEstimatedInvoiceRequestDto' is not null or undefined
|
|
199
|
+
assertParamExists('createProductEstimatedInvoice', 'createProductEstimatedInvoiceRequestDto', createProductEstimatedInvoiceRequestDto)
|
|
200
|
+
const localVarPath = `/billingservice/v1/estimated-invoices/{productSlug}/product-invoice`
|
|
201
|
+
.replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
|
|
202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
203
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
204
|
+
let baseOptions;
|
|
205
|
+
let baseAccessToken;
|
|
206
|
+
if (configuration) {
|
|
207
|
+
baseOptions = configuration.baseOptions;
|
|
208
|
+
baseAccessToken = configuration.accessToken;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
212
|
+
const localVarHeaderParameter = {} as any;
|
|
213
|
+
const localVarQueryParameter = {} as any;
|
|
214
|
+
|
|
215
|
+
// authentication bearer required
|
|
216
|
+
// http bearer authentication required
|
|
217
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
218
|
+
|
|
219
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
220
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
226
|
+
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
230
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createProductEstimatedInvoiceRequestDto, localVarRequestOptions, configuration)
|
|
231
|
+
|
|
177
232
|
return {
|
|
178
233
|
url: toPathString(localVarUrlObj),
|
|
179
234
|
options: localVarRequestOptions,
|
|
@@ -225,6 +280,19 @@ export const EstimatedInvoicesApiFp = function(configuration?: Configuration) {
|
|
|
225
280
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options);
|
|
226
281
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
227
282
|
},
|
|
283
|
+
/**
|
|
284
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
285
|
+
* @summary Create the estimated invoice
|
|
286
|
+
* @param {string} productSlug
|
|
287
|
+
* @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
|
|
288
|
+
* @param {string} [authorization] Bearer Token
|
|
289
|
+
* @param {*} [options] Override http request option.
|
|
290
|
+
* @throws {RequiredError}
|
|
291
|
+
*/
|
|
292
|
+
async createProductEstimatedInvoice(productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductEstimatedInvoiceResponseClass>> {
|
|
293
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options);
|
|
294
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
295
|
+
},
|
|
228
296
|
}
|
|
229
297
|
};
|
|
230
298
|
|
|
@@ -268,6 +336,18 @@ export const EstimatedInvoicesApiFactory = function (configuration?: Configurati
|
|
|
268
336
|
createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto: CreateEstimatedInvoiceForIntervalRequestDto, authorization?: string, options?: any): AxiosPromise<CreateEstimatedInvoiceForIntervalResponseClass> {
|
|
269
337
|
return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
270
338
|
},
|
|
339
|
+
/**
|
|
340
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
341
|
+
* @summary Create the estimated invoice
|
|
342
|
+
* @param {string} productSlug
|
|
343
|
+
* @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
|
|
344
|
+
* @param {string} [authorization] Bearer Token
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
createProductEstimatedInvoice(productSlug: string, createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductEstimatedInvoiceResponseClass> {
|
|
349
|
+
return localVarFp.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
350
|
+
},
|
|
271
351
|
};
|
|
272
352
|
};
|
|
273
353
|
|
|
@@ -334,6 +414,34 @@ export interface EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest {
|
|
|
334
414
|
readonly authorization?: string
|
|
335
415
|
}
|
|
336
416
|
|
|
417
|
+
/**
|
|
418
|
+
* Request parameters for createProductEstimatedInvoice operation in EstimatedInvoicesApi.
|
|
419
|
+
* @export
|
|
420
|
+
* @interface EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest
|
|
421
|
+
*/
|
|
422
|
+
export interface EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest {
|
|
423
|
+
/**
|
|
424
|
+
*
|
|
425
|
+
* @type {string}
|
|
426
|
+
* @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
|
|
427
|
+
*/
|
|
428
|
+
readonly productSlug: string
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
*
|
|
432
|
+
* @type {CreateProductEstimatedInvoiceRequestDto}
|
|
433
|
+
* @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
|
|
434
|
+
*/
|
|
435
|
+
readonly createProductEstimatedInvoiceRequestDto: CreateProductEstimatedInvoiceRequestDto
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* Bearer Token
|
|
439
|
+
* @type {string}
|
|
440
|
+
* @memberof EstimatedInvoicesApiCreateProductEstimatedInvoice
|
|
441
|
+
*/
|
|
442
|
+
readonly authorization?: string
|
|
443
|
+
}
|
|
444
|
+
|
|
337
445
|
/**
|
|
338
446
|
* EstimatedInvoicesApi - object-oriented interface
|
|
339
447
|
* @export
|
|
@@ -376,4 +484,16 @@ export class EstimatedInvoicesApi extends BaseAPI {
|
|
|
376
484
|
public createEstimatedInvoiceFromInterval(requestParameters: EstimatedInvoicesApiCreateEstimatedInvoiceFromIntervalRequest, options?: AxiosRequestConfig) {
|
|
377
485
|
return EstimatedInvoicesApiFp(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
378
486
|
}
|
|
487
|
+
|
|
488
|
+
/**
|
|
489
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
490
|
+
* @summary Create the estimated invoice
|
|
491
|
+
* @param {EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
492
|
+
* @param {*} [options] Override http request option.
|
|
493
|
+
* @throws {RequiredError}
|
|
494
|
+
* @memberof EstimatedInvoicesApi
|
|
495
|
+
*/
|
|
496
|
+
public createProductEstimatedInvoice(requestParameters: EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest, options?: AxiosRequestConfig) {
|
|
497
|
+
return EstimatedInvoicesApiFp(this.configuration).createProductEstimatedInvoice(requestParameters.productSlug, requestParameters.createProductEstimatedInvoiceRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
498
|
+
}
|
|
379
499
|
}
|
|
@@ -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
|
}
|
|
@@ -239,6 +239,59 @@ var EstimatedInvoicesApiAxiosParamCreator = function (configuration) {
|
|
|
239
239
|
});
|
|
240
240
|
});
|
|
241
241
|
},
|
|
242
|
+
/**
|
|
243
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
244
|
+
* @summary Create the estimated invoice
|
|
245
|
+
* @param {string} productSlug
|
|
246
|
+
* @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
|
|
247
|
+
* @param {string} [authorization] Bearer Token
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
|
|
252
|
+
if (options === void 0) { options = {}; }
|
|
253
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
254
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
255
|
+
return __generator(this, function (_a) {
|
|
256
|
+
switch (_a.label) {
|
|
257
|
+
case 0:
|
|
258
|
+
// verify required parameter 'productSlug' is not null or undefined
|
|
259
|
+
(0, common_1.assertParamExists)('createProductEstimatedInvoice', 'productSlug', productSlug);
|
|
260
|
+
// verify required parameter 'createProductEstimatedInvoiceRequestDto' is not null or undefined
|
|
261
|
+
(0, common_1.assertParamExists)('createProductEstimatedInvoice', 'createProductEstimatedInvoiceRequestDto', createProductEstimatedInvoiceRequestDto);
|
|
262
|
+
localVarPath = "/billingservice/v1/estimated-invoices/{productSlug}/product-invoice"
|
|
263
|
+
.replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
|
|
264
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
baseAccessToken = configuration.accessToken;
|
|
268
|
+
}
|
|
269
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
270
|
+
localVarHeaderParameter = {};
|
|
271
|
+
localVarQueryParameter = {};
|
|
272
|
+
// authentication bearer required
|
|
273
|
+
// http bearer authentication required
|
|
274
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
275
|
+
case 1:
|
|
276
|
+
// authentication bearer required
|
|
277
|
+
// http bearer authentication required
|
|
278
|
+
_a.sent();
|
|
279
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
280
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
281
|
+
}
|
|
282
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
283
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
285
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
286
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createProductEstimatedInvoiceRequestDto, localVarRequestOptions, configuration);
|
|
287
|
+
return [2 /*return*/, {
|
|
288
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
289
|
+
options: localVarRequestOptions,
|
|
290
|
+
}];
|
|
291
|
+
}
|
|
292
|
+
});
|
|
293
|
+
});
|
|
294
|
+
},
|
|
242
295
|
};
|
|
243
296
|
};
|
|
244
297
|
exports.EstimatedInvoicesApiAxiosParamCreator = EstimatedInvoicesApiAxiosParamCreator;
|
|
@@ -312,6 +365,28 @@ var EstimatedInvoicesApiFp = function (configuration) {
|
|
|
312
365
|
});
|
|
313
366
|
});
|
|
314
367
|
},
|
|
368
|
+
/**
|
|
369
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
370
|
+
* @summary Create the estimated invoice
|
|
371
|
+
* @param {string} productSlug
|
|
372
|
+
* @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
|
|
373
|
+
* @param {string} [authorization] Bearer Token
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
|
|
378
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
+
var localVarAxiosArgs;
|
|
380
|
+
return __generator(this, function (_a) {
|
|
381
|
+
switch (_a.label) {
|
|
382
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options)];
|
|
383
|
+
case 1:
|
|
384
|
+
localVarAxiosArgs = _a.sent();
|
|
385
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
386
|
+
}
|
|
387
|
+
});
|
|
388
|
+
});
|
|
389
|
+
},
|
|
315
390
|
};
|
|
316
391
|
};
|
|
317
392
|
exports.EstimatedInvoicesApiFp = EstimatedInvoicesApiFp;
|
|
@@ -355,6 +430,18 @@ var EstimatedInvoicesApiFactory = function (configuration, basePath, axios) {
|
|
|
355
430
|
createEstimatedInvoiceFromInterval: function (createEstimatedInvoiceForIntervalRequestDto, authorization, options) {
|
|
356
431
|
return localVarFp.createEstimatedInvoiceFromInterval(createEstimatedInvoiceForIntervalRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
357
432
|
},
|
|
433
|
+
/**
|
|
434
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
435
|
+
* @summary Create the estimated invoice
|
|
436
|
+
* @param {string} productSlug
|
|
437
|
+
* @param {CreateProductEstimatedInvoiceRequestDto} createProductEstimatedInvoiceRequestDto
|
|
438
|
+
* @param {string} [authorization] Bearer Token
|
|
439
|
+
* @param {*} [options] Override http request option.
|
|
440
|
+
* @throws {RequiredError}
|
|
441
|
+
*/
|
|
442
|
+
createProductEstimatedInvoice: function (productSlug, createProductEstimatedInvoiceRequestDto, authorization, options) {
|
|
443
|
+
return localVarFp.createProductEstimatedInvoice(productSlug, createProductEstimatedInvoiceRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
444
|
+
},
|
|
358
445
|
};
|
|
359
446
|
};
|
|
360
447
|
exports.EstimatedInvoicesApiFactory = EstimatedInvoicesApiFactory;
|
|
@@ -405,6 +492,18 @@ var EstimatedInvoicesApi = /** @class */ (function (_super) {
|
|
|
405
492
|
var _this = this;
|
|
406
493
|
return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createEstimatedInvoiceFromInterval(requestParameters.createEstimatedInvoiceForIntervalRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
407
494
|
};
|
|
495
|
+
/**
|
|
496
|
+
* This creates an estimated product invoice. It will not be saved in the database. **Required Permissions** \"billing-management.invoices.create\"
|
|
497
|
+
* @summary Create the estimated invoice
|
|
498
|
+
* @param {EstimatedInvoicesApiCreateProductEstimatedInvoiceRequest} requestParameters Request parameters.
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
* @memberof EstimatedInvoicesApi
|
|
502
|
+
*/
|
|
503
|
+
EstimatedInvoicesApi.prototype.createProductEstimatedInvoice = function (requestParameters, options) {
|
|
504
|
+
var _this = this;
|
|
505
|
+
return (0, exports.EstimatedInvoicesApiFp)(this.configuration).createProductEstimatedInvoice(requestParameters.productSlug, requestParameters.createProductEstimatedInvoiceRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
506
|
+
};
|
|
408
507
|
return EstimatedInvoicesApi;
|
|
409
508
|
}(base_1.BaseAPI));
|
|
410
509
|
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 });
|
package/dist/models/index.d.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';
|
package/dist/models/index.js
CHANGED
|
@@ -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
|
+
|