@emilgroup/public-api-sdk 1.33.1-beta.8 → 1.34.1-beta.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 +15 -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 +66 -0
- package/dist/models/coverage-term-class.js +30 -0
- package/dist/models/deductible-class.d.ts +60 -0
- package/dist/models/deductible-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 +15 -0
- package/dist/models/index.js +15 -0
- package/dist/models/product-field-class.d.ts +6 -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/product-version-class.d.ts +6 -0
- package/dist/models/tariff-category-summary-class.d.ts +57 -0
- package/dist/models/tariff-category-summary-class.js +15 -0
- package/dist/models/tariff-coverage-term-class.d.ts +60 -0
- package/dist/models/tariff-coverage-term-class.js +30 -0
- package/dist/models/tariff-info-class.d.ts +47 -0
- package/dist/models/tariff-info-class.js +20 -0
- package/dist/models/tariff-summary-class.d.ts +52 -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 +77 -0
- package/models/deductible-class.ts +70 -0
- package/models/get-product-config-tariffs-response-class.ts +37 -0
- package/models/index.ts +15 -0
- package/models/product-field-class.ts +6 -0
- package/models/product-tariff-quote-class.ts +57 -0
- package/models/product-version-class.ts +6 -0
- package/models/tariff-category-summary-class.ts +63 -0
- package/models/tariff-coverage-term-class.ts +71 -0
- package/models/tariff-info-class.ts +56 -0
- package/models/tariff-summary-class.ts +58 -0
- package/package.json +2 -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
|
|
@@ -50,6 +58,7 @@ models/create-lead-response-class.ts
|
|
|
50
58
|
models/create-payment-method-request-dto.ts
|
|
51
59
|
models/create-presigned-post-request-dto.ts
|
|
52
60
|
models/create-presigned-post-response-class.ts
|
|
61
|
+
models/deductible-class.ts
|
|
53
62
|
models/document-class.ts
|
|
54
63
|
models/eis-sepa-debit-config-response-class.ts
|
|
55
64
|
models/eis-sepa-debit-dto.ts
|
|
@@ -58,6 +67,7 @@ models/filter-named-range-response-class.ts
|
|
|
58
67
|
models/get-booking-funnel-response-class.ts
|
|
59
68
|
models/get-custom-css-response-class.ts
|
|
60
69
|
models/get-lead-response-class.ts
|
|
70
|
+
models/get-product-config-tariffs-response-class.ts
|
|
61
71
|
models/get-product-document-download-url-response-class.ts
|
|
62
72
|
models/get-public-psp-settings-response-class.ts
|
|
63
73
|
models/index.ts
|
|
@@ -107,6 +117,7 @@ models/product-document-class.ts
|
|
|
107
117
|
models/product-factor-for-version-class.ts
|
|
108
118
|
models/product-factor-value-for-version-class.ts
|
|
109
119
|
models/product-field-class.ts
|
|
120
|
+
models/product-tariff-quote-class.ts
|
|
110
121
|
models/product-version-class.ts
|
|
111
122
|
models/psp-configuration-response-class.ts
|
|
112
123
|
models/send-notification-request-dto.ts
|
|
@@ -116,6 +127,10 @@ models/sepa-dto.ts
|
|
|
116
127
|
models/sepa-response-class.ts
|
|
117
128
|
models/structured-address-class.ts
|
|
118
129
|
models/suggested-address-details-class.ts
|
|
130
|
+
models/tariff-category-summary-class.ts
|
|
131
|
+
models/tariff-coverage-term-class.ts
|
|
132
|
+
models/tariff-info-class.ts
|
|
133
|
+
models/tariff-summary-class.ts
|
|
119
134
|
models/update-lead-request-dto.ts
|
|
120
135
|
models/update-lead-response-class.ts
|
|
121
136
|
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@1.
|
|
20
|
+
npm install @emilgroup/public-api-sdk@1.34.1-beta.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/public-api-sdk@1.
|
|
24
|
+
yarn add @emilgroup/public-api-sdk@1.34.1-beta.0
|
|
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';
|
|
@@ -30,6 +36,57 @@ import { ProductFactorForVersionClass } from '../models';
|
|
|
30
36
|
*/
|
|
31
37
|
export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
38
|
return {
|
|
39
|
+
/**
|
|
40
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
41
|
+
* @summary Calculates a quote for a selected tariff
|
|
42
|
+
* @param {number} productVersionId Product version id
|
|
43
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
44
|
+
* @param {string} [authorization] Bearer Token
|
|
45
|
+
* @param {*} [options] Override http request option.
|
|
46
|
+
* @throws {RequiredError}
|
|
47
|
+
*/
|
|
48
|
+
calculateProductTariffQuote: async (productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
50
|
+
assertParamExists('calculateProductTariffQuote', 'productVersionId', productVersionId)
|
|
51
|
+
// verify required parameter 'calculateProductTariffQuoteRequestDto' is not null or undefined
|
|
52
|
+
assertParamExists('calculateProductTariffQuote', 'calculateProductTariffQuoteRequestDto', calculateProductTariffQuoteRequestDto)
|
|
53
|
+
const localVarPath = `/publicapi/v1/product_versions/{productVersionId}/tariff-quote`
|
|
54
|
+
.replace(`{${"productVersionId"}}`, encodeURIComponent(String(productVersionId)));
|
|
55
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
56
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57
|
+
let baseOptions;
|
|
58
|
+
let baseAccessToken;
|
|
59
|
+
if (configuration) {
|
|
60
|
+
baseOptions = configuration.baseOptions;
|
|
61
|
+
baseAccessToken = configuration.accessToken;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
65
|
+
const localVarHeaderParameter = {} as any;
|
|
66
|
+
const localVarQueryParameter = {} as any;
|
|
67
|
+
|
|
68
|
+
// authentication bearer required
|
|
69
|
+
// http bearer authentication required
|
|
70
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
71
|
+
|
|
72
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
73
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
79
|
+
|
|
80
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
81
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
82
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
83
|
+
localVarRequestOptions.data = serializeDataIfNeeded(calculateProductTariffQuoteRequestDto, localVarRequestOptions, configuration)
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
url: toPathString(localVarUrlObj),
|
|
87
|
+
options: localVarRequestOptions,
|
|
88
|
+
};
|
|
89
|
+
},
|
|
33
90
|
/**
|
|
34
91
|
* 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.
|
|
35
92
|
* @summary List insured objects
|
|
@@ -66,6 +123,51 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
66
123
|
|
|
67
124
|
|
|
68
125
|
|
|
126
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
url: toPathString(localVarUrlObj),
|
|
132
|
+
options: localVarRequestOptions,
|
|
133
|
+
};
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
* Retrieves list of available tariffs for the published product config version
|
|
137
|
+
* @summary Retrieve the Product Config Tariffs
|
|
138
|
+
* @param {number} productVersionId Product version id
|
|
139
|
+
* @param {string} [authorization] Bearer Token
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
*/
|
|
143
|
+
getProductConfigTariffs: async (productVersionId: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
144
|
+
// verify required parameter 'productVersionId' is not null or undefined
|
|
145
|
+
assertParamExists('getProductConfigTariffs', 'productVersionId', productVersionId)
|
|
146
|
+
const localVarPath = `/publicapi/v1/product_versions/{productVersionId}/tariffs`
|
|
147
|
+
.replace(`{${"productVersionId"}}`, encodeURIComponent(String(productVersionId)));
|
|
148
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
|
+
let baseOptions;
|
|
151
|
+
let baseAccessToken;
|
|
152
|
+
if (configuration) {
|
|
153
|
+
baseOptions = configuration.baseOptions;
|
|
154
|
+
baseAccessToken = configuration.accessToken;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
158
|
+
const localVarHeaderParameter = {} as any;
|
|
159
|
+
const localVarQueryParameter = {} as any;
|
|
160
|
+
|
|
161
|
+
// authentication bearer required
|
|
162
|
+
// http bearer authentication required
|
|
163
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
|
+
|
|
165
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
166
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
69
171
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
70
172
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
71
173
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -137,6 +239,19 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
137
239
|
export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
138
240
|
const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
|
|
139
241
|
return {
|
|
242
|
+
/**
|
|
243
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
244
|
+
* @summary Calculates a quote for a selected tariff
|
|
245
|
+
* @param {number} productVersionId Product version id
|
|
246
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
247
|
+
* @param {string} [authorization] Bearer Token
|
|
248
|
+
* @param {*} [options] Override http request option.
|
|
249
|
+
* @throws {RequiredError}
|
|
250
|
+
*/
|
|
251
|
+
async calculateProductTariffQuote(productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CalculateProductTariffQuoteResponseClass>> {
|
|
252
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.calculateProductTariffQuote(productVersionId, calculateProductTariffQuoteRequestDto, authorization, options);
|
|
253
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
254
|
+
},
|
|
140
255
|
/**
|
|
141
256
|
* 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.
|
|
142
257
|
* @summary List insured objects
|
|
@@ -149,6 +264,18 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
149
264
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getInsuredObjectsPerVersion(productVersionId, authorization, options);
|
|
150
265
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
151
266
|
},
|
|
267
|
+
/**
|
|
268
|
+
* Retrieves list of available tariffs for the published product config version
|
|
269
|
+
* @summary Retrieve the Product Config Tariffs
|
|
270
|
+
* @param {number} productVersionId Product version id
|
|
271
|
+
* @param {string} [authorization] Bearer Token
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
async getProductConfigTariffs(productVersionId: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductConfigTariffsResponseClass>> {
|
|
276
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductConfigTariffs(productVersionId, authorization, options);
|
|
277
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
278
|
+
},
|
|
152
279
|
/**
|
|
153
280
|
* 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
281
|
* @summary List product factors
|
|
@@ -172,6 +299,18 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
172
299
|
export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
173
300
|
const localVarFp = ProductVersionsApiFp(configuration)
|
|
174
301
|
return {
|
|
302
|
+
/**
|
|
303
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
304
|
+
* @summary Calculates a quote for a selected tariff
|
|
305
|
+
* @param {number} productVersionId Product version id
|
|
306
|
+
* @param {CalculateProductTariffQuoteRequestDto} calculateProductTariffQuoteRequestDto
|
|
307
|
+
* @param {string} [authorization] Bearer Token
|
|
308
|
+
* @param {*} [options] Override http request option.
|
|
309
|
+
* @throws {RequiredError}
|
|
310
|
+
*/
|
|
311
|
+
calculateProductTariffQuote(productVersionId: number, calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto, authorization?: string, options?: any): AxiosPromise<CalculateProductTariffQuoteResponseClass> {
|
|
312
|
+
return localVarFp.calculateProductTariffQuote(productVersionId, calculateProductTariffQuoteRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
313
|
+
},
|
|
175
314
|
/**
|
|
176
315
|
* 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.
|
|
177
316
|
* @summary List insured objects
|
|
@@ -183,6 +322,17 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
183
322
|
getInsuredObjectsPerVersion(productVersionId: number, authorization?: string, options?: any): AxiosPromise<Array<InsuredObjectClass>> {
|
|
184
323
|
return localVarFp.getInsuredObjectsPerVersion(productVersionId, authorization, options).then((request) => request(axios, basePath));
|
|
185
324
|
},
|
|
325
|
+
/**
|
|
326
|
+
* Retrieves list of available tariffs for the published product config version
|
|
327
|
+
* @summary Retrieve the Product Config Tariffs
|
|
328
|
+
* @param {number} productVersionId Product version id
|
|
329
|
+
* @param {string} [authorization] Bearer Token
|
|
330
|
+
* @param {*} [options] Override http request option.
|
|
331
|
+
* @throws {RequiredError}
|
|
332
|
+
*/
|
|
333
|
+
getProductConfigTariffs(productVersionId: number, authorization?: string, options?: any): AxiosPromise<GetProductConfigTariffsResponseClass> {
|
|
334
|
+
return localVarFp.getProductConfigTariffs(productVersionId, authorization, options).then((request) => request(axios, basePath));
|
|
335
|
+
},
|
|
186
336
|
/**
|
|
187
337
|
* 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.
|
|
188
338
|
* @summary List product factors
|
|
@@ -198,6 +348,34 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
198
348
|
};
|
|
199
349
|
};
|
|
200
350
|
|
|
351
|
+
/**
|
|
352
|
+
* Request parameters for calculateProductTariffQuote operation in ProductVersionsApi.
|
|
353
|
+
* @export
|
|
354
|
+
* @interface ProductVersionsApiCalculateProductTariffQuoteRequest
|
|
355
|
+
*/
|
|
356
|
+
export interface ProductVersionsApiCalculateProductTariffQuoteRequest {
|
|
357
|
+
/**
|
|
358
|
+
* Product version id
|
|
359
|
+
* @type {number}
|
|
360
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
361
|
+
*/
|
|
362
|
+
readonly productVersionId: number
|
|
363
|
+
|
|
364
|
+
/**
|
|
365
|
+
*
|
|
366
|
+
* @type {CalculateProductTariffQuoteRequestDto}
|
|
367
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
368
|
+
*/
|
|
369
|
+
readonly calculateProductTariffQuoteRequestDto: CalculateProductTariffQuoteRequestDto
|
|
370
|
+
|
|
371
|
+
/**
|
|
372
|
+
* Bearer Token
|
|
373
|
+
* @type {string}
|
|
374
|
+
* @memberof ProductVersionsApiCalculateProductTariffQuote
|
|
375
|
+
*/
|
|
376
|
+
readonly authorization?: string
|
|
377
|
+
}
|
|
378
|
+
|
|
201
379
|
/**
|
|
202
380
|
* Request parameters for getInsuredObjectsPerVersion operation in ProductVersionsApi.
|
|
203
381
|
* @export
|
|
@@ -219,6 +397,27 @@ export interface ProductVersionsApiGetInsuredObjectsPerVersionRequest {
|
|
|
219
397
|
readonly authorization?: string
|
|
220
398
|
}
|
|
221
399
|
|
|
400
|
+
/**
|
|
401
|
+
* Request parameters for getProductConfigTariffs operation in ProductVersionsApi.
|
|
402
|
+
* @export
|
|
403
|
+
* @interface ProductVersionsApiGetProductConfigTariffsRequest
|
|
404
|
+
*/
|
|
405
|
+
export interface ProductVersionsApiGetProductConfigTariffsRequest {
|
|
406
|
+
/**
|
|
407
|
+
* Product version id
|
|
408
|
+
* @type {number}
|
|
409
|
+
* @memberof ProductVersionsApiGetProductConfigTariffs
|
|
410
|
+
*/
|
|
411
|
+
readonly productVersionId: number
|
|
412
|
+
|
|
413
|
+
/**
|
|
414
|
+
* Bearer Token
|
|
415
|
+
* @type {string}
|
|
416
|
+
* @memberof ProductVersionsApiGetProductConfigTariffs
|
|
417
|
+
*/
|
|
418
|
+
readonly authorization?: string
|
|
419
|
+
}
|
|
420
|
+
|
|
222
421
|
/**
|
|
223
422
|
* Request parameters for getProductFactorsPerVersion operation in ProductVersionsApi.
|
|
224
423
|
* @export
|
|
@@ -254,6 +453,18 @@ export interface ProductVersionsApiGetProductFactorsPerVersionRequest {
|
|
|
254
453
|
* @extends {BaseAPI}
|
|
255
454
|
*/
|
|
256
455
|
export class ProductVersionsApi extends BaseAPI {
|
|
456
|
+
/**
|
|
457
|
+
* Calculates and returns a tariff quote with estimated invoice data from the published product version.
|
|
458
|
+
* @summary Calculates a quote for a selected tariff
|
|
459
|
+
* @param {ProductVersionsApiCalculateProductTariffQuoteRequest} requestParameters Request parameters.
|
|
460
|
+
* @param {*} [options] Override http request option.
|
|
461
|
+
* @throws {RequiredError}
|
|
462
|
+
* @memberof ProductVersionsApi
|
|
463
|
+
*/
|
|
464
|
+
public calculateProductTariffQuote(requestParameters: ProductVersionsApiCalculateProductTariffQuoteRequest, options?: AxiosRequestConfig) {
|
|
465
|
+
return ProductVersionsApiFp(this.configuration).calculateProductTariffQuote(requestParameters.productVersionId, requestParameters.calculateProductTariffQuoteRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
466
|
+
}
|
|
467
|
+
|
|
257
468
|
/**
|
|
258
469
|
* 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.
|
|
259
470
|
* @summary List insured objects
|
|
@@ -266,6 +477,18 @@ export class ProductVersionsApi extends BaseAPI {
|
|
|
266
477
|
return ProductVersionsApiFp(this.configuration).getInsuredObjectsPerVersion(requestParameters.productVersionId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
267
478
|
}
|
|
268
479
|
|
|
480
|
+
/**
|
|
481
|
+
* Retrieves list of available tariffs for the published product config version
|
|
482
|
+
* @summary Retrieve the Product Config Tariffs
|
|
483
|
+
* @param {ProductVersionsApiGetProductConfigTariffsRequest} requestParameters Request parameters.
|
|
484
|
+
* @param {*} [options] Override http request option.
|
|
485
|
+
* @throws {RequiredError}
|
|
486
|
+
* @memberof ProductVersionsApi
|
|
487
|
+
*/
|
|
488
|
+
public getProductConfigTariffs(requestParameters: ProductVersionsApiGetProductConfigTariffsRequest, options?: AxiosRequestConfig) {
|
|
489
|
+
return ProductVersionsApiFp(this.configuration).getProductConfigTariffs(requestParameters.productVersionId, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
490
|
+
}
|
|
491
|
+
|
|
269
492
|
/**
|
|
270
493
|
* 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.
|
|
271
494
|
* @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
|