Specification » History » Version 4
Soh Keong, 10/22/2020 05:39 PM
1 | 1 | Soh Keong | h1. Specification |
---|---|---|---|
2 | |||
3 | 4 | Soh Keong | h2. Programming Guide |
4 | 1 | Soh Keong | |
5 | h3. Jar version |
||
6 | |||
7 | |_. version |_. Description | |
||
8 | | 2.8 | Init | |
||
9 | |||
10 | h3. Jar File Download |
||
11 | |||
12 | "Jar":/redmine/attachments/download/483/BVService-2.8.jar |
||
13 | "Lib":/redmine/attachments/download/484/lib.rar |
||
14 | "Properties":/redmine/attachments/download/485/service.properties |
||
15 | |||
16 | h3. properties file |
||
17 | |||
18 | * *service.properties* |
||
19 | |||
20 | # *json.url.mom* - Provided by POS |
||
21 | # *json.key* - Provided by POS |
||
22 | # *aes.key* - Provided by POS |
||
23 | # *connection.timeout* - Set connection timeout |
||
24 | # *connection.read.timeout* - Set connection red timeout |
||
25 | 2 | Soh Keong | |
26 | h2. Methods |
||
27 | |||
28 | h3. Common Instance |
||
29 | |||
30 | <pre> |
||
31 | com.bv.ws.service.MomService service = new com.bv.ws.service.MomService(); |
||
32 | </pre> |
||
33 | |||
34 | h3. getMomBeanByOrderId |
||
35 | 3 | Soh Keong | |
36 | <pre> |
||
37 | 4 | Soh Keong | com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connStore, String orderId); |
38 | 1 | Soh Keong | </pre> |
39 | |||
40 | 4 | Soh Keong | h3. getCancelMomByOrderId |
41 | |||
42 | <pre> |
||
43 | com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection connUsa, Connection connStore, String orderId); |
||
44 | </pre> |
||
45 | |||
46 | h3. checkShippingStatus |
||
47 | |||
48 | <pre> |
||
49 | com.bv.ws.model.QueryResultBean checkShippingStatus(QueryOrderBean bean) |
||
50 | </pre> |
||
51 | |||
52 | * *com.bv.ws.model.QueryOrderBean * |
||
53 | > * *orderId* - String |
||
54 | > * *countryCode* - String |
||
55 | |||
56 | * *com.bv.ws.model.QueryResultBean* |
||
57 | > * *errCode* - String |
||
58 | > * *errMessage* - String |
||
59 | > * *deliveryType* - String |
||
60 | > * *deliveryNo* - String |
||
61 | > * *deliveryDate* - String |
||
62 | > * *consignNo* - String |
||
63 | > * *consignDate* - String |
||
64 | > * *collectDate* - String |
||
65 | > * *orderId* - String |
||
66 | > * *orderDate* - String |
||
67 | > * *pickupStore* - String |
||
68 | > * *whDownload* - String |
||
69 | > * *posDownload* - String |
||
70 | > * *sendCarton* - String |
||
71 | > * *receiveCarton* - String |
||
72 | > * *receiveDate* - String |
||
73 | > * *invoiceStatus* - String |
||
74 | > * *originalOrdNo* - String |
||
75 | > * *returnInvNo* - String |
||
76 | > * *returnInvDate* - String |
||
77 | > * *onlCancelRequest* - String |
||
78 | > * *shipped* - boolean |
||
79 | |||
80 | |||
81 | h3. getShippingCountryByOrderId |
||
82 | |||
83 | <pre> |
||
84 | String shippingCountry = service.getShippingCountryByOrderId(Connection connStore, String orderId); |
||
85 | </pre> |
||
86 | |||
87 | |||
88 | 3 | Soh Keong | * *com.bv.ws.model.MomBean* |
89 | > * *orderId* - String |
||
90 | > * *countryCode* - String |
||
91 | > * *deliveryAddress* - String |
||
92 | > * *memberIc* - String |
||
93 | > * *telNo* - String |
||
94 | > * *receiverName* - String |
||
95 | > * *stockistCode* - String |
||
96 | > * *orderDate* - Date |
||
97 | > * *memberId* - String |
||
98 | > * *invoiceAmount* - double |
||
99 | > * *processDate* - Date |
||
100 | > * *collectorName* - String |
||
101 | > * *collectorIc* - String |
||
102 | > * *collectorContact* - String |
||
103 | > * *deliveryType* - String |
||
104 | > * *pickupStore* - String |
||
105 | > * *approvalCode* - String |
||
106 | > * *freightCharges* - double |
||
107 | > * *purchaserName* - String |
||
108 | > * *ewalletAdminFee* - double |
||
109 | > * *currency* - String |
||
110 | > * *originalOrdNo* - String |
||
111 | > * *onlineMall* - String |
||
112 | > * *warehouse* - String |
||
113 | > * *lossFee* - double |
||
114 | > * *productList* |
||
115 | >> * *setId* - String |
||
116 | >> * *productId* - String |
||
117 | >> * *productType* - String |
||
118 | >> * *quantity* - int |
||
119 | >> * *setSold* - int |
||
120 | >> * *productPrice* - double |
||
121 | >> * *deductStock* - String |
||
122 | >> * *childPrice* - double |
||
123 | >> * *childTotalPrice* - double |