Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 682 Bytes

GenerateRuleTitleRule.md

File metadata and controls

19 lines (12 loc) · 682 Bytes

TalonOne::GenerateRuleTitleRule

Properties

Name Type Description Notes
effects Array<Object> An array of effectful Talang expressions in arrays that will be evaluated when a rule matches. [optional]
condition Array<Object> A Talang expression that will be evaluated in the context of the given event. [optional]

Code Sample

require 'TalonOne'

instance = TalonOne::GenerateRuleTitleRule.new(effects: [catch, [noop], [setDiscount, 10% off, [*, [., Session, Total], [/, 10, 100]]]],
                                 condition: [and, [couponValid]])