Project

General

Profile

Specification » History » Version 2

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