Project

General

Profile

Specification » History » Version 6

Soh Keong, 10/23/2020 03:31 PM

1 5 Soh Keong
{{toc}}
2
3 1 Soh Keong
h1. Specification
4
5 4 Soh Keong
h2. Programming Guide
6 1 Soh Keong
7
h3. Jar version 
8
9
|_. version |_. Description  |
10
| 2.8       | Init           |
11
12
h3. Jar File Download
13
14
"Jar":/redmine/attachments/download/483/BVService-2.8.jar
15
"Lib":/redmine/attachments/download/484/lib.rar
16
"Properties":/redmine/attachments/download/485/service.properties
17
18
h3. properties file
19
20
* *service.properties*
21
22
# *json.url.mom*            - Provided by POS
23
# *json.key*                - Provided by POS
24
# *aes.key*                 - Provided by POS
25
# *connection.timeout*      - Set connection timeout
26
# *connection.read.timeout* - Set connection red timeout
27 2 Soh Keong
28
h2. Methods
29
30
h3. Common Instance
31
32
<pre>
33
com.bv.ws.service.MomService service = new com.bv.ws.service.MomService();
34
</pre>
35
36
h3. getMomBeanByOrderId
37 3 Soh Keong
38
<pre>
39 4 Soh Keong
com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connStore, String orderId);
40 1 Soh Keong
</pre>
41 5 Soh Keong
42
"com.bv.ws.model.MomBean":/redmine/projects/aces/wiki/Specification#getShippingCountryByOrderId
43 1 Soh Keong
 
44 4 Soh Keong
h3. getCancelMomByOrderId
45
46
<pre>
47
com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connUsa, Connection connStore, String orderId);
48
</pre>
49
50 5 Soh Keong
"com.bv.ws.model.MomBean":/redmine/projects/aces/wiki/Specification#getShippingCountryByOrderId
51
52 4 Soh Keong
h3. checkShippingStatus
53
54
<pre>
55
com.bv.ws.model.QueryResultBean checkShippingStatus(QueryOrderBean bean)
56
</pre>
57
58
* *com.bv.ws.model.QueryOrderBean *
59 1 Soh Keong
> * *orderId*        - String
60
> * *countryCode*    - String
61
62
* *com.bv.ws.model.QueryResultBean*
63
> * *errCode*          - String
64
> * *errMessage*       - String
65 5 Soh Keong
> * *invoiceStatus*    - String ("return" = good had return : empty = yet return)
66 4 Soh Keong
> * *shipped*          - boolean
67
68 6 Soh Keong
h3. updateCancelRequestBeforeApproval / cancelCancelRequest
69 4 Soh Keong
70 5 Soh Keong
<pre>
71 1 Soh Keong
com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestBeforeApproval(UpdateOrderBean bean)
72 6 Soh Keong
com.bv.ws.model.ResultBean resultBean = service.cancelCancelRequest(UpdateOrderBean bean)
73
com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestAfterApproval(UpdateOrderBean bean)
74 5 Soh Keong
</pre>
75
76
* *com.bv.ws.model.UpdateOrderBean*
77
> * *orderId*          - String
78
> * *countryCode*      - String
79 1 Soh Keong
> * *stockistCode*     - String
80
> * *orderList*        - String
81 5 Soh Keong
>> * *orderId*         - String
82 6 Soh Keong
>> * *cancelRequest*   - String (NO NEED to set value, auto fixed by calling difference method) 
83
NOTE: R=Before Approval; Y=After Approval; 
84 1 Soh Keong
85 6 Soh Keong
* *com.bv.ws.model.ResultBean*
86
> * *errCode*          - String
87
> * *errMessage*       - String
88 5 Soh Keong
89 6 Soh Keong
90 4 Soh Keong
h3. getShippingCountryByOrderId
91
92 1 Soh Keong
<pre>
93
String shippingCountry = service.getShippingCountryByOrderId(Connection connStore, String orderId);
94
</pre>
95 6 Soh Keong
96
97
*Common Bean*
98 4 Soh Keong
99 3 Soh Keong
* *com.bv.ws.model.MomBean*
100
> * *orderId*          - String
101
> * *countryCode*      - String
102
> * *deliveryAddress*  - String
103
> * *memberIc*         - String
104
> * *telNo*            - String
105
> * *receiverName*     - String
106
> * *stockistCode*     - String
107
> * *orderDate*        - Date
108
> * *memberId*         - String
109
> * *invoiceAmount*    - double
110
> * *processDate*      - Date
111
> * *collectorName*    - String
112
> * *collectorIc*      - String
113
> * *collectorContact* - String
114
> * *deliveryType*     - String
115
> * *pickupStore*      - String
116
> * *approvalCode*     - String
117
> * *freightCharges*   - double
118
> * *purchaserName*    - String
119
> * *ewalletAdminFee*  - double
120
> * *currency*         - String
121
> * *originalOrdNo*    - String
122
> * *onlineMall*       - String
123
> * *warehouse*        - String
124
> * *lossFee*          - double
125
> * *productList*       
126
>> * *setId*           - String
127
>> * *productId*       - String
128
>> * *productType*     - String
129
>> * *quantity*        - int
130
>> * *setSold*         - int
131
>> * *productPrice*    - double
132
>> * *deductStock*     - String
133
>> * *childPrice*      - double
134
>> * *childTotalPrice* - double