Class Voucher
The class is conditionally abstract in: qt, qt/client, qt/server, php, php/client, php/server
Enums
enum VoucherState
| Symbol | Value | Docu |
| Ok | 0 | The voucher is valid. |
| InvalidValue | 1 | The requested value (what it is worth) is invalid. |
| InvalidPrice | 2 | The requested price (what needs to be paid) is invalid. |
| InvalidTime | 3 | The voucher is past its validity time. |
Properties
- voucherid (astring)
- value (int)
What the voucher is worth in cents.
- price (int)
What the voucher costs in cents.
- status (VoucherState)
- isused (bool)
The voucher has been used. There may still be value on it.
- orderid (int)
- tags (string)
- validtime (int64)
Mapping for Table voucher
| Property | Column |
| isused | isused |
| orderid | orderid |
| price | price |
| status | status |
| tags | tags |
| validtime | validtime |
| value | value |
| voucherid | voucherid |