Project

General

Profile

Specification » History » Version 13

Soh Keong, 03/10/2021 10:39 AM

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 1 Soh Keong
18
h3. Jar File Download
19
20 13 Soh Keong
"Jar":/redmine/attachments/download/584/momService-1.18.jar
21 1 Soh Keong
"Lib":/redmine/attachments/download/515/lib.rar
22
"Properties":/redmine/attachments/download/516/service.properties
23
24
h3. properties file
25
26
* *service.properties*
27
28
# *json.url*                - Cosway dotnet's URL
29
# *json.key*                - for encryption 
30
# *connection.timeout*      - set connection timeout
31
# *connection.read.timeout* - set connection read timeout
32
33
34
h1. Methods
35
36
h2. MOM Order
37 2 Soh Keong
38
<pre>
39
com.ecosway.cosway.momwcf.service.MomService service = new com.ecosway.cosway.momwcf.service.MomService();
40
</pre>
41
42
h3. getMomBean
43
44
<pre>
45
com.ecosway.cosway.momwcf.model.MomHeaderBean momBean = service.getMomBean(Connection conn, String orderId);
46
</pre>
47
48
h3. addOrder
49
50
<pre>
51
com.ecosway.cosway.momwcf.model.ResultBean resultBean = service.addOrder(MomHeaderBean bean)
52
</pre>
53
54
* *com.ecosway.cosway.momwcf.model.ResultBean*
55
> * *errCode*       - String
56
> * *errMessage*    - String