@emilgroup/insurance-sdk-node 1.2.0 → 1.5.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 +19 -5
- package/README.md +2 -2
- package/api/insured-object-types-api.ts +29 -29
- package/api/insured-objects-api.ts +44 -33
- package/api/leads-api.ts +187 -7
- package/api/policies-api.ts +276 -41
- package/api/premium-formulas-api.ts +669 -0
- package/api/product-factors-api.ts +889 -0
- package/api/product-fields-api.ts +843 -0
- package/api/product-versions-api.ts +301 -0
- package/api/products-api.ts +201 -2665
- package/api.ts +9 -1
- package/base.ts +23 -33
- package/common.ts +62 -1
- package/configuration.ts +1 -1
- package/dist/api/insured-object-types-api.d.ts +29 -29
- package/dist/api/insured-object-types-api.js +25 -25
- package/dist/api/insured-objects-api.d.ts +38 -29
- package/dist/api/insured-objects-api.js +31 -27
- package/dist/api/leads-api.d.ts +114 -10
- package/dist/api/leads-api.js +125 -2
- package/dist/api/policies-api.d.ts +171 -41
- package/dist/api/policies-api.js +231 -34
- package/dist/api/premium-formulas-api.d.ts +376 -0
- package/dist/api/premium-formulas-api.js +634 -0
- package/dist/api/product-factors-api.d.ts +493 -0
- package/dist/api/product-factors-api.js +788 -0
- package/dist/api/product-fields-api.d.ts +477 -0
- package/dist/api/product-fields-api.js +757 -0
- package/dist/api/product-versions-api.d.ts +171 -0
- package/dist/api/product-versions-api.js +334 -0
- package/dist/api/products-api.d.ts +25 -1388
- package/dist/api/products-api.js +137 -2118
- package/dist/api.d.ts +5 -1
- package/dist/api.js +5 -1
- package/dist/base.d.ts +2 -3
- package/dist/base.js +20 -22
- package/dist/common.d.ts +27 -1
- package/dist/common.js +36 -3
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/models/calculate-custom-premium-request-dto.d.ts +4 -4
- package/dist/models/calculate-custom-premium-request-dto.js +1 -1
- package/dist/models/calculate-premium-request-dto.d.ts +9 -9
- package/dist/models/calculate-premium-request-dto.js +1 -1
- package/dist/models/create-account-request-dto.d.ts +44 -14
- package/dist/models/create-account-request-dto.js +12 -1
- package/dist/models/create-bank-account-request-dto.d.ts +3 -3
- package/dist/models/create-bank-account-request-dto.js +1 -1
- package/dist/models/create-custom-application-request-dto.d.ts +5 -5
- package/dist/models/create-custom-application-request-dto.js +1 -1
- package/dist/models/create-dummy-policy-request-dto.d.ts +4 -4
- package/dist/models/create-dummy-policy-request-dto.js +1 -1
- package/dist/models/create-insured-object-request-dto.d.ts +5 -5
- package/dist/models/create-insured-object-request-dto.js +1 -1
- package/dist/models/create-insured-object-response-class.d.ts +5 -5
- package/dist/models/create-insured-object-response-class.js +1 -1
- package/dist/models/create-lead-request-dto.d.ts +23 -23
- package/dist/models/create-lead-request-dto.js +1 -1
- package/dist/models/create-lead-response-class.d.ts +25 -0
- package/dist/models/{grpc-policy-object-dto.js → create-lead-response-class.js} +1 -1
- package/dist/models/create-policy-request-dto.d.ts +19 -7
- package/dist/models/create-policy-request-dto.js +1 -1
- package/dist/models/create-policy-response-class.d.ts +1 -1
- package/dist/models/create-policy-response-class.js +1 -1
- package/dist/models/create-premium-formula-request-dto.d.ts +10 -9
- package/dist/models/create-premium-formula-request-dto.js +3 -2
- package/dist/models/create-premium-formula-response-class.d.ts +2 -2
- package/dist/models/create-premium-formula-response-class.js +1 -1
- package/dist/models/create-product-field-request-dto.d.ts +2 -2
- package/dist/models/create-product-field-request-dto.js +1 -1
- package/dist/models/create-product-field-response-class.d.ts +2 -2
- package/dist/models/create-product-field-response-class.js +1 -1
- package/dist/models/create-product-request-dto.d.ts +6 -6
- package/dist/models/create-product-request-dto.js +1 -1
- package/dist/models/create-product-response-class.d.ts +1 -1
- package/dist/models/create-product-response-class.js +1 -1
- package/dist/models/csv-product-factor-dto.d.ts +6 -6
- package/dist/models/csv-product-factor-dto.js +1 -1
- package/dist/models/delete-request-dto.d.ts +2 -2
- package/dist/models/delete-request-dto.js +1 -1
- package/dist/models/{get-insured-object-request-dto.d.ts → delete-response-class.d.ts} +7 -7
- package/dist/models/{to-grpc-create-policy-request-dto.js → delete-response-class.js} +1 -1
- package/dist/models/get-insured-object-response-class.d.ts +2 -2
- package/dist/models/get-insured-object-response-class.js +1 -1
- package/dist/models/get-lead-response-class.d.ts +25 -0
- package/dist/models/{grpc-update-policy-request-dto.js → get-lead-response-class.js} +1 -1
- package/dist/models/{grpc-policy-object-dto.d.ts → get-policy-data-by-date-request-dto.d.ts} +11 -11
- package/dist/models/{get-insured-object-request-dto.js → get-policy-data-by-date-request-dto.js} +1 -1
- package/dist/models/get-policy-request-dto.d.ts +3 -3
- package/dist/models/get-policy-request-dto.js +1 -1
- package/dist/models/get-policy-response-class.d.ts +2 -2
- package/dist/models/get-policy-response-class.js +1 -1
- package/dist/models/get-premium-formula-request-dto.d.ts +2 -2
- package/dist/models/get-premium-formula-request-dto.js +1 -1
- package/dist/models/get-premium-formula-response-class.d.ts +2 -2
- package/dist/models/get-premium-formula-response-class.js +1 -1
- package/dist/models/get-product-factor-response-class.d.ts +2 -2
- package/dist/models/get-product-factor-response-class.js +1 -1
- package/dist/models/get-product-factor-value-request-dto.d.ts +1 -1
- package/dist/models/get-product-factor-value-request-dto.js +1 -1
- package/dist/models/get-product-factor-value-response-class.d.ts +2 -2
- package/dist/models/get-product-factor-value-response-class.js +1 -1
- package/dist/models/get-product-factors-for-version-request-dto.d.ts +4 -4
- package/dist/models/get-product-factors-for-version-request-dto.js +1 -1
- package/dist/models/get-product-factors-for-version-response-class.d.ts +1 -1
- package/dist/models/get-product-factors-for-version-response-class.js +1 -1
- package/dist/models/get-product-field-request-dto.d.ts +2 -2
- package/dist/models/get-product-field-request-dto.js +1 -1
- package/dist/models/get-product-field-response-class.d.ts +2 -2
- package/dist/models/get-product-field-response-class.js +1 -1
- package/dist/models/get-product-request-dto.d.ts +1 -1
- package/dist/models/get-product-request-dto.js +1 -1
- package/dist/models/get-product-response-class.d.ts +1 -1
- package/dist/models/get-product-response-class.js +1 -1
- package/dist/models/get-product-version-request-dto.d.ts +2 -2
- package/dist/models/get-product-version-request-dto.js +1 -1
- package/dist/models/get-product-version-response-class.d.ts +1 -1
- package/dist/models/get-product-version-response-class.js +1 -1
- package/dist/models/grouped-product-factor-class.d.ts +4 -4
- package/dist/models/grouped-product-factor-class.js +1 -1
- package/dist/models/grouped-product-factor-value-class.d.ts +10 -4
- package/dist/models/grouped-product-factor-value-class.js +1 -1
- package/dist/models/grouped-product-factors-response-class.d.ts +1 -1
- package/dist/models/grouped-product-factors-response-class.js +1 -1
- package/dist/models/index.d.ts +15 -5
- package/dist/models/index.js +15 -5
- package/dist/models/insured-object-class.d.ts +13 -13
- package/dist/models/insured-object-class.js +1 -1
- package/dist/models/insured-object-type-class.d.ts +6 -6
- package/dist/models/insured-object-type-class.js +1 -1
- package/dist/models/lead-bank-account-class.d.ts +30 -0
- package/dist/models/lead-bank-account-class.js +15 -0
- package/dist/models/lead-class.d.ts +102 -0
- package/dist/models/lead-class.js +22 -0
- package/dist/models/list-insured-object-types-response-class.d.ts +2 -2
- package/dist/models/list-insured-object-types-response-class.js +1 -1
- package/dist/models/list-insured-objects-response-class.d.ts +5 -4
- package/dist/models/list-insured-objects-response-class.js +1 -1
- package/dist/models/list-leads-response-class.d.ts +31 -0
- package/dist/models/list-leads-response-class.js +15 -0
- package/dist/models/list-policies-response-class.d.ts +2 -2
- package/dist/models/list-policies-response-class.js +1 -1
- package/dist/models/list-premium-formulas-response-class.d.ts +3 -3
- package/dist/models/list-premium-formulas-response-class.js +1 -1
- package/dist/models/list-product-factors-response-class.d.ts +7 -7
- package/dist/models/list-product-factors-response-class.js +1 -1
- package/dist/models/list-product-field-types-response-class.d.ts +6 -5
- package/dist/models/list-product-field-types-response-class.js +1 -1
- package/dist/models/list-product-fields-response-class.d.ts +3 -3
- package/dist/models/list-product-fields-response-class.js +1 -1
- package/dist/models/list-products-response-class.d.ts +4 -4
- package/dist/models/list-products-response-class.js +1 -1
- package/dist/models/list-request-dto.d.ts +6 -6
- package/dist/models/list-request-dto.js +1 -1
- package/dist/models/omit-type-class.d.ts +60 -0
- package/dist/models/omit-type-class.js +15 -0
- package/dist/models/policy-class.d.ts +34 -16
- package/dist/models/policy-class.js +1 -1
- package/dist/models/policy-object-class.d.ts +5 -5
- package/dist/models/policy-object-class.js +1 -1
- package/dist/models/policy-object-dto.d.ts +3 -3
- package/dist/models/policy-object-dto.js +1 -1
- package/dist/models/policy-premium-class.d.ts +5 -5
- package/dist/models/policy-premium-class.js +1 -1
- package/dist/models/policy-premium-item-class.d.ts +7 -7
- package/dist/models/policy-premium-item-class.js +1 -1
- package/dist/models/policy-version-class.d.ts +6 -6
- package/dist/models/policy-version-class.js +1 -1
- package/dist/models/premium-formula-class.d.ts +10 -17
- package/dist/models/premium-formula-class.js +1 -1
- package/dist/models/premium-override-dto.d.ts +7 -6
- package/dist/models/premium-override-dto.js +3 -2
- package/dist/models/premium-override-request-class.d.ts +25 -0
- package/dist/models/premium-override-request-class.js +15 -0
- package/dist/models/premium-override-request-dto.d.ts +2 -2
- package/dist/models/premium-override-request-dto.js +1 -1
- package/dist/models/product-class.d.ts +10 -10
- package/dist/models/product-class.js +1 -1
- package/dist/models/product-factor-class.d.ts +8 -15
- package/dist/models/product-factor-class.js +1 -1
- package/dist/models/product-factor-value-class.d.ts +8 -28
- package/dist/models/product-factor-value-class.js +1 -1
- package/dist/models/product-field-class.d.ts +13 -13
- package/dist/models/product-field-class.js +1 -1
- package/dist/models/product-field-type-class.d.ts +48 -0
- package/dist/models/product-field-type-class.js +15 -0
- package/dist/models/product-version-class.d.ts +15 -8
- package/dist/models/product-version-class.js +8 -1
- package/dist/models/shared-product-field-class.d.ts +114 -0
- package/dist/models/shared-product-field-class.js +15 -0
- package/dist/models/shared-update-premium-formula-request-dto.d.ts +72 -0
- package/dist/models/{create-claim-request-dto.js → shared-update-premium-formula-request-dto.js} +10 -9
- package/dist/models/store-product-factors-request-dto.d.ts +2 -2
- package/dist/models/store-product-factors-request-dto.js +1 -1
- package/dist/models/store-product-factors-response-class.d.ts +1 -1
- package/dist/models/store-product-factors-response-class.js +1 -1
- package/dist/models/suspend-policy-request-dto.d.ts +24 -0
- package/dist/models/suspend-policy-request-dto.js +15 -0
- package/dist/models/suspend-policy-response-class.d.ts +25 -0
- package/dist/models/suspend-policy-response-class.js +15 -0
- package/dist/models/terminate-policy-request-dto.d.ts +3 -3
- package/dist/models/terminate-policy-request-dto.js +1 -1
- package/dist/models/terminate-policy-response-class.d.ts +1 -1
- package/dist/models/terminate-policy-response-class.js +1 -1
- package/dist/models/timeslice-class.d.ts +8 -8
- package/dist/models/timeslice-class.js +1 -1
- package/dist/models/update-insured-object-request-dto.d.ts +6 -6
- package/dist/models/update-insured-object-request-dto.js +1 -1
- package/dist/models/update-lead-request-dto.d.ts +8 -14
- package/dist/models/update-lead-request-dto.js +1 -1
- package/dist/models/update-lead-response-class.d.ts +25 -0
- package/dist/models/update-lead-response-class.js +15 -0
- package/dist/models/update-policy-request-dto.d.ts +24 -5
- package/dist/models/update-policy-request-dto.js +8 -1
- package/dist/models/update-policy-response-class.d.ts +1 -1
- package/dist/models/update-policy-response-class.js +1 -1
- package/dist/models/update-premium-formula-request-dto.d.ts +10 -15
- package/dist/models/update-premium-formula-request-dto.js +3 -2
- package/dist/models/update-premium-formula-response-class.d.ts +2 -2
- package/dist/models/update-premium-formula-response-class.js +1 -1
- package/dist/models/update-product-field-request-dto.d.ts +15 -15
- package/dist/models/update-product-field-request-dto.js +1 -1
- package/dist/models/update-product-field-response-class.d.ts +2 -2
- package/dist/models/update-product-field-response-class.js +1 -1
- package/dist/models/update-product-request-dto.d.ts +5 -5
- package/dist/models/update-product-request-dto.js +1 -1
- package/dist/models/update-product-response-class.d.ts +1 -1
- package/dist/models/update-product-response-class.js +1 -1
- package/dist/models/update-product-version-request-dto.d.ts +5 -5
- package/dist/models/update-product-version-request-dto.js +1 -1
- package/dist/models/update-product-version-response-class.d.ts +1 -1
- package/dist/models/update-product-version-response-class.js +1 -1
- package/dist/models/uploaded-document-dto.d.ts +2 -2
- package/dist/models/uploaded-document-dto.js +1 -1
- package/dist/models/validate-product-factors-request-dto.d.ts +2 -2
- package/dist/models/validate-product-factors-request-dto.js +1 -1
- package/dist/models/withdraw-policy-response-class.d.ts +1 -1
- package/dist/models/withdraw-policy-response-class.js +1 -1
- package/index.ts +1 -1
- package/models/calculate-custom-premium-request-dto.ts +3 -3
- package/models/calculate-premium-request-dto.ts +9 -9
- package/models/create-account-request-dto.ts +48 -14
- package/models/create-bank-account-request-dto.ts +3 -3
- package/models/create-custom-application-request-dto.ts +4 -4
- package/models/create-dummy-policy-request-dto.ts +4 -4
- package/models/create-insured-object-request-dto.ts +5 -5
- package/models/create-insured-object-response-class.ts +5 -5
- package/models/create-lead-request-dto.ts +22 -22
- package/models/create-lead-response-class.ts +31 -0
- package/models/create-policy-request-dto.ts +19 -7
- package/models/create-policy-response-class.ts +1 -1
- package/models/create-premium-formula-request-dto.ts +9 -8
- package/models/create-premium-formula-response-class.ts +2 -2
- package/models/create-product-field-request-dto.ts +1 -1
- package/models/create-product-field-response-class.ts +2 -2
- package/models/create-product-request-dto.ts +5 -5
- package/models/create-product-response-class.ts +1 -1
- package/models/csv-product-factor-dto.ts +6 -6
- package/models/delete-request-dto.ts +2 -2
- package/models/{get-insured-object-request-dto.ts → delete-response-class.ts} +7 -7
- package/models/get-insured-object-response-class.ts +2 -2
- package/models/get-lead-response-class.ts +31 -0
- package/models/{grpc-policy-object-dto.ts → get-policy-data-by-date-request-dto.ts} +11 -11
- package/models/get-policy-request-dto.ts +3 -3
- package/models/get-policy-response-class.ts +2 -2
- package/models/get-premium-formula-request-dto.ts +2 -2
- package/models/get-premium-formula-response-class.ts +2 -2
- package/models/get-product-factor-response-class.ts +2 -2
- package/models/get-product-factor-value-request-dto.ts +1 -1
- package/models/get-product-factor-value-response-class.ts +2 -2
- package/models/get-product-factors-for-version-request-dto.ts +4 -4
- package/models/get-product-factors-for-version-response-class.ts +1 -1
- package/models/get-product-field-request-dto.ts +2 -2
- package/models/get-product-field-response-class.ts +2 -2
- package/models/get-product-request-dto.ts +1 -1
- package/models/get-product-response-class.ts +1 -1
- package/models/get-product-version-request-dto.ts +2 -2
- package/models/get-product-version-response-class.ts +1 -1
- package/models/grouped-product-factor-class.ts +4 -4
- package/models/grouped-product-factor-value-class.ts +10 -4
- package/models/grouped-product-factors-response-class.ts +1 -1
- package/models/index.ts +15 -5
- package/models/insured-object-class.ts +13 -13
- package/models/insured-object-type-class.ts +6 -6
- package/models/lead-bank-account-class.ts +36 -0
- package/models/lead-class.ts +111 -0
- package/models/list-insured-object-types-response-class.ts +2 -2
- package/models/list-insured-objects-response-class.ts +5 -4
- package/models/list-leads-response-class.ts +37 -0
- package/models/list-policies-response-class.ts +2 -2
- package/models/list-premium-formulas-response-class.ts +3 -3
- package/models/list-product-factors-response-class.ts +7 -7
- package/models/list-product-field-types-response-class.ts +6 -5
- package/models/list-product-fields-response-class.ts +3 -3
- package/models/list-products-response-class.ts +4 -4
- package/models/list-request-dto.ts +6 -6
- package/models/omit-type-class.ts +66 -0
- package/models/policy-class.ts +34 -16
- package/models/policy-object-class.ts +5 -5
- package/models/policy-object-dto.ts +3 -3
- package/models/policy-premium-class.ts +5 -5
- package/models/policy-premium-item-class.ts +7 -7
- package/models/policy-version-class.ts +6 -6
- package/models/premium-formula-class.ts +10 -17
- package/models/premium-override-dto.ts +6 -5
- package/models/premium-override-request-class.ts +31 -0
- package/models/premium-override-request-dto.ts +2 -2
- package/models/product-class.ts +10 -10
- package/models/product-factor-class.ts +8 -15
- package/models/product-factor-value-class.ts +8 -28
- package/models/product-field-class.ts +13 -13
- package/models/product-field-type-class.ts +54 -0
- package/models/product-version-class.ts +18 -8
- package/models/shared-product-field-class.ts +120 -0
- package/models/shared-update-premium-formula-request-dto.ts +82 -0
- package/models/store-product-factors-request-dto.ts +2 -2
- package/models/store-product-factors-response-class.ts +1 -1
- package/models/suspend-policy-request-dto.ts +30 -0
- package/models/suspend-policy-response-class.ts +31 -0
- package/models/terminate-policy-request-dto.ts +3 -3
- package/models/terminate-policy-response-class.ts +1 -1
- package/models/timeslice-class.ts +8 -8
- package/models/update-insured-object-request-dto.ts +6 -6
- package/models/update-lead-request-dto.ts +7 -13
- package/models/update-lead-response-class.ts +31 -0
- package/models/update-policy-request-dto.ts +27 -5
- package/models/update-policy-response-class.ts +1 -1
- package/models/update-premium-formula-request-dto.ts +9 -14
- package/models/update-premium-formula-response-class.ts +2 -2
- package/models/update-product-field-request-dto.ts +14 -14
- package/models/update-product-field-response-class.ts +2 -2
- package/models/update-product-request-dto.ts +5 -5
- package/models/update-product-response-class.ts +1 -1
- package/models/update-product-version-request-dto.ts +4 -4
- package/models/update-product-version-response-class.ts +1 -1
- package/models/uploaded-document-dto.ts +2 -2
- package/models/validate-product-factors-request-dto.ts +2 -2
- package/models/withdraw-policy-response-class.ts +1 -1
- package/package.json +3 -4
- package/dist/models/create-claim-request-dto.d.ts +0 -83
- package/dist/models/grpc-update-policy-request-dto.d.ts +0 -50
- package/dist/models/to-grpc-create-policy-request-dto.d.ts +0 -44
- package/models/create-claim-request-dto.ts +0 -93
- package/models/grpc-update-policy-request-dto.ts +0 -56
- package/models/to-grpc-create-policy-request-dto.ts +0 -50
package/api/products-api.ts
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* The EMIL InsuranceService API description
|
|
6
6
|
*
|
|
7
7
|
* The version of the OpenAPI document: 1.0
|
|
8
|
-
*
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
11
|
* https://openapi-generator.tech
|
|
@@ -21,61 +21,19 @@ 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 { CreatePremiumFormulaRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CreatePremiumFormulaResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
|
-
import { CreateProductFieldRequestDto } from '../models';
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
import { CreateProductFieldResponseClass } from '../models';
|
|
31
|
-
// @ts-ignore
|
|
32
24
|
import { CreateProductRequestDto } from '../models';
|
|
33
25
|
// @ts-ignore
|
|
34
26
|
import { CreateProductResponseClass } from '../models';
|
|
35
27
|
// @ts-ignore
|
|
36
|
-
import {
|
|
37
|
-
// @ts-ignore
|
|
38
|
-
import { GetProductFactorResponseClass } from '../models';
|
|
39
|
-
// @ts-ignore
|
|
40
|
-
import { GetProductFactorValueResponseClass } from '../models';
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
import { GetProductFactorsForVersionResponseClass } from '../models';
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
import { GetProductFieldResponseClass } from '../models';
|
|
28
|
+
import { DeleteResponseClass } from '../models';
|
|
45
29
|
// @ts-ignore
|
|
46
30
|
import { GetProductResponseClass } from '../models';
|
|
47
31
|
// @ts-ignore
|
|
48
|
-
import { GetProductVersionResponseClass } from '../models';
|
|
49
|
-
// @ts-ignore
|
|
50
|
-
import { GroupedProductFactorsResponseClass } from '../models';
|
|
51
|
-
// @ts-ignore
|
|
52
|
-
import { ListPremiumFormulasResponseClass } from '../models';
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
import { ListProductFactorsResponseClass } from '../models';
|
|
55
|
-
// @ts-ignore
|
|
56
|
-
import { ListProductFieldTypesResponseClass } from '../models';
|
|
57
|
-
// @ts-ignore
|
|
58
|
-
import { ListProductFieldsResponseClass } from '../models';
|
|
59
|
-
// @ts-ignore
|
|
60
32
|
import { ListProductsResponseClass } from '../models';
|
|
61
33
|
// @ts-ignore
|
|
62
|
-
import { StoreProductFactorsResponseClass } from '../models';
|
|
63
|
-
// @ts-ignore
|
|
64
|
-
import { UpdatePremiumFormulaRequestDto } from '../models';
|
|
65
|
-
// @ts-ignore
|
|
66
|
-
import { UpdatePremiumFormulaResponseClass } from '../models';
|
|
67
|
-
// @ts-ignore
|
|
68
|
-
import { UpdateProductFieldRequestDto } from '../models';
|
|
69
|
-
// @ts-ignore
|
|
70
|
-
import { UpdateProductFieldResponseClass } from '../models';
|
|
71
|
-
// @ts-ignore
|
|
72
34
|
import { UpdateProductRequestDto } from '../models';
|
|
73
35
|
// @ts-ignore
|
|
74
36
|
import { UpdateProductResponseClass } from '../models';
|
|
75
|
-
// @ts-ignore
|
|
76
|
-
import { UpdateProductVersionRequestDto } from '../models';
|
|
77
|
-
// @ts-ignore
|
|
78
|
-
import { UpdateProductVersionResponseClass } from '../models';
|
|
79
37
|
// URLSearchParams not necessarily used
|
|
80
38
|
// @ts-ignore
|
|
81
39
|
import { URL, URLSearchParams } from 'url';
|
|
@@ -86,53 +44,6 @@ const FormData = require('form-data');
|
|
|
86
44
|
*/
|
|
87
45
|
export const ProductsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
88
46
|
return {
|
|
89
|
-
/**
|
|
90
|
-
* Creates a premium formula.
|
|
91
|
-
* @summary Create the premium formula
|
|
92
|
-
* @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
|
|
93
|
-
* @param {string} [authorization] Bearer Token
|
|
94
|
-
* @param {*} [options] Override http request option.
|
|
95
|
-
* @throws {RequiredError}
|
|
96
|
-
*/
|
|
97
|
-
createPremiumFormula: async (createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
98
|
-
// verify required parameter 'createPremiumFormulaRequestDto' is not null or undefined
|
|
99
|
-
assertParamExists('createPremiumFormula', 'createPremiumFormulaRequestDto', createPremiumFormulaRequestDto)
|
|
100
|
-
const localVarPath = `/insuranceservice/v1/premium-formulas`;
|
|
101
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
-
let baseOptions;
|
|
104
|
-
let baseAccessToken;
|
|
105
|
-
if (configuration) {
|
|
106
|
-
baseOptions = configuration.baseOptions;
|
|
107
|
-
baseAccessToken = configuration.accessToken;
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
111
|
-
const localVarHeaderParameter = {} as any;
|
|
112
|
-
const localVarQueryParameter = {} as any;
|
|
113
|
-
|
|
114
|
-
// authentication bearer required
|
|
115
|
-
// http bearer authentication required
|
|
116
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
-
|
|
118
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
125
|
-
|
|
126
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
127
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
128
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
129
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createPremiumFormulaRequestDto, localVarRequestOptions, configuration)
|
|
130
|
-
|
|
131
|
-
return {
|
|
132
|
-
url: toPathString(localVarUrlObj),
|
|
133
|
-
options: localVarRequestOptions,
|
|
134
|
-
};
|
|
135
|
-
},
|
|
136
47
|
/**
|
|
137
48
|
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
138
49
|
* @summary Create the product
|
|
@@ -180,98 +91,6 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
180
91
|
options: localVarRequestOptions,
|
|
181
92
|
};
|
|
182
93
|
},
|
|
183
|
-
/**
|
|
184
|
-
* Create a product field in the database.
|
|
185
|
-
* @summary Create the product field
|
|
186
|
-
* @param {CreateProductFieldRequestDto} createProductFieldRequestDto
|
|
187
|
-
* @param {string} [authorization] Bearer Token
|
|
188
|
-
* @param {*} [options] Override http request option.
|
|
189
|
-
* @throws {RequiredError}
|
|
190
|
-
*/
|
|
191
|
-
createProductField: async (createProductFieldRequestDto: CreateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
192
|
-
// verify required parameter 'createProductFieldRequestDto' is not null or undefined
|
|
193
|
-
assertParamExists('createProductField', 'createProductFieldRequestDto', createProductFieldRequestDto)
|
|
194
|
-
const localVarPath = `/insuranceservice/v1/product-fields`;
|
|
195
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
197
|
-
let baseOptions;
|
|
198
|
-
let baseAccessToken;
|
|
199
|
-
if (configuration) {
|
|
200
|
-
baseOptions = configuration.baseOptions;
|
|
201
|
-
baseAccessToken = configuration.accessToken;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
205
|
-
const localVarHeaderParameter = {} as any;
|
|
206
|
-
const localVarQueryParameter = {} as any;
|
|
207
|
-
|
|
208
|
-
// authentication bearer required
|
|
209
|
-
// http bearer authentication required
|
|
210
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
211
|
-
|
|
212
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
213
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
219
|
-
|
|
220
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
221
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
222
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
223
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createProductFieldRequestDto, localVarRequestOptions, configuration)
|
|
224
|
-
|
|
225
|
-
return {
|
|
226
|
-
url: toPathString(localVarUrlObj),
|
|
227
|
-
options: localVarRequestOptions,
|
|
228
|
-
};
|
|
229
|
-
},
|
|
230
|
-
/**
|
|
231
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
232
|
-
* @summary Delete the premium formula
|
|
233
|
-
* @param {number} id
|
|
234
|
-
* @param {string} [authorization] Bearer Token
|
|
235
|
-
* @param {*} [options] Override http request option.
|
|
236
|
-
* @throws {RequiredError}
|
|
237
|
-
*/
|
|
238
|
-
deletePremiumFormula: async (id: number, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
239
|
-
// verify required parameter 'id' is not null or undefined
|
|
240
|
-
assertParamExists('deletePremiumFormula', 'id', id)
|
|
241
|
-
const localVarPath = `/insuranceservice/v1/premium-formulas/{id}`
|
|
242
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
243
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
244
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
245
|
-
let baseOptions;
|
|
246
|
-
let baseAccessToken;
|
|
247
|
-
if (configuration) {
|
|
248
|
-
baseOptions = configuration.baseOptions;
|
|
249
|
-
baseAccessToken = configuration.accessToken;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
253
|
-
const localVarHeaderParameter = {} as any;
|
|
254
|
-
const localVarQueryParameter = {} as any;
|
|
255
|
-
|
|
256
|
-
// authentication bearer required
|
|
257
|
-
// http bearer authentication required
|
|
258
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
259
|
-
|
|
260
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
261
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
267
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
268
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
269
|
-
|
|
270
|
-
return {
|
|
271
|
-
url: toPathString(localVarUrlObj),
|
|
272
|
-
options: localVarRequestOptions,
|
|
273
|
-
};
|
|
274
|
-
},
|
|
275
94
|
/**
|
|
276
95
|
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
277
96
|
* @summary Delete the product
|
|
@@ -318,18 +137,22 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
318
137
|
};
|
|
319
138
|
},
|
|
320
139
|
/**
|
|
321
|
-
*
|
|
322
|
-
* @summary
|
|
323
|
-
* @param {string}
|
|
324
|
-
* @param {
|
|
140
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
141
|
+
* @summary Retrieve the product
|
|
142
|
+
* @param {string} code Unique identifier for the object.
|
|
143
|
+
* @param {number} id Product id
|
|
144
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
145
|
+
* @param {string} [expand] Fields to expand response by
|
|
325
146
|
* @param {*} [options] Override http request option.
|
|
326
147
|
* @throws {RequiredError}
|
|
327
148
|
*/
|
|
328
|
-
|
|
149
|
+
getProductByCode: async (code: string, id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
150
|
+
// verify required parameter 'code' is not null or undefined
|
|
151
|
+
assertParamExists('getProductByCode', 'code', code)
|
|
329
152
|
// verify required parameter 'id' is not null or undefined
|
|
330
|
-
assertParamExists('
|
|
331
|
-
const localVarPath = `/insuranceservice/v1/
|
|
332
|
-
.replace(`{${"
|
|
153
|
+
assertParamExists('getProductByCode', 'id', id)
|
|
154
|
+
const localVarPath = `/insuranceservice/v1/products/code/{code}`
|
|
155
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
333
156
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
334
157
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
335
158
|
let baseOptions;
|
|
@@ -339,7 +162,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
339
162
|
baseAccessToken = configuration.accessToken;
|
|
340
163
|
}
|
|
341
164
|
|
|
342
|
-
const localVarRequestOptions = { method: '
|
|
165
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
343
166
|
const localVarHeaderParameter = {} as any;
|
|
344
167
|
const localVarQueryParameter = {} as any;
|
|
345
168
|
|
|
@@ -347,6 +170,14 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
347
170
|
// http bearer authentication required
|
|
348
171
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
349
172
|
|
|
173
|
+
if (id !== undefined) {
|
|
174
|
+
localVarQueryParameter['id'] = id;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (expand !== undefined) {
|
|
178
|
+
localVarQueryParameter['expand'] = expand;
|
|
179
|
+
}
|
|
180
|
+
|
|
350
181
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
351
182
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
352
183
|
}
|
|
@@ -363,21 +194,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
363
194
|
};
|
|
364
195
|
},
|
|
365
196
|
/**
|
|
366
|
-
*
|
|
367
|
-
* @summary
|
|
368
|
-
* @param {string}
|
|
369
|
-
* @param {number}
|
|
370
|
-
* @param {string} [
|
|
197
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
198
|
+
* @summary List products
|
|
199
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
200
|
+
* @param {number} [pageSize] Page size.
|
|
201
|
+
* @param {string} [pageToken] Page token.
|
|
202
|
+
* @param {string} [filter] List filter
|
|
203
|
+
* @param {string} [search] Search query.
|
|
204
|
+
* @param {string} [order] Ordering criteria.
|
|
205
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
371
206
|
* @param {*} [options] Override http request option.
|
|
372
207
|
* @throws {RequiredError}
|
|
373
208
|
*/
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
assertParamExists('getPremiumFormula', 'id', id)
|
|
377
|
-
// verify required parameter 'id2' is not null or undefined
|
|
378
|
-
assertParamExists('getPremiumFormula', 'id2', id2)
|
|
379
|
-
const localVarPath = `/insuranceservice/v1/premium-formulas/{id}`
|
|
380
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
209
|
+
listProducts: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
210
|
+
const localVarPath = `/insuranceservice/v1/products`;
|
|
381
211
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
382
212
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
383
213
|
let baseOptions;
|
|
@@ -395,61 +225,24 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
395
225
|
// http bearer authentication required
|
|
396
226
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
397
227
|
|
|
398
|
-
if (
|
|
399
|
-
localVarQueryParameter['
|
|
228
|
+
if (pageSize !== undefined) {
|
|
229
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
400
230
|
}
|
|
401
231
|
|
|
402
|
-
if (
|
|
403
|
-
|
|
232
|
+
if (pageToken !== undefined) {
|
|
233
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
404
234
|
}
|
|
405
235
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
409
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
410
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
411
|
-
|
|
412
|
-
return {
|
|
413
|
-
url: toPathString(localVarUrlObj),
|
|
414
|
-
options: localVarRequestOptions,
|
|
415
|
-
};
|
|
416
|
-
},
|
|
417
|
-
/**
|
|
418
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
419
|
-
* @summary Retrieve the product
|
|
420
|
-
* @param {string} code Unique identifier for the object.
|
|
421
|
-
* @param {number} id Product id
|
|
422
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
423
|
-
* @param {string} [expand] Fields to expand response by
|
|
424
|
-
* @param {*} [options] Override http request option.
|
|
425
|
-
* @throws {RequiredError}
|
|
426
|
-
*/
|
|
427
|
-
getProductByCode: async (code: string, id: number, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
428
|
-
// verify required parameter 'code' is not null or undefined
|
|
429
|
-
assertParamExists('getProductByCode', 'code', code)
|
|
430
|
-
// verify required parameter 'id' is not null or undefined
|
|
431
|
-
assertParamExists('getProductByCode', 'id', id)
|
|
432
|
-
const localVarPath = `/insuranceservice/v1/products/code/{code}`
|
|
433
|
-
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
434
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
435
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
436
|
-
let baseOptions;
|
|
437
|
-
let baseAccessToken;
|
|
438
|
-
if (configuration) {
|
|
439
|
-
baseOptions = configuration.baseOptions;
|
|
440
|
-
baseAccessToken = configuration.accessToken;
|
|
236
|
+
if (filter !== undefined) {
|
|
237
|
+
localVarQueryParameter['filter'] = filter;
|
|
441
238
|
}
|
|
442
239
|
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
// authentication bearer required
|
|
448
|
-
// http bearer authentication required
|
|
449
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
240
|
+
if (search !== undefined) {
|
|
241
|
+
localVarQueryParameter['search'] = search;
|
|
242
|
+
}
|
|
450
243
|
|
|
451
|
-
if (
|
|
452
|
-
localVarQueryParameter['
|
|
244
|
+
if (order !== undefined) {
|
|
245
|
+
localVarQueryParameter['order'] = order;
|
|
453
246
|
}
|
|
454
247
|
|
|
455
248
|
if (expand !== undefined) {
|
|
@@ -472,21 +265,20 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
472
265
|
};
|
|
473
266
|
},
|
|
474
267
|
/**
|
|
475
|
-
*
|
|
476
|
-
* @summary
|
|
268
|
+
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
269
|
+
* @summary Update the product
|
|
477
270
|
* @param {number} id
|
|
478
|
-
* @param {
|
|
479
|
-
* @param {string} [authorization] Bearer Token
|
|
480
|
-
* @param {string} [expand] Fields to expand response by
|
|
271
|
+
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
272
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
481
273
|
* @param {*} [options] Override http request option.
|
|
482
274
|
* @throws {RequiredError}
|
|
483
275
|
*/
|
|
484
|
-
|
|
276
|
+
updateProduct: async (id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
485
277
|
// verify required parameter 'id' is not null or undefined
|
|
486
|
-
assertParamExists('
|
|
487
|
-
// verify required parameter '
|
|
488
|
-
assertParamExists('
|
|
489
|
-
const localVarPath = `/insuranceservice/v1/
|
|
278
|
+
assertParamExists('updateProduct', 'id', id)
|
|
279
|
+
// verify required parameter 'updateProductRequestDto' is not null or undefined
|
|
280
|
+
assertParamExists('updateProduct', 'updateProductRequestDto', updateProductRequestDto)
|
|
281
|
+
const localVarPath = `/insuranceservice/v1/products/{id}`
|
|
490
282
|
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
491
283
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
492
284
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -497,7 +289,7 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
497
289
|
baseAccessToken = configuration.accessToken;
|
|
498
290
|
}
|
|
499
291
|
|
|
500
|
-
const localVarRequestOptions = { method: '
|
|
292
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
501
293
|
const localVarHeaderParameter = {} as any;
|
|
502
294
|
const localVarQueryParameter = {} as any;
|
|
503
295
|
|
|
@@ -505,2146 +297,251 @@ export const ProductsApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
505
297
|
// http bearer authentication required
|
|
506
298
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
507
299
|
|
|
508
|
-
if (id2 !== undefined) {
|
|
509
|
-
localVarQueryParameter['id'] = id2;
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
if (expand !== undefined) {
|
|
513
|
-
localVarQueryParameter['expand'] = expand;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
300
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
517
301
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
518
302
|
}
|
|
519
303
|
|
|
520
304
|
|
|
521
305
|
|
|
306
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
307
|
+
|
|
522
308
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
523
309
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
524
310
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
311
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequestDto, localVarRequestOptions, configuration)
|
|
525
312
|
|
|
526
313
|
return {
|
|
527
314
|
url: toPathString(localVarUrlObj),
|
|
528
315
|
options: localVarRequestOptions,
|
|
529
316
|
};
|
|
530
317
|
},
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
* @summary Get product factor value
|
|
534
|
-
* @param {number} productVersionId Product Version Id
|
|
535
|
-
* @param {string} label Product factor label
|
|
536
|
-
* @param {string} key Key for the product factor value
|
|
537
|
-
* @param {string} name Name for the product factor value
|
|
538
|
-
* @param {string} [authorization] Bearer Token
|
|
539
|
-
* @param {*} [options] Override http request option.
|
|
540
|
-
* @throws {RequiredError}
|
|
541
|
-
*/
|
|
542
|
-
getProductFactorValue: async (productVersionId: number, label: string, key: string, name: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
543
|
-
// verify required parameter 'productVersionId' is not null or undefined
|
|
544
|
-
assertParamExists('getProductFactorValue', 'productVersionId', productVersionId)
|
|
545
|
-
// verify required parameter 'label' is not null or undefined
|
|
546
|
-
assertParamExists('getProductFactorValue', 'label', label)
|
|
547
|
-
// verify required parameter 'key' is not null or undefined
|
|
548
|
-
assertParamExists('getProductFactorValue', 'key', key)
|
|
549
|
-
// verify required parameter 'name' is not null or undefined
|
|
550
|
-
assertParamExists('getProductFactorValue', 'name', name)
|
|
551
|
-
const localVarPath = `/insuranceservice/v1/product-factors/values`;
|
|
552
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
553
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
554
|
-
let baseOptions;
|
|
555
|
-
let baseAccessToken;
|
|
556
|
-
if (configuration) {
|
|
557
|
-
baseOptions = configuration.baseOptions;
|
|
558
|
-
baseAccessToken = configuration.accessToken;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
562
|
-
const localVarHeaderParameter = {} as any;
|
|
563
|
-
const localVarQueryParameter = {} as any;
|
|
564
|
-
|
|
565
|
-
// authentication bearer required
|
|
566
|
-
// http bearer authentication required
|
|
567
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
568
|
-
|
|
569
|
-
if (productVersionId !== undefined) {
|
|
570
|
-
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
if (label !== undefined) {
|
|
574
|
-
localVarQueryParameter['label'] = label;
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
if (key !== undefined) {
|
|
578
|
-
localVarQueryParameter['key'] = key;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
if (name !== undefined) {
|
|
582
|
-
localVarQueryParameter['name'] = name;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
586
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
592
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
593
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
318
|
+
}
|
|
319
|
+
};
|
|
594
320
|
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
321
|
+
/**
|
|
322
|
+
* ProductsApi - functional programming interface
|
|
323
|
+
* @export
|
|
324
|
+
*/
|
|
325
|
+
export const ProductsApiFp = function(configuration?: Configuration) {
|
|
326
|
+
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
|
|
327
|
+
return {
|
|
600
328
|
/**
|
|
601
|
-
*
|
|
602
|
-
* @summary
|
|
603
|
-
* @param {
|
|
604
|
-
* @param {string}
|
|
605
|
-
* @param {string} [authorization] Bearer Token
|
|
606
|
-
* @param {boolean} [forPublic] true if this is a call from PublivAPI or false otherwise (default)
|
|
329
|
+
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
330
|
+
* @summary Create the product
|
|
331
|
+
* @param {CreateProductRequestDto} createProductRequestDto
|
|
332
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
607
333
|
* @param {*} [options] Override http request option.
|
|
608
334
|
* @throws {RequiredError}
|
|
609
335
|
*/
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
// verify required parameter 'values' is not null or undefined
|
|
614
|
-
assertParamExists('getProductFactorsForVersion', 'values', values)
|
|
615
|
-
const localVarPath = `/insuranceservice/v1/product-factors/for-version`;
|
|
616
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
617
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
618
|
-
let baseOptions;
|
|
619
|
-
let baseAccessToken;
|
|
620
|
-
if (configuration) {
|
|
621
|
-
baseOptions = configuration.baseOptions;
|
|
622
|
-
baseAccessToken = configuration.accessToken;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
626
|
-
const localVarHeaderParameter = {} as any;
|
|
627
|
-
const localVarQueryParameter = {} as any;
|
|
628
|
-
|
|
629
|
-
// authentication bearer required
|
|
630
|
-
// http bearer authentication required
|
|
631
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
632
|
-
|
|
633
|
-
if (productVersionId !== undefined) {
|
|
634
|
-
localVarQueryParameter['productVersionId'] = productVersionId;
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
if (values !== undefined) {
|
|
638
|
-
localVarQueryParameter['values'] = values;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
if (forPublic !== undefined) {
|
|
642
|
-
localVarQueryParameter['forPublic'] = forPublic;
|
|
643
|
-
}
|
|
644
|
-
|
|
645
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
646
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
652
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
653
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
654
|
-
|
|
655
|
-
return {
|
|
656
|
-
url: toPathString(localVarUrlObj),
|
|
657
|
-
options: localVarRequestOptions,
|
|
658
|
-
};
|
|
336
|
+
async createProduct(createProductRequestDto: CreateProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductResponseClass>> {
|
|
337
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options);
|
|
338
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
659
339
|
},
|
|
660
340
|
/**
|
|
661
|
-
*
|
|
662
|
-
* @summary
|
|
663
|
-
* @param {
|
|
664
|
-
* @param {string} [authorization] Bearer Token
|
|
341
|
+
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
342
|
+
* @summary Delete the product
|
|
343
|
+
* @param {number} id
|
|
344
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
665
345
|
* @param {*} [options] Override http request option.
|
|
666
346
|
* @throws {RequiredError}
|
|
667
347
|
*/
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
const localVarPath = `/insuranceservice/v1/product-fields/{id}`
|
|
672
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
673
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
674
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
675
|
-
let baseOptions;
|
|
676
|
-
let baseAccessToken;
|
|
677
|
-
if (configuration) {
|
|
678
|
-
baseOptions = configuration.baseOptions;
|
|
679
|
-
baseAccessToken = configuration.accessToken;
|
|
680
|
-
}
|
|
681
|
-
|
|
682
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
683
|
-
const localVarHeaderParameter = {} as any;
|
|
684
|
-
const localVarQueryParameter = {} as any;
|
|
685
|
-
|
|
686
|
-
// authentication bearer required
|
|
687
|
-
// http bearer authentication required
|
|
688
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
689
|
-
|
|
690
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
691
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
692
|
-
}
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
697
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
698
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
699
|
-
|
|
700
|
-
return {
|
|
701
|
-
url: toPathString(localVarUrlObj),
|
|
702
|
-
options: localVarRequestOptions,
|
|
703
|
-
};
|
|
348
|
+
async deleteProduct(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteResponseClass>> {
|
|
349
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProduct(id, authorization, options);
|
|
350
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
704
351
|
},
|
|
705
352
|
/**
|
|
706
|
-
* Retrieves the details of the product
|
|
707
|
-
* @summary Retrieve the product
|
|
708
|
-
* @param {string}
|
|
709
|
-
* @param {number}
|
|
710
|
-
* @param {string} [authorization] Bearer Token
|
|
353
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
354
|
+
* @summary Retrieve the product
|
|
355
|
+
* @param {string} code Unique identifier for the object.
|
|
356
|
+
* @param {number} id Product id
|
|
357
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
358
|
+
* @param {string} [expand] Fields to expand response by
|
|
711
359
|
* @param {*} [options] Override http request option.
|
|
712
360
|
* @throws {RequiredError}
|
|
713
361
|
*/
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
// verify required parameter 'id2' is not null or undefined
|
|
718
|
-
assertParamExists('getProductVersion', 'id2', id2)
|
|
719
|
-
const localVarPath = `/insuranceservice/v1/product-versions/{id}`
|
|
720
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
721
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
722
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
723
|
-
let baseOptions;
|
|
724
|
-
let baseAccessToken;
|
|
725
|
-
if (configuration) {
|
|
726
|
-
baseOptions = configuration.baseOptions;
|
|
727
|
-
baseAccessToken = configuration.accessToken;
|
|
728
|
-
}
|
|
729
|
-
|
|
730
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
731
|
-
const localVarHeaderParameter = {} as any;
|
|
732
|
-
const localVarQueryParameter = {} as any;
|
|
733
|
-
|
|
734
|
-
// authentication bearer required
|
|
735
|
-
// http bearer authentication required
|
|
736
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
737
|
-
|
|
738
|
-
if (id2 !== undefined) {
|
|
739
|
-
localVarQueryParameter['id'] = id2;
|
|
740
|
-
}
|
|
741
|
-
|
|
742
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
743
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
744
|
-
}
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
749
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
750
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
751
|
-
|
|
752
|
-
return {
|
|
753
|
-
url: toPathString(localVarUrlObj),
|
|
754
|
-
options: localVarRequestOptions,
|
|
755
|
-
};
|
|
362
|
+
async getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
|
|
363
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
|
|
364
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
756
365
|
},
|
|
757
366
|
/**
|
|
758
|
-
* Returns a list of
|
|
759
|
-
* @summary List
|
|
760
|
-
* @param {string} [authorization] Bearer Token
|
|
761
|
-
* @param {number} [pageSize] Page size
|
|
762
|
-
* @param {string} [pageToken] Page token
|
|
367
|
+
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
368
|
+
* @summary List products
|
|
369
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
370
|
+
* @param {number} [pageSize] Page size.
|
|
371
|
+
* @param {string} [pageToken] Page token.
|
|
763
372
|
* @param {string} [filter] List filter
|
|
764
|
-
* @param {string} [search] Search query
|
|
765
|
-
* @param {string} [order] Ordering criteria
|
|
766
|
-
* @param {string} [expand]
|
|
373
|
+
* @param {string} [search] Search query.
|
|
374
|
+
* @param {string} [order] Ordering criteria.
|
|
375
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
767
376
|
* @param {*} [options] Override http request option.
|
|
768
377
|
* @throws {RequiredError}
|
|
769
378
|
*/
|
|
770
|
-
|
|
771
|
-
const
|
|
772
|
-
|
|
773
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
774
|
-
let baseOptions;
|
|
775
|
-
let baseAccessToken;
|
|
776
|
-
if (configuration) {
|
|
777
|
-
baseOptions = configuration.baseOptions;
|
|
778
|
-
baseAccessToken = configuration.accessToken;
|
|
779
|
-
}
|
|
780
|
-
|
|
781
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
782
|
-
const localVarHeaderParameter = {} as any;
|
|
783
|
-
const localVarQueryParameter = {} as any;
|
|
784
|
-
|
|
785
|
-
// authentication bearer required
|
|
786
|
-
// http bearer authentication required
|
|
787
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
788
|
-
|
|
789
|
-
if (pageSize !== undefined) {
|
|
790
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
791
|
-
}
|
|
792
|
-
|
|
793
|
-
if (pageToken !== undefined) {
|
|
794
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
if (filter !== undefined) {
|
|
798
|
-
localVarQueryParameter['filter'] = filter;
|
|
799
|
-
}
|
|
800
|
-
|
|
801
|
-
if (search !== undefined) {
|
|
802
|
-
localVarQueryParameter['search'] = search;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
if (order !== undefined) {
|
|
806
|
-
localVarQueryParameter['order'] = order;
|
|
807
|
-
}
|
|
808
|
-
|
|
809
|
-
if (expand !== undefined) {
|
|
810
|
-
localVarQueryParameter['expand'] = expand;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
814
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
820
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
821
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
822
|
-
|
|
823
|
-
return {
|
|
824
|
-
url: toPathString(localVarUrlObj),
|
|
825
|
-
options: localVarRequestOptions,
|
|
826
|
-
};
|
|
379
|
+
async listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
|
|
380
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
381
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
827
382
|
},
|
|
828
383
|
/**
|
|
829
|
-
*
|
|
830
|
-
* @summary
|
|
831
|
-
* @param {
|
|
832
|
-
* @param {
|
|
833
|
-
* @param {string} [
|
|
834
|
-
* @param {string} [filter] List filter
|
|
835
|
-
* @param {string} [search] Search query
|
|
836
|
-
* @param {string} [order] Ordering criteria
|
|
837
|
-
* @param {string} [expand] Extra fields to fetch
|
|
384
|
+
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
385
|
+
* @summary Update the product
|
|
386
|
+
* @param {number} id
|
|
387
|
+
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
388
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
838
389
|
* @param {*} [options] Override http request option.
|
|
839
390
|
* @throws {RequiredError}
|
|
840
391
|
*/
|
|
841
|
-
|
|
842
|
-
const
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
if (configuration) {
|
|
848
|
-
baseOptions = configuration.baseOptions;
|
|
849
|
-
baseAccessToken = configuration.accessToken;
|
|
850
|
-
}
|
|
851
|
-
|
|
852
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
853
|
-
const localVarHeaderParameter = {} as any;
|
|
854
|
-
const localVarQueryParameter = {} as any;
|
|
392
|
+
async updateProduct(id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductResponseClass>> {
|
|
393
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options);
|
|
394
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
395
|
+
},
|
|
396
|
+
}
|
|
397
|
+
};
|
|
855
398
|
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
localVarQueryParameter['search'] = search;
|
|
874
|
-
}
|
|
875
|
-
|
|
876
|
-
if (order !== undefined) {
|
|
877
|
-
localVarQueryParameter['order'] = order;
|
|
878
|
-
}
|
|
879
|
-
|
|
880
|
-
if (expand !== undefined) {
|
|
881
|
-
localVarQueryParameter['expand'] = expand;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
885
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
886
|
-
}
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
891
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
892
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
893
|
-
|
|
894
|
-
return {
|
|
895
|
-
url: toPathString(localVarUrlObj),
|
|
896
|
-
options: localVarRequestOptions,
|
|
897
|
-
};
|
|
399
|
+
/**
|
|
400
|
+
* ProductsApi - factory interface
|
|
401
|
+
* @export
|
|
402
|
+
*/
|
|
403
|
+
export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
404
|
+
const localVarFp = ProductsApiFp(configuration)
|
|
405
|
+
return {
|
|
406
|
+
/**
|
|
407
|
+
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
408
|
+
* @summary Create the product
|
|
409
|
+
* @param {CreateProductRequestDto} createProductRequestDto
|
|
410
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
411
|
+
* @param {*} [options] Override http request option.
|
|
412
|
+
* @throws {RequiredError}
|
|
413
|
+
*/
|
|
414
|
+
createProduct(createProductRequestDto: CreateProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductResponseClass> {
|
|
415
|
+
return localVarFp.createProduct(createProductRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
898
416
|
},
|
|
899
417
|
/**
|
|
900
|
-
*
|
|
901
|
-
* @summary
|
|
902
|
-
* @param {
|
|
903
|
-
* @param {
|
|
904
|
-
* @param {string} [pageToken] Page token
|
|
905
|
-
* @param {string} [filter] List filter
|
|
906
|
-
* @param {string} [search] Search query
|
|
907
|
-
* @param {string} [order] Ordering criteria
|
|
908
|
-
* @param {string} [expand] Extra fields to fetch
|
|
418
|
+
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
419
|
+
* @summary Delete the product
|
|
420
|
+
* @param {number} id
|
|
421
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
909
422
|
* @param {*} [options] Override http request option.
|
|
910
423
|
* @throws {RequiredError}
|
|
911
424
|
*/
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
915
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
916
|
-
let baseOptions;
|
|
917
|
-
let baseAccessToken;
|
|
918
|
-
if (configuration) {
|
|
919
|
-
baseOptions = configuration.baseOptions;
|
|
920
|
-
baseAccessToken = configuration.accessToken;
|
|
921
|
-
}
|
|
922
|
-
|
|
923
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
924
|
-
const localVarHeaderParameter = {} as any;
|
|
925
|
-
const localVarQueryParameter = {} as any;
|
|
926
|
-
|
|
927
|
-
// authentication bearer required
|
|
928
|
-
// http bearer authentication required
|
|
929
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
930
|
-
|
|
931
|
-
if (pageSize !== undefined) {
|
|
932
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
933
|
-
}
|
|
934
|
-
|
|
935
|
-
if (pageToken !== undefined) {
|
|
936
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
937
|
-
}
|
|
938
|
-
|
|
939
|
-
if (filter !== undefined) {
|
|
940
|
-
localVarQueryParameter['filter'] = filter;
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
if (search !== undefined) {
|
|
944
|
-
localVarQueryParameter['search'] = search;
|
|
945
|
-
}
|
|
946
|
-
|
|
947
|
-
if (order !== undefined) {
|
|
948
|
-
localVarQueryParameter['order'] = order;
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
if (expand !== undefined) {
|
|
952
|
-
localVarQueryParameter['expand'] = expand;
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
956
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
957
|
-
}
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
962
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
963
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
964
|
-
|
|
965
|
-
return {
|
|
966
|
-
url: toPathString(localVarUrlObj),
|
|
967
|
-
options: localVarRequestOptions,
|
|
968
|
-
};
|
|
425
|
+
deleteProduct(id: number, authorization?: string, options?: any): AxiosPromise<DeleteResponseClass> {
|
|
426
|
+
return localVarFp.deleteProduct(id, authorization, options).then((request) => request(axios, basePath));
|
|
969
427
|
},
|
|
970
428
|
/**
|
|
971
|
-
*
|
|
972
|
-
* @summary
|
|
973
|
-
* @param {string}
|
|
974
|
-
* @param {number}
|
|
975
|
-
* @param {string} [
|
|
976
|
-
* @param {string} [
|
|
977
|
-
* @param {string} [search] Search query
|
|
978
|
-
* @param {string} [order] Ordering criteria
|
|
979
|
-
* @param {string} [expand] Extra fields to fetch
|
|
429
|
+
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
430
|
+
* @summary Retrieve the product
|
|
431
|
+
* @param {string} code Unique identifier for the object.
|
|
432
|
+
* @param {number} id Product id
|
|
433
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
434
|
+
* @param {string} [expand] Fields to expand response by
|
|
980
435
|
* @param {*} [options] Override http request option.
|
|
981
436
|
* @throws {RequiredError}
|
|
982
437
|
*/
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
986
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
987
|
-
let baseOptions;
|
|
988
|
-
let baseAccessToken;
|
|
989
|
-
if (configuration) {
|
|
990
|
-
baseOptions = configuration.baseOptions;
|
|
991
|
-
baseAccessToken = configuration.accessToken;
|
|
992
|
-
}
|
|
993
|
-
|
|
994
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
995
|
-
const localVarHeaderParameter = {} as any;
|
|
996
|
-
const localVarQueryParameter = {} as any;
|
|
997
|
-
|
|
998
|
-
// authentication bearer required
|
|
999
|
-
// http bearer authentication required
|
|
1000
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1001
|
-
|
|
1002
|
-
if (pageSize !== undefined) {
|
|
1003
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1004
|
-
}
|
|
1005
|
-
|
|
1006
|
-
if (pageToken !== undefined) {
|
|
1007
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1008
|
-
}
|
|
1009
|
-
|
|
1010
|
-
if (filter !== undefined) {
|
|
1011
|
-
localVarQueryParameter['filter'] = filter;
|
|
1012
|
-
}
|
|
1013
|
-
|
|
1014
|
-
if (search !== undefined) {
|
|
1015
|
-
localVarQueryParameter['search'] = search;
|
|
1016
|
-
}
|
|
1017
|
-
|
|
1018
|
-
if (order !== undefined) {
|
|
1019
|
-
localVarQueryParameter['order'] = order;
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
if (expand !== undefined) {
|
|
1023
|
-
localVarQueryParameter['expand'] = expand;
|
|
1024
|
-
}
|
|
1025
|
-
|
|
1026
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1027
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1028
|
-
}
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1033
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1034
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1035
|
-
|
|
1036
|
-
return {
|
|
1037
|
-
url: toPathString(localVarUrlObj),
|
|
1038
|
-
options: localVarRequestOptions,
|
|
1039
|
-
};
|
|
438
|
+
getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
439
|
+
return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
1040
440
|
},
|
|
1041
441
|
/**
|
|
1042
442
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1043
443
|
* @summary List products
|
|
1044
444
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1045
|
-
* @param {number} [pageSize] Page size
|
|
1046
|
-
* @param {string} [pageToken] Page token
|
|
445
|
+
* @param {number} [pageSize] Page size.
|
|
446
|
+
* @param {string} [pageToken] Page token.
|
|
1047
447
|
* @param {string} [filter] List filter
|
|
1048
|
-
* @param {string} [search] Search query
|
|
1049
|
-
* @param {string} [order] Ordering criteria
|
|
1050
|
-
* @param {string} [expand]
|
|
448
|
+
* @param {string} [search] Search query.
|
|
449
|
+
* @param {string} [order] Ordering criteria.
|
|
450
|
+
* @param {string} [expand] You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
1051
451
|
* @param {*} [options] Override http request option.
|
|
1052
452
|
* @throws {RequiredError}
|
|
1053
453
|
*/
|
|
1054
|
-
listProducts
|
|
1055
|
-
|
|
1056
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1057
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1058
|
-
let baseOptions;
|
|
1059
|
-
let baseAccessToken;
|
|
1060
|
-
if (configuration) {
|
|
1061
|
-
baseOptions = configuration.baseOptions;
|
|
1062
|
-
baseAccessToken = configuration.accessToken;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
1066
|
-
const localVarHeaderParameter = {} as any;
|
|
1067
|
-
const localVarQueryParameter = {} as any;
|
|
1068
|
-
|
|
1069
|
-
// authentication bearer required
|
|
1070
|
-
// http bearer authentication required
|
|
1071
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1072
|
-
|
|
1073
|
-
if (pageSize !== undefined) {
|
|
1074
|
-
localVarQueryParameter['pageSize'] = pageSize;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
if (pageToken !== undefined) {
|
|
1078
|
-
localVarQueryParameter['pageToken'] = pageToken;
|
|
1079
|
-
}
|
|
1080
|
-
|
|
1081
|
-
if (filter !== undefined) {
|
|
1082
|
-
localVarQueryParameter['filter'] = filter;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
if (search !== undefined) {
|
|
1086
|
-
localVarQueryParameter['search'] = search;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
if (order !== undefined) {
|
|
1090
|
-
localVarQueryParameter['order'] = order;
|
|
1091
|
-
}
|
|
1092
|
-
|
|
1093
|
-
if (expand !== undefined) {
|
|
1094
|
-
localVarQueryParameter['expand'] = expand;
|
|
1095
|
-
}
|
|
1096
|
-
|
|
1097
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1098
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1099
|
-
}
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1104
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1105
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1106
|
-
|
|
1107
|
-
return {
|
|
1108
|
-
url: toPathString(localVarUrlObj),
|
|
1109
|
-
options: localVarRequestOptions,
|
|
1110
|
-
};
|
|
454
|
+
listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
455
|
+
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
1111
456
|
},
|
|
1112
457
|
/**
|
|
1113
|
-
*
|
|
1114
|
-
* @summary
|
|
1115
|
-
* @param {
|
|
1116
|
-
* @param {
|
|
1117
|
-
* @param {
|
|
458
|
+
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
459
|
+
* @summary Update the product
|
|
460
|
+
* @param {number} id
|
|
461
|
+
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
462
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1118
463
|
* @param {*} [options] Override http request option.
|
|
1119
464
|
* @throws {RequiredError}
|
|
1120
465
|
*/
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
let baseAccessToken;
|
|
1127
|
-
if (configuration) {
|
|
1128
|
-
baseOptions = configuration.baseOptions;
|
|
1129
|
-
baseAccessToken = configuration.accessToken;
|
|
1130
|
-
}
|
|
1131
|
-
|
|
1132
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1133
|
-
const localVarHeaderParameter = {} as any;
|
|
1134
|
-
const localVarQueryParameter = {} as any;
|
|
1135
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1136
|
-
|
|
1137
|
-
// authentication bearer required
|
|
1138
|
-
// http bearer authentication required
|
|
1139
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1140
|
-
|
|
1141
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1142
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
if (productVersionId !== undefined) {
|
|
1147
|
-
localVarFormParams.append('productVersionId', productVersionId as any);
|
|
1148
|
-
}
|
|
1149
|
-
|
|
1150
|
-
if (factors !== undefined) {
|
|
1151
|
-
localVarFormParams.append('factors', factors as any);
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
1156
|
-
|
|
1157
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1158
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1159
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1160
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1161
|
-
|
|
1162
|
-
return {
|
|
1163
|
-
url: toPathString(localVarUrlObj),
|
|
1164
|
-
options: localVarRequestOptions,
|
|
1165
|
-
};
|
|
1166
|
-
},
|
|
1167
|
-
/**
|
|
1168
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1169
|
-
* @summary Update the premium formula
|
|
1170
|
-
* @param {number} id
|
|
1171
|
-
* @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
|
|
1172
|
-
* @param {string} [authorization] Bearer Token
|
|
1173
|
-
* @param {*} [options] Override http request option.
|
|
1174
|
-
* @throws {RequiredError}
|
|
1175
|
-
*/
|
|
1176
|
-
updatePremiumFormula: async (id: number, updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1177
|
-
// verify required parameter 'id' is not null or undefined
|
|
1178
|
-
assertParamExists('updatePremiumFormula', 'id', id)
|
|
1179
|
-
// verify required parameter 'updatePremiumFormulaRequestDto' is not null or undefined
|
|
1180
|
-
assertParamExists('updatePremiumFormula', 'updatePremiumFormulaRequestDto', updatePremiumFormulaRequestDto)
|
|
1181
|
-
const localVarPath = `/insuranceservice/v1/premium-formulas/{id}`
|
|
1182
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1183
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1184
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1185
|
-
let baseOptions;
|
|
1186
|
-
let baseAccessToken;
|
|
1187
|
-
if (configuration) {
|
|
1188
|
-
baseOptions = configuration.baseOptions;
|
|
1189
|
-
baseAccessToken = configuration.accessToken;
|
|
1190
|
-
}
|
|
1191
|
-
|
|
1192
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1193
|
-
const localVarHeaderParameter = {} as any;
|
|
1194
|
-
const localVarQueryParameter = {} as any;
|
|
1195
|
-
|
|
1196
|
-
// authentication bearer required
|
|
1197
|
-
// http bearer authentication required
|
|
1198
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1199
|
-
|
|
1200
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1201
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1207
|
-
|
|
1208
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1209
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1210
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1211
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updatePremiumFormulaRequestDto, localVarRequestOptions, configuration)
|
|
1212
|
-
|
|
1213
|
-
return {
|
|
1214
|
-
url: toPathString(localVarUrlObj),
|
|
1215
|
-
options: localVarRequestOptions,
|
|
1216
|
-
};
|
|
1217
|
-
},
|
|
1218
|
-
/**
|
|
1219
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1220
|
-
* @summary Update the product
|
|
1221
|
-
* @param {number} id
|
|
1222
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
1223
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1224
|
-
* @param {*} [options] Override http request option.
|
|
1225
|
-
* @throws {RequiredError}
|
|
1226
|
-
*/
|
|
1227
|
-
updateProduct: async (id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1228
|
-
// verify required parameter 'id' is not null or undefined
|
|
1229
|
-
assertParamExists('updateProduct', 'id', id)
|
|
1230
|
-
// verify required parameter 'updateProductRequestDto' is not null or undefined
|
|
1231
|
-
assertParamExists('updateProduct', 'updateProductRequestDto', updateProductRequestDto)
|
|
1232
|
-
const localVarPath = `/insuranceservice/v1/products/{id}`
|
|
1233
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1234
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1235
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1236
|
-
let baseOptions;
|
|
1237
|
-
let baseAccessToken;
|
|
1238
|
-
if (configuration) {
|
|
1239
|
-
baseOptions = configuration.baseOptions;
|
|
1240
|
-
baseAccessToken = configuration.accessToken;
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1244
|
-
const localVarHeaderParameter = {} as any;
|
|
1245
|
-
const localVarQueryParameter = {} as any;
|
|
1246
|
-
|
|
1247
|
-
// authentication bearer required
|
|
1248
|
-
// http bearer authentication required
|
|
1249
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1250
|
-
|
|
1251
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1252
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1253
|
-
}
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1258
|
-
|
|
1259
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1260
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1261
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1262
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateProductRequestDto, localVarRequestOptions, configuration)
|
|
1263
|
-
|
|
1264
|
-
return {
|
|
1265
|
-
url: toPathString(localVarUrlObj),
|
|
1266
|
-
options: localVarRequestOptions,
|
|
1267
|
-
};
|
|
1268
|
-
},
|
|
1269
|
-
/**
|
|
1270
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1271
|
-
* @summary Update the product
|
|
1272
|
-
* @param {string} id
|
|
1273
|
-
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
1274
|
-
* @param {string} [authorization] Bearer Token
|
|
1275
|
-
* @param {*} [options] Override http request option.
|
|
1276
|
-
* @throws {RequiredError}
|
|
1277
|
-
*/
|
|
1278
|
-
updateProductField: async (id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1279
|
-
// verify required parameter 'id' is not null or undefined
|
|
1280
|
-
assertParamExists('updateProductField', 'id', id)
|
|
1281
|
-
// verify required parameter 'updateProductFieldRequestDto' is not null or undefined
|
|
1282
|
-
assertParamExists('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto)
|
|
1283
|
-
const localVarPath = `/insuranceservice/v1/product-fields/{id}`
|
|
1284
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1285
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1286
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1287
|
-
let baseOptions;
|
|
1288
|
-
let baseAccessToken;
|
|
1289
|
-
if (configuration) {
|
|
1290
|
-
baseOptions = configuration.baseOptions;
|
|
1291
|
-
baseAccessToken = configuration.accessToken;
|
|
1292
|
-
}
|
|
1293
|
-
|
|
1294
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1295
|
-
const localVarHeaderParameter = {} as any;
|
|
1296
|
-
const localVarQueryParameter = {} as any;
|
|
1297
|
-
|
|
1298
|
-
// authentication bearer required
|
|
1299
|
-
// http bearer authentication required
|
|
1300
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1301
|
-
|
|
1302
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1303
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1309
|
-
|
|
1310
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1311
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1312
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1313
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateProductFieldRequestDto, localVarRequestOptions, configuration)
|
|
1314
|
-
|
|
1315
|
-
return {
|
|
1316
|
-
url: toPathString(localVarUrlObj),
|
|
1317
|
-
options: localVarRequestOptions,
|
|
1318
|
-
};
|
|
1319
|
-
},
|
|
1320
|
-
/**
|
|
1321
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1322
|
-
* @summary Update the product version
|
|
1323
|
-
* @param {number} id
|
|
1324
|
-
* @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
|
|
1325
|
-
* @param {string} [authorization] Bearer Token
|
|
1326
|
-
* @param {*} [options] Override http request option.
|
|
1327
|
-
* @throws {RequiredError}
|
|
1328
|
-
*/
|
|
1329
|
-
updateProductVersion: async (id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1330
|
-
// verify required parameter 'id' is not null or undefined
|
|
1331
|
-
assertParamExists('updateProductVersion', 'id', id)
|
|
1332
|
-
// verify required parameter 'updateProductVersionRequestDto' is not null or undefined
|
|
1333
|
-
assertParamExists('updateProductVersion', 'updateProductVersionRequestDto', updateProductVersionRequestDto)
|
|
1334
|
-
const localVarPath = `/insuranceservice/v1/product-versions/{id}`
|
|
1335
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
1336
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1337
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1338
|
-
let baseOptions;
|
|
1339
|
-
let baseAccessToken;
|
|
1340
|
-
if (configuration) {
|
|
1341
|
-
baseOptions = configuration.baseOptions;
|
|
1342
|
-
baseAccessToken = configuration.accessToken;
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
1346
|
-
const localVarHeaderParameter = {} as any;
|
|
1347
|
-
const localVarQueryParameter = {} as any;
|
|
1348
|
-
|
|
1349
|
-
// authentication bearer required
|
|
1350
|
-
// http bearer authentication required
|
|
1351
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1352
|
-
|
|
1353
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1354
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
1360
|
-
|
|
1361
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1362
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1363
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1364
|
-
localVarRequestOptions.data = serializeDataIfNeeded(updateProductVersionRequestDto, localVarRequestOptions, configuration)
|
|
1365
|
-
|
|
1366
|
-
return {
|
|
1367
|
-
url: toPathString(localVarUrlObj),
|
|
1368
|
-
options: localVarRequestOptions,
|
|
1369
|
-
};
|
|
1370
|
-
},
|
|
1371
|
-
/**
|
|
1372
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
1373
|
-
* @summary Validate product factors
|
|
1374
|
-
* @param {string} [authorization] Bearer Token
|
|
1375
|
-
* @param {any} [factors]
|
|
1376
|
-
* @param {*} [options] Override http request option.
|
|
1377
|
-
* @throws {RequiredError}
|
|
1378
|
-
*/
|
|
1379
|
-
validateProductFactors: async (authorization?: string, factors?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
1380
|
-
const localVarPath = `/insuranceservice/v1/product-factors/validate`;
|
|
1381
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1382
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1383
|
-
let baseOptions;
|
|
1384
|
-
let baseAccessToken;
|
|
1385
|
-
if (configuration) {
|
|
1386
|
-
baseOptions = configuration.baseOptions;
|
|
1387
|
-
baseAccessToken = configuration.accessToken;
|
|
1388
|
-
}
|
|
1389
|
-
|
|
1390
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
1391
|
-
const localVarHeaderParameter = {} as any;
|
|
1392
|
-
const localVarQueryParameter = {} as any;
|
|
1393
|
-
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
|
|
1394
|
-
|
|
1395
|
-
// authentication bearer required
|
|
1396
|
-
// http bearer authentication required
|
|
1397
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
1398
|
-
|
|
1399
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
1400
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
if (factors !== undefined) {
|
|
1405
|
-
localVarFormParams.append('factors', factors as any);
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
localVarHeaderParameter['Content-Type'] = 'multipart/form-data; boundary=' + localVarFormParams.getBoundary();
|
|
1410
|
-
|
|
1411
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1412
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1413
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
1414
|
-
localVarRequestOptions.data = localVarFormParams;
|
|
1415
|
-
|
|
1416
|
-
return {
|
|
1417
|
-
url: toPathString(localVarUrlObj),
|
|
1418
|
-
options: localVarRequestOptions,
|
|
1419
|
-
};
|
|
1420
|
-
},
|
|
1421
|
-
}
|
|
1422
|
-
};
|
|
1423
|
-
|
|
1424
|
-
/**
|
|
1425
|
-
* ProductsApi - functional programming interface
|
|
1426
|
-
* @export
|
|
1427
|
-
*/
|
|
1428
|
-
export const ProductsApiFp = function(configuration?: Configuration) {
|
|
1429
|
-
const localVarAxiosParamCreator = ProductsApiAxiosParamCreator(configuration)
|
|
1430
|
-
return {
|
|
1431
|
-
/**
|
|
1432
|
-
* Creates a premium formula.
|
|
1433
|
-
* @summary Create the premium formula
|
|
1434
|
-
* @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
|
|
1435
|
-
* @param {string} [authorization] Bearer Token
|
|
1436
|
-
* @param {*} [options] Override http request option.
|
|
1437
|
-
* @throws {RequiredError}
|
|
1438
|
-
*/
|
|
1439
|
-
async createPremiumFormula(createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePremiumFormulaResponseClass>> {
|
|
1440
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createPremiumFormula(createPremiumFormulaRequestDto, authorization, options);
|
|
1441
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1442
|
-
},
|
|
1443
|
-
/**
|
|
1444
|
-
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
1445
|
-
* @summary Create the product
|
|
1446
|
-
* @param {CreateProductRequestDto} createProductRequestDto
|
|
1447
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1448
|
-
* @param {*} [options] Override http request option.
|
|
1449
|
-
* @throws {RequiredError}
|
|
1450
|
-
*/
|
|
1451
|
-
async createProduct(createProductRequestDto: CreateProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductResponseClass>> {
|
|
1452
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createProduct(createProductRequestDto, authorization, options);
|
|
1453
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1454
|
-
},
|
|
1455
|
-
/**
|
|
1456
|
-
* Create a product field in the database.
|
|
1457
|
-
* @summary Create the product field
|
|
1458
|
-
* @param {CreateProductFieldRequestDto} createProductFieldRequestDto
|
|
1459
|
-
* @param {string} [authorization] Bearer Token
|
|
1460
|
-
* @param {*} [options] Override http request option.
|
|
1461
|
-
* @throws {RequiredError}
|
|
1462
|
-
*/
|
|
1463
|
-
async createProductField(createProductFieldRequestDto: CreateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateProductFieldResponseClass>> {
|
|
1464
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.createProductField(createProductFieldRequestDto, authorization, options);
|
|
1465
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1466
|
-
},
|
|
1467
|
-
/**
|
|
1468
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
1469
|
-
* @summary Delete the premium formula
|
|
1470
|
-
* @param {number} id
|
|
1471
|
-
* @param {string} [authorization] Bearer Token
|
|
1472
|
-
* @param {*} [options] Override http request option.
|
|
1473
|
-
* @throws {RequiredError}
|
|
1474
|
-
*/
|
|
1475
|
-
async deletePremiumFormula(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1476
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deletePremiumFormula(id, authorization, options);
|
|
1477
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1478
|
-
},
|
|
1479
|
-
/**
|
|
1480
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
1481
|
-
* @summary Delete the product
|
|
1482
|
-
* @param {number} id
|
|
1483
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1484
|
-
* @param {*} [options] Override http request option.
|
|
1485
|
-
* @throws {RequiredError}
|
|
1486
|
-
*/
|
|
1487
|
-
async deleteProduct(id: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
|
|
1488
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProduct(id, authorization, options);
|
|
1489
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1490
|
-
},
|
|
1491
|
-
/**
|
|
1492
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
1493
|
-
* @summary Delete the product
|
|
1494
|
-
* @param {string} id
|
|
1495
|
-
* @param {string} [authorization] Bearer Token
|
|
1496
|
-
* @param {*} [options] Override http request option.
|
|
1497
|
-
* @throws {RequiredError}
|
|
1498
|
-
*/
|
|
1499
|
-
async deleteProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
1500
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProductField(id, authorization, options);
|
|
1501
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1502
|
-
},
|
|
1503
|
-
/**
|
|
1504
|
-
* Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
|
|
1505
|
-
* @summary Retrieve the premium formula
|
|
1506
|
-
* @param {string} id
|
|
1507
|
-
* @param {number} id2 Product formula id
|
|
1508
|
-
* @param {string} [authorization] Bearer Token
|
|
1509
|
-
* @param {*} [options] Override http request option.
|
|
1510
|
-
* @throws {RequiredError}
|
|
1511
|
-
*/
|
|
1512
|
-
async getPremiumFormula(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPremiumFormulaResponseClass>> {
|
|
1513
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getPremiumFormula(id, id2, authorization, options);
|
|
1514
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1515
|
-
},
|
|
1516
|
-
/**
|
|
1517
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
1518
|
-
* @summary Retrieve the product
|
|
1519
|
-
* @param {string} code Unique identifier for the object.
|
|
1520
|
-
* @param {number} id Product id
|
|
1521
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1522
|
-
* @param {string} [expand] Fields to expand response by
|
|
1523
|
-
* @param {*} [options] Override http request option.
|
|
1524
|
-
* @throws {RequiredError}
|
|
1525
|
-
*/
|
|
1526
|
-
async getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductResponseClass>> {
|
|
1527
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductByCode(code, id, authorization, expand, options);
|
|
1528
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1529
|
-
},
|
|
1530
|
-
/**
|
|
1531
|
-
* Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
|
|
1532
|
-
* @summary Retrieve the product factor
|
|
1533
|
-
* @param {number} id
|
|
1534
|
-
* @param {number} id2 Product factor id
|
|
1535
|
-
* @param {string} [authorization] Bearer Token
|
|
1536
|
-
* @param {string} [expand] Fields to expand response by
|
|
1537
|
-
* @param {*} [options] Override http request option.
|
|
1538
|
-
* @throws {RequiredError}
|
|
1539
|
-
*/
|
|
1540
|
-
async getProductFactor(id: number, id2: number, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorResponseClass>> {
|
|
1541
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactor(id, id2, authorization, expand, options);
|
|
1542
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1543
|
-
},
|
|
1544
|
-
/**
|
|
1545
|
-
* Get the value corresponding to a specific product factor.
|
|
1546
|
-
* @summary Get product factor value
|
|
1547
|
-
* @param {number} productVersionId Product Version Id
|
|
1548
|
-
* @param {string} label Product factor label
|
|
1549
|
-
* @param {string} key Key for the product factor value
|
|
1550
|
-
* @param {string} name Name for the product factor value
|
|
1551
|
-
* @param {string} [authorization] Bearer Token
|
|
1552
|
-
* @param {*} [options] Override http request option.
|
|
1553
|
-
* @throws {RequiredError}
|
|
1554
|
-
*/
|
|
1555
|
-
async getProductFactorValue(productVersionId: number, label: string, key: string, name: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorValueResponseClass>> {
|
|
1556
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactorValue(productVersionId, label, key, name, authorization, options);
|
|
1557
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1558
|
-
},
|
|
1559
|
-
/**
|
|
1560
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
1561
|
-
* @summary Returns all product factors for the product version with all without values
|
|
1562
|
-
* @param {number} productVersionId Product Version Id
|
|
1563
|
-
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All)
|
|
1564
|
-
* @param {string} [authorization] Bearer Token
|
|
1565
|
-
* @param {boolean} [forPublic] true if this is a call from PublivAPI or false otherwise (default)
|
|
1566
|
-
* @param {*} [options] Override http request option.
|
|
1567
|
-
* @throws {RequiredError}
|
|
1568
|
-
*/
|
|
1569
|
-
async getProductFactorsForVersion(productVersionId: number, values: string, authorization?: string, forPublic?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFactorsForVersionResponseClass>> {
|
|
1570
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options);
|
|
1571
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1572
|
-
},
|
|
1573
|
-
/**
|
|
1574
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
1575
|
-
* @summary Retrieve the product field
|
|
1576
|
-
* @param {string} id
|
|
1577
|
-
* @param {string} [authorization] Bearer Token
|
|
1578
|
-
* @param {*} [options] Override http request option.
|
|
1579
|
-
* @throws {RequiredError}
|
|
1580
|
-
*/
|
|
1581
|
-
async getProductField(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductFieldResponseClass>> {
|
|
1582
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductField(id, authorization, options);
|
|
1583
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1584
|
-
},
|
|
1585
|
-
/**
|
|
1586
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
1587
|
-
* @summary Retrieve the product version
|
|
1588
|
-
* @param {string} id
|
|
1589
|
-
* @param {number} id2 Product version id
|
|
1590
|
-
* @param {string} [authorization] Bearer Token
|
|
1591
|
-
* @param {*} [options] Override http request option.
|
|
1592
|
-
* @throws {RequiredError}
|
|
1593
|
-
*/
|
|
1594
|
-
async getProductVersion(id: string, id2: number, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetProductVersionResponseClass>> {
|
|
1595
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getProductVersion(id, id2, authorization, options);
|
|
1596
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1597
|
-
},
|
|
1598
|
-
/**
|
|
1599
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1600
|
-
* @summary List premium formulas
|
|
1601
|
-
* @param {string} [authorization] Bearer Token
|
|
1602
|
-
* @param {number} [pageSize] Page size
|
|
1603
|
-
* @param {string} [pageToken] Page token
|
|
1604
|
-
* @param {string} [filter] List filter
|
|
1605
|
-
* @param {string} [search] Search query
|
|
1606
|
-
* @param {string} [order] Ordering criteria
|
|
1607
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1608
|
-
* @param {*} [options] Override http request option.
|
|
1609
|
-
* @throws {RequiredError}
|
|
1610
|
-
*/
|
|
1611
|
-
async listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPremiumFormulasResponseClass>> {
|
|
1612
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
1613
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1614
|
-
},
|
|
1615
|
-
/**
|
|
1616
|
-
* 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.
|
|
1617
|
-
* @summary List product factors
|
|
1618
|
-
* @param {string} [authorization] Bearer Token
|
|
1619
|
-
* @param {number} [pageSize] Page size
|
|
1620
|
-
* @param {string} [pageToken] Page token
|
|
1621
|
-
* @param {string} [filter] List filter
|
|
1622
|
-
* @param {string} [search] Search query
|
|
1623
|
-
* @param {string} [order] Ordering criteria
|
|
1624
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1625
|
-
* @param {*} [options] Override http request option.
|
|
1626
|
-
* @throws {RequiredError}
|
|
1627
|
-
*/
|
|
1628
|
-
async listProductFactors(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFactorsResponseClass>> {
|
|
1629
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
1630
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1631
|
-
},
|
|
1632
|
-
/**
|
|
1633
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1634
|
-
* @summary List product field types
|
|
1635
|
-
* @param {string} [authorization] Bearer Token
|
|
1636
|
-
* @param {number} [pageSize] Page size
|
|
1637
|
-
* @param {string} [pageToken] Page token
|
|
1638
|
-
* @param {string} [filter] List filter
|
|
1639
|
-
* @param {string} [search] Search query
|
|
1640
|
-
* @param {string} [order] Ordering criteria
|
|
1641
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1642
|
-
* @param {*} [options] Override http request option.
|
|
1643
|
-
* @throws {RequiredError}
|
|
1644
|
-
*/
|
|
1645
|
-
async listProductFieldTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFieldTypesResponseClass>> {
|
|
1646
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFieldTypes(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
1647
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1648
|
-
},
|
|
1649
|
-
/**
|
|
1650
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1651
|
-
* @summary List product fields
|
|
1652
|
-
* @param {string} [authorization] Bearer Token
|
|
1653
|
-
* @param {number} [pageSize] Page size
|
|
1654
|
-
* @param {string} [pageToken] Page token
|
|
1655
|
-
* @param {string} [filter] List filter
|
|
1656
|
-
* @param {string} [search] Search query
|
|
1657
|
-
* @param {string} [order] Ordering criteria
|
|
1658
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1659
|
-
* @param {*} [options] Override http request option.
|
|
1660
|
-
* @throws {RequiredError}
|
|
1661
|
-
*/
|
|
1662
|
-
async listProductFields(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductFieldsResponseClass>> {
|
|
1663
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProductFields(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
1664
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1665
|
-
},
|
|
1666
|
-
/**
|
|
1667
|
-
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1668
|
-
* @summary List products
|
|
1669
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1670
|
-
* @param {number} [pageSize] Page size
|
|
1671
|
-
* @param {string} [pageToken] Page token
|
|
1672
|
-
* @param {string} [filter] List filter
|
|
1673
|
-
* @param {string} [search] Search query
|
|
1674
|
-
* @param {string} [order] Ordering criteria
|
|
1675
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1676
|
-
* @param {*} [options] Override http request option.
|
|
1677
|
-
* @throws {RequiredError}
|
|
1678
|
-
*/
|
|
1679
|
-
async listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductsResponseClass>> {
|
|
1680
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
1681
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1682
|
-
},
|
|
1683
|
-
/**
|
|
1684
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
1685
|
-
* @summary Upload product factors
|
|
1686
|
-
* @param {string} [authorization] Bearer Token
|
|
1687
|
-
* @param {number} [productVersionId]
|
|
1688
|
-
* @param {any} [factors]
|
|
1689
|
-
* @param {*} [options] Override http request option.
|
|
1690
|
-
* @throws {RequiredError}
|
|
1691
|
-
*/
|
|
1692
|
-
async storeProductFactors(authorization?: string, productVersionId?: number, factors?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StoreProductFactorsResponseClass>> {
|
|
1693
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.storeProductFactors(authorization, productVersionId, factors, options);
|
|
1694
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1695
|
-
},
|
|
1696
|
-
/**
|
|
1697
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1698
|
-
* @summary Update the premium formula
|
|
1699
|
-
* @param {number} id
|
|
1700
|
-
* @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
|
|
1701
|
-
* @param {string} [authorization] Bearer Token
|
|
1702
|
-
* @param {*} [options] Override http request option.
|
|
1703
|
-
* @throws {RequiredError}
|
|
1704
|
-
*/
|
|
1705
|
-
async updatePremiumFormula(id: number, updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdatePremiumFormulaResponseClass>> {
|
|
1706
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options);
|
|
1707
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1708
|
-
},
|
|
1709
|
-
/**
|
|
1710
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1711
|
-
* @summary Update the product
|
|
1712
|
-
* @param {number} id
|
|
1713
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
1714
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1715
|
-
* @param {*} [options] Override http request option.
|
|
1716
|
-
* @throws {RequiredError}
|
|
1717
|
-
*/
|
|
1718
|
-
async updateProduct(id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductResponseClass>> {
|
|
1719
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProduct(id, updateProductRequestDto, authorization, options);
|
|
1720
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1721
|
-
},
|
|
1722
|
-
/**
|
|
1723
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1724
|
-
* @summary Update the product
|
|
1725
|
-
* @param {string} id
|
|
1726
|
-
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
1727
|
-
* @param {string} [authorization] Bearer Token
|
|
1728
|
-
* @param {*} [options] Override http request option.
|
|
1729
|
-
* @throws {RequiredError}
|
|
1730
|
-
*/
|
|
1731
|
-
async updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>> {
|
|
1732
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options);
|
|
1733
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1734
|
-
},
|
|
1735
|
-
/**
|
|
1736
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1737
|
-
* @summary Update the product version
|
|
1738
|
-
* @param {number} id
|
|
1739
|
-
* @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
|
|
1740
|
-
* @param {string} [authorization] Bearer Token
|
|
1741
|
-
* @param {*} [options] Override http request option.
|
|
1742
|
-
* @throws {RequiredError}
|
|
1743
|
-
*/
|
|
1744
|
-
async updateProductVersion(id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductVersionResponseClass>> {
|
|
1745
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.updateProductVersion(id, updateProductVersionRequestDto, authorization, options);
|
|
1746
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1747
|
-
},
|
|
1748
|
-
/**
|
|
1749
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
1750
|
-
* @summary Validate product factors
|
|
1751
|
-
* @param {string} [authorization] Bearer Token
|
|
1752
|
-
* @param {any} [factors]
|
|
1753
|
-
* @param {*} [options] Override http request option.
|
|
1754
|
-
* @throws {RequiredError}
|
|
1755
|
-
*/
|
|
1756
|
-
async validateProductFactors(authorization?: string, factors?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GroupedProductFactorsResponseClass>> {
|
|
1757
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.validateProductFactors(authorization, factors, options);
|
|
1758
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1759
|
-
},
|
|
1760
|
-
}
|
|
1761
|
-
};
|
|
1762
|
-
|
|
1763
|
-
/**
|
|
1764
|
-
* ProductsApi - factory interface
|
|
1765
|
-
* @export
|
|
1766
|
-
*/
|
|
1767
|
-
export const ProductsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
1768
|
-
const localVarFp = ProductsApiFp(configuration)
|
|
1769
|
-
return {
|
|
1770
|
-
/**
|
|
1771
|
-
* Creates a premium formula.
|
|
1772
|
-
* @summary Create the premium formula
|
|
1773
|
-
* @param {CreatePremiumFormulaRequestDto} createPremiumFormulaRequestDto
|
|
1774
|
-
* @param {string} [authorization] Bearer Token
|
|
1775
|
-
* @param {*} [options] Override http request option.
|
|
1776
|
-
* @throws {RequiredError}
|
|
1777
|
-
*/
|
|
1778
|
-
createPremiumFormula(createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePremiumFormulaResponseClass> {
|
|
1779
|
-
return localVarFp.createPremiumFormula(createPremiumFormulaRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1780
|
-
},
|
|
1781
|
-
/**
|
|
1782
|
-
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
1783
|
-
* @summary Create the product
|
|
1784
|
-
* @param {CreateProductRequestDto} createProductRequestDto
|
|
1785
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1786
|
-
* @param {*} [options] Override http request option.
|
|
1787
|
-
* @throws {RequiredError}
|
|
1788
|
-
*/
|
|
1789
|
-
createProduct(createProductRequestDto: CreateProductRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductResponseClass> {
|
|
1790
|
-
return localVarFp.createProduct(createProductRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1791
|
-
},
|
|
1792
|
-
/**
|
|
1793
|
-
* Create a product field in the database.
|
|
1794
|
-
* @summary Create the product field
|
|
1795
|
-
* @param {CreateProductFieldRequestDto} createProductFieldRequestDto
|
|
1796
|
-
* @param {string} [authorization] Bearer Token
|
|
1797
|
-
* @param {*} [options] Override http request option.
|
|
1798
|
-
* @throws {RequiredError}
|
|
1799
|
-
*/
|
|
1800
|
-
createProductField(createProductFieldRequestDto: CreateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<CreateProductFieldResponseClass> {
|
|
1801
|
-
return localVarFp.createProductField(createProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1802
|
-
},
|
|
1803
|
-
/**
|
|
1804
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
1805
|
-
* @summary Delete the premium formula
|
|
1806
|
-
* @param {number} id
|
|
1807
|
-
* @param {string} [authorization] Bearer Token
|
|
1808
|
-
* @param {*} [options] Override http request option.
|
|
1809
|
-
* @throws {RequiredError}
|
|
1810
|
-
*/
|
|
1811
|
-
deletePremiumFormula(id: number, authorization?: string, options?: any): AxiosPromise<object> {
|
|
1812
|
-
return localVarFp.deletePremiumFormula(id, authorization, options).then((request) => request(axios, basePath));
|
|
1813
|
-
},
|
|
1814
|
-
/**
|
|
1815
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
1816
|
-
* @summary Delete the product
|
|
1817
|
-
* @param {number} id
|
|
1818
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1819
|
-
* @param {*} [options] Override http request option.
|
|
1820
|
-
* @throws {RequiredError}
|
|
1821
|
-
*/
|
|
1822
|
-
deleteProduct(id: number, authorization?: string, options?: any): AxiosPromise<object> {
|
|
1823
|
-
return localVarFp.deleteProduct(id, authorization, options).then((request) => request(axios, basePath));
|
|
1824
|
-
},
|
|
1825
|
-
/**
|
|
1826
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
1827
|
-
* @summary Delete the product
|
|
1828
|
-
* @param {string} id
|
|
1829
|
-
* @param {string} [authorization] Bearer Token
|
|
1830
|
-
* @param {*} [options] Override http request option.
|
|
1831
|
-
* @throws {RequiredError}
|
|
1832
|
-
*/
|
|
1833
|
-
deleteProductField(id: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
1834
|
-
return localVarFp.deleteProductField(id, authorization, options).then((request) => request(axios, basePath));
|
|
1835
|
-
},
|
|
1836
|
-
/**
|
|
1837
|
-
* Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
|
|
1838
|
-
* @summary Retrieve the premium formula
|
|
1839
|
-
* @param {string} id
|
|
1840
|
-
* @param {number} id2 Product formula id
|
|
1841
|
-
* @param {string} [authorization] Bearer Token
|
|
1842
|
-
* @param {*} [options] Override http request option.
|
|
1843
|
-
* @throws {RequiredError}
|
|
1844
|
-
*/
|
|
1845
|
-
getPremiumFormula(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetPremiumFormulaResponseClass> {
|
|
1846
|
-
return localVarFp.getPremiumFormula(id, id2, authorization, options).then((request) => request(axios, basePath));
|
|
1847
|
-
},
|
|
1848
|
-
/**
|
|
1849
|
-
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
1850
|
-
* @summary Retrieve the product
|
|
1851
|
-
* @param {string} code Unique identifier for the object.
|
|
1852
|
-
* @param {number} id Product id
|
|
1853
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1854
|
-
* @param {string} [expand] Fields to expand response by
|
|
1855
|
-
* @param {*} [options] Override http request option.
|
|
1856
|
-
* @throws {RequiredError}
|
|
1857
|
-
*/
|
|
1858
|
-
getProductByCode(code: string, id: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductResponseClass> {
|
|
1859
|
-
return localVarFp.getProductByCode(code, id, authorization, expand, options).then((request) => request(axios, basePath));
|
|
1860
|
-
},
|
|
1861
|
-
/**
|
|
1862
|
-
* Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
|
|
1863
|
-
* @summary Retrieve the product factor
|
|
1864
|
-
* @param {number} id
|
|
1865
|
-
* @param {number} id2 Product factor id
|
|
1866
|
-
* @param {string} [authorization] Bearer Token
|
|
1867
|
-
* @param {string} [expand] Fields to expand response by
|
|
1868
|
-
* @param {*} [options] Override http request option.
|
|
1869
|
-
* @throws {RequiredError}
|
|
1870
|
-
*/
|
|
1871
|
-
getProductFactor(id: number, id2: number, authorization?: string, expand?: string, options?: any): AxiosPromise<GetProductFactorResponseClass> {
|
|
1872
|
-
return localVarFp.getProductFactor(id, id2, authorization, expand, options).then((request) => request(axios, basePath));
|
|
1873
|
-
},
|
|
1874
|
-
/**
|
|
1875
|
-
* Get the value corresponding to a specific product factor.
|
|
1876
|
-
* @summary Get product factor value
|
|
1877
|
-
* @param {number} productVersionId Product Version Id
|
|
1878
|
-
* @param {string} label Product factor label
|
|
1879
|
-
* @param {string} key Key for the product factor value
|
|
1880
|
-
* @param {string} name Name for the product factor value
|
|
1881
|
-
* @param {string} [authorization] Bearer Token
|
|
1882
|
-
* @param {*} [options] Override http request option.
|
|
1883
|
-
* @throws {RequiredError}
|
|
1884
|
-
*/
|
|
1885
|
-
getProductFactorValue(productVersionId: number, label: string, key: string, name: string, authorization?: string, options?: any): AxiosPromise<GetProductFactorValueResponseClass> {
|
|
1886
|
-
return localVarFp.getProductFactorValue(productVersionId, label, key, name, authorization, options).then((request) => request(axios, basePath));
|
|
1887
|
-
},
|
|
1888
|
-
/**
|
|
1889
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
1890
|
-
* @summary Returns all product factors for the product version with all without values
|
|
1891
|
-
* @param {number} productVersionId Product Version Id
|
|
1892
|
-
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All)
|
|
1893
|
-
* @param {string} [authorization] Bearer Token
|
|
1894
|
-
* @param {boolean} [forPublic] true if this is a call from PublivAPI or false otherwise (default)
|
|
1895
|
-
* @param {*} [options] Override http request option.
|
|
1896
|
-
* @throws {RequiredError}
|
|
1897
|
-
*/
|
|
1898
|
-
getProductFactorsForVersion(productVersionId: number, values: string, authorization?: string, forPublic?: boolean, options?: any): AxiosPromise<GetProductFactorsForVersionResponseClass> {
|
|
1899
|
-
return localVarFp.getProductFactorsForVersion(productVersionId, values, authorization, forPublic, options).then((request) => request(axios, basePath));
|
|
1900
|
-
},
|
|
1901
|
-
/**
|
|
1902
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
1903
|
-
* @summary Retrieve the product field
|
|
1904
|
-
* @param {string} id
|
|
1905
|
-
* @param {string} [authorization] Bearer Token
|
|
1906
|
-
* @param {*} [options] Override http request option.
|
|
1907
|
-
* @throws {RequiredError}
|
|
1908
|
-
*/
|
|
1909
|
-
getProductField(id: string, authorization?: string, options?: any): AxiosPromise<GetProductFieldResponseClass> {
|
|
1910
|
-
return localVarFp.getProductField(id, authorization, options).then((request) => request(axios, basePath));
|
|
1911
|
-
},
|
|
1912
|
-
/**
|
|
1913
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
1914
|
-
* @summary Retrieve the product version
|
|
1915
|
-
* @param {string} id
|
|
1916
|
-
* @param {number} id2 Product version id
|
|
1917
|
-
* @param {string} [authorization] Bearer Token
|
|
1918
|
-
* @param {*} [options] Override http request option.
|
|
1919
|
-
* @throws {RequiredError}
|
|
1920
|
-
*/
|
|
1921
|
-
getProductVersion(id: string, id2: number, authorization?: string, options?: any): AxiosPromise<GetProductVersionResponseClass> {
|
|
1922
|
-
return localVarFp.getProductVersion(id, id2, authorization, options).then((request) => request(axios, basePath));
|
|
1923
|
-
},
|
|
1924
|
-
/**
|
|
1925
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1926
|
-
* @summary List premium formulas
|
|
1927
|
-
* @param {string} [authorization] Bearer Token
|
|
1928
|
-
* @param {number} [pageSize] Page size
|
|
1929
|
-
* @param {string} [pageToken] Page token
|
|
1930
|
-
* @param {string} [filter] List filter
|
|
1931
|
-
* @param {string} [search] Search query
|
|
1932
|
-
* @param {string} [order] Ordering criteria
|
|
1933
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1934
|
-
* @param {*} [options] Override http request option.
|
|
1935
|
-
* @throws {RequiredError}
|
|
1936
|
-
*/
|
|
1937
|
-
listPremiumFormulas(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListPremiumFormulasResponseClass> {
|
|
1938
|
-
return localVarFp.listPremiumFormulas(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
1939
|
-
},
|
|
1940
|
-
/**
|
|
1941
|
-
* 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.
|
|
1942
|
-
* @summary List product factors
|
|
1943
|
-
* @param {string} [authorization] Bearer Token
|
|
1944
|
-
* @param {number} [pageSize] Page size
|
|
1945
|
-
* @param {string} [pageToken] Page token
|
|
1946
|
-
* @param {string} [filter] List filter
|
|
1947
|
-
* @param {string} [search] Search query
|
|
1948
|
-
* @param {string} [order] Ordering criteria
|
|
1949
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1950
|
-
* @param {*} [options] Override http request option.
|
|
1951
|
-
* @throws {RequiredError}
|
|
1952
|
-
*/
|
|
1953
|
-
listProductFactors(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFactorsResponseClass> {
|
|
1954
|
-
return localVarFp.listProductFactors(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
1955
|
-
},
|
|
1956
|
-
/**
|
|
1957
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1958
|
-
* @summary List product field types
|
|
1959
|
-
* @param {string} [authorization] Bearer Token
|
|
1960
|
-
* @param {number} [pageSize] Page size
|
|
1961
|
-
* @param {string} [pageToken] Page token
|
|
1962
|
-
* @param {string} [filter] List filter
|
|
1963
|
-
* @param {string} [search] Search query
|
|
1964
|
-
* @param {string} [order] Ordering criteria
|
|
1965
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1966
|
-
* @param {*} [options] Override http request option.
|
|
1967
|
-
* @throws {RequiredError}
|
|
1968
|
-
*/
|
|
1969
|
-
listProductFieldTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFieldTypesResponseClass> {
|
|
1970
|
-
return localVarFp.listProductFieldTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
1971
|
-
},
|
|
1972
|
-
/**
|
|
1973
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1974
|
-
* @summary List product fields
|
|
1975
|
-
* @param {string} [authorization] Bearer Token
|
|
1976
|
-
* @param {number} [pageSize] Page size
|
|
1977
|
-
* @param {string} [pageToken] Page token
|
|
1978
|
-
* @param {string} [filter] List filter
|
|
1979
|
-
* @param {string} [search] Search query
|
|
1980
|
-
* @param {string} [order] Ordering criteria
|
|
1981
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1982
|
-
* @param {*} [options] Override http request option.
|
|
1983
|
-
* @throws {RequiredError}
|
|
1984
|
-
*/
|
|
1985
|
-
listProductFields(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductFieldsResponseClass> {
|
|
1986
|
-
return localVarFp.listProductFields(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
1987
|
-
},
|
|
1988
|
-
/**
|
|
1989
|
-
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
1990
|
-
* @summary List products
|
|
1991
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1992
|
-
* @param {number} [pageSize] Page size
|
|
1993
|
-
* @param {string} [pageToken] Page token
|
|
1994
|
-
* @param {string} [filter] List filter
|
|
1995
|
-
* @param {string} [search] Search query
|
|
1996
|
-
* @param {string} [order] Ordering criteria
|
|
1997
|
-
* @param {string} [expand] Extra fields to fetch
|
|
1998
|
-
* @param {*} [options] Override http request option.
|
|
1999
|
-
* @throws {RequiredError}
|
|
2000
|
-
*/
|
|
2001
|
-
listProducts(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductsResponseClass> {
|
|
2002
|
-
return localVarFp.listProducts(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
2003
|
-
},
|
|
2004
|
-
/**
|
|
2005
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
2006
|
-
* @summary Upload product factors
|
|
2007
|
-
* @param {string} [authorization] Bearer Token
|
|
2008
|
-
* @param {number} [productVersionId]
|
|
2009
|
-
* @param {any} [factors]
|
|
2010
|
-
* @param {*} [options] Override http request option.
|
|
2011
|
-
* @throws {RequiredError}
|
|
2012
|
-
*/
|
|
2013
|
-
storeProductFactors(authorization?: string, productVersionId?: number, factors?: any, options?: any): AxiosPromise<StoreProductFactorsResponseClass> {
|
|
2014
|
-
return localVarFp.storeProductFactors(authorization, productVersionId, factors, options).then((request) => request(axios, basePath));
|
|
2015
|
-
},
|
|
2016
|
-
/**
|
|
2017
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2018
|
-
* @summary Update the premium formula
|
|
2019
|
-
* @param {number} id
|
|
2020
|
-
* @param {UpdatePremiumFormulaRequestDto} updatePremiumFormulaRequestDto
|
|
2021
|
-
* @param {string} [authorization] Bearer Token
|
|
2022
|
-
* @param {*} [options] Override http request option.
|
|
2023
|
-
* @throws {RequiredError}
|
|
2024
|
-
*/
|
|
2025
|
-
updatePremiumFormula(id: number, updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto, authorization?: string, options?: any): AxiosPromise<UpdatePremiumFormulaResponseClass> {
|
|
2026
|
-
return localVarFp.updatePremiumFormula(id, updatePremiumFormulaRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
2027
|
-
},
|
|
2028
|
-
/**
|
|
2029
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2030
|
-
* @summary Update the product
|
|
2031
|
-
* @param {number} id
|
|
2032
|
-
* @param {UpdateProductRequestDto} updateProductRequestDto
|
|
2033
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2034
|
-
* @param {*} [options] Override http request option.
|
|
2035
|
-
* @throws {RequiredError}
|
|
2036
|
-
*/
|
|
2037
|
-
updateProduct(id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductResponseClass> {
|
|
2038
|
-
return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
2039
|
-
},
|
|
2040
|
-
/**
|
|
2041
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2042
|
-
* @summary Update the product
|
|
2043
|
-
* @param {string} id
|
|
2044
|
-
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
2045
|
-
* @param {string} [authorization] Bearer Token
|
|
2046
|
-
* @param {*} [options] Override http request option.
|
|
2047
|
-
* @throws {RequiredError}
|
|
2048
|
-
*/
|
|
2049
|
-
updateProductField(id: string, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass> {
|
|
2050
|
-
return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
2051
|
-
},
|
|
2052
|
-
/**
|
|
2053
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2054
|
-
* @summary Update the product version
|
|
2055
|
-
* @param {number} id
|
|
2056
|
-
* @param {UpdateProductVersionRequestDto} updateProductVersionRequestDto
|
|
2057
|
-
* @param {string} [authorization] Bearer Token
|
|
2058
|
-
* @param {*} [options] Override http request option.
|
|
2059
|
-
* @throws {RequiredError}
|
|
2060
|
-
*/
|
|
2061
|
-
updateProductVersion(id: number, updateProductVersionRequestDto: UpdateProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductVersionResponseClass> {
|
|
2062
|
-
return localVarFp.updateProductVersion(id, updateProductVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
2063
|
-
},
|
|
2064
|
-
/**
|
|
2065
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
2066
|
-
* @summary Validate product factors
|
|
2067
|
-
* @param {string} [authorization] Bearer Token
|
|
2068
|
-
* @param {any} [factors]
|
|
2069
|
-
* @param {*} [options] Override http request option.
|
|
2070
|
-
* @throws {RequiredError}
|
|
2071
|
-
*/
|
|
2072
|
-
validateProductFactors(authorization?: string, factors?: any, options?: any): AxiosPromise<GroupedProductFactorsResponseClass> {
|
|
2073
|
-
return localVarFp.validateProductFactors(authorization, factors, options).then((request) => request(axios, basePath));
|
|
2074
|
-
},
|
|
2075
|
-
};
|
|
2076
|
-
};
|
|
2077
|
-
|
|
2078
|
-
/**
|
|
2079
|
-
* Request parameters for createPremiumFormula operation in ProductsApi.
|
|
2080
|
-
* @export
|
|
2081
|
-
* @interface ProductsApiCreatePremiumFormulaRequest
|
|
2082
|
-
*/
|
|
2083
|
-
export interface ProductsApiCreatePremiumFormulaRequest {
|
|
2084
|
-
/**
|
|
2085
|
-
*
|
|
2086
|
-
* @type {CreatePremiumFormulaRequestDto}
|
|
2087
|
-
* @memberof ProductsApiCreatePremiumFormula
|
|
2088
|
-
*/
|
|
2089
|
-
readonly createPremiumFormulaRequestDto: CreatePremiumFormulaRequestDto
|
|
2090
|
-
|
|
2091
|
-
/**
|
|
2092
|
-
* Bearer Token
|
|
2093
|
-
* @type {string}
|
|
2094
|
-
* @memberof ProductsApiCreatePremiumFormula
|
|
2095
|
-
*/
|
|
2096
|
-
readonly authorization?: string
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
/**
|
|
2100
|
-
* Request parameters for createProduct operation in ProductsApi.
|
|
2101
|
-
* @export
|
|
2102
|
-
* @interface ProductsApiCreateProductRequest
|
|
2103
|
-
*/
|
|
2104
|
-
export interface ProductsApiCreateProductRequest {
|
|
2105
|
-
/**
|
|
2106
|
-
*
|
|
2107
|
-
* @type {CreateProductRequestDto}
|
|
2108
|
-
* @memberof ProductsApiCreateProduct
|
|
2109
|
-
*/
|
|
2110
|
-
readonly createProductRequestDto: CreateProductRequestDto
|
|
2111
|
-
|
|
2112
|
-
/**
|
|
2113
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2114
|
-
* @type {string}
|
|
2115
|
-
* @memberof ProductsApiCreateProduct
|
|
2116
|
-
*/
|
|
2117
|
-
readonly authorization?: string
|
|
2118
|
-
}
|
|
2119
|
-
|
|
2120
|
-
/**
|
|
2121
|
-
* Request parameters for createProductField operation in ProductsApi.
|
|
2122
|
-
* @export
|
|
2123
|
-
* @interface ProductsApiCreateProductFieldRequest
|
|
2124
|
-
*/
|
|
2125
|
-
export interface ProductsApiCreateProductFieldRequest {
|
|
2126
|
-
/**
|
|
2127
|
-
*
|
|
2128
|
-
* @type {CreateProductFieldRequestDto}
|
|
2129
|
-
* @memberof ProductsApiCreateProductField
|
|
2130
|
-
*/
|
|
2131
|
-
readonly createProductFieldRequestDto: CreateProductFieldRequestDto
|
|
2132
|
-
|
|
2133
|
-
/**
|
|
2134
|
-
* Bearer Token
|
|
2135
|
-
* @type {string}
|
|
2136
|
-
* @memberof ProductsApiCreateProductField
|
|
2137
|
-
*/
|
|
2138
|
-
readonly authorization?: string
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
/**
|
|
2142
|
-
* Request parameters for deletePremiumFormula operation in ProductsApi.
|
|
2143
|
-
* @export
|
|
2144
|
-
* @interface ProductsApiDeletePremiumFormulaRequest
|
|
2145
|
-
*/
|
|
2146
|
-
export interface ProductsApiDeletePremiumFormulaRequest {
|
|
2147
|
-
/**
|
|
2148
|
-
*
|
|
2149
|
-
* @type {number}
|
|
2150
|
-
* @memberof ProductsApiDeletePremiumFormula
|
|
2151
|
-
*/
|
|
2152
|
-
readonly id: number
|
|
2153
|
-
|
|
2154
|
-
/**
|
|
2155
|
-
* Bearer Token
|
|
2156
|
-
* @type {string}
|
|
2157
|
-
* @memberof ProductsApiDeletePremiumFormula
|
|
2158
|
-
*/
|
|
2159
|
-
readonly authorization?: string
|
|
2160
|
-
}
|
|
2161
|
-
|
|
2162
|
-
/**
|
|
2163
|
-
* Request parameters for deleteProduct operation in ProductsApi.
|
|
2164
|
-
* @export
|
|
2165
|
-
* @interface ProductsApiDeleteProductRequest
|
|
2166
|
-
*/
|
|
2167
|
-
export interface ProductsApiDeleteProductRequest {
|
|
2168
|
-
/**
|
|
2169
|
-
*
|
|
2170
|
-
* @type {number}
|
|
2171
|
-
* @memberof ProductsApiDeleteProduct
|
|
2172
|
-
*/
|
|
2173
|
-
readonly id: number
|
|
2174
|
-
|
|
2175
|
-
/**
|
|
2176
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2177
|
-
* @type {string}
|
|
2178
|
-
* @memberof ProductsApiDeleteProduct
|
|
2179
|
-
*/
|
|
2180
|
-
readonly authorization?: string
|
|
2181
|
-
}
|
|
2182
|
-
|
|
2183
|
-
/**
|
|
2184
|
-
* Request parameters for deleteProductField operation in ProductsApi.
|
|
2185
|
-
* @export
|
|
2186
|
-
* @interface ProductsApiDeleteProductFieldRequest
|
|
2187
|
-
*/
|
|
2188
|
-
export interface ProductsApiDeleteProductFieldRequest {
|
|
2189
|
-
/**
|
|
2190
|
-
*
|
|
2191
|
-
* @type {string}
|
|
2192
|
-
* @memberof ProductsApiDeleteProductField
|
|
2193
|
-
*/
|
|
2194
|
-
readonly id: string
|
|
2195
|
-
|
|
2196
|
-
/**
|
|
2197
|
-
* Bearer Token
|
|
2198
|
-
* @type {string}
|
|
2199
|
-
* @memberof ProductsApiDeleteProductField
|
|
2200
|
-
*/
|
|
2201
|
-
readonly authorization?: string
|
|
2202
|
-
}
|
|
2203
|
-
|
|
2204
|
-
/**
|
|
2205
|
-
* Request parameters for getPremiumFormula operation in ProductsApi.
|
|
2206
|
-
* @export
|
|
2207
|
-
* @interface ProductsApiGetPremiumFormulaRequest
|
|
2208
|
-
*/
|
|
2209
|
-
export interface ProductsApiGetPremiumFormulaRequest {
|
|
2210
|
-
/**
|
|
2211
|
-
*
|
|
2212
|
-
* @type {string}
|
|
2213
|
-
* @memberof ProductsApiGetPremiumFormula
|
|
2214
|
-
*/
|
|
2215
|
-
readonly id: string
|
|
2216
|
-
|
|
2217
|
-
/**
|
|
2218
|
-
* Product formula id
|
|
2219
|
-
* @type {number}
|
|
2220
|
-
* @memberof ProductsApiGetPremiumFormula
|
|
2221
|
-
*/
|
|
2222
|
-
readonly id2: number
|
|
2223
|
-
|
|
2224
|
-
/**
|
|
2225
|
-
* Bearer Token
|
|
2226
|
-
* @type {string}
|
|
2227
|
-
* @memberof ProductsApiGetPremiumFormula
|
|
2228
|
-
*/
|
|
2229
|
-
readonly authorization?: string
|
|
2230
|
-
}
|
|
2231
|
-
|
|
2232
|
-
/**
|
|
2233
|
-
* Request parameters for getProductByCode operation in ProductsApi.
|
|
2234
|
-
* @export
|
|
2235
|
-
* @interface ProductsApiGetProductByCodeRequest
|
|
2236
|
-
*/
|
|
2237
|
-
export interface ProductsApiGetProductByCodeRequest {
|
|
2238
|
-
/**
|
|
2239
|
-
* Unique identifier for the object.
|
|
2240
|
-
* @type {string}
|
|
2241
|
-
* @memberof ProductsApiGetProductByCode
|
|
2242
|
-
*/
|
|
2243
|
-
readonly code: string
|
|
2244
|
-
|
|
2245
|
-
/**
|
|
2246
|
-
* Product id
|
|
2247
|
-
* @type {number}
|
|
2248
|
-
* @memberof ProductsApiGetProductByCode
|
|
2249
|
-
*/
|
|
2250
|
-
readonly id: number
|
|
2251
|
-
|
|
2252
|
-
/**
|
|
2253
|
-
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2254
|
-
* @type {string}
|
|
2255
|
-
* @memberof ProductsApiGetProductByCode
|
|
2256
|
-
*/
|
|
2257
|
-
readonly authorization?: string
|
|
2258
|
-
|
|
2259
|
-
/**
|
|
2260
|
-
* Fields to expand response by
|
|
2261
|
-
* @type {string}
|
|
2262
|
-
* @memberof ProductsApiGetProductByCode
|
|
2263
|
-
*/
|
|
2264
|
-
readonly expand?: string
|
|
2265
|
-
}
|
|
2266
|
-
|
|
2267
|
-
/**
|
|
2268
|
-
* Request parameters for getProductFactor operation in ProductsApi.
|
|
2269
|
-
* @export
|
|
2270
|
-
* @interface ProductsApiGetProductFactorRequest
|
|
2271
|
-
*/
|
|
2272
|
-
export interface ProductsApiGetProductFactorRequest {
|
|
2273
|
-
/**
|
|
2274
|
-
*
|
|
2275
|
-
* @type {number}
|
|
2276
|
-
* @memberof ProductsApiGetProductFactor
|
|
2277
|
-
*/
|
|
2278
|
-
readonly id: number
|
|
2279
|
-
|
|
2280
|
-
/**
|
|
2281
|
-
* Product factor id
|
|
2282
|
-
* @type {number}
|
|
2283
|
-
* @memberof ProductsApiGetProductFactor
|
|
2284
|
-
*/
|
|
2285
|
-
readonly id2: number
|
|
2286
|
-
|
|
2287
|
-
/**
|
|
2288
|
-
* Bearer Token
|
|
2289
|
-
* @type {string}
|
|
2290
|
-
* @memberof ProductsApiGetProductFactor
|
|
2291
|
-
*/
|
|
2292
|
-
readonly authorization?: string
|
|
2293
|
-
|
|
2294
|
-
/**
|
|
2295
|
-
* Fields to expand response by
|
|
2296
|
-
* @type {string}
|
|
2297
|
-
* @memberof ProductsApiGetProductFactor
|
|
2298
|
-
*/
|
|
2299
|
-
readonly expand?: string
|
|
2300
|
-
}
|
|
2301
|
-
|
|
2302
|
-
/**
|
|
2303
|
-
* Request parameters for getProductFactorValue operation in ProductsApi.
|
|
2304
|
-
* @export
|
|
2305
|
-
* @interface ProductsApiGetProductFactorValueRequest
|
|
2306
|
-
*/
|
|
2307
|
-
export interface ProductsApiGetProductFactorValueRequest {
|
|
2308
|
-
/**
|
|
2309
|
-
* Product Version Id
|
|
2310
|
-
* @type {number}
|
|
2311
|
-
* @memberof ProductsApiGetProductFactorValue
|
|
2312
|
-
*/
|
|
2313
|
-
readonly productVersionId: number
|
|
2314
|
-
|
|
2315
|
-
/**
|
|
2316
|
-
* Product factor label
|
|
2317
|
-
* @type {string}
|
|
2318
|
-
* @memberof ProductsApiGetProductFactorValue
|
|
2319
|
-
*/
|
|
2320
|
-
readonly label: string
|
|
2321
|
-
|
|
2322
|
-
/**
|
|
2323
|
-
* Key for the product factor value
|
|
2324
|
-
* @type {string}
|
|
2325
|
-
* @memberof ProductsApiGetProductFactorValue
|
|
2326
|
-
*/
|
|
2327
|
-
readonly key: string
|
|
2328
|
-
|
|
2329
|
-
/**
|
|
2330
|
-
* Name for the product factor value
|
|
2331
|
-
* @type {string}
|
|
2332
|
-
* @memberof ProductsApiGetProductFactorValue
|
|
2333
|
-
*/
|
|
2334
|
-
readonly name: string
|
|
2335
|
-
|
|
2336
|
-
/**
|
|
2337
|
-
* Bearer Token
|
|
2338
|
-
* @type {string}
|
|
2339
|
-
* @memberof ProductsApiGetProductFactorValue
|
|
2340
|
-
*/
|
|
2341
|
-
readonly authorization?: string
|
|
2342
|
-
}
|
|
2343
|
-
|
|
2344
|
-
/**
|
|
2345
|
-
* Request parameters for getProductFactorsForVersion operation in ProductsApi.
|
|
2346
|
-
* @export
|
|
2347
|
-
* @interface ProductsApiGetProductFactorsForVersionRequest
|
|
2348
|
-
*/
|
|
2349
|
-
export interface ProductsApiGetProductFactorsForVersionRequest {
|
|
2350
|
-
/**
|
|
2351
|
-
* Product Version Id
|
|
2352
|
-
* @type {number}
|
|
2353
|
-
* @memberof ProductsApiGetProductFactorsForVersion
|
|
2354
|
-
*/
|
|
2355
|
-
readonly productVersionId: number
|
|
2356
|
-
|
|
2357
|
-
/**
|
|
2358
|
-
* Which values to return for every factor (None or Short for short value lists only or All)
|
|
2359
|
-
* @type {string}
|
|
2360
|
-
* @memberof ProductsApiGetProductFactorsForVersion
|
|
2361
|
-
*/
|
|
2362
|
-
readonly values: string
|
|
2363
|
-
|
|
2364
|
-
/**
|
|
2365
|
-
* Bearer Token
|
|
2366
|
-
* @type {string}
|
|
2367
|
-
* @memberof ProductsApiGetProductFactorsForVersion
|
|
2368
|
-
*/
|
|
2369
|
-
readonly authorization?: string
|
|
2370
|
-
|
|
2371
|
-
/**
|
|
2372
|
-
* true if this is a call from PublivAPI or false otherwise (default)
|
|
2373
|
-
* @type {boolean}
|
|
2374
|
-
* @memberof ProductsApiGetProductFactorsForVersion
|
|
2375
|
-
*/
|
|
2376
|
-
readonly forPublic?: boolean
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
/**
|
|
2380
|
-
* Request parameters for getProductField operation in ProductsApi.
|
|
2381
|
-
* @export
|
|
2382
|
-
* @interface ProductsApiGetProductFieldRequest
|
|
2383
|
-
*/
|
|
2384
|
-
export interface ProductsApiGetProductFieldRequest {
|
|
2385
|
-
/**
|
|
2386
|
-
*
|
|
2387
|
-
* @type {string}
|
|
2388
|
-
* @memberof ProductsApiGetProductField
|
|
2389
|
-
*/
|
|
2390
|
-
readonly id: string
|
|
2391
|
-
|
|
2392
|
-
/**
|
|
2393
|
-
* Bearer Token
|
|
2394
|
-
* @type {string}
|
|
2395
|
-
* @memberof ProductsApiGetProductField
|
|
2396
|
-
*/
|
|
2397
|
-
readonly authorization?: string
|
|
2398
|
-
}
|
|
466
|
+
updateProduct(id: number, updateProductRequestDto: UpdateProductRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductResponseClass> {
|
|
467
|
+
return localVarFp.updateProduct(id, updateProductRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
468
|
+
},
|
|
469
|
+
};
|
|
470
|
+
};
|
|
2399
471
|
|
|
2400
472
|
/**
|
|
2401
|
-
* Request parameters for
|
|
473
|
+
* Request parameters for createProduct operation in ProductsApi.
|
|
2402
474
|
* @export
|
|
2403
|
-
* @interface
|
|
475
|
+
* @interface ProductsApiCreateProductRequest
|
|
2404
476
|
*/
|
|
2405
|
-
export interface
|
|
477
|
+
export interface ProductsApiCreateProductRequest {
|
|
2406
478
|
/**
|
|
2407
479
|
*
|
|
2408
|
-
* @type {
|
|
2409
|
-
* @memberof
|
|
2410
|
-
*/
|
|
2411
|
-
readonly id: string
|
|
2412
|
-
|
|
2413
|
-
/**
|
|
2414
|
-
* Product version id
|
|
2415
|
-
* @type {number}
|
|
2416
|
-
* @memberof ProductsApiGetProductVersion
|
|
2417
|
-
*/
|
|
2418
|
-
readonly id2: number
|
|
2419
|
-
|
|
2420
|
-
/**
|
|
2421
|
-
* Bearer Token
|
|
2422
|
-
* @type {string}
|
|
2423
|
-
* @memberof ProductsApiGetProductVersion
|
|
2424
|
-
*/
|
|
2425
|
-
readonly authorization?: string
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
/**
|
|
2429
|
-
* Request parameters for listPremiumFormulas operation in ProductsApi.
|
|
2430
|
-
* @export
|
|
2431
|
-
* @interface ProductsApiListPremiumFormulasRequest
|
|
2432
|
-
*/
|
|
2433
|
-
export interface ProductsApiListPremiumFormulasRequest {
|
|
2434
|
-
/**
|
|
2435
|
-
* Bearer Token
|
|
2436
|
-
* @type {string}
|
|
2437
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2438
|
-
*/
|
|
2439
|
-
readonly authorization?: string
|
|
2440
|
-
|
|
2441
|
-
/**
|
|
2442
|
-
* Page size
|
|
2443
|
-
* @type {number}
|
|
2444
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2445
|
-
*/
|
|
2446
|
-
readonly pageSize?: number
|
|
2447
|
-
|
|
2448
|
-
/**
|
|
2449
|
-
* Page token
|
|
2450
|
-
* @type {string}
|
|
2451
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2452
|
-
*/
|
|
2453
|
-
readonly pageToken?: string
|
|
2454
|
-
|
|
2455
|
-
/**
|
|
2456
|
-
* List filter
|
|
2457
|
-
* @type {string}
|
|
2458
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2459
|
-
*/
|
|
2460
|
-
readonly filter?: string
|
|
2461
|
-
|
|
2462
|
-
/**
|
|
2463
|
-
* Search query
|
|
2464
|
-
* @type {string}
|
|
2465
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2466
|
-
*/
|
|
2467
|
-
readonly search?: string
|
|
2468
|
-
|
|
2469
|
-
/**
|
|
2470
|
-
* Ordering criteria
|
|
2471
|
-
* @type {string}
|
|
2472
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2473
|
-
*/
|
|
2474
|
-
readonly order?: string
|
|
2475
|
-
|
|
2476
|
-
/**
|
|
2477
|
-
* Extra fields to fetch
|
|
2478
|
-
* @type {string}
|
|
2479
|
-
* @memberof ProductsApiListPremiumFormulas
|
|
2480
|
-
*/
|
|
2481
|
-
readonly expand?: string
|
|
2482
|
-
}
|
|
2483
|
-
|
|
2484
|
-
/**
|
|
2485
|
-
* Request parameters for listProductFactors operation in ProductsApi.
|
|
2486
|
-
* @export
|
|
2487
|
-
* @interface ProductsApiListProductFactorsRequest
|
|
2488
|
-
*/
|
|
2489
|
-
export interface ProductsApiListProductFactorsRequest {
|
|
2490
|
-
/**
|
|
2491
|
-
* Bearer Token
|
|
2492
|
-
* @type {string}
|
|
2493
|
-
* @memberof ProductsApiListProductFactors
|
|
2494
|
-
*/
|
|
2495
|
-
readonly authorization?: string
|
|
2496
|
-
|
|
2497
|
-
/**
|
|
2498
|
-
* Page size
|
|
2499
|
-
* @type {number}
|
|
2500
|
-
* @memberof ProductsApiListProductFactors
|
|
2501
|
-
*/
|
|
2502
|
-
readonly pageSize?: number
|
|
2503
|
-
|
|
2504
|
-
/**
|
|
2505
|
-
* Page token
|
|
2506
|
-
* @type {string}
|
|
2507
|
-
* @memberof ProductsApiListProductFactors
|
|
2508
|
-
*/
|
|
2509
|
-
readonly pageToken?: string
|
|
2510
|
-
|
|
2511
|
-
/**
|
|
2512
|
-
* List filter
|
|
2513
|
-
* @type {string}
|
|
2514
|
-
* @memberof ProductsApiListProductFactors
|
|
2515
|
-
*/
|
|
2516
|
-
readonly filter?: string
|
|
2517
|
-
|
|
2518
|
-
/**
|
|
2519
|
-
* Search query
|
|
2520
|
-
* @type {string}
|
|
2521
|
-
* @memberof ProductsApiListProductFactors
|
|
2522
|
-
*/
|
|
2523
|
-
readonly search?: string
|
|
2524
|
-
|
|
2525
|
-
/**
|
|
2526
|
-
* Ordering criteria
|
|
2527
|
-
* @type {string}
|
|
2528
|
-
* @memberof ProductsApiListProductFactors
|
|
2529
|
-
*/
|
|
2530
|
-
readonly order?: string
|
|
2531
|
-
|
|
2532
|
-
/**
|
|
2533
|
-
* Extra fields to fetch
|
|
2534
|
-
* @type {string}
|
|
2535
|
-
* @memberof ProductsApiListProductFactors
|
|
480
|
+
* @type {CreateProductRequestDto}
|
|
481
|
+
* @memberof ProductsApiCreateProduct
|
|
2536
482
|
*/
|
|
2537
|
-
readonly
|
|
2538
|
-
}
|
|
483
|
+
readonly createProductRequestDto: CreateProductRequestDto
|
|
2539
484
|
|
|
2540
|
-
/**
|
|
2541
|
-
* Request parameters for listProductFieldTypes operation in ProductsApi.
|
|
2542
|
-
* @export
|
|
2543
|
-
* @interface ProductsApiListProductFieldTypesRequest
|
|
2544
|
-
*/
|
|
2545
|
-
export interface ProductsApiListProductFieldTypesRequest {
|
|
2546
485
|
/**
|
|
2547
|
-
* Bearer Token
|
|
486
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2548
487
|
* @type {string}
|
|
2549
|
-
* @memberof
|
|
488
|
+
* @memberof ProductsApiCreateProduct
|
|
2550
489
|
*/
|
|
2551
490
|
readonly authorization?: string
|
|
2552
|
-
|
|
2553
|
-
/**
|
|
2554
|
-
* Page size
|
|
2555
|
-
* @type {number}
|
|
2556
|
-
* @memberof ProductsApiListProductFieldTypes
|
|
2557
|
-
*/
|
|
2558
|
-
readonly pageSize?: number
|
|
2559
|
-
|
|
2560
|
-
/**
|
|
2561
|
-
* Page token
|
|
2562
|
-
* @type {string}
|
|
2563
|
-
* @memberof ProductsApiListProductFieldTypes
|
|
2564
|
-
*/
|
|
2565
|
-
readonly pageToken?: string
|
|
2566
|
-
|
|
2567
|
-
/**
|
|
2568
|
-
* List filter
|
|
2569
|
-
* @type {string}
|
|
2570
|
-
* @memberof ProductsApiListProductFieldTypes
|
|
2571
|
-
*/
|
|
2572
|
-
readonly filter?: string
|
|
2573
|
-
|
|
2574
|
-
/**
|
|
2575
|
-
* Search query
|
|
2576
|
-
* @type {string}
|
|
2577
|
-
* @memberof ProductsApiListProductFieldTypes
|
|
2578
|
-
*/
|
|
2579
|
-
readonly search?: string
|
|
2580
|
-
|
|
2581
|
-
/**
|
|
2582
|
-
* Ordering criteria
|
|
2583
|
-
* @type {string}
|
|
2584
|
-
* @memberof ProductsApiListProductFieldTypes
|
|
2585
|
-
*/
|
|
2586
|
-
readonly order?: string
|
|
2587
|
-
|
|
2588
|
-
/**
|
|
2589
|
-
* Extra fields to fetch
|
|
2590
|
-
* @type {string}
|
|
2591
|
-
* @memberof ProductsApiListProductFieldTypes
|
|
2592
|
-
*/
|
|
2593
|
-
readonly expand?: string
|
|
2594
491
|
}
|
|
2595
492
|
|
|
2596
493
|
/**
|
|
2597
|
-
* Request parameters for
|
|
494
|
+
* Request parameters for deleteProduct operation in ProductsApi.
|
|
2598
495
|
* @export
|
|
2599
|
-
* @interface
|
|
496
|
+
* @interface ProductsApiDeleteProductRequest
|
|
2600
497
|
*/
|
|
2601
|
-
export interface
|
|
2602
|
-
/**
|
|
2603
|
-
* Bearer Token
|
|
2604
|
-
* @type {string}
|
|
2605
|
-
* @memberof ProductsApiListProductFields
|
|
2606
|
-
*/
|
|
2607
|
-
readonly authorization?: string
|
|
2608
|
-
|
|
498
|
+
export interface ProductsApiDeleteProductRequest {
|
|
2609
499
|
/**
|
|
2610
|
-
*
|
|
500
|
+
*
|
|
2611
501
|
* @type {number}
|
|
2612
|
-
* @memberof
|
|
502
|
+
* @memberof ProductsApiDeleteProduct
|
|
2613
503
|
*/
|
|
2614
|
-
readonly
|
|
504
|
+
readonly id: number
|
|
2615
505
|
|
|
2616
506
|
/**
|
|
2617
|
-
*
|
|
507
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2618
508
|
* @type {string}
|
|
2619
|
-
* @memberof
|
|
509
|
+
* @memberof ProductsApiDeleteProduct
|
|
2620
510
|
*/
|
|
2621
|
-
readonly
|
|
511
|
+
readonly authorization?: string
|
|
512
|
+
}
|
|
2622
513
|
|
|
514
|
+
/**
|
|
515
|
+
* Request parameters for getProductByCode operation in ProductsApi.
|
|
516
|
+
* @export
|
|
517
|
+
* @interface ProductsApiGetProductByCodeRequest
|
|
518
|
+
*/
|
|
519
|
+
export interface ProductsApiGetProductByCodeRequest {
|
|
2623
520
|
/**
|
|
2624
|
-
*
|
|
521
|
+
* Unique identifier for the object.
|
|
2625
522
|
* @type {string}
|
|
2626
|
-
* @memberof
|
|
523
|
+
* @memberof ProductsApiGetProductByCode
|
|
2627
524
|
*/
|
|
2628
|
-
readonly
|
|
525
|
+
readonly code: string
|
|
2629
526
|
|
|
2630
527
|
/**
|
|
2631
|
-
*
|
|
2632
|
-
* @type {
|
|
2633
|
-
* @memberof
|
|
528
|
+
* Product id
|
|
529
|
+
* @type {number}
|
|
530
|
+
* @memberof ProductsApiGetProductByCode
|
|
2634
531
|
*/
|
|
2635
|
-
readonly
|
|
532
|
+
readonly id: number
|
|
2636
533
|
|
|
2637
534
|
/**
|
|
2638
|
-
*
|
|
535
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
2639
536
|
* @type {string}
|
|
2640
|
-
* @memberof
|
|
537
|
+
* @memberof ProductsApiGetProductByCode
|
|
2641
538
|
*/
|
|
2642
|
-
readonly
|
|
539
|
+
readonly authorization?: string
|
|
2643
540
|
|
|
2644
541
|
/**
|
|
2645
|
-
*
|
|
542
|
+
* Fields to expand response by
|
|
2646
543
|
* @type {string}
|
|
2647
|
-
* @memberof
|
|
544
|
+
* @memberof ProductsApiGetProductByCode
|
|
2648
545
|
*/
|
|
2649
546
|
readonly expand?: string
|
|
2650
547
|
}
|
|
@@ -2663,14 +560,14 @@ export interface ProductsApiListProductsRequest {
|
|
|
2663
560
|
readonly authorization?: string
|
|
2664
561
|
|
|
2665
562
|
/**
|
|
2666
|
-
* Page size
|
|
563
|
+
* Page size.
|
|
2667
564
|
* @type {number}
|
|
2668
565
|
* @memberof ProductsApiListProducts
|
|
2669
566
|
*/
|
|
2670
567
|
readonly pageSize?: number
|
|
2671
568
|
|
|
2672
569
|
/**
|
|
2673
|
-
* Page token
|
|
570
|
+
* Page token.
|
|
2674
571
|
* @type {string}
|
|
2675
572
|
* @memberof ProductsApiListProducts
|
|
2676
573
|
*/
|
|
@@ -2684,83 +581,27 @@ export interface ProductsApiListProductsRequest {
|
|
|
2684
581
|
readonly filter?: string
|
|
2685
582
|
|
|
2686
583
|
/**
|
|
2687
|
-
* Search query
|
|
584
|
+
* Search query.
|
|
2688
585
|
* @type {string}
|
|
2689
586
|
* @memberof ProductsApiListProducts
|
|
2690
587
|
*/
|
|
2691
588
|
readonly search?: string
|
|
2692
589
|
|
|
2693
590
|
/**
|
|
2694
|
-
* Ordering criteria
|
|
591
|
+
* Ordering criteria.
|
|
2695
592
|
* @type {string}
|
|
2696
593
|
* @memberof ProductsApiListProducts
|
|
2697
594
|
*/
|
|
2698
595
|
readonly order?: string
|
|
2699
596
|
|
|
2700
597
|
/**
|
|
2701
|
-
*
|
|
598
|
+
* You can expand product versions and insured object types list in this endpoint. By default, versions & insuredObjectTypes will be an empty array.
|
|
2702
599
|
* @type {string}
|
|
2703
600
|
* @memberof ProductsApiListProducts
|
|
2704
601
|
*/
|
|
2705
602
|
readonly expand?: string
|
|
2706
603
|
}
|
|
2707
604
|
|
|
2708
|
-
/**
|
|
2709
|
-
* Request parameters for storeProductFactors operation in ProductsApi.
|
|
2710
|
-
* @export
|
|
2711
|
-
* @interface ProductsApiStoreProductFactorsRequest
|
|
2712
|
-
*/
|
|
2713
|
-
export interface ProductsApiStoreProductFactorsRequest {
|
|
2714
|
-
/**
|
|
2715
|
-
* Bearer Token
|
|
2716
|
-
* @type {string}
|
|
2717
|
-
* @memberof ProductsApiStoreProductFactors
|
|
2718
|
-
*/
|
|
2719
|
-
readonly authorization?: string
|
|
2720
|
-
|
|
2721
|
-
/**
|
|
2722
|
-
*
|
|
2723
|
-
* @type {number}
|
|
2724
|
-
* @memberof ProductsApiStoreProductFactors
|
|
2725
|
-
*/
|
|
2726
|
-
readonly productVersionId?: number
|
|
2727
|
-
|
|
2728
|
-
/**
|
|
2729
|
-
*
|
|
2730
|
-
* @type {any}
|
|
2731
|
-
* @memberof ProductsApiStoreProductFactors
|
|
2732
|
-
*/
|
|
2733
|
-
readonly factors?: any
|
|
2734
|
-
}
|
|
2735
|
-
|
|
2736
|
-
/**
|
|
2737
|
-
* Request parameters for updatePremiumFormula operation in ProductsApi.
|
|
2738
|
-
* @export
|
|
2739
|
-
* @interface ProductsApiUpdatePremiumFormulaRequest
|
|
2740
|
-
*/
|
|
2741
|
-
export interface ProductsApiUpdatePremiumFormulaRequest {
|
|
2742
|
-
/**
|
|
2743
|
-
*
|
|
2744
|
-
* @type {number}
|
|
2745
|
-
* @memberof ProductsApiUpdatePremiumFormula
|
|
2746
|
-
*/
|
|
2747
|
-
readonly id: number
|
|
2748
|
-
|
|
2749
|
-
/**
|
|
2750
|
-
*
|
|
2751
|
-
* @type {UpdatePremiumFormulaRequestDto}
|
|
2752
|
-
* @memberof ProductsApiUpdatePremiumFormula
|
|
2753
|
-
*/
|
|
2754
|
-
readonly updatePremiumFormulaRequestDto: UpdatePremiumFormulaRequestDto
|
|
2755
|
-
|
|
2756
|
-
/**
|
|
2757
|
-
* Bearer Token
|
|
2758
|
-
* @type {string}
|
|
2759
|
-
* @memberof ProductsApiUpdatePremiumFormula
|
|
2760
|
-
*/
|
|
2761
|
-
readonly authorization?: string
|
|
2762
|
-
}
|
|
2763
|
-
|
|
2764
605
|
/**
|
|
2765
606
|
* Request parameters for updateProduct operation in ProductsApi.
|
|
2766
607
|
* @export
|
|
@@ -2789,83 +630,6 @@ export interface ProductsApiUpdateProductRequest {
|
|
|
2789
630
|
readonly authorization?: string
|
|
2790
631
|
}
|
|
2791
632
|
|
|
2792
|
-
/**
|
|
2793
|
-
* Request parameters for updateProductField operation in ProductsApi.
|
|
2794
|
-
* @export
|
|
2795
|
-
* @interface ProductsApiUpdateProductFieldRequest
|
|
2796
|
-
*/
|
|
2797
|
-
export interface ProductsApiUpdateProductFieldRequest {
|
|
2798
|
-
/**
|
|
2799
|
-
*
|
|
2800
|
-
* @type {string}
|
|
2801
|
-
* @memberof ProductsApiUpdateProductField
|
|
2802
|
-
*/
|
|
2803
|
-
readonly id: string
|
|
2804
|
-
|
|
2805
|
-
/**
|
|
2806
|
-
*
|
|
2807
|
-
* @type {UpdateProductFieldRequestDto}
|
|
2808
|
-
* @memberof ProductsApiUpdateProductField
|
|
2809
|
-
*/
|
|
2810
|
-
readonly updateProductFieldRequestDto: UpdateProductFieldRequestDto
|
|
2811
|
-
|
|
2812
|
-
/**
|
|
2813
|
-
* Bearer Token
|
|
2814
|
-
* @type {string}
|
|
2815
|
-
* @memberof ProductsApiUpdateProductField
|
|
2816
|
-
*/
|
|
2817
|
-
readonly authorization?: string
|
|
2818
|
-
}
|
|
2819
|
-
|
|
2820
|
-
/**
|
|
2821
|
-
* Request parameters for updateProductVersion operation in ProductsApi.
|
|
2822
|
-
* @export
|
|
2823
|
-
* @interface ProductsApiUpdateProductVersionRequest
|
|
2824
|
-
*/
|
|
2825
|
-
export interface ProductsApiUpdateProductVersionRequest {
|
|
2826
|
-
/**
|
|
2827
|
-
*
|
|
2828
|
-
* @type {number}
|
|
2829
|
-
* @memberof ProductsApiUpdateProductVersion
|
|
2830
|
-
*/
|
|
2831
|
-
readonly id: number
|
|
2832
|
-
|
|
2833
|
-
/**
|
|
2834
|
-
*
|
|
2835
|
-
* @type {UpdateProductVersionRequestDto}
|
|
2836
|
-
* @memberof ProductsApiUpdateProductVersion
|
|
2837
|
-
*/
|
|
2838
|
-
readonly updateProductVersionRequestDto: UpdateProductVersionRequestDto
|
|
2839
|
-
|
|
2840
|
-
/**
|
|
2841
|
-
* Bearer Token
|
|
2842
|
-
* @type {string}
|
|
2843
|
-
* @memberof ProductsApiUpdateProductVersion
|
|
2844
|
-
*/
|
|
2845
|
-
readonly authorization?: string
|
|
2846
|
-
}
|
|
2847
|
-
|
|
2848
|
-
/**
|
|
2849
|
-
* Request parameters for validateProductFactors operation in ProductsApi.
|
|
2850
|
-
* @export
|
|
2851
|
-
* @interface ProductsApiValidateProductFactorsRequest
|
|
2852
|
-
*/
|
|
2853
|
-
export interface ProductsApiValidateProductFactorsRequest {
|
|
2854
|
-
/**
|
|
2855
|
-
* Bearer Token
|
|
2856
|
-
* @type {string}
|
|
2857
|
-
* @memberof ProductsApiValidateProductFactors
|
|
2858
|
-
*/
|
|
2859
|
-
readonly authorization?: string
|
|
2860
|
-
|
|
2861
|
-
/**
|
|
2862
|
-
*
|
|
2863
|
-
* @type {any}
|
|
2864
|
-
* @memberof ProductsApiValidateProductFactors
|
|
2865
|
-
*/
|
|
2866
|
-
readonly factors?: any
|
|
2867
|
-
}
|
|
2868
|
-
|
|
2869
633
|
/**
|
|
2870
634
|
* ProductsApi - object-oriented interface
|
|
2871
635
|
* @export
|
|
@@ -2873,18 +637,6 @@ export interface ProductsApiValidateProductFactorsRequest {
|
|
|
2873
637
|
* @extends {BaseAPI}
|
|
2874
638
|
*/
|
|
2875
639
|
export class ProductsApi extends BaseAPI {
|
|
2876
|
-
/**
|
|
2877
|
-
* Creates a premium formula.
|
|
2878
|
-
* @summary Create the premium formula
|
|
2879
|
-
* @param {ProductsApiCreatePremiumFormulaRequest} requestParameters Request parameters.
|
|
2880
|
-
* @param {*} [options] Override http request option.
|
|
2881
|
-
* @throws {RequiredError}
|
|
2882
|
-
* @memberof ProductsApi
|
|
2883
|
-
*/
|
|
2884
|
-
public createPremiumFormula(requestParameters: ProductsApiCreatePremiumFormulaRequest, options?: AxiosRequestConfig) {
|
|
2885
|
-
return ProductsApiFp(this.configuration).createPremiumFormula(requestParameters.createPremiumFormulaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2886
|
-
}
|
|
2887
|
-
|
|
2888
640
|
/**
|
|
2889
641
|
* Create a blank product. The product cannot be used as long as it is missing product factors, insured objects and premium formulas.
|
|
2890
642
|
* @summary Create the product
|
|
@@ -2897,30 +649,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
2897
649
|
return ProductsApiFp(this.configuration).createProduct(requestParameters.createProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2898
650
|
}
|
|
2899
651
|
|
|
2900
|
-
/**
|
|
2901
|
-
* Create a product field in the database.
|
|
2902
|
-
* @summary Create the product field
|
|
2903
|
-
* @param {ProductsApiCreateProductFieldRequest} requestParameters Request parameters.
|
|
2904
|
-
* @param {*} [options] Override http request option.
|
|
2905
|
-
* @throws {RequiredError}
|
|
2906
|
-
* @memberof ProductsApi
|
|
2907
|
-
*/
|
|
2908
|
-
public createProductField(requestParameters: ProductsApiCreateProductFieldRequest, options?: AxiosRequestConfig) {
|
|
2909
|
-
return ProductsApiFp(this.configuration).createProductField(requestParameters.createProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2910
|
-
}
|
|
2911
|
-
|
|
2912
|
-
/**
|
|
2913
|
-
* Permanently deletes the premium formula. Supply the unique id that was returned when you created the premium formula and this will delete it.
|
|
2914
|
-
* @summary Delete the premium formula
|
|
2915
|
-
* @param {ProductsApiDeletePremiumFormulaRequest} requestParameters Request parameters.
|
|
2916
|
-
* @param {*} [options] Override http request option.
|
|
2917
|
-
* @throws {RequiredError}
|
|
2918
|
-
* @memberof ProductsApi
|
|
2919
|
-
*/
|
|
2920
|
-
public deletePremiumFormula(requestParameters: ProductsApiDeletePremiumFormulaRequest, options?: AxiosRequestConfig) {
|
|
2921
|
-
return ProductsApiFp(this.configuration).deletePremiumFormula(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2922
|
-
}
|
|
2923
|
-
|
|
2924
652
|
/**
|
|
2925
653
|
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
2926
654
|
* @summary Delete the product
|
|
@@ -2933,30 +661,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
2933
661
|
return ProductsApiFp(this.configuration).deleteProduct(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2934
662
|
}
|
|
2935
663
|
|
|
2936
|
-
/**
|
|
2937
|
-
* Permanently deletes the product. Supply the unique id that was returned when you created the product and this will delete it.
|
|
2938
|
-
* @summary Delete the product
|
|
2939
|
-
* @param {ProductsApiDeleteProductFieldRequest} requestParameters Request parameters.
|
|
2940
|
-
* @param {*} [options] Override http request option.
|
|
2941
|
-
* @throws {RequiredError}
|
|
2942
|
-
* @memberof ProductsApi
|
|
2943
|
-
*/
|
|
2944
|
-
public deleteProductField(requestParameters: ProductsApiDeleteProductFieldRequest, options?: AxiosRequestConfig) {
|
|
2945
|
-
return ProductsApiFp(this.configuration).deleteProductField(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2946
|
-
}
|
|
2947
|
-
|
|
2948
|
-
/**
|
|
2949
|
-
* Retrieves the details of the premium formula that was previously created. Supply the unique premium formula id that was returned when you created it and Emil Api will return the corresponding premium formula information.
|
|
2950
|
-
* @summary Retrieve the premium formula
|
|
2951
|
-
* @param {ProductsApiGetPremiumFormulaRequest} requestParameters Request parameters.
|
|
2952
|
-
* @param {*} [options] Override http request option.
|
|
2953
|
-
* @throws {RequiredError}
|
|
2954
|
-
* @memberof ProductsApi
|
|
2955
|
-
*/
|
|
2956
|
-
public getPremiumFormula(requestParameters: ProductsApiGetPremiumFormulaRequest, options?: AxiosRequestConfig) {
|
|
2957
|
-
return ProductsApiFp(this.configuration).getPremiumFormula(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2958
|
-
}
|
|
2959
|
-
|
|
2960
664
|
/**
|
|
2961
665
|
* Retrieves the details of the product that was previously created. Supply the unique product code that was returned when you created it and Emil Api will return the corresponding product information.
|
|
2962
666
|
* @summary Retrieve the product
|
|
@@ -2969,114 +673,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
2969
673
|
return ProductsApiFp(this.configuration).getProductByCode(requestParameters.code, requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
2970
674
|
}
|
|
2971
675
|
|
|
2972
|
-
/**
|
|
2973
|
-
* Retrieves the details of the product factor that was previously created. Supply the unique product factor id that was returned when you created it and Emil Api will return the corresponding product factor information.
|
|
2974
|
-
* @summary Retrieve the product factor
|
|
2975
|
-
* @param {ProductsApiGetProductFactorRequest} requestParameters Request parameters.
|
|
2976
|
-
* @param {*} [options] Override http request option.
|
|
2977
|
-
* @throws {RequiredError}
|
|
2978
|
-
* @memberof ProductsApi
|
|
2979
|
-
*/
|
|
2980
|
-
public getProductFactor(requestParameters: ProductsApiGetProductFactorRequest, options?: AxiosRequestConfig) {
|
|
2981
|
-
return ProductsApiFp(this.configuration).getProductFactor(requestParameters.id, requestParameters.id2, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
2982
|
-
}
|
|
2983
|
-
|
|
2984
|
-
/**
|
|
2985
|
-
* Get the value corresponding to a specific product factor.
|
|
2986
|
-
* @summary Get product factor value
|
|
2987
|
-
* @param {ProductsApiGetProductFactorValueRequest} requestParameters Request parameters.
|
|
2988
|
-
* @param {*} [options] Override http request option.
|
|
2989
|
-
* @throws {RequiredError}
|
|
2990
|
-
* @memberof ProductsApi
|
|
2991
|
-
*/
|
|
2992
|
-
public getProductFactorValue(requestParameters: ProductsApiGetProductFactorValueRequest, options?: AxiosRequestConfig) {
|
|
2993
|
-
return ProductsApiFp(this.configuration).getProductFactorValue(requestParameters.productVersionId, requestParameters.label, requestParameters.key, requestParameters.name, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2994
|
-
}
|
|
2995
|
-
|
|
2996
|
-
/**
|
|
2997
|
-
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
2998
|
-
* @summary Returns all product factors for the product version with all without values
|
|
2999
|
-
* @param {ProductsApiGetProductFactorsForVersionRequest} requestParameters Request parameters.
|
|
3000
|
-
* @param {*} [options] Override http request option.
|
|
3001
|
-
* @throws {RequiredError}
|
|
3002
|
-
* @memberof ProductsApi
|
|
3003
|
-
*/
|
|
3004
|
-
public getProductFactorsForVersion(requestParameters: ProductsApiGetProductFactorsForVersionRequest, options?: AxiosRequestConfig) {
|
|
3005
|
-
return ProductsApiFp(this.configuration).getProductFactorsForVersion(requestParameters.productVersionId, requestParameters.values, requestParameters.authorization, requestParameters.forPublic, options).then((request) => request(this.axios, this.basePath));
|
|
3006
|
-
}
|
|
3007
|
-
|
|
3008
|
-
/**
|
|
3009
|
-
* Retrieves the details of the product field that was previously created. Supply the unique product field id that was returned when you created it and Emil Api will return the corresponding product field information.
|
|
3010
|
-
* @summary Retrieve the product field
|
|
3011
|
-
* @param {ProductsApiGetProductFieldRequest} requestParameters Request parameters.
|
|
3012
|
-
* @param {*} [options] Override http request option.
|
|
3013
|
-
* @throws {RequiredError}
|
|
3014
|
-
* @memberof ProductsApi
|
|
3015
|
-
*/
|
|
3016
|
-
public getProductField(requestParameters: ProductsApiGetProductFieldRequest, options?: AxiosRequestConfig) {
|
|
3017
|
-
return ProductsApiFp(this.configuration).getProductField(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
3018
|
-
}
|
|
3019
|
-
|
|
3020
|
-
/**
|
|
3021
|
-
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
3022
|
-
* @summary Retrieve the product version
|
|
3023
|
-
* @param {ProductsApiGetProductVersionRequest} requestParameters Request parameters.
|
|
3024
|
-
* @param {*} [options] Override http request option.
|
|
3025
|
-
* @throws {RequiredError}
|
|
3026
|
-
* @memberof ProductsApi
|
|
3027
|
-
*/
|
|
3028
|
-
public getProductVersion(requestParameters: ProductsApiGetProductVersionRequest, options?: AxiosRequestConfig) {
|
|
3029
|
-
return ProductsApiFp(this.configuration).getProductVersion(requestParameters.id, requestParameters.id2, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
3030
|
-
}
|
|
3031
|
-
|
|
3032
|
-
/**
|
|
3033
|
-
* Returns a list of premium formulas you have previously created. The premium formulas are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
3034
|
-
* @summary List premium formulas
|
|
3035
|
-
* @param {ProductsApiListPremiumFormulasRequest} requestParameters Request parameters.
|
|
3036
|
-
* @param {*} [options] Override http request option.
|
|
3037
|
-
* @throws {RequiredError}
|
|
3038
|
-
* @memberof ProductsApi
|
|
3039
|
-
*/
|
|
3040
|
-
public listPremiumFormulas(requestParameters: ProductsApiListPremiumFormulasRequest = {}, options?: AxiosRequestConfig) {
|
|
3041
|
-
return ProductsApiFp(this.configuration).listPremiumFormulas(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
3042
|
-
}
|
|
3043
|
-
|
|
3044
|
-
/**
|
|
3045
|
-
* 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.
|
|
3046
|
-
* @summary List product factors
|
|
3047
|
-
* @param {ProductsApiListProductFactorsRequest} requestParameters Request parameters.
|
|
3048
|
-
* @param {*} [options] Override http request option.
|
|
3049
|
-
* @throws {RequiredError}
|
|
3050
|
-
* @memberof ProductsApi
|
|
3051
|
-
*/
|
|
3052
|
-
public listProductFactors(requestParameters: ProductsApiListProductFactorsRequest = {}, options?: AxiosRequestConfig) {
|
|
3053
|
-
return ProductsApiFp(this.configuration).listProductFactors(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
3054
|
-
}
|
|
3055
|
-
|
|
3056
|
-
/**
|
|
3057
|
-
* Returns a list of product field types you have previously created. The product field types are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
3058
|
-
* @summary List product field types
|
|
3059
|
-
* @param {ProductsApiListProductFieldTypesRequest} requestParameters Request parameters.
|
|
3060
|
-
* @param {*} [options] Override http request option.
|
|
3061
|
-
* @throws {RequiredError}
|
|
3062
|
-
* @memberof ProductsApi
|
|
3063
|
-
*/
|
|
3064
|
-
public listProductFieldTypes(requestParameters: ProductsApiListProductFieldTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
3065
|
-
return ProductsApiFp(this.configuration).listProductFieldTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
3066
|
-
}
|
|
3067
|
-
|
|
3068
|
-
/**
|
|
3069
|
-
* Returns a list of product fields you have previously created. The product fields are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
3070
|
-
* @summary List product fields
|
|
3071
|
-
* @param {ProductsApiListProductFieldsRequest} requestParameters Request parameters.
|
|
3072
|
-
* @param {*} [options] Override http request option.
|
|
3073
|
-
* @throws {RequiredError}
|
|
3074
|
-
* @memberof ProductsApi
|
|
3075
|
-
*/
|
|
3076
|
-
public listProductFields(requestParameters: ProductsApiListProductFieldsRequest = {}, options?: AxiosRequestConfig) {
|
|
3077
|
-
return ProductsApiFp(this.configuration).listProductFields(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
3078
|
-
}
|
|
3079
|
-
|
|
3080
676
|
/**
|
|
3081
677
|
* Returns a list of products you have previously created. The products are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
3082
678
|
* @summary List products
|
|
@@ -3089,30 +685,6 @@ export class ProductsApi extends BaseAPI {
|
|
|
3089
685
|
return ProductsApiFp(this.configuration).listProducts(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
3090
686
|
}
|
|
3091
687
|
|
|
3092
|
-
/**
|
|
3093
|
-
* Upload a CSV file containing product factors necessary for a product. The columns must be in the following order: group,label,key,name,value. It is advised to validate the file first.
|
|
3094
|
-
* @summary Upload product factors
|
|
3095
|
-
* @param {ProductsApiStoreProductFactorsRequest} requestParameters Request parameters.
|
|
3096
|
-
* @param {*} [options] Override http request option.
|
|
3097
|
-
* @throws {RequiredError}
|
|
3098
|
-
* @memberof ProductsApi
|
|
3099
|
-
*/
|
|
3100
|
-
public storeProductFactors(requestParameters: ProductsApiStoreProductFactorsRequest = {}, options?: AxiosRequestConfig) {
|
|
3101
|
-
return ProductsApiFp(this.configuration).storeProductFactors(requestParameters.authorization, requestParameters.productVersionId, requestParameters.factors, options).then((request) => request(this.axios, this.basePath));
|
|
3102
|
-
}
|
|
3103
|
-
|
|
3104
|
-
/**
|
|
3105
|
-
* Updates the specified premium formula by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
3106
|
-
* @summary Update the premium formula
|
|
3107
|
-
* @param {ProductsApiUpdatePremiumFormulaRequest} requestParameters Request parameters.
|
|
3108
|
-
* @param {*} [options] Override http request option.
|
|
3109
|
-
* @throws {RequiredError}
|
|
3110
|
-
* @memberof ProductsApi
|
|
3111
|
-
*/
|
|
3112
|
-
public updatePremiumFormula(requestParameters: ProductsApiUpdatePremiumFormulaRequest, options?: AxiosRequestConfig) {
|
|
3113
|
-
return ProductsApiFp(this.configuration).updatePremiumFormula(requestParameters.id, requestParameters.updatePremiumFormulaRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
3114
|
-
}
|
|
3115
|
-
|
|
3116
688
|
/**
|
|
3117
689
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
3118
690
|
* @summary Update the product
|
|
@@ -3124,40 +696,4 @@ export class ProductsApi extends BaseAPI {
|
|
|
3124
696
|
public updateProduct(requestParameters: ProductsApiUpdateProductRequest, options?: AxiosRequestConfig) {
|
|
3125
697
|
return ProductsApiFp(this.configuration).updateProduct(requestParameters.id, requestParameters.updateProductRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
3126
698
|
}
|
|
3127
|
-
|
|
3128
|
-
/**
|
|
3129
|
-
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
3130
|
-
* @summary Update the product
|
|
3131
|
-
* @param {ProductsApiUpdateProductFieldRequest} requestParameters Request parameters.
|
|
3132
|
-
* @param {*} [options] Override http request option.
|
|
3133
|
-
* @throws {RequiredError}
|
|
3134
|
-
* @memberof ProductsApi
|
|
3135
|
-
*/
|
|
3136
|
-
public updateProductField(requestParameters: ProductsApiUpdateProductFieldRequest, options?: AxiosRequestConfig) {
|
|
3137
|
-
return ProductsApiFp(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
3138
|
-
}
|
|
3139
|
-
|
|
3140
|
-
/**
|
|
3141
|
-
* Updates the specified product version by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
3142
|
-
* @summary Update the product version
|
|
3143
|
-
* @param {ProductsApiUpdateProductVersionRequest} requestParameters Request parameters.
|
|
3144
|
-
* @param {*} [options] Override http request option.
|
|
3145
|
-
* @throws {RequiredError}
|
|
3146
|
-
* @memberof ProductsApi
|
|
3147
|
-
*/
|
|
3148
|
-
public updateProductVersion(requestParameters: ProductsApiUpdateProductVersionRequest, options?: AxiosRequestConfig) {
|
|
3149
|
-
return ProductsApiFp(this.configuration).updateProductVersion(requestParameters.id, requestParameters.updateProductVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
3150
|
-
}
|
|
3151
|
-
|
|
3152
|
-
/**
|
|
3153
|
-
* Validate a CSV file containing all product factors. The columns must be in the following order: group,label,key,name,value.
|
|
3154
|
-
* @summary Validate product factors
|
|
3155
|
-
* @param {ProductsApiValidateProductFactorsRequest} requestParameters Request parameters.
|
|
3156
|
-
* @param {*} [options] Override http request option.
|
|
3157
|
-
* @throws {RequiredError}
|
|
3158
|
-
* @memberof ProductsApi
|
|
3159
|
-
*/
|
|
3160
|
-
public validateProductFactors(requestParameters: ProductsApiValidateProductFactorsRequest = {}, options?: AxiosRequestConfig) {
|
|
3161
|
-
return ProductsApiFp(this.configuration).validateProductFactors(requestParameters.authorization, requestParameters.factors, options).then((request) => request(this.axios, this.basePath));
|
|
3162
|
-
}
|
|
3163
699
|
}
|