Actions
Specification » History » Revision 3
« Previous |
Revision 3/5
(diff)
| Next »
Soh Keong, 10/26/2020 03:10 PM
- Table of contents
- Specification
- Methods
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.6 | Init |
Jar File Download¶
properties file¶
- service.properties
- json.url - China server URL
- online.key - for encryption
- connection.timeout - set connection timeout
- 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
Updated by Soh Keong about 4 years ago · 3 revisions