Specification » History » Version 2
Soh Keong, 12/07/2020 04:05 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 | h3. |
||
90 | |||
91 | <pre> |
||
92 | |||
93 | </pre> |