Specification » History » Version 4
Soh Keong, 04/01/2021 12:07 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 | 4 | Soh Keong | h3. getBonusPoint (iGetBonusDetail) |
41 | 1 | Soh Keong | |
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 | 4 | Soh Keong | h3. getPinResult (iMemeberPINProcess) |
60 | 2 | Soh Keong | |
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 | 4 | Soh Keong | h3. getTrxProcess (eTrxProcess) / getTrxWithdraw (getTrxWithdraw)/ getTrxSalesLock (eTrxSalesLock) |
89 | 2 | Soh Keong | |
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 | 4 | Soh Keong | h3. transferRC (eRCTransferProcess) |
131 | 2 | Soh Keong | |
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 | 3 | Soh Keong | h2. Member |
161 | |||
162 | <pre> |
||
163 | com.ecosway.cosway.cpsservice.service.UpdateMemberHandler service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler(); |
||
164 | </pre> |
||
165 | |||
166 | 4 | Soh Keong | h3. getMemberDetail (iGetMemberDetail)/ updateMemberActivation (iUpdateMemberDetail) |
167 | 3 | Soh Keong | |
168 | <pre> |
||
169 | com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.getMemberDetail(UpdateMemberBean bean) |
||
170 | com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.updateMemberActivation(UpdateMemberBean bean) |
||
171 | </pre> |
||
172 | |||
173 | * *com.ecosway.cosway.cpsservice.model.UpdateMemberBean* |
||
174 | > * *countryId* - String |
||
175 | > * *centerId* - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE) |
||
176 | > * *memberId* - String |
||
177 | > * *foreigner* - boolean |
||
178 | > * *transactionId* - String (For Update Only) |
||
179 | > * *actionCode* - String (For Update Only) |
||
180 | > * *activationDate* - Date (For Update Only) |
||
181 | |||
182 | * *com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean* |
||
183 | > * *errorCode* - String |
||
184 | > * *errorMessage* - String |
||
185 | > * *totalSales* - String |
||
186 | > * *monthYear* - String |
||
187 | > * *activationDate* - Date |