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