Frontend | Backend | Api

Discounts\Models\Frontend\BaseAction

Action

Method Description Returns
getDisplayType() Returns the nice name of an action type string
getType() Returns the type of condition string
getSnakeType() Returns the type of condition in the snake case format: lowercase and connected by underline string
getSlugType() Returns the type of condition in the slug format: lowercase and connected by hyphen string
getId() int
getName() string
getValue() string
getModifier() string
isValueModifier() Returns if the modifier set to the exact value bool
isPercentModifier() Returns if the modifier set to the percent value bool
isWaterfall() When `true` every following discount applies to the previously discounted price, when `false` discount is applied to the original item price bool
getData() array
getCreated() Date the record was created. DateTime
getModified() Last modification date for the record. DateTime
getRule() Rule
isNewRecord() Check if the record is a new record bool
isHierarchicalModel() Check whether a model is a hierarchical model, i.e. can have children bool
isVersionedModel() Check whether a model is versioned bool