Specification » History » Version 7
Soh Keong, 10/23/2020 04:19 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 | "com.bv.ws.model.MomBean":/redmine/projects/aces/wiki/Specification#getShippingCountryByOrderId |
||
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 | 5 | Soh Keong | "com.bv.ws.model.MomBean":/redmine/projects/aces/wiki/Specification#getShippingCountryByOrderId |
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 | 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 | *Common Bean* |
||
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 |