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