Project

General

Profile

Specification » History » Version 6

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