Project

General

Profile

Specification » History » Version 4

Soh Keong, 10/20/2020 04:50 PM

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