UpdateInsuranceQuoteOptions Class
Contains options for updating an existing insurance quote. Use this class to control pricing execution, configuration and qualification rules, product catalog validation, and quote persistence when updating insurance quotes.
Namespace
runtime_industries_insurance
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
2 if ( 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
Learn more about the constructors that are available with the UpdateInsuranceQuoteOptions class.
The UpdateInsuranceQuoteOptions class includes these constructors.
UpdateInsuranceQuoteOptions(executePricing, executeConfigurationRules, executeQualificationRules, validateProductCatalog, saveQuote)
Creates an options instance for quote updates with explicit control over pricing, configuration and qualification rules, catalog validation, and quote saving.
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()
Creates an options instance with the default settings for updating an insurance quote.
Signature
public UpdateInsuranceQuoteOptions()
UpdateInsuranceQuoteOptions Properties
Set the properties in the UpdateInsuranceQuoteOptions class to update an insurance quote.
The UpdateInsuranceQuoteOptions class includes these properties.
executeConfigurationRules
Indicates whether to run product configuration rules when updating the quote (true) or not (false).
executePricing
Indicates whether to execute pricing when updating the quote (true) or not (false).
executeQualificationRules
Indicates whether to run qualification rules when updating the quote (true) or not (false).
saveQuote
Indicates whether to save the updated quote (true) or not (false).
validateProductCatalog
Indicates whether to validate against the product catalog when updating the quote (true) or not (false).
executeConfigurationRules
Indicates whether to run product configuration rules when updating the quote (true) or not (false).
Signature
public Boolean executeConfigurationRules {get; set;}
Property Value
Type: Boolean
executePricing
Indicates whether to execute pricing when updating the quote (true) or not (false).
Signature
public Boolean executePricing {get; set;}
Property Value
Type: Boolean
executeQualificationRules
Indicates whether to run qualification rules when updating the quote (true) or not (false).
Signature
public Boolean executeQualificationRules {get; set;}
Property Value
Type: Boolean
saveQuote
Indicates whether to save the updated quote (true) or not (false).
Signature
public Boolean saveQuote {get; set;}
Property Value
Type: Boolean
validateProductCatalog
Indicates whether to validate against the product catalog when updating the quote (true) or not (false).
Signature
public Boolean validateProductCatalog {get; set;}
Property Value
Type: Boolean