00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef Customer_HPP
00012 #define Customer_HPP
00013
00014 #include "read_write_base.hpp"
00015 #include "avsmap.h"
00016
00017 class Customer_Obj: public read_write_base
00018 {
00019 protected:
00020
00021 avs_map avsmap;
00022 public:
00023 identifier Id;
00024 string First_Name;
00025 string Last_Name;
00026 string EMail;
00027 string Password;
00028 string Address;
00029 string City;
00030 string State;
00031 string Zip;
00032 string Phone;
00033 llong Payment_Service_Id;
00034
00035
00036
00037 Customer_Obj():read_write_base()
00038 ,Id(0LL)
00039 ,First_Name("")
00040 ,Last_Name("")
00041 ,EMail("")
00042 ,Password("")
00043 ,Address("")
00044 ,City("")
00045 ,State("")
00046 ,Zip("")
00047 ,Phone("")
00048 ,Payment_Service_Id(0LL)
00049 {
00050
00051 data_name("Customer");
00052
00053 addDXMap( new llongXfer("Id", &Id ));
00054 addDXMap( new stringXfer("First_Name", &First_Name ));
00055 addDXMap( new stringXfer("Last_Name", &Last_Name ));
00056 addDXMap( new stringXfer("EMail", &EMail ));
00057 addDXMap( new stringXfer("Password", &Password ));
00058 addDXMap( new stringXfer("Address", &Address ));
00059 addDXMap( new stringXfer("City", &City ));
00060 addDXMap( new stringXfer("State", &State ));
00061 addDXMap( new stringXfer("Zip", &Zip ));
00062 addDXMap( new stringXfer("Phone", &Phone ));
00063 addDXMap( new llongXfer("Payment_Service_Id", &Payment_Service_Id ));
00064 }
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092 const avs_map & getAvsMap( void )
00093 {
00094 avsmap["address1"]=Address;
00095 avsmap["address2"]="";
00096 avsmap["city"]=City;
00097 avsmap["state"]=State;
00098 avsmap["zip"]=Zip;
00099 return avsmap;
00100 }
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116 };
00117 #endif
00118