Project

General

Profile

Specification » History » Revision 5

Revision 4 (Soh Keong, 06/14/2022 05:20 PM) → Revision 5/21 (Soh Keong, 06/15/2022 03:21 PM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description                                     | 
 | 1.0      | Init                                                             | 
 | 1.1      | Added createDatetime (requestOTP) | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/652/OnlineCoswayServiceClient-1.1.jar "Jar":/redmine/attachments/download/651/OnlineCoswayServiceClient-1.0.jar 

 h1. Methods 

 h2. Message Service  

 <pre> 
 com.cosway.soap.client.service.MessageService service = new com.cosway.soap.client.service.MessageService(); 
 </pre> 

 h3. requestVerifyCode 

 <pre> 
 com.cosway.soap.client.bean.ResultBean resultBean = service.requestVerifyCode(com.cosway.soap.client.bean.AppPinBean bean) 
 </pre> 

 * *com.cosway.soap.client.bean.AppPinBean* 
 > * *shopperId* 
 > * *AppType* 
 > * *CreateBy* - com.cosway.soap.client.common.CommonConstant.CREATED_BY_ONLINE 


 h3. verifyVerifyCode 

 <pre> 
 com.cosway.soap.client.bean.ResultBean resultBean = service.verifyVerifyCode(com.cosway.soap.client.bean.AppPinBean bean) 
 </pre> 

 * *com.cosway.soap.client.bean.AppPinBean* 
 > * *shopperId* - 
 > * *AppType*     - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type 
 > * *AppPin*      -  


 h3. sendNotification 

 <pre> 
 com.cosway.soap.client.bean.ResultBean resultBean = service.sendNotification(com.cosway.soap.client.bean.AppNoticeBean bean) 
 </pre> 

 * *com.cosway.soap.client.bean.AppNoticeBean* 
 > * *shopperId* - 
 > * *AppType*     - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type 
 > * *Params*      - String in Json format 

 * *com.cosway.soap.client.bean.ResultBean* 
 > * *ErrCode*      - "ErroCode":/redmine/projects/webservice/wiki#Status-Code 
 > * *ErrMessage* -