Project

General

Profile

Specification » History » Version 10

Soh Keong, 01/26/2021 11:43 AM

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