Project

General

Profile

Specification » History » Version 9

Soh Keong, 10/23/2020 04:52 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 7 Soh Keong
h2. flow chart
29
30
!cancelFlow.jpg!
31
32 2 Soh Keong
h2. Methods
33
34
h3. Common Instance
35
36
<pre>
37
com.bv.ws.service.MomService service = new com.bv.ws.service.MomService();
38
</pre>
39
40
h3. getMomBeanByOrderId
41 3 Soh Keong
42
<pre>
43 4 Soh Keong
com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connStore, String orderId);
44 1 Soh Keong
</pre>
45 5 Soh Keong
46 9 Soh Keong
"com.bv.ws.model.MomBean":/redmine/projects/aces/wiki/Specification#Common-Bean-MomBean
47 1 Soh Keong
 
48 4 Soh Keong
h3. getCancelMomByOrderId
49
50
<pre>
51
com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connUsa, Connection connStore, String orderId);
52
</pre>
53
54 9 Soh Keong
"com.bv.ws.model.MomBean":/redmine/projects/aces/wiki/Specification#Common-Bean-MomBean
55 5 Soh Keong
56 8 Soh Keong
h3. getRegistrationBeanByOrderId
57
58
<pre>
59
com.bv.ws.model.MomBean momBean = service.getRegistrationBeanByOrderId(Connection conn, String orderId)
60
</pre>
61
62 4 Soh Keong
h3. checkShippingStatus
63
64
<pre>
65
com.bv.ws.model.QueryResultBean checkShippingStatus(QueryOrderBean bean)
66
</pre>
67
68
* *com.bv.ws.model.QueryOrderBean *
69 1 Soh Keong
> * *orderId*        - String
70
> * *countryCode*    - String
71
72
* *com.bv.ws.model.QueryResultBean*
73
> * *errCode*          - String
74
> * *errMessage*       - String
75 5 Soh Keong
> * *invoiceStatus*    - String ("return" = good had return : empty = yet return)
76 4 Soh Keong
> * *shipped*          - boolean
77
78 6 Soh Keong
h3. updateCancelRequestBeforeApproval / cancelCancelRequest
79 4 Soh Keong
80 5 Soh Keong
<pre>
81 1 Soh Keong
com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestBeforeApproval(UpdateOrderBean bean)
82 6 Soh Keong
com.bv.ws.model.ResultBean resultBean = service.cancelCancelRequest(UpdateOrderBean bean)
83
com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestAfterApproval(UpdateOrderBean bean)
84 7 Soh Keong
com.bv.ws.model.ResultBean resultBean = service.updateCancelStatus(UpdateOrderBean bean)
85 5 Soh Keong
</pre>
86
87
* *com.bv.ws.model.UpdateOrderBean*
88
> * *orderId*          - String
89
> * *countryCode*      - String
90 1 Soh Keong
> * *stockistCode*     - String
91
> * *orderList*        - String
92 5 Soh Keong
>> * *orderId*         - String
93 6 Soh Keong
>> * *cancelRequest*   - String (NO NEED to set value, auto fixed by calling difference method) 
94
NOTE: R=Before Approval; Y=After Approval; 
95 8 Soh Keong
>> * *orderStatus*     -String (default to 'cancel') 
96 1 Soh Keong
97 6 Soh Keong
* *com.bv.ws.model.ResultBean*
98
> * *errCode*          - String
99
> * *errMessage*       - String
100 5 Soh Keong
101 6 Soh Keong
102 4 Soh Keong
h3. getShippingCountryByOrderId
103
104 1 Soh Keong
<pre>
105
String shippingCountry = service.getShippingCountryByOrderId(Connection connStore, String orderId);
106
</pre>
107 6 Soh Keong
108
109 9 Soh Keong
h3. Common Bean - MomBean
110 4 Soh Keong
111 3 Soh Keong
* *com.bv.ws.model.MomBean*
112
> * *orderId*          - String
113
> * *countryCode*      - String
114
> * *deliveryAddress*  - String
115
> * *memberIc*         - String
116
> * *telNo*            - String
117
> * *receiverName*     - String
118
> * *stockistCode*     - String
119
> * *orderDate*        - Date
120
> * *memberId*         - String
121
> * *invoiceAmount*    - double
122
> * *processDate*      - Date
123
> * *collectorName*    - String
124
> * *collectorIc*      - String
125
> * *collectorContact* - String
126
> * *deliveryType*     - String
127
> * *pickupStore*      - String
128
> * *approvalCode*     - String
129
> * *freightCharges*   - double
130
> * *purchaserName*    - String
131
> * *ewalletAdminFee*  - double
132
> * *currency*         - String
133
> * *originalOrdNo*    - String
134
> * *onlineMall*       - String
135
> * *warehouse*        - String
136
> * *lossFee*          - double
137
> * *productList*       
138
>> * *setId*           - String
139
>> * *productId*       - String
140
>> * *productType*     - String
141
>> * *quantity*        - int
142
>> * *setSold*         - int
143
>> * *productPrice*    - double
144
>> * *deductStock*     - String
145
>> * *childPrice*      - double
146
>> * *childTotalPrice* - double