Project

General

Profile

Specification » History » Revision 3

Revision 2 (Soh Keong, 10/21/2020 06:05 PM) → Revision 3/23 (Soh Keong, 10/22/2020 10:59 AM)

h1. Specification 

 h1. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 2.8         | Init             | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/483/BVService-2.8.jar 
 "Lib":/redmine/attachments/download/484/lib.rar 
 "Properties":/redmine/attachments/download/485/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url.mom*              - Provided by POS 
 # *json.key*                  - Provided by POS 
 # *aes.key*                   - Provided by POS 
 # *connection.timeout*        - Set connection timeout 
 # *connection.read.timeout* - Set connection red timeout 

 h2. Methods 

 h3. Common Instance 

 <pre> 
 com.bv.ws.service.MomService service = new com.bv.ws.service.MomService(); 
 </pre> 

 h3. getMomBeanByOrderId 

 <pre> 
 com.bv.ws.model.MomBean momBean = service.getMomBeanByOrderId(Connection conn, String orderId); 
 </pre> 
 
 * *com.bv.ws.model.MomBean* 
 > * *orderId*            - String 
 > * *countryCode*        - String 
 > * *deliveryAddress*    - String 
 > * *memberIc*           - String 
 > * *telNo*              - String 
 > * *receiverName*       - String 
 > * *stockistCode*       - String 
 > * *orderDate*          - Date 
 > * *memberId*           - String 
 > * *invoiceAmount*      - double 
 > * *processDate*        - Date 
 > * *collectorName*      - String 
 > * *collectorIc*        - String 
 > * *collectorContact* - String 
 > * *deliveryType*       - String 
 > * *pickupStore*        - String 
 > * *approvalCode*       - String 
 > * *freightCharges*     - double 
 > * *purchaserName*      - String 
 > * *ewalletAdminFee*    - double 
 > * *currency*           - String 
 > * *originalOrdNo*      - String 
 > * *onlineMall*         - String 
 > * *warehouse*          - String 
 > * *lossFee*            - double 
 > * *productList*        
 >> * *setId*             - String 
 >> * *productId*         - String 
 >> * *productType*       - String 
 >> * *quantity*          - int 
 >> * *setSold*           - int 
 >> * *productPrice*      - double 
 >> * *deductStock*       - String 
 >> * *childPrice*        - double 
 >> * *childTotalPrice* - double