Specification » History » Version 1
Soh Keong, 10/28/2020 03:40 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h1. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | |_. version |_. Description | |
||
10 | | 1.0 | Init | |
||
11 | |||
12 | h3. Jar File Download |
||
13 | |||
14 | "Jar":/redmine/attachments/download/494/bcard-dotnet-1.0.jar |
||
15 | "Lib":/redmine/attachments/download/495/lib.rar |
||
16 | "Properties":/redmine/attachments/download/496/service.properties |
||
17 | |||
18 | h3. properties file |
||
19 | |||
20 | * *service.properties* |
||
21 | |||
22 | # *json.url* - Dotnet team's web service URL |
||
23 | # *json.key* - Provided by Dotnet team |
||
24 | # *connection.timeout* - set connection timeout |
||
25 | # *connection.read.timeout* - set connection read timeout |
||
26 | |||
27 | h2. Methods |
||
28 | |||
29 | h3. Common Instance |
||
30 | |||
31 | <pre> |
||
32 | com.cosway.bcard.dotnet.service.MemberService service = new com.cosway.bcard.dotnet.service.MemberService(); |
||
33 | </pre> |
||
34 | |||
35 | h3. getBcardByShopperId / getShopperByBcard |
||
36 | |||
37 | <pre> |
||
38 | com.cosway.bcard.dotnet.bean.BCardResultBean result = service.getBcardByShopperId(String shopperId) |
||
39 | com.cosway.bcard.dotnet.bean.BCardResultBean result = service.getShopperByBcard(String bcardNo) |
||
40 | </pre> |
||
41 | |||
42 | * *com.cosway.bcard.dotnet.bean.BCardResultBean* |
||
43 | > * *errCode* - String |
||
44 | > * *errMessage* - String |
||
45 | > * *totalRec* - int |
||
46 | > * *totalRecEcosway* - int |
||
47 | > * *totalRecCosway* - int |
||
48 | > * *bCardList* - List<String> |
||
49 | > * *memberList* - List<String> |
||
50 | |||
51 | |||
52 | h3. addBCardMember / editBCardMember / deleteBCardMember |
||
53 | |||
54 | <pre> |
||
55 | ResultBean result = service.addBCardMember(BCardMemberBean bean) |
||
56 | ResultBean result = service.editBCardMember(BCardMemberBean bean) |
||
57 | ResultBean result = service.deleteBCardMember(BCardMemberBean bean) |
||
58 | </pre> |
||
59 | |||
60 | * *com.cosway.bcard.dotnet.bean.BCardMemberBean* |
||
61 | > * *shopperId* - String |
||
62 | > * *bcardNo* - String |
||
63 | > * *orderId* - String |
||
64 | > * *centerId* - String (com.cosway.bcard.dotnet.constant.CommonConstant.CENTER_ID_ONLINE) |
||
65 | > * *companyCode* - String (com.cosway.bcard.dotnet.constant.CommonConstant.COMPANY_CODE_COSWAY | COMPANY_CODE_ECOSWAY) |