3 #ifndef WOBGEN_MOCartOrder
4 #define WOBGEN_MOCartOrder
7 #ifndef WOBGEN_MAGICSMOKE__WOB_EXPORT
8 #define WOBGEN_MAGICSMOKE__WOB_EXPORT Q_DECL_IMPORT
12 #include <QCoreApplication>
14 #include "MOCartTicket"
15 #include "MOCartVoucher"
31 static ValidationState str2ValidationState(QString,
bool*ok=0);
33 static QString ValidationState2str(ValidationState);
35 static ValidationState locstr2ValidationState(QString,
bool*ok=0);
37 static QString ValidationState2locstr(ValidationState);
39 Q_PROPERTY(Nullable<qint64> cartid READ cartid WRITE setcartid)
43 Q_PROPERTY(Nullable<qint64> customerid READ customerid WRITE setcustomerid)
45 Q_PROPERTY(Nullable<qint64> invoiceaddressid READ invoiceaddressid WRITE setinvoiceaddressid)
47 Q_PROPERTY(Nullable<qint64> deliveryaddressid READ deliveryaddressid WRITE setdeliveryaddressid)
49 Q_PROPERTY(Nullable<QString> comment READ comment WRITE setcomment)
51 Q_PROPERTY(Nullable<qint64> shippingtypeid READ shippingtypeid WRITE setshippingtypeid)
53 Q_PROPERTY(QList<
MOCartTicket> tickets READ tickets WRITE settickets)
55 Q_PROPERTY(QList<
MOCartVoucher> vouchers READ vouchers WRITE setvouchers)
57 Q_PROPERTY(QList<
MOCartItem> items READ items WRITE setitems)
59 Q_PROPERTY(Nullable<QString> couponid READ couponid WRITE setcouponid)
61 Nullable<qint64> mp_cartid;
63 Nullable<qint64> mp_customerid;
64 Nullable<qint64> mp_invoiceaddressid;
65 Nullable<qint64> mp_deliveryaddressid;
66 Nullable<QString> mp_comment;
67 Nullable<qint64> mp_shippingtypeid;
71 Nullable<QString> mp_couponid;
74 virtual Nullable<qint64> cartid()
const{
return mp_cartid;}
76 virtual Nullable<ValidationState>
status()
const{
return mp_status;}
78 virtual Nullable<qint64>
customerid()
const{
return mp_customerid;}
84 virtual Nullable<QString>
comment()
const{
return mp_comment;}
88 virtual QList<MOCartTicket>
tickets()
const{
return mp_tickets;}
90 virtual QList<MOCartVoucher>
vouchers()
const{
return mp_vouchers;}
92 virtual QList<MOCartItem>
items()
const{
return mp_items;}
94 virtual Nullable<QString>
couponid()
const{
return mp_couponid;}
96 virtual void setcartid(Nullable<qint64> s){mp_cartid=s;}
98 virtual void setstatus(Nullable<ValidationState> s){mp_status=s;}
110 virtual void settickets(QList<MOCartTicket> s){mp_tickets=s;}
112 virtual void addtickets(Nullable<MOCartTicket> a){mp_tickets.append(a);}
116 virtual void addvouchers(Nullable<MOCartVoucher> a){mp_vouchers.append(a);}
118 virtual void setitems(QList<MOCartItem> s){mp_items=s;}
120 virtual void additems(Nullable<MOCartItem> a){mp_items.append(a);}
129 QDomElement toXml(QDomDocument&doc,QString name=
"CartOrder");
131 void toXml(QDomDocument&,QDomElement&);
Definition: srcMOCartItem.h:14
virtual Nullable< QString > comment() const
Definition: srcMOCartOrder.h:84
virtual QList< MOCartItem > items() const
Definition: srcMOCartOrder.h:92
Encapsulates tickets for a specific event in a specific price category as they are stored in the cart...
Definition: srcMOCartTicket.h:18
virtual QList< MOCartVoucher > vouchers() const
Definition: srcMOCartOrder.h:90
virtual void setvouchers(QList< MOCartVoucher > s)
Definition: srcMOCartOrder.h:114
virtual Nullable< qint64 > customerid() const
Definition: srcMOCartOrder.h:78
virtual void addtickets(Nullable< MOCartTicket > a)
Definition: srcMOCartOrder.h:112
Encapsulates vouchers as they are stored in the cart. Used by the client to tell the server about new...
Definition: srcMOCartVoucher.h:15
virtual void setcomment(Nullable< QString > s)
Definition: srcMOCartOrder.h:106
virtual void setdeliveryaddressid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:104
MOCartOrder()
default constructor: constructs an invalid instance of MOCartOrder
Definition: srcMOCartOrder.h:134
virtual void additems(Nullable< MOCartItem > a)
Definition: srcMOCartOrder.h:120
#define WOBGEN_MAGICSMOKE__WOB_EXPORT
Definition: srcMOCartOrder.h:8
virtual void setstatus(Nullable< ValidationState > s)
set by the server to reflect the processing state of the cart
Definition: srcMOCartOrder.h:98
virtual void cleartickets()
Definition: srcMOCartOrder.h:111
virtual ~MOCartOrder()
destructor: deletes this copy of the object
Definition: srcMOCartOrder.h:146
The cart as used from the remote (non-web) system, this is a transaction object, it has no equivalent...
Definition: srcMOCartOrder.h:18
virtual void setcustomerid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:100
virtual void settickets(QList< MOCartTicket > s)
Definition: srcMOCartOrder.h:110
virtual void setcartid(Nullable< qint64 > s)
optional ID for the cart itself, the calling process can use this to distinguish different carts...
Definition: srcMOCartOrder.h:96
virtual void addvouchers(Nullable< MOCartVoucher > a)
Definition: srcMOCartOrder.h:116
virtual Nullable< qint64 > deliveryaddressid() const
Definition: srcMOCartOrder.h:82
virtual void clearitems()
Definition: srcMOCartOrder.h:119
virtual void setshippingtypeid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:108
virtual Nullable< qint64 > invoiceaddressid() const
Definition: srcMOCartOrder.h:80
virtual void setcouponid(Nullable< QString > s)
An optional coupon code to be used in this order.
Definition: srcMOCartOrder.h:122
virtual Nullable< QString > couponid() const
An optional coupon code to be used in this order.
Definition: srcMOCartOrder.h:94
Q_DECLARE_METATYPE(QDomNode)
virtual QList< MOCartTicket > tickets() const
Definition: srcMOCartOrder.h:88
virtual void clearvouchers()
Definition: srcMOCartOrder.h:115
virtual Nullable< ValidationState > status() const
set by the server to reflect the processing state of the cart
Definition: srcMOCartOrder.h:76
virtual void setinvoiceaddressid(Nullable< qint64 > s)
Definition: srcMOCartOrder.h:102
virtual void setitems(QList< MOCartItem > s)
Definition: srcMOCartOrder.h:118
ValidationState
Definition: srcMOCartOrder.h:24
virtual Nullable< qint64 > shippingtypeid() const
Definition: srcMOCartOrder.h:86