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