Newer Version Available
UpdateInsuranceQuoteOptions Class
Namespace
Usage
Use the UpdateInsuranceQuoteOptions class when calling the Update Insurance Quote invocable action to update an insurance quote so that you can specify which operations to run and whether to save the updated quote.
Example
When calling the Update Insurance Quote invocable action from Apex, create an UpdateInsuranceQuoteOptions instance, set the desired properties, and use it as quoteOptions.
1// quoteOptions for updateInsuranceQuote
2if (inputs != null && inputs.containsKey('quoteOptions')) {
3 Map<String, Object> optionsFromInput =
4 (Map<String, Object>) inputs.get('quoteOptions');
5 if (optionsFromInput != null) {
6 runtime_industries_insurance.UpdateInsuranceQuoteOptions updateQuoteOptions
7 = new runtime_industries_insurance.UpdateInsuranceQuoteOptions();
8 Map<String, Object> optionsFromInput = (Map<String, Object>)quotePayload.get('quoteOptions');
9 if (optionsFromInput.containsKey('executePricing')) {
10 updateQuoteOptions.executePricing = (Boolean)optionsFromInput.get('executePricing');
11 }
12 if (optionsFromInput.containsKey('validateProductCatalog')) {
13 updateQuoteOptions.validateProductCatalog = (Boolean)optionsFromInput.get('validateProductCatalog');
14 }
15 if (optionsFromInput.containsKey('executeConfigurationRules')) {
16 updateQuoteOptions.executeConfigurationRules = (Boolean)optionsFromInput.get('executeConfigurationRules');
17 }
18 if (optionsFromInput.containsKey('executeQualificationRules')) {
19 updateQuoteOptions.executeQualificationRules = (Boolean)optionsFromInput.get('executeQualificationRules');
20 }
21 if (optionsFromInput.containsKey('saveQuote')) {
22 updateQuoteOptions.saveQuote = (Boolean)optionsFromInput.get('saveQuote');
23 }
24 action.setInvocationParameter('quoteOptions', updateQuoteOptions);
25 }
26}UpdateInsuranceQuoteOptions Constructors
The UpdateInsuranceQuoteOptions class includes these constructors.
UpdateInsuranceQuoteOptions(executePricing, executeConfigurationRules, executeQualificationRules, validateProductCatalog, saveQuote)
Signature
public UpdateInsuranceQuoteOptions(Boolean executePricing, Boolean executeConfigurationRules, Boolean executeQualificationRules, Boolean validateProductCatalog, Boolean saveQuote)
Parameters
- executePricing
- Type: Boolean
- Indicates whether to execute pricing when updating the quote (true) or not (false). The default value is false.
- executeConfigurationRules
- Type: Boolean
- Indicates whether to run product configuration rules when updating the quote (true) or not (false). The default value is false.
- executeQualificationRules
- Type: Boolean
- Indicates whether to run qualification rules when updating the quote (true) or not (false). The default value is false.
- validateProductCatalog
- Type: Boolean
- Indicates whether to validate against the product catalog when updating the quote (true) or not (false). The default value is false.
- saveQuote
- Type: Boolean
- Indicates whether to save the updated quote (true) or not (false). The default value is false.
UpdateInsuranceQuoteOptions Properties
The UpdateInsuranceQuoteOptions 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