| Property | Description | Returns |
|---|---|---|
| codesCount | Returns the total count of the codes assigned to the discount. | int |
| id | int | |
| name | string | |
| position | int | |
| final | Once the discount is applied, further discounts will not be considered | bool |
| maxUses | The maximum number of times the discount can be used. The discount is considered used when a checkout is created with it. It stays used when an order is placed. Canceled orders, requested refunds, etc. do not cancel the fact of the usage. | int |
| created | Date the record was created. | DateTime |
| modified | Last modification date for the record. | DateTime |
| from | Start date for discount availability, not applied prior to this date. If not set, the discount is available immediately. | DateTime |
| to | End date for discount availability, not applied after this date. If not set, the discount does not expire. | DateTime |
| site | Site | |
| rules | Collection (Rule) | |
| codes | Collection (Code) |
Discounts\Models\Api\Discount
Discount