Project

General

Profile

Specification » History » Version 6

Soh Keong, 04/01/2021 02:11 PM

1 5 Soh Keong
{{toc}}
2
3 1 Soh Keong
h1. Specification
4
5
h1. Programming Guide
6
7 4 Soh Keong
h3. Jar version 
8 1 Soh Keong
9 4 Soh Keong
|_. version |_. Description  |
10
| 2.2       | Init           |
11 1 Soh Keong
12
h3. Jar File Download
13
14
"Jar":/redmine/attachments/download/481/bcard-infinite-2.2.jar
15
"Lib":/redmine/attachments/download/482/json_lib.zip
16
"Properties":/redmine/attachments/download/480/service.properties
17
18
h3. properties file
19
20
* *service.properties*
21
22
# *ws.key*          - Provided by bInfinite
23
# *ws.company.code* - Provided by bInfinite
24
# *ws.branch.code*  - Provided by bInfinite
25
# *ws.post.id*      - Provided by bInfinite
26
27
h2. Methods
28
29
h3. Common Instance
30
31
<pre>
32
com.cosway.bcard.service.BcardService service = new com.cosway.bcard.service.BcardService();
33
</pre>
34
35 6 Soh Keong
h3. Point Inquiry (pointinquiry)
36 1 Soh Keong
37
<pre>
38
com.cosway.bcard.bean.PointResultBean resultBean = service.pointInquiry(CardBean cardBean);
39
</pre>
40
41
* *com.cosway.bcard.bean.CardBean*
42
> * *bcardNo*   - bInfinite card number
43
> * *password*  - bInfinite card's password
44
45
* *com.cosway.bcard.bean.PointResultBean*
46
> * *errorCode*       - String
47
> * *errorMessage*    - String 
48
> * *bcardNo*         - String
49
> * *principalPoint*  - int
50
> * *tokenPoint*      - int
51
> * *mintoken*        - int
52
> * *totalpoint*      - int
53
54 6 Soh Keong
h3. Check Card (checkCard)
55 1 Soh Keong
56
<pre>
57 2 Soh Keong
com.cosway.bcard.bean.CheckCardResultBean resultBean = service.checkCard(String cardNumber);
58 1 Soh Keong
</pre>
59
60
* *com.cosway.bcard.bean.CheckCardResultBean*
61
> * *errorCode*       - String
62
> * *errorMessage*    - String 
63
> * *bcardNo*         - String
64
> * *status*          - String
65 2 Soh Keong
66 6 Soh Keong
h3. Redemption (redemption)| Void Redemption (voidredemption)
67 2 Soh Keong
68 1 Soh Keong
<pre>
69 3 Soh Keong
com.cosway.bcard.bean.RedemptionResultBean resultBean = service.redemption(RedemptionBean redempBean);
70
com.cosway.bcard.bean.RedemptionResultBean resultBean = service.voidRedemption(RedemptionBean redempBean);
71 2 Soh Keong
</pre>
72
73
* *com.cosway.bcard.bean.RedemptionBean*
74
> * *bcardNo*       - String
75
> * *password*      - String
76 1 Soh Keong
> * *trxDate*       - Date
77 2 Soh Keong
> * *point*         - int
78
79 3 Soh Keong
* *com.cosway.bcard.bean.RedemptionResultBean*
80 2 Soh Keong
> * *errorCode*       - String
81
> * *errorMessage*    - String 
82
> * *bcardNo*         - String
83 1 Soh Keong
> * *redemptionId*    - String
84
> * *redemptionDate*  - Date
85
> * *balancePoint*    - int
86 3 Soh Keong
87 6 Soh Keong
h3. Reward (reward) | Void Reward (voidreward)
88 3 Soh Keong
89
<pre>
90
com.cosway.bcard.bean.RewardResultBean resultBean = service.reward(RewardBean redempBean);
91
com.cosway.bcard.bean.RewardResultBean resultBean = service.voidReward(RewardBean redempBean);
92
</pre>
93
94
* *com.cosway.bcard.bean.RewardBean*
95
> * *bcardNo*       - String
96
> * *orderId*       - String
97
> * *trxDate*       - Date
98
> * *totalAmount*   - double
99
> * *totalPoint*    - int
100
101
* *com.cosway.bcard.bean.RewardResultBean*
102
> * *errorCode*    - String
103
> * *errorMessage* - String 
104
> * *bcardNo*      - String
105
> * *rewardId*     - String
106
> * *rewardDate*   - Date
107
108
109 6 Soh Keong
h3. Register Member (registerMember)
110 3 Soh Keong
111
<pre>
112
com.cosway.bcard.bean.ResultBean resultBean = service.registerMember(RegistrationBean bean);
113
</pre>
114
115
* *com.cosway.bcard.bean.RegistrationBean*
116
> * *bcardNo*        - String (Mantadory)
117
> * *memberFullName* - String (Mantadory)
118
> * *memberIc*       - String (Mantadory)
119
> * *homeEmail*      - String (Mantadory)
120
> * *mobilePhone*    - String (Mantadory)
121
> * *memberTitle*    - String
122
> * *memberDOB*      - Date
123
> * *gender*         - String
124
> * *race*           - String
125
> * *nationality*    - String
126
> * *maritalStatus*  - String
127
> * *ownCar*         - boolean
128
> * *ownCreditCard*  - boolean
129
> * *homeAddress1*        - String
130
> * *homeAddress2*        - String
131
> * *homeAddress3*        - String
132
> * *homeCity*        - String
133
> * *homeState*        - String
134
> * *homeCountry*        - String
135
> * *homePostcode*        - String
136
> * *homePhone*        - String
137
> * *officeAddress1*        - String
138
> * *officeAddress2*        - String
139
> * *officeAddress3*        - String
140
> * *officeCity*        - String
141
> * *officeState*        - String
142
> * *officeCountry*        - String
143
> * *officePostcode*        - String
144
> * *officeEmail*        - String
145
> * *officePhone*        - String
146
> * *officeExt*        - String
147
> * *officeFax*        - String
148
> * *msisdn*        - String
149
150
* *com.cosway.bcard.bean.ResultBean*
151
> * *errorCode*    - String
152
> * *errorMessage* - String