Frontend | Backend | Api

Discounts\Models\Api\PersonCondition

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

Property Description Returns
emails Gets the emails for this condition. array
action Gets the action type for this condition (allow or forbid). string
allowed Checks if the action is allowed for the current condition bool
forbidden Checks if the action is forbidden for the current condition bool
displayType Returns the nice name of a condition type string
type Returns the type of condition string
snakeType Returns the type of condition in the snake case format: lowercase and connected by underline string
slugType Returns the type of condition in the slug format: lowercase and connected by hyphen string
id int
name string
data array
active bool
created Date the record was created. DateTime
modified Last modification date for the record. DateTime
rule Rule