Newer Version Available

This content describes an older version of this product. View Latest

CreateInsuranceRatingOptions Class

Contains options for creating an insurance rating. Use this class to control pricing execution, configuration rules, and the response data, such as context JSON, product details, rating results, when running a rating operation.

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

Learn more about the constructors that are available with the CreateInsuranceRatingOptions class.

The CreateInsuranceRatingOptions class includes these constructors.

CreateInsuranceRatingOptions(executePricing, executeConfigurationRules, returnContextJSON, returnProductDetails, returnRatingResults)

Creates an options instance for rating with explicit control over pricing, configuration rules, and which data is returned in the response.

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()

Creates an options instance with the default settings for creating an insurance rating.

Signature

public CreateInsuranceRatingOptions()

CreateInsuranceRatingOptions Properties

Set the properties in the CreateInsuranceRatingOptions class to create insurance ratings.

The following are properties for CreateInsuranceRatingOptions.

executeConfigurationRules

Indicates whether to run product configuration rules (true) or not (false).

Signature

public Boolean executeConfigurationRules {get; set;}

Property Value

Type: Boolean

executePricing

Indicates whether to execute pricing for the rating (true) or not (false).

Signature

public Boolean executePricing {get; set;}

Property Value

Type: Boolean

returnContextJSON

Indicates whether to include context as JSON in the response (true) or not (false).

Signature

public Boolean returnContextJSON {get; set;}

Property Value

Type: Boolean

returnProductDetails

Indicates whether to include product details in the response (true) or not (false).

Signature

public Boolean returnProductDetails {get; set;}

Property Value

Type: Boolean

returnRatingResults

Indicates whether to include rating results in the response (true) or not (false).

Signature

public Boolean returnRatingResults {get; set;}

Property Value

Type: Boolean