Specification » History » Version 12
Soh Keong, 06/23/2022 02:29 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 | 12 | Soh Keong | > * *Locale* - default en_US |
37 | 1 | Soh Keong | |
38 | 6 | Soh Keong | * *com.cosway.soap.client.bean.AppPinResultBean* |
39 | > * *ErrCode* - "ErroCode":/redmine/projects/webservice/wiki#Status-Code |
||
40 | > * *ErrMessage* - |
||
41 | > * *CreateDatetime* - |
||
42 | 1 | Soh Keong | |
43 | h3. verifyVerifyCode |
||
44 | |||
45 | <pre> |
||
46 | com.cosway.soap.client.bean.ResultBean resultBean = service.verifyVerifyCode(com.cosway.soap.client.bean.AppPinBean bean) |
||
47 | </pre> |
||
48 | |||
49 | * *com.cosway.soap.client.bean.AppPinBean* |
||
50 | 4 | Soh Keong | > * *shopperId* - |
51 | > * *AppType* - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type |
||
52 | > * *AppPin* - |
||
53 | 1 | Soh Keong | |
54 | |||
55 | h3. sendNotification |
||
56 | |||
57 | <pre> |
||
58 | com.cosway.soap.client.bean.ResultBean resultBean = service.sendNotification(com.cosway.soap.client.bean.AppNoticeBean bean) |
||
59 | </pre> |
||
60 | |||
61 | * *com.cosway.soap.client.bean.AppNoticeBean* |
||
62 | 4 | Soh Keong | > * *shopperId* - |
63 | > * *AppType* - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type |
||
64 | > * *Params* - String in Json format |
||
65 | 1 | Soh Keong | |
66 | * *com.cosway.soap.client.bean.ResultBean* |
||
67 | 4 | Soh Keong | > * *ErrCode* - "ErroCode":/redmine/projects/webservice/wiki#Status-Code |
68 | > * *ErrMessage* - |