Newer Version Available
CreateInsuranceRatingOptions Class
Namespace
Usage
Use the CreateInsuranceRatingOptions class when using the Create Insurance Rating invocable action to create an insurance rating so that you can specify which operations to run and what response data to include.
Example
Create a CreateInsuranceRatingOptions instance and set properties, then use it (or a serialized map) as ratingOptions when calling the Create Insurance Rating invocable action from Apex.
1// Build rating options for createInsuranceRating
2runtime_industries_insurance.CreateInsuranceRatingOptions ratingOptions =
3 new runtime_industries_insurance.CreateInsuranceRatingOptions(
4 true, // executePricing
5 true, // executeConfigurationRules
6 false, // returnContextJSON
7 true, // returnProductDetails
8 true // returnRatingResults
9 );
10// Pass ratingOptions when invoking the createInsuranceRating action
11action.setInvocationParameter('ratingOptions', ratingOptions);CreateInsuranceRatingOptions Constructors
The CreateInsuranceRatingOptions class includes these constructors.
CreateInsuranceRatingOptions(executePricing, executeConfigurationRules, returnContextJSON, returnProductDetails, returnRatingResults)
Signature
public CreateInsuranceRatingOptions(Boolean executePricing, Boolean executeConfigurationRules, Boolean returnContextJSON, Boolean returnProductDetails, Boolean returnRatingResults)
Parameters
- executePricing
- Type: Boolean
- Indicates whether to execute pricing for the rating (true) or not (false). The default value is true.
- executeConfigurationRules
- Type: Boolean
- Indicates whether to run product configuration rules (true) or not (false). The default value is false.
- returnContextJSON
- Type: Boolean
- Indicates whether to include context as JSON in the response (true) or not (false). The default value is false.
- returnProductDetails
- Type: Boolean
- Indicates whether to include product details in the response (true) or not (false). The default value is false.
- returnRatingResults
- Type: Boolean
- Indicates whether to include rating results in the response (true) or not (false). The default value is false.
CreateInsuranceRatingOptions Properties
The following are properties for CreateInsuranceRatingOptions.
executeConfigurationRules
Signature
public Boolean executeConfigurationRules {get; set;}
Property Value
Type: Boolean
executePricing
Signature
public Boolean executePricing {get; set;}
Property Value
Type: Boolean
returnContextJSON
Signature
public Boolean returnContextJSON {get; set;}
Property Value
Type: Boolean