Specification » History » Version 7
Soh Keong, 04/01/2021 03:00 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h2. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | 5 | Soh Keong | |_. version |_. Description | |
10 | | 1.13 | Init | |
||
11 | | 1.14 | Added mobileApp's effective date | |
||
12 | 6 | Soh Keong | | 1.15 | Added Promo's amount | |
13 | 1 | Soh Keong | |
14 | h3. Jar File Download |
||
15 | |||
16 | 6 | Soh Keong | "Jar":/redmine/attachments/download/575/offlineService-1.15.jar |
17 | 1 | Soh Keong | "Lib":/redmine/attachments/download/500/serviceJar.zip |
18 | "Properties":/redmine/attachments/download/502/service.properties |
||
19 | |||
20 | h3. properties file |
||
21 | |||
22 | * *service.properties* |
||
23 | |||
24 | # *json.url* - provided by DotNet team |
||
25 | # *wsdl.url* - provided by DotNet team |
||
26 | # *json.key* - for encryption |
||
27 | # *bcard.area.code* - for bcard prefix |
||
28 | # *connection.timeout* - set connection timeout |
||
29 | # *connection.read.timeout* - set connection read timeout |
||
30 | |||
31 | |||
32 | h1. Methods |
||
33 | |||
34 | h2. Member |
||
35 | |||
36 | <pre> |
||
37 | com.ecosway.cosway.memberservice.service.MemberService service = new com.ecosway.cosway.memberservice.service.MemberService(); |
||
38 | </pre> |
||
39 | |||
40 | 7 | Soh Keong | h3. mobileAppService (iMobileAppServices) |
41 | 1 | Soh Keong | |
42 | <pre> |
||
43 | com.ecosway.cosway.memberservice.model.MobileAppResultBean resultBean = service.mobileAppService(MobileAppRequestBean bean) |
||
44 | </pre> |
||
45 | |||
46 | * *com.ecosway.cosway.memberservice.model.MobileAppRequestBean* |
||
47 | > * *processType* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE | PROCESS_TYPE_LOCK | PROCESS_TYPE_UNLOCK) |
||
48 | > * *mobileAppCode* - String |
||
49 | > * *countryId* - String |
||
50 | > * *transactionId* - String (For UPDATE | LOCK | UNLOCK) |
||
51 | > * *centerId* - String (For GET | UPDATE) |
||
52 | > * *memberId* - String (For GET | UPDATE) |
||
53 | > * *invoiceNo* - String (For UPDATE Only) |
||
54 | > * *invoiceDate* - String (For UPDATE Only) |
||
55 | |||
56 | * *com.ecosway.cosway.memberservice.model.MobileAppResultBean* |
||
57 | > * *responseCode* - String |
||
58 | > * *responseMessage* - String |
||
59 | > * *memberId* - String |
||
60 | > * *mobileAppCode* - String |
||
61 | > * *isLocked* - boolean |
||
62 | 5 | Soh Keong | > * *effectiveDate* - Date |
63 | 1 | Soh Keong | > * *expiryDate* - Date |
64 | > * *prodCode* - String |
||
65 | 2 | Soh Keong | |
66 | |||
67 | 7 | Soh Keong | h3. getNewBCardNo (iCoswayMemberRandomServices) |
68 | 2 | Soh Keong | |
69 | <pre> |
||
70 | com.ecosway.cosway.memberservice.model.BCardResultBean resultBean = service.getNewBCardNo(String orderId) |
||
71 | </pre> |
||
72 | |||
73 | * *com.ecosway.cosway.memberservice.model.BCardResultBean* |
||
74 | > * *errorCode* - String |
||
75 | > * *errorMsg* - String |
||
76 | > * *bcardNumber* - String |
||
77 | 3 | Soh Keong | |
78 | |||
79 | h2. HK |
||
80 | |||
81 | 4 | Soh Keong | <pre> |
82 | com.ecosway.cosway.memberservice.service.HKService service = new com.ecosway.cosway.memberservice.service.HKServiceImpl(); |
||
83 | </pre> |
||
84 | |||
85 | 7 | Soh Keong | h3. vipToBOService (iMemberServices) |
86 | 3 | Soh Keong | |
87 | <pre> |
||
88 | com.ecosway.cosway.memberservice.model.VipToBoResultBean resultBean = service.vipToBOService(VipToBoRequestBean bean) |
||
89 | </pre> |
||
90 | |||
91 | * *com.ecosway.cosway.memberservice.model.VipToBoRequestBean* |
||
92 | > * *processType* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE) |
||
93 | > * *centerId* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE) |
||
94 | > * *memberId* - String |
||
95 | > * *countryId* - String |
||
96 | > * *amount* - double |
||
97 | > * *transactionId* - String (For UPDATE Only) |
||
98 | > * *invoiceNo* - String (For UPDATE Only) |
||
99 | > * *invoiceDate* - Date (For UPDATE Only) |
||
100 | |||
101 | * *com.ecosway.cosway.memberservice.model.VipToBoResultBean * |
||
102 | > * *errorCode* - String |
||
103 | > * *errorMsg* - String |
||
104 | > * *memberId* - String |
||
105 | > * *countryId* - String |
||
106 | > * *amount* - double |
||
107 | |||
108 | 7 | Soh Keong | h2. Promo |
109 | 3 | Soh Keong | |
110 | 4 | Soh Keong | <pre> |
111 | com.ecosway.cosway.memberservice.service.PromoService service = new com.ecosway.cosway.memberservice.service.PromoServiceImpl(); |
||
112 | </pre> |
||
113 | |||
114 | 7 | Soh Keong | h3. promoService (iPromoServices) |
115 | 3 | Soh Keong | |
116 | <pre> |
||
117 | com.ecosway.cosway.memberservice.model.PromoResultBean resultBean = service.promoService(PromoRequestBean bean) |
||
118 | </pre> |
||
119 | |||
120 | * *com.ecosway.cosway.memberservice.model.PromoRequestBean* |
||
121 | > * *processType* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE) |
||
122 | > * *centerId* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE) |
||
123 | > * *promoCode* - String |
||
124 | > * *productCode* - String |
||
125 | > * *memberId* - String |
||
126 | > * *transactionId* - String (For UPDATE Only) |
||
127 | > * *invoiceNo* - String (For UPDATE Only) |
||
128 | > * *invoiceDate* - Date (For UPDATE Only) |
||
129 | 1 | Soh Keong | > * *quantity* - int (For UPDATE Only) |
130 | 6 | Soh Keong | > * *amount* - double (For UPDATE Only) |
131 | 3 | Soh Keong | |
132 | * *com.ecosway.cosway.memberservice.model.PromoResultBean* |
||
133 | > * *errorCode* - String |
||
134 | > * *errorMsg* - String |
||
135 | > * *quantity* - int |
||
136 | |||
137 | |||
138 | h2. Voucher |
||
139 | 4 | Soh Keong | |
140 | <pre> |
||
141 | com.ecosway.cosway.memberservice.service.VoucherService service = new com.ecosway.cosway.memberservice.service.VoucherService(); |
||
142 | </pre> |
||
143 | 3 | Soh Keong | |
144 | 7 | Soh Keong | h3. keyCodeService (iKeyCodeServices) |
145 | 3 | Soh Keong | |
146 | <pre> |
||
147 | com.ecosway.cosway.memberservice.model.KeyCodeResultBean keyCodeService(KeyCodeRequestBean bean) |
||
148 | </pre> |
||
149 | |||
150 | * *com.ecosway.cosway.memberservice.model.PromoRequestBean* |
||
151 | > * *processType* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_KEY_CODE_GET | PROCESS_TYPE_KEY_CODE_ADD | PROCESS_TYPE_KEY_CODE_CANCEL) |
||
152 | > * *centerId* - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE) |
||
153 | > * *countryId* - String |
||
154 | > * *keyCode* - String |
||
155 | > * *transactionId* - String (For ADD | CANCEL Only) |
||
156 | > * *invoiceNo* - String (For ADD | CANCEL Only) |
||
157 | > * *invoiceDate* - Date (For ADD | CANCEL Only) |
||
158 | > * *memberId* - String (For ADD | CANCEL Only) |
||
159 | |||
160 | * *com.ecosway.cosway.memberservice.model.PromoResultBean* |
||
161 | > * *errorCode* - String |
||
162 | > * *errorMsg* - String |
||
163 | > * *status* - String |
||
164 | > * *processType* - String |
||
165 | > * *centerId* - String |
||
166 | > * *countryId* - String |
||
167 | > * *transactionId* - String |
||
168 | > * *invoiceNo* - String (Represent secure code) |
||
169 | > * *invoiceDate* - Date |
||
170 | > * *memberId* - String |
||
171 | > * *utilized* - boolean |