Project

General

Profile

Actions

Specification » History » Revision 1

Revision 1/10 | Next »
Soh Keong, 10/27/2020 12:04 PM


Specification

Programming Guide

Jar version

version Description
2.2 Init

Jar File Download

Jar
Properties

properties file

  • service.properties
  1. json.url - Dotnet team URL
  2. json.key - provided by json
  3. connection.timeout - set connection timeout
  4. connection.read.timeout - set connection read timeout

Methods

Common Instance

com.cosway.voucher.service.VoucherService service = new com.cosway.voucher.service.VoucherService();

getRandomByType

com.cosway.voucher.bean.response.VoucherRandomResponseBean resultBean = service.getRandomByType(VoucherRandomByType voucherBean)
  • com.cosway.voucher.bean.request.VoucherRandomByType
  • quantity - Int
  • voucherType - String
  • com.cosway.voucher.bean.response.VoucherRandomResponseBean
  • errorCode - String
  • errorMsg - String
  • totalRecords - Int
  • voucherList - List<VoucherBean>
  • voucherCode - String

checkVoucher / getVoucherByMemberId

com.cosway.voucher.bean.response.VoucherCheckResponseBean resultBean = service.checkVoucher(VoucherCheckBean bean)
com.cosway.voucher.bean.response.VoucherCheckResponseBean resultBean = service.getVoucherByMemberId(VoucherByMemberId bean)
  • com.cosway.voucher.bean.request.VoucherCheckBean
  • memberId - String
  • voucherList - List<VoucherBean>
  • voucherCode - String
  • com.cosway.voucher.bean.request.VoucherByMemberId
  • memberId - String
  • com.cosway.voucher.bean.response.VoucherCheckResponseBean
  • errorCode - String
  • errorMsg - String
  • totalRecords - Int
  • voucherList - List<VoucherDetailBean>
  • errorCode - String
  • errorMsg - String
  • voucherCode - String
  • memberId - String
  • startDate - Date
  • expiryDate - Date
  • amount - double
  • lock - boolean
  • bookingStatus - String
  • promoCode - String

addVoucher / cancelVoucher / utilizeVoucher / lockVoucher / unlockVoucher


Updated by Soh Keong about 4 years ago · 1 revisions