Frontend | Backend | Api

Discounts\Models\Api\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.

Property Description Returns
userId Gets the user ID for this condition. int
action Gets the action type for this condition (allow or forbid). string
id int
name string
data string
active bool
created Date the record was created. DateTime
modified Last modification date for the record. DateTime
rule Rule