Project

General

Profile

Specification » History » Revision 2

Revision 1 (Soh Keong, 11/03/2020 10:41 AM) → Revision 2/5 (Soh Keong, 11/03/2020 03:08 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 


 // TODO Member