Specification » History » Revision 15
Revision 14 (Soh Keong, 05/25/2023 05:00 PM) → Revision 15/21 (Soh Keong, 05/25/2023 05:07 PM)
{{toc}} h1. Specification h2. Programming Guide h3. Jar version |_. version |_. Description | | 1.0 | Init | | 1.1 | Added createDatetime (requestOTP) | | 1.2 | Added locale | | 1.3 | Added currentDatetime | | 1.4 | Added own define OTP ExpiryDateTime | h3. Jar File Download "Jar":/redmine/attachments/download/759/OnlineCoswayServiceClient-1.4.jar "Jar":/redmine/attachments/download/758/OnlineCoswayServiceClient-1.4.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.AppPinResultBean 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 > * *Locale* - default en_US > * *expiryDateTime* - java.time.LocalDateTime.now().plusDays(2) * *com.cosway.soap.client.bean.AppPinResultBean* > * *ErrCode* - "ErroCode":/redmine/projects/webservice/wiki#Status-Code > * *ErrMessage* - > * *CreateDatetime* - 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* -