@emilgroup/public-api-sdk-node 1.35.1-beta.13 → 1.35.1-beta.14
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 +13 -0
- package/README.md +2 -2
- package/api/product-versions-api.ts +223 -0
- package/dist/api/product-versions-api.d.ts +122 -0
- package/dist/api/product-versions-api.js +191 -0
- package/dist/models/amount-with-limit-class.d.ts +30 -0
- package/dist/models/amount-with-limit-class.js +15 -0
- package/dist/models/calculate-product-tariff-quote-request-dto.d.ts +38 -0
- package/dist/models/calculate-product-tariff-quote-request-dto.js +15 -0
- package/dist/models/calculate-product-tariff-quote-response-class.d.ts +25 -0
- package/dist/models/calculate-product-tariff-quote-response-class.js +15 -0
- package/dist/models/calculation-errors-class.d.ts +25 -0
- package/dist/models/calculation-errors-class.js +15 -0
- package/dist/models/calculation-item-errors-class.d.ts +43 -0
- package/dist/models/calculation-item-errors-class.js +15 -0
- package/dist/models/calculation-message-class.d.ts +30 -0
- package/dist/models/calculation-message-class.js +15 -0
- package/dist/models/category-coverage-summary-class.d.ts +43 -0
- package/dist/models/category-coverage-summary-class.js +15 -0
- package/dist/models/coverage-term-class.d.ts +54 -0
- package/dist/models/coverage-term-class.js +25 -0
- package/dist/models/get-product-config-tariffs-response-class.d.ts +31 -0
- package/dist/models/get-product-config-tariffs-response-class.js +15 -0
- package/dist/models/index.d.ts +13 -0
- package/dist/models/index.js +13 -0
- package/dist/models/product-tariff-quote-class.d.ts +51 -0
- package/dist/models/product-tariff-quote-class.js +15 -0
- package/dist/models/tariff-category-summary-class.d.ts +50 -0
- package/dist/models/tariff-category-summary-class.js +15 -0
- package/dist/models/tariff-coverage-term-class.d.ts +48 -0
- package/dist/models/tariff-coverage-term-class.js +25 -0
- package/dist/models/tariff-summary-class.d.ts +50 -0
- package/dist/models/tariff-summary-class.js +15 -0
- package/models/amount-with-limit-class.ts +36 -0
- package/models/calculate-product-tariff-quote-request-dto.ts +44 -0
- package/models/calculate-product-tariff-quote-response-class.ts +31 -0
- package/models/calculation-errors-class.ts +31 -0
- package/models/calculation-item-errors-class.ts +49 -0
- package/models/calculation-message-class.ts +36 -0
- package/models/category-coverage-summary-class.ts +49 -0
- package/models/coverage-term-class.ts +64 -0
- package/models/get-product-config-tariffs-response-class.ts +37 -0
- package/models/index.ts +13 -0
- package/models/product-tariff-quote-class.ts +57 -0
- package/models/tariff-category-summary-class.ts +56 -0
- package/models/tariff-coverage-term-class.ts +58 -0
- package/models/tariff-summary-class.ts +56 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -21,6 +21,7 @@ index.ts
|
|
|
21
21
|
models/address-completion-item-class.ts
|
|
22
22
|
models/address-completion-response-class.ts
|
|
23
23
|
models/address-field-score-class.ts
|
|
24
|
+
models/amount-with-limit-class.ts
|
|
24
25
|
models/bank-transfer-dto.ts
|
|
25
26
|
models/bank-transfer-response-class.ts
|
|
26
27
|
models/billing-address-dto.ts
|
|
@@ -28,7 +29,13 @@ models/billing-address-response-class.ts
|
|
|
28
29
|
models/booking-funnel-class.ts
|
|
29
30
|
models/calculate-product-fields-request-dto.ts
|
|
30
31
|
models/calculate-product-fields-response-class.ts
|
|
32
|
+
models/calculate-product-tariff-quote-request-dto.ts
|
|
33
|
+
models/calculate-product-tariff-quote-response-class.ts
|
|
34
|
+
models/calculation-errors-class.ts
|
|
35
|
+
models/calculation-item-errors-class.ts
|
|
36
|
+
models/calculation-message-class.ts
|
|
31
37
|
models/card-details-dto.ts
|
|
38
|
+
models/category-coverage-summary-class.ts
|
|
32
39
|
models/complete-adyen-payment-setup-request-dto.ts
|
|
33
40
|
models/complete-braintree-payment-setup-request-dto.ts
|
|
34
41
|
models/complete-eis-payment-setup-request-dto.ts
|
|
@@ -37,6 +44,7 @@ models/complete-email-verification-response-class.ts
|
|
|
37
44
|
models/complete-payment-setup-request-dto.ts
|
|
38
45
|
models/complete-payment-setup-response-class.ts
|
|
39
46
|
models/complete-stripe-payment-setup-request-dto.ts
|
|
47
|
+
models/coverage-term-class.ts
|
|
40
48
|
models/create-account-request-dto.ts
|
|
41
49
|
models/create-bank-account-request-dto.ts
|
|
42
50
|
models/create-custom-application-request-dto.ts
|
|
@@ -58,6 +66,7 @@ models/filter-named-range-response-class.ts
|
|
|
58
66
|
models/get-booking-funnel-response-class.ts
|
|
59
67
|
models/get-custom-css-response-class.ts
|
|
60
68
|
models/get-lead-response-class.ts
|
|
69
|
+
models/get-product-config-tariffs-response-class.ts
|
|
61
70
|
models/get-product-document-download-url-response-class.ts
|
|
62
71
|
models/get-public-psp-settings-response-class.ts
|
|
63
72
|
models/index.ts
|
|
@@ -107,6 +116,7 @@ models/product-document-class.ts
|
|
|
107
116
|
models/product-factor-for-version-class.ts
|
|
108
117
|
models/product-factor-value-for-version-class.ts
|
|
109
118
|
models/product-field-class.ts
|
|
119
|
+
models/product-tariff-quote-class.ts
|
|
110
120
|
models/product-version-class.ts
|
|
111
121
|
models/psp-configuration-response-class.ts
|
|
112
122
|
models/send-notification-request-dto.ts
|
|
@@ -116,6 +126,9 @@ models/sepa-dto.ts
|
|
|
116
126
|
models/sepa-response-class.ts
|
|
117
127
|
models/structured-address-class.ts
|
|
118
128
|
models/suggested-address-details-class.ts
|
|
129
|
+
models/tariff-category-summary-class.ts
|
|
130
|
+
models/tariff-coverage-term-class.ts
|
|
131
|
+
models/tariff-summary-class.ts
|
|
119
132
|
models/update-lead-request-dto.ts
|
|
120
133
|
models/update-lead-response-class.ts
|
|
121
134
|
models/uploaded-document-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/public-api-sdk-node@1.35.1-beta.
|
|
20
|
+
npm install @emilgroup/public-api-sdk-node@1.35.1-beta.14 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk-node@1.35.1-beta.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk-node@1.35.1-beta.14
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PublicApi`.
|
|
@@ -21,6 +21,12 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { CalculateProductTariffQuoteRequestDto } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { CalculateProductTariffQuoteResponseClass } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { GetProductConfigTariffsResponseClass } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
24
30
|
import { InsuredObjectClass } from '../models';
|
|
25
31
|
// @ts-ignore
|
|
26
32
|
import { ProductFactorForVersionClass } from '../models';
|
|
@@ -34,6 +40,57 @@ const FormData = require('form-data');
|
|
|
34
40
|
*/
|
|
35
41
|
export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
42
|
return {
|
|
43
|
+
/**
|
|
44
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
45
|
+
* @summary Calculates a quote for a selected tariff
|
|
46
|
+
* @param {number} productVersionId Product version id
|
|
47
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
calculateProductTariffQuote: async (productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
53
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
54
|
+
assertParamExists('calculateProductTariffQuote', 'productVersionId', productVersionId)
|
|
55
|
+
// verify required parameter 'calculateProductTariffQuoteRequestDto' is not null or undefined
|
|
56
|
+
assertParamExists('calculateProductTariffQuote', 'calculateProductTariffQuoteRequestDto', calculateProductTariffQuoteRequestDto)
|
|
57
|
+
const localVarPath = `/publicapi/v1/product_versions/{productVersionId}/tariff-quote`
|
|
58
|
+
.replace(`{${"productVersionId"}}`, encodeURIComponent(String(productVersionId)));
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
let baseAccessToken;
|
|
63
|
+
if (configuration) {
|
|
64
|
+
baseOptions = configuration.baseOptions;
|
|
65
|
+
baseAccessToken = configuration.accessToken;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
69
|
+
const localVarHeaderParameter = {} as any;
|
|
70
|
+
const localVarQueryParameter = {} as any;
|
|
71
|
+
|
|
72
|
+
// authentication bearer required
|
|
73
|
+
// http bearer authentication required
|
|
74
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
|
+
|
|
76
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
83
|
+
|
|
84
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
85
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
86
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
87
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calculateProductTariffQuoteRequestDto, localVarRequestOptions, configuration)
|
|
88
|
+
|
|
89
|
+
return {
|
|
90
|
+
url: toPathString(localVarUrlObj),
|
|
91
|
+
options: localVarRequestOptions,
|
|
92
|
+
};
|
|
93
|
+
},
|
|
37
94
|
/**
|
|
38
95
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
39
96
|
* @summary List insured objects
|
|
@@ -70,6 +127,51 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
70
127
|
|
|
71
128
|
|
|
72
129
|
|
|
130
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
131
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
url: toPathString(localVarUrlObj),
|
|
136
|
+
options: localVarRequestOptions,
|
|
137
|
+
};
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* Retrieves list of available tariffs for the published product config version
|
|
141
|
+
* @summary Retrieve the Product Config Tariffs
|
|
142
|
+
* @param {number} productVersionId Product version id
|
|
143
|
+
* @param {string} [authorization] Bearer Token
|
|
144
|
+
* @param {*} [options] Override http request option.
|
|
145
|
+
* @throws {RequiredError}
|
|
146
|
+
*/
|
|
147
|
+
getProductConfigTariffs: async (productVersionId: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
148
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
149
|
+
assertParamExists('getProductConfigTariffs', 'productVersionId', productVersionId)
|
|
150
|
+
const localVarPath = `/publicapi/v1/product_versions/{productVersionId}/tariffs`
|
|
151
|
+
.replace(`{${"productVersionId"}}`, encodeURIComponent(String(productVersionId)));
|
|
152
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
153
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
154
|
+
let baseOptions;
|
|
155
|
+
let baseAccessToken;
|
|
156
|
+
if (configuration) {
|
|
157
|
+
baseOptions = configuration.baseOptions;
|
|
158
|
+
baseAccessToken = configuration.accessToken;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
162
|
+
const localVarHeaderParameter = {} as any;
|
|
163
|
+
const localVarQueryParameter = {} as any;
|
|
164
|
+
|
|
165
|
+
// authentication bearer required
|
|
166
|
+
// http bearer authentication required
|
|
167
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
|
+
|
|
169
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
73
175
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
74
176
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
75
177
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -141,6 +243,19 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
141
243
|
export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
142
244
|
const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
|
|
143
245
|
return {
|
|
246
|
+
/**
|
|
247
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
248
|
+
* @summary Calculates a quote for a selected tariff
|
|
249
|
+
* @param {number} productVersionId Product version id
|
|
250
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
251
|
+
* @param {string} [authorization] Bearer Token
|
|
252
|
+
* @param {*} [options] Override http request option.
|
|
253
|
+
* @throws {RequiredError}
|
|
254
|
+
*/
|
|
255
|
+
async calculateProductTariffQuote(productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateProductTariffQuoteResponseClass>> {
|
|
256
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calculateProductTariffQuote(productVersionId, calculateProductTariffQuoteRequestDto, authorization, options);
|
|
257
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
258
|
+
},
|
|
144
259
|
/**
|
|
145
260
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
146
261
|
* @summary List insured objects
|
|
@@ -153,6 +268,18 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
153
268
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectsPerVersion(productVersionId, authorization, options);
|
|
154
269
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
155
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* Retrieves list of available tariffs for the published product config version
|
|
273
|
+
* @summary Retrieve the Product Config Tariffs
|
|
274
|
+
* @param {number} productVersionId Product version id
|
|
275
|
+
* @param {string} [authorization] Bearer Token
|
|
276
|
+
* @param {*} [options] Override http request option.
|
|
277
|
+
* @throws {RequiredError}
|
|
278
|
+
*/
|
|
279
|
+
async getProductConfigTariffs(productVersionId: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductConfigTariffsResponseClass>> {
|
|
280
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductConfigTariffs(productVersionId, authorization, options);
|
|
281
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
282
|
+
},
|
|
156
283
|
/**
|
|
157
284
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
158
285
|
* @summary List product factors
|
|
@@ -176,6 +303,18 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
176
303
|
export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
177
304
|
const localVarFp = ProductVersionsApiFp(configuration)
|
|
178
305
|
return {
|
|
306
|
+
/**
|
|
307
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
308
|
+
* @summary Calculates a quote for a selected tariff
|
|
309
|
+
* @param {number} productVersionId Product version id
|
|
310
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
311
|
+
* @param {string} [authorization] Bearer Token
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
calculateProductTariffQuote(productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateProductTariffQuoteResponseClass> {
|
|
316
|
+
return localVarFp.calculateProductTariffQuote(productVersionId, calculateProductTariffQuoteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
317
|
+
},
|
|
179
318
|
/**
|
|
180
319
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
181
320
|
* @summary List insured objects
|
|
@@ -187,6 +326,17 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
187
326
|
getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
188
327
|
return localVarFp.getInsuredObjectsPerVersion(productVersionId, authorization, options).then((request) => request(axios, basePath));
|
|
189
328
|
},
|
|
329
|
+
/**
|
|
330
|
+
* Retrieves list of available tariffs for the published product config version
|
|
331
|
+
* @summary Retrieve the Product Config Tariffs
|
|
332
|
+
* @param {number} productVersionId Product version id
|
|
333
|
+
* @param {string} [authorization] Bearer Token
|
|
334
|
+
* @param {*} [options] Override http request option.
|
|
335
|
+
* @throws {RequiredError}
|
|
336
|
+
*/
|
|
337
|
+
getProductConfigTariffs(productVersionId: number, authorization?: string, options?: any): AxiosPromise<GetProductConfigTariffsResponseClass> {
|
|
338
|
+
return localVarFp.getProductConfigTariffs(productVersionId, authorization, options).then((request) => request(axios, basePath));
|
|
339
|
+
},
|
|
190
340
|
/**
|
|
191
341
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
192
342
|
* @summary List product factors
|
|
@@ -202,6 +352,34 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
202
352
|
};
|
|
203
353
|
};
|
|
204
354
|
|
|
355
|
+
/**
|
|
356
|
+
* Request parameters for calculateProductTariffQuote operation in ProductVersionsApi.
|
|
357
|
+
* @export
|
|
358
|
+
* @interface ProductVersionsApiCalculateProductTariffQuoteRequest
|
|
359
|
+
*/
|
|
360
|
+
export interface ProductVersionsApiCalculateProductTariffQuoteRequest {
|
|
361
|
+
/**
|
|
362
|
+
* Product version id
|
|
363
|
+
* @type {number}
|
|
364
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
365
|
+
*/
|
|
366
|
+
readonly productVersionId: number
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
*
|
|
370
|
+
* @type {CalculateProductTariffQuoteRequestDto}
|
|
371
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
372
|
+
*/
|
|
373
|
+
readonly calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Bearer Token
|
|
377
|
+
* @type {string}
|
|
378
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
379
|
+
*/
|
|
380
|
+
readonly authorization?: string
|
|
381
|
+
}
|
|
382
|
+
|
|
205
383
|
/**
|
|
206
384
|
* Request parameters for getInsuredObjectsPerVersion operation in ProductVersionsApi.
|
|
207
385
|
* @export
|
|
@@ -223,6 +401,27 @@ export interface ProductVersionsApiGetInsuredObjectsPerVersionRequest {
|
|
|
223
401
|
readonly authorization?: string
|
|
224
402
|
}
|
|
225
403
|
|
|
404
|
+
/**
|
|
405
|
+
* Request parameters for getProductConfigTariffs operation in ProductVersionsApi.
|
|
406
|
+
* @export
|
|
407
|
+
* @interface ProductVersionsApiGetProductConfigTariffsRequest
|
|
408
|
+
*/
|
|
409
|
+
export interface ProductVersionsApiGetProductConfigTariffsRequest {
|
|
410
|
+
/**
|
|
411
|
+
* Product version id
|
|
412
|
+
* @type {number}
|
|
413
|
+
* @memberof ProductVersionsApiGetProductConfigTariffs
|
|
414
|
+
*/
|
|
415
|
+
readonly productVersionId: number
|
|
416
|
+
|
|
417
|
+
/**
|
|
418
|
+
* Bearer Token
|
|
419
|
+
* @type {string}
|
|
420
|
+
* @memberof ProductVersionsApiGetProductConfigTariffs
|
|
421
|
+
*/
|
|
422
|
+
readonly authorization?: string
|
|
423
|
+
}
|
|
424
|
+
|
|
226
425
|
/**
|
|
227
426
|
* Request parameters for getProductFactorsPerVersion operation in ProductVersionsApi.
|
|
228
427
|
* @export
|
|
@@ -258,6 +457,18 @@ export interface ProductVersionsApiGetProductFactorsPerVersionRequest {
|
|
|
258
457
|
* @extends {BaseAPI}
|
|
259
458
|
*/
|
|
260
459
|
export class ProductVersionsApi extends BaseAPI {
|
|
460
|
+
/**
|
|
461
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
462
|
+
* @summary Calculates a quote for a selected tariff
|
|
463
|
+
* @param {ProductVersionsApiCalculateProductTariffQuoteRequest} requestParameters Request parameters.
|
|
464
|
+
* @param {*} [options] Override http request option.
|
|
465
|
+
* @throws {RequiredError}
|
|
466
|
+
* @memberof ProductVersionsApi
|
|
467
|
+
*/
|
|
468
|
+
public calculateProductTariffQuote(requestParameters: ProductVersionsApiCalculateProductTariffQuoteRequest, options?: AxiosRequestConfig) {
|
|
469
|
+
return ProductVersionsApiFp(this.configuration).calculateProductTariffQuote(requestParameters.productVersionId, requestParameters.calculateProductTariffQuoteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
470
|
+
}
|
|
471
|
+
|
|
261
472
|
/**
|
|
262
473
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
263
474
|
* @summary List insured objects
|
|
@@ -270,6 +481,18 @@ export class ProductVersionsApi extends BaseAPI {
|
|
|
270
481
|
return ProductVersionsApiFp(this.configuration).getInsuredObjectsPerVersion(requestParameters.productVersionId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
271
482
|
}
|
|
272
483
|
|
|
484
|
+
/**
|
|
485
|
+
* Retrieves list of available tariffs for the published product config version
|
|
486
|
+
* @summary Retrieve the Product Config Tariffs
|
|
487
|
+
* @param {ProductVersionsApiGetProductConfigTariffsRequest} requestParameters Request parameters.
|
|
488
|
+
* @param {*} [options] Override http request option.
|
|
489
|
+
* @throws {RequiredError}
|
|
490
|
+
* @memberof ProductVersionsApi
|
|
491
|
+
*/
|
|
492
|
+
public getProductConfigTariffs(requestParameters: ProductVersionsApiGetProductConfigTariffsRequest, options?: AxiosRequestConfig) {
|
|
493
|
+
return ProductVersionsApiFp(this.configuration).getProductConfigTariffs(requestParameters.productVersionId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
494
|
+
}
|
|
495
|
+
|
|
273
496
|
/**
|
|
274
497
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
275
498
|
* @summary List product factors
|
|
@@ -12,6 +12,9 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CalculateProductTariffQuoteRequestDto } from '../models';
|
|
16
|
+
import { CalculateProductTariffQuoteResponseClass } from '../models';
|
|
17
|
+
import { GetProductConfigTariffsResponseClass } from '../models';
|
|
15
18
|
import { InsuredObjectClass } from '../models';
|
|
16
19
|
import { ProductFactorForVersionClass } from '../models';
|
|
17
20
|
/**
|
|
@@ -19,6 +22,16 @@ import { ProductFactorForVersionClass } from '../models';
|
|
|
19
22
|
* @export
|
|
20
23
|
*/
|
|
21
24
|
export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25
|
+
/**
|
|
26
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
27
|
+
* @summary Calculates a quote for a selected tariff
|
|
28
|
+
* @param {number} productVersionId Product version id
|
|
29
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
30
|
+
* @param {string} [authorization] Bearer Token
|
|
31
|
+
* @param {*} [options] Override http request option.
|
|
32
|
+
* @throws {RequiredError}
|
|
33
|
+
*/
|
|
34
|
+
calculateProductTariffQuote: (productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
22
35
|
/**
|
|
23
36
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
24
37
|
* @summary List insured objects
|
|
@@ -28,6 +41,15 @@ export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Confi
|
|
|
28
41
|
* @throws {RequiredError}
|
|
29
42
|
*/
|
|
30
43
|
getInsuredObjectsPerVersion: (productVersionId: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
44
|
+
/**
|
|
45
|
+
* Retrieves list of available tariffs for the published product config version
|
|
46
|
+
* @summary Retrieve the Product Config Tariffs
|
|
47
|
+
* @param {number} productVersionId Product version id
|
|
48
|
+
* @param {string} [authorization] Bearer Token
|
|
49
|
+
* @param {*} [options] Override http request option.
|
|
50
|
+
* @throws {RequiredError}
|
|
51
|
+
*/
|
|
52
|
+
getProductConfigTariffs: (productVersionId: number, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
31
53
|
/**
|
|
32
54
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
33
55
|
* @summary List product factors
|
|
@@ -44,6 +66,16 @@ export declare const ProductVersionsApiAxiosParamCreator: (configuration?: Confi
|
|
|
44
66
|
* @export
|
|
45
67
|
*/
|
|
46
68
|
export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
|
|
69
|
+
/**
|
|
70
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
71
|
+
* @summary Calculates a quote for a selected tariff
|
|
72
|
+
* @param {number} productVersionId Product version id
|
|
73
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
74
|
+
* @param {string} [authorization] Bearer Token
|
|
75
|
+
* @param {*} [options] Override http request option.
|
|
76
|
+
* @throws {RequiredError}
|
|
77
|
+
*/
|
|
78
|
+
calculateProductTariffQuote(productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateProductTariffQuoteResponseClass>>;
|
|
47
79
|
/**
|
|
48
80
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
49
81
|
* @summary List insured objects
|
|
@@ -53,6 +85,15 @@ export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
|
|
|
53
85
|
* @throws {RequiredError}
|
|
54
86
|
*/
|
|
55
87
|
getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<InsuredObjectClass>>>;
|
|
88
|
+
/**
|
|
89
|
+
* Retrieves list of available tariffs for the published product config version
|
|
90
|
+
* @summary Retrieve the Product Config Tariffs
|
|
91
|
+
* @param {number} productVersionId Product version id
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
getProductConfigTariffs(productVersionId: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductConfigTariffsResponseClass>>;
|
|
56
97
|
/**
|
|
57
98
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
58
99
|
* @summary List product factors
|
|
@@ -69,6 +110,16 @@ export declare const ProductVersionsApiFp: (configuration?: Configuration) => {
|
|
|
69
110
|
* @export
|
|
70
111
|
*/
|
|
71
112
|
export declare const ProductVersionsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
113
|
+
/**
|
|
114
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
115
|
+
* @summary Calculates a quote for a selected tariff
|
|
116
|
+
* @param {number} productVersionId Product version id
|
|
117
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
118
|
+
* @param {string} [authorization] Bearer Token
|
|
119
|
+
* @param {*} [options] Override http request option.
|
|
120
|
+
* @throws {RequiredError}
|
|
121
|
+
*/
|
|
122
|
+
calculateProductTariffQuote(productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateProductTariffQuoteResponseClass>;
|
|
72
123
|
/**
|
|
73
124
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
74
125
|
* @summary List insured objects
|
|
@@ -78,6 +129,15 @@ export declare const ProductVersionsApiFactory: (configuration?: Configuration,
|
|
|
78
129
|
* @throws {RequiredError}
|
|
79
130
|
*/
|
|
80
131
|
getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>>;
|
|
132
|
+
/**
|
|
133
|
+
* Retrieves list of available tariffs for the published product config version
|
|
134
|
+
* @summary Retrieve the Product Config Tariffs
|
|
135
|
+
* @param {number} productVersionId Product version id
|
|
136
|
+
* @param {string} [authorization] Bearer Token
|
|
137
|
+
* @param {*} [options] Override http request option.
|
|
138
|
+
* @throws {RequiredError}
|
|
139
|
+
*/
|
|
140
|
+
getProductConfigTariffs(productVersionId: number, authorization?: string, options?: any): AxiosPromise<GetProductConfigTariffsResponseClass>;
|
|
81
141
|
/**
|
|
82
142
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
83
143
|
* @summary List product factors
|
|
@@ -89,6 +149,31 @@ export declare const ProductVersionsApiFactory: (configuration?: Configuration,
|
|
|
89
149
|
*/
|
|
90
150
|
getProductFactorsPerVersion(productVersionId: number, allValues: string, authorization?: string, options?: any): AxiosPromise<Array<ProductFactorForVersionClass>>;
|
|
91
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* Request parameters for calculateProductTariffQuote operation in ProductVersionsApi.
|
|
154
|
+
* @export
|
|
155
|
+
* @interface ProductVersionsApiCalculateProductTariffQuoteRequest
|
|
156
|
+
*/
|
|
157
|
+
export interface ProductVersionsApiCalculateProductTariffQuoteRequest {
|
|
158
|
+
/**
|
|
159
|
+
* Product version id
|
|
160
|
+
* @type {number}
|
|
161
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
162
|
+
*/
|
|
163
|
+
readonly productVersionId: number;
|
|
164
|
+
/**
|
|
165
|
+
*
|
|
166
|
+
* @type {CalculateProductTariffQuoteRequestDto}
|
|
167
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
168
|
+
*/
|
|
169
|
+
readonly calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto;
|
|
170
|
+
/**
|
|
171
|
+
* Bearer Token
|
|
172
|
+
* @type {string}
|
|
173
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
174
|
+
*/
|
|
175
|
+
readonly authorization?: string;
|
|
176
|
+
}
|
|
92
177
|
/**
|
|
93
178
|
* Request parameters for getInsuredObjectsPerVersion operation in ProductVersionsApi.
|
|
94
179
|
* @export
|
|
@@ -108,6 +193,25 @@ export interface ProductVersionsApiGetInsuredObjectsPerVersionRequest {
|
|
|
108
193
|
*/
|
|
109
194
|
readonly authorization?: string;
|
|
110
195
|
}
|
|
196
|
+
/**
|
|
197
|
+
* Request parameters for getProductConfigTariffs operation in ProductVersionsApi.
|
|
198
|
+
* @export
|
|
199
|
+
* @interface ProductVersionsApiGetProductConfigTariffsRequest
|
|
200
|
+
*/
|
|
201
|
+
export interface ProductVersionsApiGetProductConfigTariffsRequest {
|
|
202
|
+
/**
|
|
203
|
+
* Product version id
|
|
204
|
+
* @type {number}
|
|
205
|
+
* @memberof ProductVersionsApiGetProductConfigTariffs
|
|
206
|
+
*/
|
|
207
|
+
readonly productVersionId: number;
|
|
208
|
+
/**
|
|
209
|
+
* Bearer Token
|
|
210
|
+
* @type {string}
|
|
211
|
+
* @memberof ProductVersionsApiGetProductConfigTariffs
|
|
212
|
+
*/
|
|
213
|
+
readonly authorization?: string;
|
|
214
|
+
}
|
|
111
215
|
/**
|
|
112
216
|
* Request parameters for getProductFactorsPerVersion operation in ProductVersionsApi.
|
|
113
217
|
* @export
|
|
@@ -140,6 +244,15 @@ export interface ProductVersionsApiGetProductFactorsPerVersionRequest {
|
|
|
140
244
|
* @extends {BaseAPI}
|
|
141
245
|
*/
|
|
142
246
|
export declare class ProductVersionsApi extends BaseAPI {
|
|
247
|
+
/**
|
|
248
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
249
|
+
* @summary Calculates a quote for a selected tariff
|
|
250
|
+
* @param {ProductVersionsApiCalculateProductTariffQuoteRequest} requestParameters Request parameters.
|
|
251
|
+
* @param {*} [options] Override http request option.
|
|
252
|
+
* @throws {RequiredError}
|
|
253
|
+
* @memberof ProductVersionsApi
|
|
254
|
+
*/
|
|
255
|
+
calculateProductTariffQuote(requestParameters: ProductVersionsApiCalculateProductTariffQuoteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CalculateProductTariffQuoteResponseClass, any, {}>>;
|
|
143
256
|
/**
|
|
144
257
|
* Returns a list of insured objects you have previously created. The insured objects are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
145
258
|
* @summary List insured objects
|
|
@@ -149,6 +262,15 @@ export declare class ProductVersionsApi extends BaseAPI {
|
|
|
149
262
|
* @memberof ProductVersionsApi
|
|
150
263
|
*/
|
|
151
264
|
getInsuredObjectsPerVersion(requestParameters: ProductVersionsApiGetInsuredObjectsPerVersionRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InsuredObjectClass[], any, {}>>;
|
|
265
|
+
/**
|
|
266
|
+
* Retrieves list of available tariffs for the published product config version
|
|
267
|
+
* @summary Retrieve the Product Config Tariffs
|
|
268
|
+
* @param {ProductVersionsApiGetProductConfigTariffsRequest} requestParameters Request parameters.
|
|
269
|
+
* @param {*} [options] Override http request option.
|
|
270
|
+
* @throws {RequiredError}
|
|
271
|
+
* @memberof ProductVersionsApi
|
|
272
|
+
*/
|
|
273
|
+
getProductConfigTariffs(requestParameters: ProductVersionsApiGetProductConfigTariffsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductConfigTariffsResponseClass, any, {}>>;
|
|
152
274
|
/**
|
|
153
275
|
* Returns a list of product factors you have previously created. The product factors are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
154
276
|
* @summary List product factors
|