Project

General

Profile

Actions

Specification » History » Revision 5

« Previous | Revision 5/6 (diff) | Next »
Soh Keong, 09/05/2024 12:31 PM


Specification

Programming Guide

Jar version

version Description
1.15 Init
1.16 Added meaning printout

Jar File Download

Jar
Lib
Properties

properties file

  • service.properties
  1. json.url - provided by DotNet team
  2. cosway.key - provided by DotNet team
  3. initialization.vector - provided by DotNet team
  4. aes.key - provided by DotNet team
  5. service.mode - provided by DotNet team
  6. wsdl.url - provided by DotNet team
  7. json.key - provided by DotNet team
  8. connection.timeout - set connection timeout
  9. connection.read.timeout - set connection read timeout

Methods

Pin

com.ecosway.cosway.cpsservice.service.CoswayService service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler();

getBonusPoint (iGetBonusDetail)

com.ecosway.cosway.cpsservice.model.BonusPointResultBean resultBean = service.getBonusPoint(BonusPointBean bean)
  • 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

getPinResult (iMemeberPINProcess)

com.ecosway.cosway.cpsservice.model.PinResultBean resultBean = service.getPinResult(PinBean bean)
  • 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

Transaction

com.ecosway.cosway.cpsservice.service.TransactionHandler service = new com.ecosway.cosway.cpsservice.service.TransactionHandler();

getTrxProcess (eTrxProcess) / getTrxWithdraw (getTrxWithdraw)/ getTrxSalesLock (eTrxSalesLock)

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)
  • 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

transferRC (eRCTransferProcess)

com.ecosway.cosway.cpsservice.model.CommonResultBean resultBean =  service.transferRC(RCTransferBean bean)
  • 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

Member

com.ecosway.cosway.cpsservice.service.UpdateMemberHandler service = new com.ecosway.cosway.cpsservice.service.UpdateMemberHandler();

getMemberDetail (iGetMemberDetail)/ updateMemberActivation (iUpdateMemberDetail)

com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.getMemberDetail(UpdateMemberBean bean)
com.ecosway.cosway.cpsservice.model.UpdateMemberResultBean resultBean = service.updateMemberActivation(UpdateMemberBean bean)
  • 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

Updated by Soh Keong 4 months ago · 5 revisions