Specification » History » Version 5
Soh Keong, 04/01/2021 03:04 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 | 5 | Soh Keong | h3. getInventoryLevel (IGetProdBal) |
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 | 3 | Soh Keong | h2. OrdersService |
64 | |||
65 | <pre> |
||
66 | com.ecosway.vmart.cnwhs.service.OrdersService service = new com.ecosway.vmart.cnwhs.service.OrdersService(); |
||
67 | </pre> |
||
68 | |||
69 | 5 | Soh Keong | h3. addOrders (IAddOrder) |
70 | 3 | Soh Keong | |
71 | <pre> |
||
72 | com.ecosway.vmart.cnwhs.model.ResultBean resultBean = service.addOrders(List<OrdersBean> ordersBeanList) |
||
73 | </pre> |
||
74 | |||
75 | * *com.ecosway.vmart.cnwhs.model.OrdersBean* |
||
76 | 4 | Soh Keong | > * *transactionRefNo* - String |
77 | > * *warehouseCode* - String |
||
78 | > * *orderId* - String |
||
79 | > * *poNo* - String |
||
80 | > * *shopperName* - String |
||
81 | > * *customerId* - String |
||
82 | > * *address1* - String |
||
83 | > * *country* - String |
||
84 | > * *handphone* - String |
||
85 | > * *email* - String |
||
86 | > * *productDescription* - String |
||
87 | > * *private int quantity* - String |
||
88 | > * *productId* - String |
||
89 | > * *categoryName* - String |
||
90 | > * *weightPerUnit* - String |
||
91 | > * *createDate* - String |
||
92 | > * *purchaseType* - String |
||
93 | > * *mainOrderFlag* - String |
||
94 | > * *setCode* - String |
||
95 | > * *setFlag* - String |
||
96 | > * *city* - String |
||
97 | > * *postcode* - String |
||
98 | > * *freightType* - String |
||
99 | > * *orderGroup* - String |
||
100 | > * *state* - String |
||
101 | > * *totalRecord* - String |
||
102 | 3 | Soh Keong | |
103 | * *com.ecosway.vmart.cnwhs.model.ResultBean* |
||
104 | > * *errCode* - String |
||
105 | > * *errMessage* - String |