Actions
Specification » History » Revision 3
« Previous |
Revision 3/4
(diff)
| Next »
Soh Keong, 12/07/2020 04:29 PM
- Table of contents
- Specification
- Programming Guide
Specification¶
Programming Guide¶
Jar version¶
version | Description |
---|---|
1.5 | Init |
Jar File Download¶
properties file¶
- service.properties
- json.url -
- json.key -
- connection.timeout -
- connection.read.timeout -
Methods¶
Common Instance¶
com.cosway.gift.service.GiftCardService service = new com.cosway.gift.service.GiftCardService();
checkGiftCard¶
com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.checkGiftCard(GiftCardCheckBean bean)
- com.cosway.gift.bean.request.GiftCardCheckBean
- countryId -
- centerId - com.cosway.gift.constant.CommonConstant.CENTER_ID_ONLINE
- giftCardList - List<GiftCardBean>
- cardSerialNo -
- pinCode -
- com.cosway.gift.bean.response.GiftCardCheckResponseBean
- errorCode -
- errorMsg -
- totalRecord -
- giftCardList - List<GiftCardDetail>
- errorCode -
- errorMsg -
- serialNo -
- startDate - with pinCode only
- expiryDate -
- value - with pinCode only
- memberId -
utilizeGiftCard¶
com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.utilizeGiftCard(GiftCardTransactionBean bean)
- *com.cosway.gift.bean.request.GiftCardTransactionBean *
- transactionId -
- orderId -
- orderDate - Date
- amount - double
- countryId -
- centerId - com.cosway.gift.constant.CommonConstant.CENTER_ID_ONLINE
- giftCardList - List<GiftCardBean>
- cardSerialNo -
- pinCode -
- com.cosway.gift.bean.response.GiftCardCheckResponseBean
- errorCode -
- errorMsg -
- totalRecord -
- giftCardList - List<GiftCardDetail>
- errorCode -
- errorMsg -
- serialNo -
lockGiftCard¶
com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.lockGiftCard(GiftCardTransactionBean bean) com.cosway.gift.bean.response.GiftCardCheckResponseBean resultBean = service.unlockGiftCard(GiftCardTransactionBean bean)
- *com.cosway.gift.bean.request.GiftCardTransactionBean *
- transactionId -
- countryId -
- centerId - com.cosway.gift.constant.CommonConstant.CENTER_ID_ONLINE
- giftCardList - List<GiftCardBean>
- cardSerialNo -
- pinCode -
- com.cosway.gift.bean.response.GiftCardCheckResponseBean
- errorCode -
- errorMsg -
- totalRecord -
- giftCardList - List<GiftCardDetail>
- errorCode -
- errorMsg -
- serialNo -
- startDate -
- expiryDate -
- value -
- memberId -
Updated by Soh Keong about 4 years ago · 3 revisions