| Property | Description | Returns |
|---|---|---|
| codeUrl | Gets code URL for the code: if not exist, creates a new model | CodeUrl |
| hateoasLinks | Get the HATEOAS links for the record | array |
| editUrl | Get the url for editing the record. | string |
| deleteUrl | Get the url for deleting the record. | string |
| id | int | |
| code | string | |
| maxUses | Gets maximum usage of the code: there is no limit when not set, but when it is 0, the code can't be used | int |
| created | Date the record was created. | DateTime |
| modified | Last modification date for the record. | DateTime |
| discount | Discount |
Discounts\Models\Api\Code
Code