Project

General

Profile

Actions

Specification » History » Revision 3

« Previous | Revision 3/7 (diff) | Next »
Soh Keong, 11/04/2020 04:54 PM


Specification

Programming Guide

Jar version

version Description
1.13 Init

Jar File Download

Jar
Lib
Properties

properties file

  • service.properties
  1. json.url - provided by DotNet team
  2. wsdl.url - provided by DotNet team
  3. json.key - for encryption
  4. bcard.area.code - for bcard prefix
  5. connection.timeout - set connection timeout
  6. connection.read.timeout - set connection read timeout

Methods

Member

com.ecosway.cosway.memberservice.service.MemberService service = new com.ecosway.cosway.memberservice.service.MemberService();

mobileAppService

com.ecosway.cosway.memberservice.model.MobileAppResultBean resultBean = service.mobileAppService(MobileAppRequestBean bean)
  • com.ecosway.cosway.memberservice.model.MobileAppRequestBean
  • processType - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE | PROCESS_TYPE_LOCK | PROCESS_TYPE_UNLOCK)
  • mobileAppCode - String
  • countryId - String
  • transactionId - String (For UPDATE | LOCK | UNLOCK)
  • centerId - String (For GET | UPDATE)
  • memberId - String (For GET | UPDATE)
  • invoiceNo - String (For UPDATE Only)
  • invoiceDate - String (For UPDATE Only)
  • com.ecosway.cosway.memberservice.model.MobileAppResultBean
  • responseCode - String
  • responseMessage - String
  • memberId - String
  • mobileAppCode - String
  • isLocked - boolean
  • expiryDate - Date
  • prodCode - String

getNewBCardNo

com.ecosway.cosway.memberservice.model.BCardResultBean resultBean = service.getNewBCardNo(String orderId)
  • com.ecosway.cosway.memberservice.model.BCardResultBean
  • errorCode - String
  • errorMsg - String
  • bcardNumber - String

HK

vipToBOService

com.ecosway.cosway.memberservice.model.VipToBoResultBean resultBean = service.vipToBOService(VipToBoRequestBean bean)
  • com.ecosway.cosway.memberservice.model.VipToBoRequestBean
  • processType - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE)
  • centerId - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE)
  • memberId - String
  • countryId - String
  • amount - double
  • transactionId - String (For UPDATE Only)
  • invoiceNo - String (For UPDATE Only)
  • invoiceDate - Date (For UPDATE Only)
  • *com.ecosway.cosway.memberservice.model.VipToBoResultBean *
  • errorCode - String
  • errorMsg - String
  • memberId - String
  • countryId - String
  • amount - double

Promo

promoService

com.ecosway.cosway.memberservice.model.PromoResultBean resultBean = service.promoService(PromoRequestBean bean)
  • com.ecosway.cosway.memberservice.model.PromoRequestBean
  • processType - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_GET | PROCESS_TYPE_UPDATE)
  • centerId - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE)
  • promoCode - String
  • productCode - String
  • memberId - String
  • transactionId - String (For UPDATE Only)
  • invoiceNo - String (For UPDATE Only)
  • invoiceDate - Date (For UPDATE Only)
  • quantity - int (For UPDATE Only)
  • com.ecosway.cosway.memberservice.model.PromoResultBean
  • errorCode - String
  • errorMsg - String
  • quantity - int

Voucher

keyCodeService

com.ecosway.cosway.memberservice.model.KeyCodeResultBean keyCodeService(KeyCodeRequestBean bean)
  • com.ecosway.cosway.memberservice.model.PromoRequestBean
  • processType - String (com.ecosway.cosway.memberservice.constant.CommonConstant.PROCESS_TYPE_KEY_CODE_GET | PROCESS_TYPE_KEY_CODE_ADD | PROCESS_TYPE_KEY_CODE_CANCEL)
  • centerId - String (com.ecosway.cosway.memberservice.constant.CommonConstant.CENTER_ID_ONLINE)
  • countryId - String
  • keyCode - String
  • transactionId - String (For ADD | CANCEL Only)
  • invoiceNo - String (For ADD | CANCEL Only)
  • invoiceDate - Date (For ADD | CANCEL Only)
  • memberId - String (For ADD | CANCEL Only)
  • com.ecosway.cosway.memberservice.model.PromoResultBean
  • errorCode - String
  • errorMsg - String
  • status - String
  • processType - String
  • centerId - String
  • countryId - String
  • transactionId - String
  • invoiceNo - String (Represent secure code)
  • invoiceDate - Date
  • memberId - String
  • utilized - boolean

Updated by Soh Keong about 4 years ago · 3 revisions