Project

General

Profile

Specification » History » Version 1

Soh Keong, 10/19/2020 03:42 PM

1 1 Soh Keong
h1. Specification
2
3
h1. Programming Guide
4
5
h2. Resources
6
7
h3. SCM
8
9
see [[wiki#SCM]]
10
11
h3. Jar File Download
12
13
"Jar":/redmine/attachments/download/481/bcard-infinite-2.2.jar
14
"Lib":/redmine/attachments/download/482/json_lib.zip
15
"Properties":/redmine/attachments/download/480/service.properties
16
17
h3. properties file
18
19
* *service.properties*
20
21
# *ws.key*          - Provided by bInfinite
22
# *ws.company.code* - Provided by bInfinite
23
# *ws.branch.code*  - Provided by bInfinite
24
# *ws.post.id*      - Provided by bInfinite
25
26
h2. Methods
27
28
h3. Common Instance
29
30
<pre>
31
com.cosway.bcard.service.BcardService service = new com.cosway.bcard.service.BcardService();
32
</pre>
33
34
h3. Point Inquiry
35
36
<pre>
37
com.cosway.bcard.bean.PointResultBean resultBean = service.pointInquiry(CardBean cardBean);
38
</pre>
39
40
* *com.cosway.bcard.bean.CardBean*
41
> * *bcardNo*   - bInfinite card number
42
> * *password*  - bInfinite card's password
43
44
* *com.cosway.bcard.bean.PointResultBean*
45
> * *errorCode*       - String
46
> * *errorMessage*    - String 
47
> * *bcardNo*         - String
48
> * *principalPoint*  - int
49
> * *tokenPoint*      - int
50
> * *mintoken*        - int
51
> * *totalpoint*      - int
52
53
h3. Check Card
54
55
<pre>
56
com.cosway.bcard.bean.CheckCardResultBean resultBean = service.pointInquiry(String cardNumber);
57
</pre>
58
59
* *com.cosway.bcard.bean.CheckCardResultBean*
60
> * *errorCode*       - String
61
> * *errorMessage*    - String 
62
> * *bcardNo*         - String
63
> * *status*          - String