Project

General

Profile

Specification » History » Version 10

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