Project

General

Profile

Specification » History » Revision 4

Revision 3 (Soh Keong, 11/11/2020 05:33 PM) → Revision 4/5 (Soh Keong, 11/11/2020 05:39 PM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 1.3         | Init             | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/509/vmartJsonService-1.3.jar 
 "Lib":/redmine/attachments/download/510/lib.rar 
 "Properties":/redmine/attachments/download/511/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url*                  - Provided by offline team 
 # *json.key*                  - for encryption  
 # *connection.timeout*        - set connection timeout 
 # *connection.read.timeout* - set connection read timeout 

 h1. Methods 

 h2. InventoryLevel 

 <pre> 
 com.ecosway.vmart.cnwhs.service.InventoryService service = new com.ecosway.vmart.cnwhs.service.InventoryService(); 
 </pre> 

 h3. getInventoryLevel 

 <pre> 
 com.ecosway.vmart.cnwhs.model.InventoryResultBean resultBean = service.getInventoryLevel(InventoryBean invBean) 
 </pre> 

 * *com.ecosway.vmart.cnwhs.model.InventoryBean* 
 > * *orderId*         - String 
 > * *centerId*        - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.CENTER_ID_ONLINE) 
 > * *countryId*       - String 
 > * *warehouseCode* - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.WAREHOUSE_CODE_2 | WAREHOUSE_CODE_4) 
 > * *productList*     - List<ProductBean> 
 >> * *productId*           - String 
 >> * *consum*              - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.CONSUME_YES) 
 >> * *requestQuantity*     - Int 

 * *com.ecosway.vmart.cnwhs.model.InventoryResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String 
 > * *countryId*       - String 
 > * *warehouseCode* - String  
 > * *productList*     - List<ProductBean> 
 >> * *productId*           - String 
 >> * *consum*              - String (com.ecosway.vmart.cnwhs.contant.CommonConstant.CONSUME_YES) 
 >> * *requestQuantity*     - Int 
 >> * *availableQuantity* - Int 


 h2. OrdersService 

 <pre> 
 com.ecosway.vmart.cnwhs.service.OrdersService service = new com.ecosway.vmart.cnwhs.service.OrdersService(); 
 </pre> 

 h3. addOrders 

 <pre> 
 com.ecosway.vmart.cnwhs.model.ResultBean resultBean = service.addOrders(List<OrdersBean> ordersBeanList) 
 </pre> 

 * *com.ecosway.vmart.cnwhs.model.OrdersBean* 
 > * *transactionRefNo*        - String 
 > * *warehouseCode*           - String 
 > * *orderId*                         - String 
 > * *poNo*                    - String 
 > * *shopperName*             - String 
 > * *customerId*              - String 
 > * *address1*                - String 
 > * *country*                 - String 
 > * *handphone*               - String 
 > * *email*                   - String 
 > * *productDescription*      - String 
 > * *private int quantity*    - String 
 > * *productId*               - String 
 > * *categoryName*            - String 
 > * *weightPerUnit*           - String 
 > * *createDate*              - String 
 > * *purchaseType*            - String 
 > * *mainOrderFlag*           - String 
 > * *setCode*                 - String 
 > * *setFlag*                 - String 
 > * *city*                    - String 
 > * *postcode*                - String 
 > * *freightType*             - String 
 > * *orderGroup*              - String 
 > * *state*                   - String 
 > * *totalRecord*             - String 

 // TODO 

 * *com.ecosway.vmart.cnwhs.model.ResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String