Project

General

Profile

Actions

Specification » History » Revision 4

« Previous | Revision 4/5 (diff) | Next »
Soh Keong, 10/26/2020 04:00 PM


Specification

Programming Guide

Jar version

version Description
1.6 Init

Jar File Download

Jar
Lib
Properties

properties file

  • service.properties
  1. json.url - China server URL
  2. online.key - for encryption
  3. connection.timeout - set connection timeout
  4. connection.read.timeout - set connection read timeout

Methods

Voucher

com.vmcn.online.service.VoucherService service = new com.vmcn.online.service.VoucherService();

getActiveVoucherByMemberId / getActiveVoucherByVoucherCode / getVoucherByMemberId / getVoucherByMemberIdVoucherType

com.vmcn.online.model.VoucherByMemberIdResultBean resultBean = service.getVoucherByMemberId(String memberId)
com.vmcn.online.model.VoucherByMemberIdResultBean resultBean = service.getActiveVoucherByMemberId(String memberId)
com.vmcn.online.model.VoucherByMemberIdResultBean resultBean = service.getActiveVoucherByVoucherCode(String voucherCode)
com.vmcn.online.model.VoucherByMemberIdResultBean resultBean = service.getVoucherByMemberIdVoucherType(String memberId, String voucherType)
  • com.vmcn.online.model.VoucherByMemberIdResultBean
  • responseCode - String
  • responseMessage - String
  • voucherBeanList - List<VoucherFullDetailBean>
  • earnStoreCode - String
  • earnInvoiceNo - String
  • earnInvoiceDate - Date
  • earnMemberId - String
  • utilizeStoreCode - String
  • utilizeInvoiceNo - String
  • utilizeInvoiceDate - Date
  • utilizeMemberId - String
  • effectiveDate - Date
  • expiryDate - Date
  • amount - double
  • memberId - String
  • lockPeriod - int
  • voucherCode - String
  • voucherType - String
  • status - String

queryVoucher

com.vmcn.online.model.VoucherQueryResultBean resultBean = service.queryVoucher(VoucherQueryBean bean) 
  • com.vmcn.online.model.VoucherQueryBean
  • voucherList - List<VoucherCommonBean>
  • voucherCode - String
  • voucherType - String
  • com.vmcn.online.model.VoucherQueryResultBean
  • responseCode - String
  • responseMessage - String
  • voucherBeanList - List<VoucherDetailBean>
  • voucherCode - String
  • voucherType - String
  • status - String
  • effectiveDate - Date
  • expiryDate - Date
  • amount - double
  • memberId - String

updateVoucher / voidVoucher

com.vmcn.online.model.ResultBean resultBean = service.updateVoucher(VoucherUtilizeBean bean)
com.vmcn.online.model.ResultBean resultBean = service.ResultBean voidVoucher(VoucherUtilizeBean bean)
  • com.vmcn.online.model.VoucherUtilizeBean
  • orderId - String
  • orderCreateDatetime - Date
  • memberId - String
  • storeCode - String
  • modifyBy - String
  • voucherList - List
  • voucherCode - String
  • voucherType - String
  • com.vmcn.online.model.VoucherQueryResultBean
  • responseCode - String
  • responseMessage - String

Scheme

com.vmcn.online.service.SchemeService service = new com.vmcn.online.service.SchemeService();

queryScheme

com.vmcn.online.model.SchemeResultBean resultBean = service.queryScheme(SchemeBean bean)
  • com.vmcn.online.model.SchemeBean
  • scheme - String
  • memberId - String
  • com.vmcn.online.model.SchemeResultBean
  • responseCode - String
  • responseMessage - String
  • balance - int
  • totalTransaction - int
  • maxQty - int
  • maxTransaction - int
  • maxPerTransaction - int

com.vmcn.online.model.PostBean resultBean = service.updateScheme(SchemeBean bean)

  • com.vmcn.online.model.SchemeBean
  • scheme - String
  • memberId - String
  • com.vmcn.online.model.PostBean
  • responseCode - String
  • responseMessage - String

VP

com.vmcn.online.service.VPServiceservice = new com.vmcn.online.service.VPService();

queryVP / lockVP / updateVP

com.vmcn.online.model.VPResultBean resultBean = service.queryVP(String memberId);
com.vmcn.online.model.VPResultBean resultBean = service.lockVP(VPTransactionBean bean)
com.vmcn.online.model.VPResultBean resultBean = service.updateVP(VPTransactionBean bean)
  • com.vmcn.online.model.VPTransactionBean
  • memberId - String
  • orderId - String
  • orderDate - date
  • createdBy - String
  • trxCode - String
  • vpEarn - int
  • vpUtilize - int
  • com.vmcn.online.model.VPResultBean
  • responseCode - String
  • responseMessage - String
  • vpBalance - int
  • lock - boolean

Passcode

com.vmcn.online.service.PasscodeService service = new com.vmcn.online.service.PasscodeService();

queryPasscode / utilizePasscode

com.vmcn.online.model.PostBean resultBean = service.queryPasscode(String passcode)
com.vmcn.online.model.PostBean resultBean = service.utilizePasscode(PasscodeBean bean)
  • com.vmcn.online.model.PasscodeBean
  • passcode - String
  • createdBy - String
  • com.vmcn.online.model.PostBean
  • responseCode - String
  • responseMessage - String

Updated by Soh Keong about 4 years ago · 4 revisions