Project

General

Profile

Specification » History » Revision 3

Revision 2 (Soh Keong, 11/03/2020 03:08 PM) → Revision 3/5 (Soh Keong, 11/04/2020 05:57 PM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 1.15        | Init             | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/497/coswayService-1.15.jar 
 "Lib":/redmine/attachments/download/498/serviceJar.zip 
 "Properties":/redmine/attachments/download/499/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url*                  - provided by DotNet team 
 # *cosway.key*                - provided by DotNet team 
 # *initialization.vector*     - provided by DotNet team 
 # *aes.key*                   - provided by DotNet team 
 # *service.mode*              - provided by DotNet team 
 # *wsdl.url*                  - provided by DotNet team 
 # *json.key*                  - provided by DotNet team 
 # *connection.timeout*        - set connection timeout 
 # *connection.read.timeout* - set connection read timeout 

 h1. Methods 

 h2. Pin 

 <pre> 
 com.ecosway.cosway.cpsservice.service.CoswayService service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler(); 
 </pre> 

 h3. getBonusPoint 

 <pre> 
 com.ecosway.cosway.cpsservice.model.BonusPointResultBean resultBean = service.getBonusPoint(BonusPointBean bean) 
 </pre> 

 * *com.ecosway.cosway.cpsservice.model.BonusPointBean* 
 > * *countryId*        - String 
 > * *centerId*         - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *memberId*         - String 

 * *com.ecosway.cosway.cpsservice.model.BonusPointResultBean* 
 > * *errorCode*        - String 
 > * *errorMessage*     - String 
 > * *countryId*        - String 
 > * *centerId*         - String 
 > * *memberId*         - String 
 > * *bonusPoint*       - double 

 h3. getPinResult 

 <pre> 
 com.ecosway.cosway.cpsservice.model.PinResultBean resultBean = service.getPinResult(PinBean bean) 
 </pre> 

 * *com.ecosway.cosway.cpsservice.model.PinBean* 
 > * *countryId*        - String 
 > * *centerId*         - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *memberId*         - String 
 > * *transactionId*    - String 
 > * *pin*              - String 
 > * *memberType*       - String  

 * *com.ecosway.cosway.cpsservice.model.PinResultBean* 
 > * *errorCode*        - String 
 > * *errorMessage*     - String 
 > * *countryId*        - String 
 > * *centerId*         - String 
 > * *memberId*         - String 
 > * *transactionId*    - String 


 h2. Transaction 

 <pre> 
 com.ecosway.cosway.cpsservice.service.TransactionHandler service = new com.ecosway.cosway.cpsservice.service.TransactionHandler(); 
 </pre> 

 h3. getTrxProcess / getTrxWithdraw / getTrxSalesLock 

 <pre> 
 com.ecosway.cosway.cpsservice.model.TransactionResultBean resultBean = service.getTrxProcess(TransactionBean bean) 
 com.ecosway.cosway.cpsservice.model.TransactionResultBean resultBean = service.getTrxWithdraw(TransactionBean bean) 
 com.ecosway.cosway.cpsservice.model.TransactionResultBean resultBean = service.getTrxSalesLock(TransactionBean bean) 
 </pre> 

 * *com.ecosway.cosway.cpsservice.model.TransactionBean* 
 > * *countryId*         - String 
 > * *centerId*          - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *memberId*          - String 
 > * *transactionId*     - String 
 > * *pin*               - String   
 > * *foreigner*         - boolean  
 > * *currencyRate*      - double 
 > * *processBeanList* - List<TransactionProcessBean> 
 >> * *salesType* -  
 >> * *invNo* -  
 >> * *poNo* -  
 >> * *invDate* -  
 >> * *oriInvDate* -  
 >> * *earnedPoint* -  
 >> * *utilizedPoint* -  
 >> * *amount* -  
 >> * *expiryDate* -  
 >> * *remarks* -  
 >> * *remarksBy* -  

 * *com.ecosway.cosway.cpsservice.model.TransactionResultBean* 
 > * *errorCode*                - String 
 > * *errorMessage*             - String 
 > * *totalSales*               - String 
 > * *monthYear*                - String 
 > * *activationDate*           - String 
 > * *ePoint*                   - String 
 > * *eAcc*                     - String 
 > * *totalCashWithdrawToday* - String 
 > * *passwordAttempt*          - String 
 > * *salesLocked*              - String 
 > * *currencyRate*             - String 

 h3. transferRC 

 <pre> 
 com.ecosway.cosway.cpsservice.model.CommonResultBean resultBean =    service.transferRC(RCTransferBean bean) 
 </pre> 

 * *com.ecosway.cosway.cpsservice.model.RCTransferBean* 
 > * *transactionId*      - String 
 > * *countryId*          - String 
 > * *centerId*           - String 
 > * *invNo*              - String 
 > * *invDate*            - String 
 > * *pin*                - String 
 > * *memberIdFrom*       - String 
 > * *memberIdTo*         - String 
 > * *point*              - String 
 > * *pointFee*           - String 
 > * *companyCodeFrom*    - String 
 > * *companyCodeTo*      - String 
 > * *remarks*            - String 
 > * *remarksBy*          - String 

 * *com.ecosway.cosway.cpsservice.model.PinResultBean* 
 > * *errorCode*        - String 
 > * *errorMessage*     - String 
 > * *countryId*        - String 
 > * *centerId*         - String 
 > * *memberId*         - String 


 h2. // TODO Member 

 <pre> 
 com.ecosway.cosway.cpsservice.service.UpdateMemberHandler service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler(); 
 </pre> 

 h3. getMemberDetail / updateMemberActivation 

 <pre> 
 com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.getMemberDetail(UpdateMemberBean bean) 
 com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.updateMemberActivation(UpdateMemberBean bean) 
 </pre> 

 * *com.ecosway.cosway.cpsservice.model.UpdateMemberBean* 
 > * *countryId*         - String 
 > * *centerId*          - String (com.ecosway.cosway.cpsservice.constant.CommonConstant.CENTER_ID_ONLINE) 
 > * *memberId*          - String 
 > * *foreigner*         - boolean 
 > * *transactionId*     - String (For Update Only) 
 > * *actionCode*        - String (For Update Only) 
 > * *activationDate*    - Date     (For Update Only) 

 * *com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean* 
 > * *errorCode*        - String 
 > * *errorMessage*     - String 
 > * *totalSales*       - String 
 > * *monthYear*        - String 
 > * *activationDate* - Date