Project

General

Profile

Specification » History » Version 4

Soh Keong, 11/04/2020 05:02 PM

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