Project

General

Profile

Actions

Specification » History » Revision 2

« Previous | Revision 2/4 (diff) | Next »
Soh Keong, 12/07/2020 04:05 PM


Specification

Programming Guide

Jar version

version Description
1.5 Init

Jar File Download

Jar
Lib
Properties

properties file

  • service.properties
  1. json.url -
  2. json.key -
  3. connection.timeout -
  4. 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 -

h3.


Updated by Soh Keong about 4 years ago · 2 revisions