Project

General

Profile

Specification » History » Revision 3

Revision 2 (Soh Keong, 11/04/2020 02:37 PM) → Revision 3/7 (Soh Keong, 11/04/2020 04:54 PM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 1.13        | Init             | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/501/offlineService-1.13.jar 
 "Lib":/redmine/attachments/download/500/serviceJar.zip 
 "Properties":/redmine/attachments/download/502/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url*                  - provided by DotNet team 
 # *wsdl.url*                  - provided by DotNet team 
 # *json.key*                  - for encryption  
 # *bcard.area.code*           - for bcard prefix 
 # *connection.timeout*        - set connection timeout 
 # *connection.read.timeout* - set connection read timeout 


 h1. Methods 

 h2. Member 

 <pre> 
 com.ecosway.cosway.memberservice.service.MemberService service = new com.ecosway.cosway.memberservice.service.MemberService(); 
 </pre> 

 h3. mobileAppService 

 <pre> 
 com.ecosway.cosway.memberservice.model.MobileAppResultBean resultBean = service.mobileAppService(MobileAppRequestBean bean) 
 </pre> 

 * *com.ecosway.cosway.memberservice.model.MobileAppRequestBean* 
 > * *processType*         - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE | PROCESS_TYPE_LOCK | PROCESS_TYPE_UNLOCK) 
 > * *mobileAppCode*       - String 
 > * *countryId*           - String 
 > * *transactionId*       - String (For UPDATE | LOCK | UNLOCK) 
 > * *centerId*            - String (For GET | UPDATE) 
 > * *memberId*            - String (For GET | UPDATE) 
 > * *invoiceNo*           - String (For UPDATE Only) 
 > * *invoiceDate*         - String (For UPDATE Only) 

 * *com.ecosway.cosway.memberservice.model.MobileAppResultBean* 
 > * *responseCode*        - String 
 > * *responseMessage*     - String 
 > * *memberId*            - String 
 > * *mobileAppCode*       - String 
 > * *isLocked*            - boolean 
 > * *expiryDate*          - Date 
 > * *prodCode*            - String 


 h3. getNewBCardNo 

 <pre> 
 com.ecosway.cosway.memberservice.model.BCardResultBean resultBean = service.getNewBCardNo(String orderId) 
 </pre> 

 * *com.ecosway.cosway.memberservice.model.BCardResultBean* 
 > * *errorCode*     - String 
 > * *errorMsg*      - String 
 > * *bcardNumber* - String 


 h2. HK 

 h3. vipToBOService 

 <pre> 
 com.ecosway.cosway.memberservice.model.VipToBoResultBean resultBean = service.vipToBOService(VipToBoRequestBean bean) 
 </pre> 

 * *com.ecosway.cosway.memberservice.model.VipToBoRequestBean* 
 > * *processType*     - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE) 
 > * *centerId*        - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *memberId*        - String 
 > * *countryId*       - String 
 > * *amount*          - double 
 > * *transactionId* - String (For UPDATE Only) 
 > * *invoiceNo*       - String (For UPDATE Only) 
 > * *invoiceDate*     - Date     (For UPDATE Only) 

 * *com.ecosway.cosway.memberservice.model.VipToBoResultBean * 
 > * *errorCode*     - String 
 > * *errorMsg*      - String 
 > * *memberId*      - String 
 > * *countryId*     - String 
 > * *amount*        - double 

 h2. Promo 

 h3. promoService 

 <pre> 
 com.ecosway.cosway.memberservice.model.PromoResultBean resultBean = service.promoService(PromoRequestBean bean) 
 </pre> 

 * *com.ecosway.cosway.memberservice.model.PromoRequestBean* 
 > * *processType*     - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE) 
 > * *centerId*        - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *promoCode*       - String 
 > * *productCode*     - String  
 > * *memberId*        - String 
 > * *transactionId* - String (For UPDATE Only) 
 > * *invoiceNo*       - String (For UPDATE Only) 
 > * *invoiceDate*     - Date     (For UPDATE Only) 
 > * *quantity*        - int      (For UPDATE Only) 

 * *com.ecosway.cosway.memberservice.model.PromoResultBean* 
 > * *errorCode*     - String 
 > * *errorMsg*      - String 
 > * *quantity*      - int 


 h2. Voucher 

 h3. keyCodeService 

 <pre> 
 com.ecosway.cosway.memberservice.model.KeyCodeResultBean keyCodeService(KeyCodeRequestBean bean) 
 </pre> 

 * *com.ecosway.cosway.memberservice.model.PromoRequestBean* 
 > * *processType*     - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_KEY_CODE_GET | PROCESS_TYPE_KEY_CODE_ADD | PROCESS_TYPE_KEY_CODE_CANCEL) 
 > * *centerId*        - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *countryId*       - String 
 > * *keyCode*         - String 
 > * *transactionId* - String (For ADD | CANCEL Only) 
 > * *invoiceNo*       - String (For ADD | CANCEL Only) 
 > * *invoiceDate*     - Date     (For ADD | CANCEL Only) 
 > * *memberId*        - String (For ADD | CANCEL Only) 

 * *com.ecosway.cosway.memberservice.model.PromoResultBean* 
 > * *errorCode*       - String 
 > * *errorMsg*        - String 
 > * *status*          - String 
 > * *processType*     - String  
 > * *centerId*        - String  
 > * *countryId*       - String 
 > * *transactionId* - String  
 > * *invoiceNo*       - String (Represent secure code) 
 > * *invoiceDate*     - Date  
 > * *memberId*        - String  
 > * *utilized*        - boolean