#ifndef COREGRADE_API_H
#define COREGRADE_API_H

#define PHP_API_OK         0
#define PHP_API_BAD_PARAM -1

#define COREGRADE_SESSION_CHECK   299
#define COREGRADE_USER_LOGIN      300
#define COREGRADE_USER_LOGOUT     301
#define COREGRADE_CREATE_ACCOUNT  320

//**************************************************************
#define COREGRADE_BKO_START          10000

#define COREGRADE_BKO_LOGIN          10010
#define COREGRADE_BKO_CREATEUSER     10015
#define COREGRADE_BKO_UPDATEUSER     10020

#define COREGRADE_BKO_END            10999
//**************************************************************
#define COREGRADE_ACCOUNT_START          11000

#define COREGRADE_ACCOUNT_TESTEMAIL      11001
#define COREGRADE_ACCOUNT_PENDING        11010
#define COREGRADE_VERIFY_PENDING_LINK    11015
#define COREGRADE_ACCOUNT_CREATEACC      11020
#define COREGRADE_ACCOUNT_LOGIN          11025
#define COREGRADE_ACCOUNT_ADDCARD        11027
#define COREGRADE_ACCOUNT_ADDPAGECARD    11029


#define COREGRADE_ACCOUNT_END            11999
//**************************************************************
#define COREGRADE_GROUP_START          12000

#define COREGRADE_GROUP_CREATEGROUP    12010
#define COREGRADE_GROUP_INVITEGROUP    12015
#define COREGRADE_GROUP_ACCEPTGROUP    12020

#define COREGRADE_GROUP_END            12999
//**************************************************************






#define COREGRADE_COMPLETE_SENDMONEY_INTERSW     555
#define COREGRADE_GETBILLER_INTERSW              556
#define COREGRADE_BILL_PAYMENT_ADVICE_INTERSW    557

#define COREGRADE_INTERSW_GETBILLER              556
#define COREGRADE_INTERSW_BILL_PAYMENT_ADVICE    557
#define COREGRADE_INTERSW_GETBILLERPAYMENTINTEMS 558
#define COREGRADE_INTERSW_GETBILLERCATEGORIES    559
#define COREGRADE_INTERSW_DO_TRANSFER            560
#define COREGRADE_INTERSW_QUERY_TRANSACTION      561

#define COREGRADE_ADD_MONEYRECIPIENT		600

#define COREGRADE_CREATE_USER_ACCOUNT  700
#define COREGRADE_USER_ACCOUNT_LOGIN   710
#define COREGRADE_START_PASSWORDRESET  720
#define COREGRADE_COMPLETE_PASSWORDRESET 730 

#define	COREGRADE_START_ADDMONEY  770 
#define	COREGRADE_COMPLETE_ADDMONEY	775 

#define COREGRADE_ADD_MOBILE_TOPUPNUM  900 
#define COREGRADE_PROMO_CALL 990


#define COREGRADE_STOREFACE_GET_ACCOUNT_BALANCE 891

#define COREGRADE_LOG_ENTRY        900000
#define COREGRADE_CREDIT_TOPUP     900010



#define COREGRADE_TOPUP_ORDER      900020
#define COREGRADE_TOPUP_ORDER_PURCHASE	900030
#define COREGRADE_PAYPAL_IPNMSG    900090



#define COREGRADE_BULKTOPUP_ORDER		700010
#define COREGRADE_BULKTOPUP_ITEM			700020
#define COREGRADE_BULKTOPUP_ITEMUPDATE 	700030
#define COREGRADE_BULKTOPUP_DELIVER 		700040


#define COREGRADE_BALANCE_TOPUP_ORDER      800020
#define COREGRADE_BALANCE_TOPUP_PURCHASE	  800030
#define	COREGRADE_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
#endif

