CreateInsuranceQuoteOptions Class
Namespace
Usage
Use the CreateInsuranceQuoteOptions class with the Insurance Quote (POST) API and the Create Insurance Quote invocable action to create an insurance quote so that you can specify which operations to run and whether to save the quote or not.
Example
When calling the Create Insurance Quote invocable action from Apex, create a CreateInsuranceQuoteOptions instance, set the desired properties, and then use it as quoteOptions.
1runtime_industries_insurance.CreateInsuranceQuoteOptions createQuoteOptions
2 = new runtime_industries_insurance.CreateInsuranceQuoteOptions();
3 Map<String, Object> optionsFromInput = (Map<String, Object>)quotePayload.get('quoteOptions');
4 if (optionsFromInput.containsKey('executePricing')) {
5 createQuoteOptions.executePricing = (Boolean)optionsFromInput.get('executePricing');
6 }
7 if (optionsFromInput.containsKey('validateProductCatalog')) {
8 createQuoteOptions.validateProductCatalog = (Boolean)optionsFromInput.get('validateProductCatalog');
9 }
10 if (optionsFromInput.containsKey('executeConfigurationRules')) {
11 createQuoteOptions.executeConfigurationRules = (Boolean)optionsFromInput.get('executeConfigurationRules');
12 }
13 if (optionsFromInput.containsKey('executeQualificationRules')) {
14 createQuoteOptions.executeQualificationRules = (Boolean)optionsFromInput.get('executeQualificationRules');
15 }
16 if (optionsFromInput.containsKey('saveQuote')) {
17 createQuoteOptions.saveQuote = (Boolean)optionsFromInput.get('saveQuote');
18 }
19 if (optionsFromInput.containsKey('productSellingModel')) {
20 createQuoteOptions.productSellingModel = (String)optionsFromInput.get('productSellingModel');
21 }
22 action.setInvocationParameter('quoteOptions', createQuoteOptions);CreateInsuranceQuoteOptions Constructors
The CreateInsuranceQuoteOptions class includes these constructors.
CreateInsuranceQuoteOptions(executePricing, validateProductCatalog, executeConfigurationRules, executeQualificationRules, saveQuote, productSellingModel)
Signature
public CreateInsuranceQuoteOptions(Boolean executePricing, Boolean validateProductCatalog, Boolean executeConfigurationRules, Boolean executeQualificationRules, Boolean saveQuote, String productSellingModel)
Parameters
- executePricing
- Type: Boolean
- Indicates whether to execute pricing when creating the quote (true) or not (false). The default value is false.
- validateProductCatalog
- Type: Boolean
- Indicates whether to validate against product catalog (true) or not (false). The default value is false.
- executeConfigurationRules
- Type: Boolean
- Indicates whether to run product configuration rules (true) or not (false). The default value is false.
- executeQualificationRules
- Type: Boolean
- Indicates whether to run qualification rules (true) or not (false). The default value is false.
- saveQuote
- Type: Boolean
- Indicates whether to save the details after the quote is created (true) or not (false). The default value is false.
- productSellingModel
- Type: String
- ID of the product selling model for the quote.
CreateInsuranceQuoteOptions Properties
The CreateInsuranceQuoteOptions class includes these properties.
executeConfigurationRules
Signature
public Boolean executeConfigurationRules {get; set;}
Property Value
Type: Boolean
executePricing
Signature
public Boolean executePricing {get; set;}
Property Value
Type: Boolean
executeQualificationRules
Signature
public Boolean executeQualificationRules {get; set;}
Property Value
Type: Boolean
productSellingModel
Signature
public String productSellingModel {get; set;}
Property Value
Type: String