Project

General

Profile

Specification » History » Version 14

Soh Keong, 05/25/2023 05:00 PM

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