Project

General

Profile

Specification » History » Version 3

Soh Keong, 11/04/2020 04:54 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
h3. vipToBOService
79
80
<pre>
81
com.ecosway.cosway.memberservice.model.VipToBoResultBean resultBean = service.vipToBOService(VipToBoRequestBean bean)
82
</pre>
83
84
* *com.ecosway.cosway.memberservice.model.VipToBoRequestBean*
85
> * *processType*   - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE)
86
> * *centerId*      - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE)
87
> * *memberId*      - String
88
> * *countryId*     - String
89
> * *amount*        - double
90
> * *transactionId* - String (For UPDATE Only)
91
> * *invoiceNo*     - String (For UPDATE Only)
92
> * *invoiceDate*   - Date   (For UPDATE Only)
93
94
* *com.ecosway.cosway.memberservice.model.VipToBoResultBean *
95
> * *errorCode*   - String
96
> * *errorMsg*    - String
97
> * *memberId*    - String
98
> * *countryId*   - String
99
> * *amount*      - double
100
101
h2. Promo
102
103
h3. promoService
104
105
<pre>
106
com.ecosway.cosway.memberservice.model.PromoResultBean resultBean = service.promoService(PromoRequestBean bean)
107
</pre>
108
109
* *com.ecosway.cosway.memberservice.model.PromoRequestBean*
110
> * *processType*   - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE)
111
> * *centerId*      - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE)
112
> * *promoCode*     - String
113
> * *productCode*   - String 
114
> * *memberId*      - String
115
> * *transactionId* - String (For UPDATE Only)
116
> * *invoiceNo*     - String (For UPDATE Only)
117
> * *invoiceDate*   - Date   (For UPDATE Only)
118
> * *quantity*      - int    (For UPDATE Only)
119
120
* *com.ecosway.cosway.memberservice.model.PromoResultBean*
121
> * *errorCode*   - String
122
> * *errorMsg*    - String
123
> * *quantity*    - int
124
125
126
h2. Voucher
127
128
h3. keyCodeService
129
130
<pre>
131
com.ecosway.cosway.memberservice.model.KeyCodeResultBean keyCodeService(KeyCodeRequestBean bean)
132
</pre>
133
134
* *com.ecosway.cosway.memberservice.model.PromoRequestBean*
135
> * *processType*   - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_KEY_CODE_GET | PROCESS_TYPE_KEY_CODE_ADD | PROCESS_TYPE_KEY_CODE_CANCEL)
136
> * *centerId*      - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE)
137
> * *countryId*     - String
138
> * *keyCode*       - String
139
> * *transactionId* - String (For ADD | CANCEL Only)
140
> * *invoiceNo*     - String (For ADD | CANCEL Only)
141
> * *invoiceDate*   - Date   (For ADD | CANCEL Only)
142
> * *memberId*      - String (For ADD | CANCEL Only)
143
144
* *com.ecosway.cosway.memberservice.model.PromoResultBean*
145
> * *errorCode*     - String
146
> * *errorMsg*      - String
147
> * *status*        - String
148
> * *processType*   - String 
149
> * *centerId*      - String 
150
> * *countryId*     - String
151
> * *transactionId* - String 
152
> * *invoiceNo*     - String (Represent secure code)
153
> * *invoiceDate*   - Date 
154
> * *memberId*      - String 
155
> * *utilized*      - boolean