| Property | Description | Returns |
|---|---|---|
| quantityFrom | Gets a minimum number of usages that need to be applied for the discount to be active. | int |
| quantityTo | Gets a maximum number of usages that can be applied for the discount to remain active. | int |
| priceFrom | Gets a minimum total discount price amount that needs to be used for the discount to be active. | string |
| priceTo | Gets a maximum total discount price amount that can be used for the discount to remain active. | 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 |
Discounts\Models\Api\UsageCondition
Usage condition describes the conditions that need to be met for the discount to be applied; based on usage quantity or total discount price. When no user ID or user group ID is set, the condition applies to the current user. When a user ID is set, the condition applies to that specific user. When a user group ID is set, the condition applies to all users in that group.