User Invoice
This model represents user invoice.
| Property | Type | Description | Information |
|---|---|---|---|
id | int | Identifier | Unique for single user invoice. |
user_id | int | Identifier | Foreign key to user table. |
month | int | Month number | -- |
year | int | Year | -- |
invoice_received | bool | Invoice received state | True if invoice has been uploaded, false if not. |
file_id | bool | Identified | Foreign key to file table. |
invoice_not_received_notified | bool | Invoice not received notification state | True if notification has been sent, false if not. |
user_comment | string | User's comment | Comment of User |
note | string | Note of Admin | Internal note of Admin |
created_at | DateTime | User Invoice creation date and time | Read-only. |
updated_at | DateTime | User Invoice update date and time | Read-only. |
Example:
{
"id": 3,
"user_id": 1,
"month": 6,
"year": 2023,
"invoice_received": false,
"file_id": 1,
"invoice_not_received_notified": true,
"user_comment": "Hello",
"note": null,
"created_at": "2023-07-25T13:37:56+0200",
"updated_at": "2023-07-25T14:17:32+0200",
"_links": [
{
"href": "/api/v0/user-invoices/3",
"rel": "self",
"type": "GET"
}
]
}