#ifndef WRENCHBOARD_API_H
#define WRENCHBOARD_API_H

enum { DIR_TARGET, DIR_SOURCE  };
enum { FLAG_INIT,FLAG_START,FLAG_CANCEL,FLAG_FAIL,FLAG_OK };
enum { WHAT_NEW_CARDADD, WHAT_PICKUP_INITIALPAYMENT };
enum { PARTNER_STRIPE };

#define PHP_API_OK         0
#define PHP_CREATED_OK     10
#define PHP_LOGIN_OK       100
#define PHP_API_BAD_PARAM -1

#define PAYMENT_MODE   100
#define REFUND_MODE    333

#define OFFER_ACCEPT 100
#define OFFER_REJECT 333
#define OFFER_CANCEL 222
#define OFFER_EXPIRE 444
#define OFFER_EXTEND 555

#define OFFER_SENDTOME 777
#define OFFER_RESEND   888

#define WEBSITE_LOGIN 1100
#define MOBILE_LOGIN 1101
#define FACEBOOK_LOGIN 1102
#define APPLE_LOGIN 1103
#define GOOGLE_LOGIN 1104

#define CONTRACT_CANCEL_CONTRACT 7
#define CONTRACT_EXTEND_TIMELINE 9
#define CONTRACT_NOTIFY_COMPLETE 4
#define CONTRACT_REQUEST_CANCEL  3
#define CONTRACT_ACCEPT_COMPLETE 5
#define CONTRACT_REJECT_COMPLETE 1

#define SM_PENDING 1
#define SM_CANCEL  3
#define SM_FAILED  4
#define SM_COMPLETED 5


#define SMONEY_PROCC_MANUAL    100
#define SMONEY_PROCC_AUTO      200 
#define SMONEY_PROCC_INTERSWITCH   300


// define email series here
#define ACCOUNT_CREATED_MAIL   100
#define ACCOUNT_CREATED_ALERT  101
#define ACCOUNT_CONTACT_MAIL   102
#define ACCOUNT_CONTACT_ALERT  103
#define ACCOUNT_PASSWORD_RESET  104
#define ACCOUNT_LOGIN_ALERT     105
#define ACCOUNT_RESEND_PENDING  106
#define ACCOUNT_SEND_REFEREMAIL 107
#define ACCOUNT_PASSWORD_COMPLT 108


#define ACCOUNT_SENDMONEY_ALERT     120
#define ACCOUNT_START_SENDMONEY     121
#define ACCOUNT_COMPLETE_SENDMONEY  122


#define JOBS_CREATED_MAIL     200
#define JOBS_INDIVIDUAL_OFFER_MAIL       201
#define JOBS_GROUP_OFFER_MAIL       202
#define JOBS_MESSAGE_ADDED	     203
#define JOBS_GROUP_OFFER_PUBLIC       204


#define	JOBS_OFFER_ACCEPT_MAIL 207
#define	JOBS_OFFER_REJECT_MAIL 208
#define JOBS_OFFER_CANCEL_MAIL 209
#define JOBS_OFFER_INTEREST_MAIL 210

#define JOBS_OFFER_SENDTOME_MAIL 220




#define JOBS_DUE_APPROACH_MAIL  311
#define JOBS_PAYMENT_DUE_MAIL   312


		
#define JOB_INTEREST_ACCEPT  100 
#define JOB_INTEREST_REJECT  200 
#define JOB_INTEREST_CANCEL  300


//#define JOBS_CREATED_MAIL     202
//#define JOBS_CREATED_MAIL     203


#define PROJ_CREATED_MAIL      300
//#define PROJ_CREATED_MAIL      301
//#define PROJ_CREATED_MAIL      302
//#define PROJ_CREATED_MAIL      303

#define SMONEY_PROCC_MANUAL  100
#define SMONEY_PROCC_AUTO    200

#define ACCOUNT_AGREE_JOBS  100
#define ACCOUNT_AGREE_REFER  200

//========================
#define RECOMMEND_COUPON     1000
#define RECOMMEND_BLOG       1005
#define RECOMMEND_NEWTASK    1010
#define RECOMMEND_TOKEN      1015
#define RECOMMEND_OFFERS     1020
//========================

#define WRENCHBOARD_SESSION_CHECK   299
#define WRENCHBOARD_USER_LOGIN      300
#define WRENCHBOARD_USER_LOGOUT     301
#define WRENCHBOARD_CREATE_ACCOUNT  320

// -- CRON JOBS
#define WRB_JOB_CRONJOB                         770 
#define WRB_CRONJOB_JOBDUE_REMINDER             771 
#define WRB_CRONJOB_JOBDUE_PAYMENTS             772 

#define WRB_CRONJOB_SIGNUP_ALERT                773
#define WRB_CRONJOB_PASTDUE_ALERT               774
#define WRB_CRONJOB_OFFER_REFUND_ALERT          775
#define WRB_CRONJOB_PENDOFFER_ALERT             776

//**************************************************************
#define WRENCHBOARD_BKO_START          10000

#define WRENCHBOARD_BKO_LOGIN          10010
#define WRENCHBOARD_BKO_CREATEUSER     10015
#define WRENCHBOARD_BKO_UPDATEUSER     10020

#define WRENCHBOARD_BKO_RESEND_OFFER   10025

#define WRENCHBOARD_BKO_END            10999
//**************************************************************
#define WRENCHBOARD_ACCOUNT_START          11000

#define WRENCHBOARD_ACCOUNT_TESTEMAIL      11001
#define WRENCHBOARD_ACCOUNT_PENDING        11010

#define WRENCHBOARD_CREATE_MOBILEUSER      11011
#define WRENCHBOARD_COMPLETE_MOBILEUSER    11012
#define WRENCHBOARD_RESET_PASSWORD         11013 
#define WRENCHBOARD_ACCOUNT_JOBLIST        11014

#define WRENCHBOARD_VERIFY_PENDING_LINK    11015
#define WRENCHBOARD_ACCOUNT_RESETPASS      11016
#define WRENCHBOARD_ACCOUNT_SETPASSWD      11017

#define WRENCHBOARD_DELETE_PENDING_LINK    11018
#define WRENCHBOARD_RESEND_PENDING_LINK    11019

#define WRENCHBOARD_ACCOUNT_CREATEACC      11020
#define WRENCHBOARD_ACCOUNT_LOGIN          11025
#define WRENCHBOARD_FACEBOOK_LOGIN         11026
#define WRENCHBOARD_GOOGLE_LOGIN           11027
#define WRENCHBOARD_APPLE_LOGIN            11031
#define WRENCHBOARD_START_JOBLIST          11028
#define WRENCHBOARD_ACCOUNT_DASHDATA       11029

#define WRENCHBOARD_SEND_CONTACTUS         11030
#define WRENCHBOARD_ACCOUNT_SENDREFER      11032
#define WRENCHBOARD_ACCOUNT_REFERLINK      11033
#define WRENCHBOARD_ACCOUNT_REFRESENDLNK   11133

#define WRENCHBOARD_SESSION_VERIFY         11034
#define WRENCHBOARD_UPDATE_PROFILE         11035
#define WRENCHBOARD_ACCOUNT_TERMS          11036
#define WRENCHBOARD_ACCOUNT_MDESCRIPTION   11037
#define WRENCHBOARD_ACCOUNT_SAVESKILL      11038
#define WRENCHBOARD_ACCOUNT_DELSKILL       11039

#define WRENCHBOARD_LOG_MEMBER		       11040
#define WRENCHBOARD_DELETE_RECACC          11041
#define WRENCHBOARD_SAVE_GALLERY           11042

#define WRENCHBOARD_ACCOUNT_PENDJOB        11043

#define WRENCHBOARD_USER_GETBANKLIST       11050
#define WRENCHBOARD_USER_SENDMONEY         11051
#define WRENCHBOARD_USER_SENDJOBINT        11052

#define WRENCHBOARD_USER_ADNEWCC           11054
#define WRENCHBOARD_USER_USESAVEDCC        11056
#define WRENCHBOARD_USER_SETTINGS          11058

#define WRENCHBOARD_ACCOUNT_WALLETS        11060

#define WRENCHBOARD_ACCOUNT_PREPARE_TOPUP  11062
#define WRENCHBOARD_ACCOUNT_COMPLETE_TOPUP 11063



#define WRENCHBOARD_USER_DELETEACC         11990
#define WRENCHBOARD_ACCOUNT_END            11999
//**************************************************************
#define WRENCHBOARD_GROUP_START          12000

#define WRENCHBOARD_GROUP_CREATEGROUP    12010
#define WRENCHBOARD_GROUP_INVITEGROUP    12015
#define WRENCHBOARD_GROUP_ACCEPTGROUP    12020

#define WRENCHBOARD_GROUP_END            12999
//**************************************************************
#define WRENCHBOARD_JOBS_START          13000

#define WRENCHBOARD_JOB_CREATEJOB        13010
#define WRENCHBOARD_JOB_DELETEJOB        13011

#define WRENCHBOARD_JOB_GROUP_MEMBER     13015
#define WRENCHBOARD_JOB_DELETE_GROUPMEMBER 13017

#define WRENCHBOARD_JOB_CREATE_GROUP     13020
#define WRENCHBOARD_JOB_DELETE_GROUP     13023


#define WRENCHBOARD_JOB_OFFER_INDVI     13030
#define WRENCHBOARD_JOB_OFFER_GROUP     13031
#define WRENCHBOARD_JOB_OFFER_PUBLIC    13032
#define WRENCHBOARD_JOB_SEND_INTEREST   13033
#define WRENCHBOARD_JOB_PROC_INTEREST   13034
#define WRENCHBOARD_JOB_OFFER_CONCLUDE  13035
#define WRENCHBOARD_JOB_SEND_QUESTION   13036
#define WRENCHBOARD_JOB_MRKTINT_QUEST   13037
#define WRENCHBOARD_JOB_REPLY_QUESTION  13038

#define WRENCHBOARD_JOBS_END            13999
//**************************************************************
#define WRENCHBOARD_CONTRACT_START          14000

#define WRENCHBOARD_CONTRACT_MESSAGE        14010
#define WRENCHBOARD_CONTRACT_STATUS         14015
#define WRENCHBOARD_CONTRACT_END            14999
//**************************************************************
#define WRENCHBOARD_MOBILE_START          15000

#define WRENCHBOARD_MOBILE_OFFERSLIST     15010
#define WRENCHBOARD_MOBILE_ACTIVEJOB      15020
#define WRENCHBOARD_MOBILE_LOADPROFILE    15030
#define WRENCHBOARD_MOBILE_ACCOUNT        15040
#define WRENCHBOARD_MOBILE_MESSAGE        15045
#define WRENCHBOARD_MOBILE_PAYMENTHX      15046
#define WRENCHBOARD_MOBILE_TASKMESSAGE     15047
#define WRENCHBOARD_MOBILE_SENDTASKMESSAGE 15048 

#define WRENCHBOARD_MOBILE_END            15999
//**************************************************************

#define  WRENCHBOARD_SMONEY_START 	       33000
#define  WRENCHBOARD_SMONEY_ADDRECIPIENT   33010
#define  WRENCHBOARD_SMONEY_MEMBER         33020
#define  WRENCHBOARD_SMONEY_PROCFEE        33025

#define  WRENCHBOARD_SMONEY_BKOPROC        33030

#define  WRENCHBOARD_SMONEY_END            33999

//**************************************************************
#define  WRENCHBOARD_CARDS_START           40000

#define  WRENCHBOARD_CARDS_GETCARDLIST     40010
#define  WRENCHBOARD_CARDS_UPDATECARD      40015
#define  WRENCHBOARD_CARDS_CREATECARD      40020

#define  WRENCHBOARD_CARDS_END             49999
//**************************************************************

#define WRENCHBOARD_LOGIN_SHOP               50501
#define WRENCHBOARD_LOGIN_ADMIN              50502
#define WRENCHBOARD_LOGIN_MANAGER            50503

#define WRENCHBOARD_SURVEY_DATA              55000
#define WRENCHBOARD_ADD_SURVEY	             55050
#define WRENCHBOARD_LOAD_SURVEY	             55055

//**************************************************************
#define WRENCHBOARD_COUPON_START           85000

#define WRENCHBOARD_COUPON_CREATE          85010
#define WRENCHBOARD_COUPON_ACTIVATE        85015
#define WRENCHBOARD_COUPON_REDEEM          85020
#define WRENCHBOARD_COUPON_MEMLIST         85025
#define WRENCHBOARD_COUPON_PENDLIST        85030
#define WRENCHBOARD_COUPON_END             85999
//**************************************************************


#define WRENCHBOARD_STRIPE_CHARGE_ONE    90004
#define WRENCHBOARD_STRIPE_CHARGE_NEW    90005

#define WRENCHBOARD_COMPLETE_SENDMONEY_INTERSW     555
#define WRENCHBOARD_GETBILLER_INTERSW              556
#define WRENCHBOARD_BILL_PAYMENT_ADVICE_INTERSW    557

#define WRENCHBOARD_INTERSW_GETBILLER              556
#define WRENCHBOARD_INTERSW_BILL_PAYMENT_ADVICE    557
#define WRENCHBOARD_INTERSW_GETBILLERPAYMENTINTEMS 558
#define WRENCHBOARD_INTERSW_GETBILLERCATEGORIES    559
#define WRENCHBOARD_INTERSW_DO_TRANSFER            560
#define WRENCHBOARD_INTERSW_QUERY_TRANSACTION      561

#define WRENCHBOARD_ADD_MONEYRECIPIENT		600

#define WRENCHBOARD_CREATE_USER_ACCOUNT  700
#define WRENCHBOARD_USER_ACCOUNT_LOGIN   710
#define WRENCHBOARD_START_PASSWORDRESET  720
#define WRENCHBOARD_COMPLETE_PASSWORDRESET 730 

#define	WRENCHBOARD_START_ADDMONEY  770 
#define	WRENCHBOARD_COMPLETE_ADDMONEY	775 

#define WRENCHBOARD_ADD_MOBILE_TOPUPNUM  900 
#define WRENCHBOARD_PROMO_CALL 990


#define WRENCHBOARD_STOREFACE_GET_ACCOUNT_BALANCE 891

#define WRENCHBOARD_LOG_ENTRY        900000
#define WRENCHBOARD_CREDIT_TOPUP     900010



#define WRENCHBOARD_TOPUP_ORDER      900020
#define WRENCHBOARD_TOPUP_ORDER_PURCHASE	900030
#define WRENCHBOARD_PAYPAL_IPNMSG    900090



#define WRENCHBOARD_BULKTOPUP_ORDER		700010
#define WRENCHBOARD_BULKTOPUP_ITEM			700020
#define WRENCHBOARD_BULKTOPUP_ITEMUPDATE 	700030
#define WRENCHBOARD_BULKTOPUP_DELIVER 		700040


#define WRENCHBOARD_BALANCE_TOPUP_ORDER      800020
#define WRENCHBOARD_BALANCE_TOPUP_PURCHASE	  800030
#define	WRENCHBOARD_BALANCE_TOPUP_PAYMENT	  800040


#define	VIRTUAL_AIRTOPUP	   70011

#define PAY_MODE_BALANCE 0
#define PAY_MODE_CCARD   1
#define PAY_MODE_BONUS	 9

#define APPROVED_BALANCE 5
#define DISAPROVE_BALANCE   3

#define PENDING  0
#define CONFIRMED  2
#define CANCELLED  3
#define ASSIGNED   4
#define INPROGRESS  7 // 8,9
#define COMPLETED  5
#define SETTLED  9


#endif

