This article describes the zQuoteRulesEngine class that is used to implement a rules engine in Zuora Quotes.
zQuoteRulesEngine Class Properties
The zQuoteRulesEngine class includes the following properties.
|Name of the discount field
|Name of the effective price field
|Name of the quantity field
|Name of the total field
|Name of the field that indicates whether Add is enabled
|Name of the field that indicates whether Add is disabled
|Name of the field that indicates whether a product can be removed when a rule applies
|Name of the included units field
The zQuoteRulesEngine class includes the ChangeLog class you use to record changes as product or price rules are applied during quoting.
The ChangeLog class contains the following property:
String description: Holds the log text.
The zQuoteRulesEngine class provides the Quote Rules Engine plugin interface. Use the plugin to implement custom quoting rules on prices or products.
The plugin interface is defined as global ZQuoteRulesEngine.QuoteRulesEnginePlugin and contains the following interface methods:
See Quote Rules Engine Plugin Example for a sample rules engine plugin code.