Actions
Specification » History » Revision 4
« Previous |
Revision 4/14
(diff)
| Next »
Soh Keong, 08/11/2021 04:11 PM
- Table of contents
- Specification
- Programming Guide
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.0 | Init |
Jar File Download¶
"Jar":
"Properties":
properties file¶
- service.properties
- json.url - Dotnet team URL
- json.key - provided by Dotnet
- aes.key - provided by Dotnet
- connection.timeout - set connection timeout
- 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 - String
- 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
- 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 - String
- 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
- amount - double
- point - int
- voucherName - String
- promoCode - String
- orderId - String
- stockistId - String
- errorCode - String
- errorMsg - String
getActiveUtilizeVoucherByMember¶
com.vouchertw.bean.MemberResponseBean result = service.getActiveUtilizeVoucherByMember(VoucherRequestBean bean);
- com.vouchertw.bean.VoucherTransactionBean
- stockistId - String
- 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
- errorCode - String
- errorMsg - String
Updated by Soh Keong over 3 years ago · 4 revisions