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