Project

General

Profile

Specification » History » Version 5

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