Specification » History » Version 11
Soh Keong, 02/24/2021 03:35 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h2. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | 6 | Soh Keong | |_. version |_. Description | |
10 | | 1.13.1 | Init | |
||
11 | | 1.13.2 | Added Delivery | |
||
12 | 7 | Soh Keong | | 1.14 | Payment Method priority | |
13 | 8 | Soh Keong | | 1.15 | Added Shopper Sales | |
14 | 11 | Soh Keong | | 1.16 | Added TNG | |
15 | 1 | Soh Keong | |
16 | h3. Jar File Download |
||
17 | |||
18 | 11 | Soh Keong | "Jar":/redmine/attachments/download/576/momService-1.16.jar |
19 | 1 | Soh Keong | "Lib":/redmine/attachments/download/515/lib.rar |
20 | "Properties":/redmine/attachments/download/516/service.properties |
||
21 | |||
22 | h3. properties file |
||
23 | |||
24 | * *service.properties* |
||
25 | |||
26 | # *json.url* - Cosway dotnet's URL |
||
27 | # *json.key* - for encryption |
||
28 | # *connection.timeout* - set connection timeout |
||
29 | # *connection.read.timeout* - set connection read timeout |
||
30 | |||
31 | |||
32 | h1. Methods |
||
33 | |||
34 | h2. MOM Order |
||
35 | 2 | Soh Keong | |
36 | <pre> |
||
37 | com.ecosway.cosway.momwcf.service.MomService service = new com.ecosway.cosway.momwcf.service.MomService(); |
||
38 | </pre> |
||
39 | |||
40 | h3. getMomBean |
||
41 | |||
42 | <pre> |
||
43 | com.ecosway.cosway.momwcf.model.MomHeaderBean momBean = service.getMomBean(Connection conn, String orderId); |
||
44 | </pre> |
||
45 | |||
46 | h3. addOrder |
||
47 | |||
48 | <pre> |
||
49 | com.ecosway.cosway.momwcf.model.ResultBean resultBean = service.addOrder(MomHeaderBean bean) |
||
50 | </pre> |
||
51 | |||
52 | * *com.ecosway.cosway.momwcf.model.ResultBean* |
||
53 | > * *errCode* - String |
||
54 | > * *errMessage* - String |