Project

General

Profile

Actions

Specification

Programming Guide

Jar version

version Description
2.2 Init

Jar File Download

Jar
Lib
Properties

properties file

  • service.properties
  1. ws.key - Provided by bInfinite
  2. ws.company.code - Provided by bInfinite
  3. ws.branch.code - Provided by bInfinite
  4. ws.post.id - Provided by bInfinite

Methods

Common Instance

com.cosway.bcard.service.BcardService service = new com.cosway.bcard.service.BcardService();

Point Inquiry (pointinquiry)

com.cosway.bcard.bean.PointResultBean resultBean = service.pointInquiry(CardBean cardBean);
  • com.cosway.bcard.bean.CardBean
  • bcardNo - bInfinite card number
  • password - bInfinite card's password
  • com.cosway.bcard.bean.PointResultBean
  • errorCode - String
  • errorMessage - String
  • bcardNo - String
  • principalPoint - int
  • tokenPoint - int
  • mintoken - int
  • totalpoint - int

Check Card (checkCard)

com.cosway.bcard.bean.CheckCardResultBean resultBean = service.checkCard(String cardNumber);
  • com.cosway.bcard.bean.CheckCardResultBean
  • errorCode - String
  • errorMessage - String
  • bcardNo - String
  • status - String

Redemption (redemption)| Void Redemption (voidredemption)

com.cosway.bcard.bean.RedemptionResultBean resultBean = service.redemption(RedemptionBean redempBean);
com.cosway.bcard.bean.RedemptionResultBean resultBean = service.voidRedemption(RedemptionBean redempBean);
  • com.cosway.bcard.bean.RedemptionBean
  • bcardNo - String
  • password - String
  • trxDate - Date
  • point - int
  • com.cosway.bcard.bean.RedemptionResultBean
  • errorCode - String
  • errorMessage - String
  • bcardNo - String
  • redemptionId - String
  • redemptionDate - Date
  • balancePoint - int

Reward (reward) | Void Reward (voidreward)

com.cosway.bcard.bean.RewardResultBean resultBean = service.reward(RewardBean redempBean);
com.cosway.bcard.bean.RewardResultBean resultBean = service.voidReward(RewardBean redempBean);
  • com.cosway.bcard.bean.RewardBean
  • bcardNo - String
  • orderId - String
  • trxDate - Date
  • totalAmount - double
  • totalPoint - int
  • com.cosway.bcard.bean.RewardResultBean
  • errorCode - String
  • errorMessage - String
  • bcardNo - String
  • rewardId - String
  • rewardDate - Date

Register Member (registerMember)

com.cosway.bcard.bean.ResultBean resultBean = service.registerMember(RegistrationBean bean);
  • com.cosway.bcard.bean.RegistrationBean
  • bcardNo - String (Mantadory)
  • memberFullName - String (Mantadory)
  • memberIc - String (Mantadory)
  • homeEmail - String (Mantadory)
  • mobilePhone - String (Mantadory)
  • memberTitle - String
  • memberDOB - Date
  • gender - String
  • race - String
  • nationality - String
  • maritalStatus - String
  • ownCar - boolean
  • ownCreditCard - boolean
  • homeAddress1 - String
  • homeAddress2 - String
  • homeAddress3 - String
  • homeCity - String
  • homeState - String
  • homeCountry - String
  • homePostcode - String
  • homePhone - String
  • officeAddress1 - String
  • officeAddress2 - String
  • officeAddress3 - String
  • officeCity - String
  • officeState - String
  • officeCountry - String
  • officePostcode - String
  • officeEmail - String
  • officePhone - String
  • officeExt - String
  • officeFax - String
  • msisdn - String
  • com.cosway.bcard.bean.ResultBean
  • errorCode - String
  • errorMessage - String

Updated by Soh Keong over 3 years ago ยท 6 revisions