Points allocation rule that computes points from a sales record's amount, optionally multiplied by a fixed factor and by a named ecommerce store's price for the record's product. Registered as a built-in PointsRuleType (id "pricing-rule") that account admins can select when configuring a points allocation source; the "Applies to ecom store" and "Multiply sale amount" fields it exposes are edited via that configuration UI.
Implements: PointsRuleType
Properties
| Property | Returns | Description |
|---|---|---|
| fields | List<ExtraField> | The configuration fields presented for this rule type: whether it applies to an ecommerce store, and an optional factor to multiply the sale amount by. |
| id | String | The unique identifier used to select this rule type when configuring a points allocation source. |
| title | String | The display title shown for this rule type in the points allocation source configuration UI. |
Methods
getId()
Returns: String
The unique identifier used to select this rule type when configuring a points allocation source.
getTitle()
Returns: String
The display title shown for this rule type in the points allocation source configuration UI.
getFields()
Returns: List<ExtraField>
The configuration fields presented for this rule type: whether it applies to an ecommerce store, and an optional factor to multiply the sale amount by.