Project

General

Profile

Specification » History » Version 9

Soh Keong, 06/16/2022 10:32 AM

1 1 Soh Keong
{{toc}}
2
3
h1. Specification
4
5
h2. Programming Guide
6
7
h3. Jar version 
8
9 5 Soh Keong
|_. version |_. Description                  |
10
| 1.0    | Init                              |
11
| 1.1    | Added createDatetime (requestOTP) |
12 1 Soh Keong
13
h3. Jar File Download
14
15 9 Soh Keong
"Jar":/redmine/attachments/download/655/OnlineCoswayServiceClient-1.1.jar
16 1 Soh Keong
17
h1. Methods
18
19
h2. Message Service 
20
21
<pre>
22
com.cosway.soap.client.service.MessageService service = new com.cosway.soap.client.service.MessageService();
23
</pre>
24
25
h3. requestVerifyCode
26
27
<pre>
28 6 Soh Keong
com.cosway.soap.client.bean.AppPinResultBean resultBean = service.requestVerifyCode(com.cosway.soap.client.bean.AppPinBean bean)
29 1 Soh Keong
</pre>
30
31
* *com.cosway.soap.client.bean.AppPinBean*
32
> * *shopperId*
33
> * *AppType*
34
> * *CreateBy* - com.cosway.soap.client.common.CommonConstant.CREATED_BY_ONLINE
35
36 6 Soh Keong
* *com.cosway.soap.client.bean.AppPinResultBean*
37
> * *ErrCode*        - "ErroCode":/redmine/projects/webservice/wiki#Status-Code
38
> * *ErrMessage*     -
39
> * *CreateDatetime* - 
40 1 Soh Keong
41
h3. verifyVerifyCode
42
43
<pre>
44
com.cosway.soap.client.bean.ResultBean resultBean = service.verifyVerifyCode(com.cosway.soap.client.bean.AppPinBean bean)
45
</pre>
46
47
* *com.cosway.soap.client.bean.AppPinBean*
48 4 Soh Keong
> * *shopperId* -
49
> * *AppType*   - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type
50
> * *AppPin*    - 
51 1 Soh Keong
52
53
h3. sendNotification
54
55
<pre>
56
com.cosway.soap.client.bean.ResultBean resultBean = service.sendNotification(com.cosway.soap.client.bean.AppNoticeBean bean)
57
</pre>
58
59
* *com.cosway.soap.client.bean.AppNoticeBean*
60 4 Soh Keong
> * *shopperId* -
61
> * *AppType*   - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type
62
> * *Params*    - String in Json format
63 1 Soh Keong
64
* *com.cosway.soap.client.bean.ResultBean*
65 4 Soh Keong
> * *ErrCode*    - "ErroCode":/redmine/projects/webservice/wiki#Status-Code
66
> * *ErrMessage* -