Project

General

Profile

Specification » History » Version 11

Soh Keong, 06/23/2022 02:25 PM

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