Specification » History » Version 2
Soh Keong, 11/11/2020 05:29 PM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h2. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | |_. version |_. Description | |
||
10 | | 1.3 | Init | |
||
11 | |||
12 | h3. Jar File Download |
||
13 | |||
14 | "Jar":/redmine/attachments/download/509/vmartJsonService-1.3.jar |
||
15 | "Lib":/redmine/attachments/download/510/lib.rar |
||
16 | "Properties":/redmine/attachments/download/511/service.properties |
||
17 | |||
18 | h3. properties file |
||
19 | |||
20 | * *service.properties* |
||
21 | |||
22 | # *json.url* - Provided by offline team |
||
23 | # *json.key* - for encryption |
||
24 | # *connection.timeout* - set connection timeout |
||
25 | # *connection.read.timeout* - set connection read timeout |
||
26 | |||
27 | h1. Methods |
||
28 | |||
29 | h2. InventoryLevel |
||
30 | |||
31 | <pre> |
||
32 | com.ecosway.vmart.cnwhs.service.InventoryService service = new com.ecosway.vmart.cnwhs.service.InventoryService(); |
||
33 | </pre> |
||
34 | |||
35 | 2 | Soh Keong | h3. getInventoryLevel |
36 | 1 | Soh Keong | |
37 | <pre> |
||
38 | 2 | Soh Keong | com.ecosway.vmart.cnwhs.model.InventoryResultBean resultBean = service.getInventoryLevel(InventoryBean invBean) |
39 | 1 | Soh Keong | </pre> |
40 | |||
41 | * *com.ecosway.vmart.cnwhs.model.InventoryBean* |
||
42 | 2 | Soh Keong | > * *orderId* - String |
43 | > * *centerId* - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.CENTER_ID_ONLINE) |
||
44 | > * *countryId* - String |
||
45 | > * *warehouseCode* - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.WAREHOUSE_CODE_2 | WAREHOUSE_CODE_4) |
||
46 | > * *productList* - List<ProductBean> |
||
47 | >> * *productId* - String |
||
48 | >> * *consum* - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.CONSUME_YES) |
||
49 | >> * *requestQuantity* - Int |
||
50 | |||
51 | * *com.ecosway.vmart.cnwhs.model.InventoryResultBean* |
||
52 | > * *errCode* - String |
||
53 | > * *errMessage* - String |
||
54 | > * *countryId* - String |
||
55 | > * *warehouseCode* - String |
||
56 | > * *productList* - List<ProductBean> |
||
57 | >> * *productId* - String |
||
58 | >> * *consum* - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.CONSUME_YES) |
||
59 | >> * *requestQuantity* - Int |
||
60 | >> * *availableQuantity* - Int |
||
61 | |||
62 | |||
63 | h3. |