Class CartVoucher

The class is conditionally abstract in: php, php/client, php/server

Encapsulates vouchers as they are stored in the cart. Used by the client to tell the server about new orders. Used by the Web UI to actually store its cart.

Enums

enum ValidationState

SymbolValueDocu
Ok0The voucher can be sold
InvalidValue1The value is not one of the allowed ones and you do not have the privilege to set an arbitrary one, or the value is negative or zero.
InvalidPrice2The price is negative, the price property is ignored if you do not have the privilege to chose a price that differs from the value

Properties

Mapping for Table cartvoucher

PropertyColumn
amountamount
cartidcartid
cartlineidcvid
valuevalue