Project

General

Profile

Specification » History » Revision 2

Revision 1 (Soh Keong, 10/19/2020 03:42 PM) → Revision 2/6 (Soh Keong, 10/19/2020 05:40 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 service.pointInquiry(String cardNumber); 
 </pre> 

 * *com.cosway.bcard.bean.CheckCardResultBean* 
 > * *errorCode*         - String 
 > * *errorMessage*      - String  
 > * *bcardNo*           - String 
 > * *status*            - String 

 h3. Redemption 

 <pre> 
 com.cosway.bcard.bean.RedemptionResultBean resultBean = service.checkCard(RedemptionBean redempBean); 
 </pre> 

 * *com.cosway.bcard.bean.RedemptionBean* 
 > * *bcardNo*         - String 
 > * *password*        - String 
 > * *trxDate*         - Date 
 > * *point*           - int 

 * *com.cosway.bcard.bean.RedemptionResultBean * 
 > * *errorCode*         - String 
 > * *errorMessage*      - String  
 > * *bcardNo*           - String 
 > * *redemptionId*      - String 
 > * *redemptionDate*    - Date 
 > * *balancePoint*      - int