Project

General

Profile

Actions

Specification

Programming Guide

Jar version

version Description
1.0 Init
1.1 Fixed decimal issue
1.2 added Utilize param
1.3 added PIN

Jar File Download

Jar
Properties
Library

properties file

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

Methods

Common Instance

com.vouchertw.service.VoucherService service = new com.vouchertw.service.VoucherService();

addVoucher

com.vouchertw.bean.ResponseBean result = service.addVoucher(VoucherTransactionBean bean);
  • com.vouchertw.bean.VoucherTransactionBean
  • stockistId - com.vouchertw.constant.CommonConstant.CENTER_ID_ONLINE
  • memberId - String
  • countryId - String
  • orderId - String
  • orderDate - java.time.LocalDate
  • voucherSet - Set<VoucherBean>
  • voucherCode - String
  • startDate - java.time.LocalDate
  • expiryDate - java.time.LocalDate
  • amount - double
  • point - int
  • voucherName - String
  • promoCode - String
  • pin - String
  • token - System auto assign
  • com.vouchertw.bean.ResponseBean
  • errorCode - String
  • errorMsg - String

getVoucherByMember

com.vouchertw.bean.MemberResponseBean result = service.getVoucherByMember(MemberRequestBeanbean);
  • com.vouchertw.bean.MemberRequestBean
  • stockistId - com.vouchertw.constant.CommonConstant.CENTER_ID_ONLINE
  • memberId - String
  • countryId - String
  • token - System auto assign
  • com.vouchertw.bean.MemberResponseBean
  • errorCode - String
  • errorMsg - String
  • voucherSet - Set<VoucherBean>
  • voucherCode - String
  • startDate - java.time.LocalDate
  • expiryDate - java.time.LocalDate
  • orderDateUse - java.time.LocalDate
  • amount - double
  • point - int
  • voucherName - String
  • promoCode - String
  • orderId - String
  • orderIdUse - String
  • stockistId - String
  • stockistIdUse - String
  • status - String
  • statusMsg - String

getActiveUtilizeVoucherByMember

com.vouchertw.bean.MemberResponseBean result = service.getActiveUtilizeVoucherByMember(VoucherRequestBean bean);
  • com.vouchertw.bean.VoucherTransactionBean
  • stockistId - com.vouchertw.constant.CommonConstant.CENTER_ID_ONLINE
  • memberId - String
  • countryId - String
  • voucherPromoId - String (Optional)
  • voucherSet - Set<VoucherBean> (Optional)
  • voucherCode - String (Optional)
  • promoCode - String (Optional)
  • com.vouchertw.bean.MemberResponseBean
  • errorCode - String
  • errorMsg - String
  • voucherSet - Set<VoucherBean>
  • voucherCode - String
  • startDate - java.time.LocalDate
  • expiryDate - java.time.LocalDate
  • amount - double
  • point - int
  • voucherName - String
  • promoCode - String
  • orderId - String
  • stockistId - String
  • status - String
  • statusMsg - String

Updated by Soh Keong about 3 years ago ยท 14 revisions