Specification » History » Revision 3
Revision 2 (Soh Keong, 10/19/2020 05:40 PM) → Revision 3/6 (Soh Keong, 10/20/2020 01:37 PM)
h1. Specification h1. Programming Guide h2. Resources h3. SCM see [[wiki#SCM]] h3. Jar File Download "Jar":/redmine/attachments/download/481/bcard-infinite-2.2.jar "Lib":/redmine/attachments/download/482/json_lib.zip "Properties":/redmine/attachments/download/480/service.properties h3. properties file * *service.properties* # *ws.key* - Provided by bInfinite # *ws.company.code* - Provided by bInfinite # *ws.branch.code* - Provided by bInfinite # *ws.post.id* - Provided by bInfinite h2. Methods h3. Common Instance <pre> com.cosway.bcard.service.BcardService service = new com.cosway.bcard.service.BcardService(); </pre> h3. Point Inquiry <pre> com.cosway.bcard.bean.PointResultBean resultBean = service.pointInquiry(CardBean cardBean); </pre> * *com.cosway.bcard.bean.CardBean* > * *bcardNo* - bInfinite card number > * *password* - bInfinite card's password * *com.cosway.bcard.bean.PointResultBean* > * *errorCode* - String > * *errorMessage* - String > * *bcardNo* - String > * *principalPoint* - int > * *tokenPoint* - int > * *mintoken* - int > * *totalpoint* - int h3. Check Card <pre> com.cosway.bcard.bean.CheckCardResultBean resultBean = service.checkCard(String cardNumber); </pre> * *com.cosway.bcard.bean.CheckCardResultBean* > * *errorCode* - String > * *errorMessage* - String > * *bcardNo* - String > * *status* - String h3. Redemption | Void Redemption <pre> com.cosway.bcard.bean.RedemptionResultBean resultBean = service.redemption(RedemptionBean service.checkCard(RedemptionBean redempBean); com.cosway.bcard.bean.RedemptionResultBean resultBean = service.voidRedemption(RedemptionBean redempBean); </pre> * *com.cosway.bcard.bean.RedemptionBean* > * *bcardNo* - String > * *password* - String > * *trxDate* - Date > * *point* - int * *com.cosway.bcard.bean.RedemptionResultBean* *com.cosway.bcard.bean.RedemptionResultBean * > * *errorCode* - String > * *errorMessage* - String > * *bcardNo* - String > * *redemptionId* - String > * *redemptionDate* - Date > * *balancePoint* - int h3. Reward | Void Reward <pre> com.cosway.bcard.bean.RewardResultBean resultBean = service.reward(RewardBean redempBean); com.cosway.bcard.bean.RewardResultBean resultBean = service.voidReward(RewardBean redempBean); </pre> * *com.cosway.bcard.bean.RewardBean* > * *bcardNo* - String > * *orderId* - String > * *trxDate* - Date > * *totalAmount* - double > * *totalPoint* - int * *com.cosway.bcard.bean.RewardResultBean* > * *errorCode* - String > * *errorMessage* - String > * *bcardNo* - String > * *rewardId* - String > * *rewardDate* - Date h3. Register Member <pre> com.cosway.bcard.bean.ResultBean resultBean = service.registerMember(RegistrationBean bean); </pre> * *com.cosway.bcard.bean.RegistrationBean* > * *bcardNo* - String (Mantadory) > * *memberFullName* - String (Mantadory) > * *memberIc* - String (Mantadory) > * *homeEmail* - String (Mantadory) > * *mobilePhone* - String (Mantadory) > * *memberTitle* - String > * *memberDOB* - Date > * *gender* - String > * *race* - String > * *nationality* - String > * *maritalStatus* - String > * *ownCar* - boolean > * *ownCreditCard* - boolean > * *homeAddress1* - String > * *homeAddress2* - String > * *homeAddress3* - String > * *homeCity* - String > * *homeState* - String > * *homeCountry* - String > * *homePostcode* - String > * *homePhone* - String > * *officeAddress1* - String > * *officeAddress2* - String > * *officeAddress3* - String > * *officeCity* - String > * *officeState* - String > * *officeCountry* - String > * *officePostcode* - String > * *officeEmail* - String > * *officePhone* - String > * *officeExt* - String > * *officeFax* - String > * *msisdn* - String * *com.cosway.bcard.bean.ResultBean* > * *errorCode* - String > * *errorMessage* - String