Specification » History » Version 5
Soh Keong, 10/23/2020 02:29 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 | 5 | Soh Keong | h3. updateCancelRequestBeforeApproval |
69 | 4 | Soh Keong | |
70 | 5 | Soh Keong | <pre> |
71 | com.bv.ws.model.ResultBean resultBean = service.updateCancelRequestBeforeApproval(UpdateOrderBean bean) |
||
72 | </pre> |
||
73 | |||
74 | * *com.bv.ws.model.UpdateOrderBean* |
||
75 | > * *orderId* - String |
||
76 | > * *countryCode* - String |
||
77 | > * *stockistCode* - String |
||
78 | > * *orderList* - String |
||
79 | >> * *orderId* - String |
||
80 | >> * *cancelRequest* - String (NO NEED to set value, Fixed to R) |
||
81 | NOTE: R=Before Approval; Y=After Approval |
||
82 | |||
83 | |||
84 | 4 | Soh Keong | h3. getShippingCountryByOrderId |
85 | |||
86 | <pre> |
||
87 | String shippingCountry = service.getShippingCountryByOrderId(Connection connStore, String orderId); |
||
88 | </pre> |
||
89 | |||
90 | 3 | Soh Keong | * *com.bv.ws.model.MomBean* |
91 | > * *orderId* - String |
||
92 | > * *countryCode* - String |
||
93 | > * *deliveryAddress* - String |
||
94 | > * *memberIc* - String |
||
95 | > * *telNo* - String |
||
96 | > * *receiverName* - String |
||
97 | > * *stockistCode* - String |
||
98 | > * *orderDate* - Date |
||
99 | > * *memberId* - String |
||
100 | > * *invoiceAmount* - double |
||
101 | > * *processDate* - Date |
||
102 | > * *collectorName* - String |
||
103 | > * *collectorIc* - String |
||
104 | > * *collectorContact* - String |
||
105 | > * *deliveryType* - String |
||
106 | > * *pickupStore* - String |
||
107 | > * *approvalCode* - String |
||
108 | > * *freightCharges* - double |
||
109 | > * *purchaserName* - String |
||
110 | > * *ewalletAdminFee* - double |
||
111 | > * *currency* - String |
||
112 | > * *originalOrdNo* - String |
||
113 | > * *onlineMall* - String |
||
114 | > * *warehouse* - String |
||
115 | > * *lossFee* - double |
||
116 | > * *productList* |
||
117 | >> * *setId* - String |
||
118 | >> * *productId* - String |
||
119 | >> * *productType* - String |
||
120 | >> * *quantity* - int |
||
121 | >> * *setSold* - int |
||
122 | >> * *productPrice* - double |
||
123 | >> * *deductStock* - String |
||
124 | >> * *childPrice* - double |
||
125 | >> * *childTotalPrice* - double |