Project

General

Profile

Specification » History » Version 5

Soh Keong, 09/05/2024 12:31 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.15      | Init                   |
11
| 1.16      | Added meaning printout |
12 1 Soh Keong
13
h3. Jar File Download
14
15 5 Soh Keong
"Jar":/redmine/attachments/812
16 1 Soh Keong
"Lib":/redmine/attachments/download/498/serviceJar.zip
17
"Properties":/redmine/attachments/download/499/service.properties
18
19
h3. properties file
20
21
* *service.properties*
22
23
# *json.url*                - provided by DotNet team
24
# *cosway.key*              - provided by DotNet team
25
# *initialization.vector*   - provided by DotNet team
26
# *aes.key*                 - provided by DotNet team
27
# *service.mode*            - provided by DotNet team
28
# *wsdl.url*                - provided by DotNet team
29
# *json.key*                - provided by DotNet team
30
# *connection.timeout*      - set connection timeout
31
# *connection.read.timeout* - set connection read timeout
32
33
h1. Methods
34
35
h2. Pin
36
37
<pre>
38
com.ecosway.cosway.cpsservice.service.CoswayService service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler();
39
</pre>
40
41 4 Soh Keong
h3. getBonusPoint (iGetBonusDetail)
42 1 Soh Keong
43
<pre>
44
com.ecosway.cosway.cpsservice.model.BonusPointResultBean resultBean = service.getBonusPoint(BonusPointBean bean)
45
</pre>
46
47
* *com.ecosway.cosway.cpsservice.model.BonusPointBean*
48
> * *countryId*      - String
49
> * *centerId*       - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE)
50
> * *memberId*       - String
51
52
* *com.ecosway.cosway.cpsservice.model.BonusPointResultBean*
53
> * *errorCode*      - String
54
> * *errorMessage*   - String
55
> * *countryId*      - String
56
> * *centerId*       - String
57
> * *memberId*       - String
58
> * *bonusPoint*     - double
59 2 Soh Keong
60 4 Soh Keong
h3. getPinResult (iMemeberPINProcess)
61 2 Soh Keong
62
<pre>
63
com.ecosway.cosway.cpsservice.model.PinResultBean resultBean = service.getPinResult(PinBean bean)
64
</pre>
65
66
* *com.ecosway.cosway.cpsservice.model.PinBean*
67
> * *countryId*      - String
68
> * *centerId*       - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE)
69
> * *memberId*       - String
70
> * *transactionId*  - String
71
> * *pin*            - String
72
> * *memberType*     - String 
73
74
* *com.ecosway.cosway.cpsservice.model.PinResultBean*
75
> * *errorCode*      - String
76
> * *errorMessage*   - String
77
> * *countryId*      - String
78
> * *centerId*       - String
79
> * *memberId*       - String
80
> * *transactionId*  - String
81
82
83
h2. Transaction
84
85
<pre>
86
com.ecosway.cosway.cpsservice.service.TransactionHandler service = new com.ecosway.cosway.cpsservice.service.TransactionHandler();
87
</pre>
88
89 4 Soh Keong
h3. getTrxProcess (eTrxProcess) / getTrxWithdraw (getTrxWithdraw)/ getTrxSalesLock (eTrxSalesLock)
90 2 Soh Keong
91
<pre>
92
com.ecosway.cosway.cpsservice.model.TransactionResultBean resultBean = service.getTrxProcess(TransactionBean bean)
93
com.ecosway.cosway.cpsservice.model.TransactionResultBean resultBean = service.getTrxWithdraw(TransactionBean bean)
94
com.ecosway.cosway.cpsservice.model.TransactionResultBean resultBean = service.getTrxSalesLock(TransactionBean bean)
95
</pre>
96
97
* *com.ecosway.cosway.cpsservice.model.TransactionBean*
98
> * *countryId*       - String
99
> * *centerId*        - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE)
100
> * *memberId*        - String
101
> * *transactionId*   - String
102
> * *pin*             - String  
103
> * *foreigner*       - boolean 
104
> * *currencyRate*    - double
105
> * *processBeanList* - List<TransactionProcessBean>
106
>> * *salesType* - 
107
>> * *invNo* - 
108
>> * *poNo* - 
109
>> * *invDate* - 
110
>> * *oriInvDate* - 
111
>> * *earnedPoint* - 
112
>> * *utilizedPoint* - 
113
>> * *amount* - 
114
>> * *expiryDate* - 
115
>> * *remarks* - 
116
>> * *remarksBy* - 
117
118
* *com.ecosway.cosway.cpsservice.model.TransactionResultBean*
119
> * *errorCode*              - String
120
> * *errorMessage*           - String
121
> * *totalSales*             - String
122
> * *monthYear*              - String
123
> * *activationDate*         - String
124
> * *ePoint*                 - String
125
> * *eAcc*                   - String
126
> * *totalCashWithdrawToday* - String
127
> * *passwordAttempt*        - String
128
> * *salesLocked*            - String
129
> * *currencyRate*           - String
130
131 4 Soh Keong
h3. transferRC (eRCTransferProcess)
132 2 Soh Keong
133
<pre>
134
com.ecosway.cosway.cpsservice.model.CommonResultBean resultBean =  service.transferRC(RCTransferBean bean)
135
</pre>
136
137
* *com.ecosway.cosway.cpsservice.model.RCTransferBean*
138
> * *transactionId*    - String
139
> * *countryId*        - String
140
> * *centerId*         - String
141
> * *invNo*            - String
142
> * *invDate*          - String
143
> * *pin*              - String
144
> * *memberIdFrom*     - String
145
> * *memberIdTo*       - String
146
> * *point*            - String
147
> * *pointFee*         - String
148
> * *companyCodeFrom*  - String
149
> * *companyCodeTo*    - String
150
> * *remarks*          - String
151
> * *remarksBy*        - String
152
153
* *com.ecosway.cosway.cpsservice.model.PinResultBean*
154
> * *errorCode*      - String
155
> * *errorMessage*   - String
156
> * *countryId*      - String
157
> * *centerId*       - String
158
> * *memberId*       - String
159
160
161 3 Soh Keong
h2. Member
162
163
<pre>
164
com.ecosway.cosway.cpsservice.service.UpdateMemberHandler service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler();
165
</pre>
166
167 4 Soh Keong
h3. getMemberDetail (iGetMemberDetail)/ updateMemberActivation (iUpdateMemberDetail)
168 3 Soh Keong
169
<pre>
170
com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.getMemberDetail(UpdateMemberBean bean)
171
com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.updateMemberActivation(UpdateMemberBean bean)
172
</pre>
173
174
* *com.ecosway.cosway.cpsservice.model.UpdateMemberBean*
175
> * *countryId*       - String
176
> * *centerId*        - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE)
177
> * *memberId*        - String
178
> * *foreigner*       - boolean
179
> * *transactionId*   - String (For Update Only)
180
> * *actionCode*      - String (For Update Only)
181
> * *activationDate*  - Date   (For Update Only)
182
183
* *com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean*
184
> * *errorCode*      - String
185
> * *errorMessage*   - String
186
> * *totalSales*     - String
187
> * *monthYear*      - String
188
> * *activationDate* - Date