Project

General

Profile

Specification » History » Version 3

Soh Keong, 10/22/2020 10:59 AM

1 1 Soh Keong
h1. Specification
2
3
h1. Programming Guide
4
5
h3. Jar version 
6
7
|_. version |_. Description  |
8
| 2.8       | Init           |
9
10
h3. Jar File Download
11
12
"Jar":/redmine/attachments/download/483/BVService-2.8.jar
13
"Lib":/redmine/attachments/download/484/lib.rar
14
"Properties":/redmine/attachments/download/485/service.properties
15
16
h3. properties file
17
18
* *service.properties*
19
20
# *json.url.mom*            - Provided by POS
21
# *json.key*                - Provided by POS
22
# *aes.key*                 - Provided by POS
23
# *connection.timeout*      - Set connection timeout
24
# *connection.read.timeout* - Set connection red timeout
25 2 Soh Keong
26
h2. Methods
27
28
h3. Common Instance
29
30
<pre>
31
com.bv.ws.service.MomService service = new com.bv.ws.service.MomService();
32
</pre>
33
34
h3. getMomBeanByOrderId
35 3 Soh Keong
36
<pre>
37
com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection conn, String orderId);
38
</pre>
39
 
40
* *com.bv.ws.model.MomBean*
41
> * *orderId*          - String
42
> * *countryCode*      - String
43
> * *deliveryAddress*  - String
44
> * *memberIc*         - String
45
> * *telNo*            - String
46
> * *receiverName*     - String
47
> * *stockistCode*     - String
48
> * *orderDate*        - Date
49
> * *memberId*         - String
50
> * *invoiceAmount*    - double
51
> * *processDate*      - Date
52
> * *collectorName*    - String
53
> * *collectorIc*      - String
54
> * *collectorContact* - String
55
> * *deliveryType*     - String
56
> * *pickupStore*      - String
57
> * *approvalCode*     - String
58
> * *freightCharges*   - double
59
> * *purchaserName*    - String
60
> * *ewalletAdminFee*  - double
61
> * *currency*         - String
62
> * *originalOrdNo*    - String
63
> * *onlineMall*       - String
64
> * *warehouse*        - String
65
> * *lossFee*          - double
66
> * *productList*       
67
>> * *setId*           - String
68
>> * *productId*       - String
69
>> * *productType*     - String
70
>> * *quantity*        - int
71
>> * *setSold*         - int
72
>> * *productPrice*    - double
73
>> * *deductStock*     - String
74
>> * *childPrice*      - double
75
>> * *childTotalPrice* - double