Project

General

Profile

Specification » History » Version 11

Soh Keong, 10/26/2020 09:29 AM

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