Frontend | Backend | Api

Discounts\Models\Backend\UserCondition

User condition describes the conditions that need to be met for the discount to be applied; based on a specific user. The discount will only be applicable to the selected user and can either allow or forbid the discount application.

Method Description Returns
getUserId() Gets the user ID for this condition. int
getAction() Gets the action type for this condition (allow or forbid). string
getId() int
getName() string
getData() string
isActive() bool
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