Project

General

Profile

Specification » History » Version 22

Soh Keong, 10/12/2021 06:28 PM

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