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.

runtime_industries_insurance

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.

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.

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

The CreateInsuranceRatingOptions class includes these constructors.

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

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

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.

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

public CreateInsuranceRatingOptions()

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

  • executePricing

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

  • returnContextJSON

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

  • returnProductDetails

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

  • returnRatingResults

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

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

public Boolean executeConfigurationRules {get; set;}

Type: Boolean

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

public Boolean executePricing {get; set;}

Type: Boolean

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

public Boolean returnContextJSON {get; set;}

Type: Boolean

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

public Boolean returnProductDetails {get; set;}

Type: Boolean

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

public Boolean returnRatingResults {get; set;}

Type: Boolean