Specification » History » Version 3
Soh Keong, 12/07/2020 04:29 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h1. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | |_. version |_. Description | |
||
10 | | 1.5 | Init | |
||
11 | |||
12 | h3. Jar File Download |
||
13 | |||
14 | "Jar":/redmine/attachments/download/536/GiftCardService-1.5.jar |
||
15 | "Lib":/redmine/attachments/download/538/lib.rar |
||
16 | "Properties":/redmine/attachments/download/537/service.properties |
||
17 | |||
18 | h3. properties file |
||
19 | |||
20 | * *service.properties* |
||
21 | |||
22 | # *json.url* - |
||
23 | # *json.key* - |
||
24 | # *connection.timeout* - |
||
25 | # *connection.read.timeout* - |
||
26 | |||
27 | |||
28 | 2 | Soh Keong | h2. Methods |
29 | 1 | Soh Keong | |
30 | 2 | Soh Keong | h3. Common Instance |
31 | |||
32 | <pre> |
||
33 | com.cosway.gift.service.GiftCardService service = new com.cosway.gift.service.GiftCardService(); |
||
34 | </pre> |
||
35 | 1 | Soh Keong | |
36 | 2 | Soh Keong | h3. checkGiftCard |
37 | |||
38 | <pre> |
||
39 | com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.checkGiftCard(GiftCardCheckBean bean) |
||
40 | </pre> |
||
41 | |||
42 | * *com.cosway.gift.bean.request.GiftCardCheckBean* |
||
43 | > * *countryId* - |
||
44 | > * *centerId* - com.cosway.gift.constant.CommonConstant.CENTER_ID_ONLINE |
||
45 | > * *giftCardList* - List<GiftCardBean> |
||
46 | >> * *cardSerialNo* - |
||
47 | >> * *pinCode* - |
||
48 | |||
49 | * *com.cosway.gift.bean.response.GiftCardCheckResponseBean* |
||
50 | > * *errorCode* - |
||
51 | > * *errorMsg* - |
||
52 | > * *totalRecord* - |
||
53 | > * *giftCardList* - List<GiftCardDetail> |
||
54 | >> * *errorCode* - |
||
55 | >> * *errorMsg* - |
||
56 | >> * *serialNo* - |
||
57 | >> * *startDate* - with pinCode only |
||
58 | >> * *expiryDate* - |
||
59 | >> * *value* - with pinCode only |
||
60 | >> * *memberId* - |
||
61 | |||
62 | h3. utilizeGiftCard |
||
63 | |||
64 | <pre> |
||
65 | com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.utilizeGiftCard(GiftCardTransactionBean bean) |
||
66 | </pre> |
||
67 | |||
68 | * *com.cosway.gift.bean.request.GiftCardTransactionBean * |
||
69 | > * *transactionId* - |
||
70 | > * *orderId* - |
||
71 | > * *orderDate* - Date |
||
72 | > * *amount* - double |
||
73 | > * *countryId* - |
||
74 | > * *centerId* - com.cosway.gift.constant.CommonConstant.CENTER_ID_ONLINE |
||
75 | > * *giftCardList* - List<GiftCardBean> |
||
76 | >> * *cardSerialNo* - |
||
77 | >> * *pinCode* - |
||
78 | |||
79 | * *com.cosway.gift.bean.response.GiftCardCheckResponseBean* |
||
80 | > * *errorCode* - |
||
81 | > * *errorMsg* - |
||
82 | > * *totalRecord* - |
||
83 | > * *giftCardList* - List<GiftCardDetail> |
||
84 | >> * *errorCode* - |
||
85 | >> * *errorMsg* - |
||
86 | >> * *serialNo* - |
||
87 | |||
88 | |||
89 | 3 | Soh Keong | h3. lockGiftCard |
90 | 2 | Soh Keong | |
91 | 1 | Soh Keong | <pre> |
92 | 3 | Soh Keong | com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.lockGiftCard(GiftCardTransactionBean bean) |
93 | com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.unlockGiftCard(GiftCardTransactionBean bean) |
||
94 | 1 | Soh Keong | </pre> |
95 | 3 | Soh Keong | |
96 | * *com.cosway.gift.bean.request.GiftCardTransactionBean * |
||
97 | > * *transactionId* - |
||
98 | > * *countryId* - |
||
99 | > * *centerId* - com.cosway.gift.constant.CommonConstant.CENTER_ID_ONLINE |
||
100 | > * *giftCardList* - List<GiftCardBean> |
||
101 | >> * *cardSerialNo* - |
||
102 | >> * *pinCode* - |
||
103 | |||
104 | * *com.cosway.gift.bean.response.GiftCardCheckResponseBean* |
||
105 | > * *errorCode* - |
||
106 | > * *errorMsg* - |
||
107 | > * *totalRecord* - |
||
108 | > * *giftCardList* - List<GiftCardDetail> |
||
109 | >> * *errorCode* - |
||
110 | >> * *errorMsg* - |
||
111 | >> * *serialNo* - |
||
112 | >> * *startDate* - |
||
113 | >> * *expiryDate* - |
||
114 | >> * *value* - |
||
115 | >> * *memberId* - |