Specification » History » Revision 5
Revision 4 (Soh Keong, 04/01/2021 12:07 PM) → Revision 5/6 (Soh Keong, 09/05/2024 12:31 PM)
{{toc}} h1. Specification h2. Programming Guide h3. Jar version |_. version |_. Description | | 1.15 | Init | | 1.16 | Added meaning printout | h3. Jar File Download "Jar":/redmine/attachments/812 "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 (iGetBonusDetail) <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 (iMemeberPINProcess) <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 (eTrxProcess) / getTrxWithdraw (getTrxWithdraw)/ getTrxSalesLock (eTrxSalesLock) <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 (eRCTransferProcess) <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. Member <pre> com.ecosway.cosway.cpsservice.service.UpdateMemberHandler service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler(); </pre> h3. getMemberDetail (iGetMemberDetail)/ updateMemberActivation (iUpdateMemberDetail) <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