ConfigurationOptionsInput Class

Contains methods and properties to set the configuration options for the input to the product configurator.

Namespace 

RevSalesTrxn

Usage 

This class holds the required details of the product configuration input. Set the class properties to enable default configuration, execution of configuration rules, and validation of the product catalog. Use these class properties as an input to the PlaceSalesTransactionExecutor class method.

Example 

1RevSalesTrxn.GraphRequest graph = new RevSalesTrxn.GraphRequest('test', listOfRecords);
2    RevSalesTrxn.PricingPreferenceEnum pricingPrefEnum = RevSalesTrxn.PricingPreferenceEnum.SYSTEM;
3    RevSalesTrxn.ConfigurationExecutionEnum configurationExecutionEnum = RevSalesTrxn.ConfigurationExecutionEnum.SYSTEM;
4    RevSalesTrxn.ConfigurationOptionsInput cInput = new RevSalesTrxn.ConfigurationOptionsInput();
5    cInput.addDefaultConfiguration = true;
6    cInput.executeConfigurationRules = true;
7    cInput.validateAmendRenewCancel = true;
8    cInput.validateProductCatalog = true;
9        //Place Sales Transaction API Call
10     RevSalesTrxn.PlaceSalesTransactionResponse resp = PlaceQuote.PlaceSalesTransactionExecutor.execute(graph,pricingPrefEnum,configurationExecutionEnum,cInput,null);

ConfigurationOptionsInput Properties 

Set the ConfigurationOptionsInput class properties to add default configuration, execute configuration rules, and validate the product catalog.

The ConfigurationOptionsInput class includes these properties.

addDefaultConfiguration 

Sets the default product configuration, such as bundle and product attributes, for a quote request.

Signature 

public Boolean addDefaultConfiguration {get; set;}

Property Value 

Type: Boolean

Indicates whether to automatically add default configuration to the order (true) or not (false).

executeConfigurationRules 

Sets the requirement for a quote to adhere to the configuration rules.

Signature 

public Boolean executeConfigurationRules {get; set;}

Property Value 

Type: Boolean

Indicates whether the order must adhere to configuration rules during processing (true) or bypass them (false).

validateAmendRenewCancel 

Sets the requirement to run validations related to amend, renew, or cancel processes.

Signature 

public Boolean validateAmendRenewCancel {get; set;}

Property Value 

Type: Boolean

Indicates whether to run validations related to amend, renew, or cancel processes (true) or not (false).

validateProductCatalog 

Sets the requirement to validate a quote against the product catalog.

Signature 

public Boolean validateProductCatalog {get; set;}

Property Value 

Type: Boolean

Indicates whether the quote must be validated against the product catalog (true) or not (false).

ConfigurationOptionsInput Methods 

Learn more about the methods available with the ConfigurationOptionsInput class.

The ConfigurationOptionsInput class includes these methods.

  • equals(obj)

    Determines the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.

  • hashCode()

    Determines the uniqueness of the external object records in a list.

  • toString()

    Converts a value to a string.

equals(obj) 

Determines the equality of external objects in a list. This method is dynamic and is based on the equals() method in Java.

Signature 

public Boolean equals(Object obj)

Parameters 

obj

Type: Object

Reference object that’s used to compare with the class object.

Return Value 

Type: Boolean

Indicates if the class object is same as the reference object (true) or not (false).

hashCode() 

Determines the uniqueness of the external object records in a list.

Signature 

public Integer hashCode()

Return Value 

Type: Integer

Integer hash code that represents the value of the object. Equal objects as per the equals() method must return the same hash code.

toString() 

Converts a value to a string.

Signature 

public String toString()

Return Value 

Type: String