Specification » History » Version 17
Soh Keong, 06/01/2023 11:01 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 | 17 | Soh Keong | > * *CreateBy* - com.cosway.soap.client.common.CommonConstant.CREATED_BY_ONLINE |
39 | > * *Locale* - default en_US |
||
40 | > * *ExpiryDateTime* - java.time.LocalDateTime.now().plusDays(2) |
||
41 | > * *ByPass* - boolean |
||
42 | 12 | Soh Keong | |
43 | 14 | Soh Keong | |
44 | 6 | Soh Keong | * *com.cosway.soap.client.bean.AppPinResultBean* |
45 | > * *ErrCode* - "ErroCode":/redmine/projects/webservice/wiki#Status-Code |
||
46 | > * *ErrMessage* - |
||
47 | 1 | Soh Keong | > * *CreateDatetime* - |
48 | |||
49 | h3. verifyVerifyCode |
||
50 | |||
51 | <pre> |
||
52 | com.cosway.soap.client.bean.ResultBean resultBean = service.verifyVerifyCode(com.cosway.soap.client.bean.AppPinBean bean) |
||
53 | </pre> |
||
54 | |||
55 | 4 | Soh Keong | * *com.cosway.soap.client.bean.AppPinBean* |
56 | 14 | Soh Keong | > * *shopperId* - |
57 | > * *AppType* - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type |
||
58 | > * *AppPin* - |
||
59 | 1 | Soh Keong | |
60 | h3. sendNotification |
||
61 | |||
62 | <pre> |
||
63 | com.cosway.soap.client.bean.ResultBean resultBean = service.sendNotification(com.cosway.soap.client.bean.AppNoticeBean bean) |
||
64 | </pre> |
||
65 | |||
66 | * *com.cosway.soap.client.bean.AppNoticeBean* |
||
67 | 4 | Soh Keong | > * *shopperId* - |
68 | > * *AppType* - "AppType":/redmine/projects/onlinecoswayservice/wiki#App-Type |
||
69 | > * *Params* - String in Json format |
||
70 | 1 | Soh Keong | |
71 | * *com.cosway.soap.client.bean.ResultBean* |
||
72 | 4 | Soh Keong | > * *ErrCode* - "ErroCode":/redmine/projects/webservice/wiki#Status-Code |
73 | > * *ErrMessage* - |