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.
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 createInsuranceRating2runtime_industries_insurance.CreateInsuranceRatingOptions ratingOptions =3 new runtime_industries_insurance.CreateInsuranceRatingOptions(4 true, // executePricing5 true, // executeConfigurationRules6 false, // returnContextJSON7 true, // returnProductDetails8 true // returnRatingResults9);10// Pass ratingOptions when invoking the createInsuranceRating action11action.setInvocationParameter('ratingOptions', ratingOptions);