Frontend | Backend | Api

Discounts\Models\Backend\UserGroupCondition

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

Method Description Returns
getUserGroupId() Gets the user group 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